Kaydet (Commit) 8dc875f1 authored tarafından Andre Fischer's avatar Andre Fischer

122329: Disable undocking of stylist in the sidebar.

üst 8fd2d48a
...@@ -419,6 +419,8 @@ SfxTemplatePanelControl::SfxTemplatePanelControl ( ...@@ -419,6 +419,8 @@ SfxTemplatePanelControl::SfxTemplatePanelControl (
OSL_ASSERT(mpBindings!=NULL); OSL_ASSERT(mpBindings!=NULL);
pImpl->updateNonFamilyImages(); pImpl->updateNonFamilyImages();
SetStyle(GetStyle() & ~WB_DOCKABLE);
} }
......
...@@ -762,10 +762,19 @@ void DockingWindow::Resizing( Size& ) ...@@ -762,10 +762,19 @@ void DockingWindow::Resizing( Size& )
void DockingWindow::StateChanged( StateChangedType nType ) void DockingWindow::StateChanged( StateChangedType nType )
{ {
if ( nType == STATE_CHANGE_CONTROLBACKGROUND ) switch(nType)
{ {
ImplInitSettings(); case STATE_CHANGE_CONTROLBACKGROUND:
Invalidate(); ImplInitSettings();
Invalidate();
break;
case STATE_CHANGE_STYLE:
mbDockable = (GetStyle() & WB_DOCKABLE) != 0;
break;
default:
break;
} }
Window::StateChanged( nType ); Window::StateChanged( nType );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment