summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-05 11:35:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-05 17:53:09 +0100
commita0a0f8786f1deab4283cee45dfd8888ddbd2811e (patch)
tree3abc0b67c8782f3686550d90bdcae9fff4cc647a
parentd2d95c3495799b36af79e1c67f39dd6000bba501 (diff)
with widget layout we don't need to explicitly track the parent resize
Change-Id: I17e153ecc8b1b79bbbfbbccfe88a46f5905611fd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112010 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sd/source/ui/sidebar/LayoutMenu.cxx20
-rw-r--r--sd/source/ui/sidebar/LayoutMenu.hxx1
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);
};