diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-06-08 15:34:12 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-06-12 16:22:04 +0000 |
commit | 93da9ecd9de9a1d0ae3aafaded815ee179fb0f30 (patch) | |
tree | 7c3f6c18724c12a04ba7ce44bf2b97756861bb2d /sw/source/uibase/inc/HeaderFooterWin.hxx | |
parent | fae87e03ea3829718ec0381ed3b04ceb52c23720 (diff) |
Writer FrameControl lifecycle and management cleanup.
We can't derive from a VclPtr base-class, and also another base,
and then use boost::shared_ptr for that; re-factor to use a boost_ptr
to hold a VclPtr<> for now. Also fix leaking envelope dialog.
Change-Id: I2e1efbfaee3b6051e38ff7a14903a83ccd75136b
Reviewed-on: https://gerrit.libreoffice.org/16160
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sw/source/uibase/inc/HeaderFooterWin.hxx')
-rw-r--r-- | sw/source/uibase/inc/HeaderFooterWin.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/inc/HeaderFooterWin.hxx b/sw/source/uibase/inc/HeaderFooterWin.hxx index b9fa86e4a5c6..a96423f3f021 100644 --- a/sw/source/uibase/inc/HeaderFooterWin.hxx +++ b/sw/source/uibase/inc/HeaderFooterWin.hxx @@ -18,7 +18,7 @@ This control is showing the header / footer style name and provides a few useful actions to the user. */ -class SwHeaderFooterWin : public MenuButton, public SwFrameControl +class SwHeaderFooterWin : public SwFrameMenuButtonBase { OUString m_sLabel; bool m_bIsHeader; @@ -29,7 +29,7 @@ class SwHeaderFooterWin : public MenuButton, public SwFrameControl Timer m_aFadeTimer; public: - SwHeaderFooterWin( SwEditWin* pEditWin, const SwPageFrm* pPageFrm, bool bHeader ); + SwHeaderFooterWin( SwEditWin *pEditWin, const SwFrm *pFrm, bool bHeader ); virtual ~SwHeaderFooterWin( ); virtual void dispose() SAL_OVERRIDE; @@ -44,7 +44,6 @@ public: bool IsHeader() { return m_bIsHeader; }; bool IsEmptyHeaderFooter( ); - const SwPageFrm* GetPageFrame( ); void ExecuteCommand(sal_uInt16 nSlot); |