diff options
-rw-r--r-- | sd/source/ui/sidebar/LayoutMenu.cxx | 20 | ||||
-rw-r--r-- | sd/source/ui/sidebar/LayoutMenu.hxx | 1 |
2 files changed, 0 insertions, 21 deletions
diff --git a/sd/source/ui/sidebar/LayoutMenu.cxx b/sd/source/ui/sidebar/LayoutMenu.cxx index ec0feafe5d71..e435bdcdcde0 100644 --- a/sd/source/ui/sidebar/LayoutMenu.cxx +++ b/sd/source/ui/sidebar/LayoutMenu.cxx @@ -201,10 +201,6 @@ void LayoutMenu::implConstruct( DrawDocShell& rDocumentShell ) aStateChangeLink, Reference<frame::XDispatchProvider>(mrBase.GetController()->getFrame(), UNO_QUERY), ".uno:VerticalTextState"); - - SetSizePixel(GetParent()->GetSizePixel()); - Link<VclWindowEvent&,void> aWindowEventHandlerLink (LINK(this,LayoutMenu,WindowEventHandler)); - GetParent()->AddEventListener(aWindowEventHandlerLink); } LayoutMenu::~LayoutMenu() @@ -237,9 +233,6 @@ void LayoutMenu::Dispose() Clear(); Link<tools::EventMultiplexerEvent&,void> aLink (LINK(this,LayoutMenu,EventMultiplexerListener)); mrBase.GetEventMultiplexer()->RemoveEventListener (aLink); - - Link<VclWindowEvent&,void> aWindowEventHandlerLink (LINK(this,LayoutMenu,WindowEventHandler)); - GetParent()->RemoveEventListener(aWindowEventHandlerLink); } AutoLayout LayoutMenu::GetSelectedAutoLayout() const @@ -726,19 +719,6 @@ IMPL_LINK(LayoutMenu, EventMultiplexerListener, ::sd::tools::EventMultiplexerEve } } -IMPL_LINK(LayoutMenu, WindowEventHandler, VclWindowEvent&, rEvent, void) -{ - switch (rEvent.GetId()) - { - case VclEventId::WindowShow: - case VclEventId::WindowResize: - SetSizePixel(GetParent()->GetSizePixel()); - break; - - default: break; - } -} - void LayoutMenu::DataChanged (const DataChangedEvent& /*rEvent*/) { Fill(); diff --git a/sd/source/ui/sidebar/LayoutMenu.hxx b/sd/source/ui/sidebar/LayoutMenu.hxx index b6f6388483ac..b9eb1d167177 100644 --- a/sd/source/ui/sidebar/LayoutMenu.hxx +++ b/sd/source/ui/sidebar/LayoutMenu.hxx @@ -168,7 +168,6 @@ private: DECL_LINK(ClickHandler, ValueSet*, void); DECL_LINK(StateChangeHandler, const OUString&, void); DECL_LINK(EventMultiplexerListener, ::sd::tools::EventMultiplexerEvent&, void); - DECL_LINK(WindowEventHandler, VclWindowEvent&, void); void OnMenuItemSelected(std::string_view ident); }; |