summaryrefslogtreecommitdiff
path: root/sw/source/uibase/inc/HeaderFooterWin.hxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-06-08 15:34:12 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-06-12 16:22:04 +0000
commit93da9ecd9de9a1d0ae3aafaded815ee179fb0f30 (patch)
tree7c3f6c18724c12a04ba7ce44bf2b97756861bb2d /sw/source/uibase/inc/HeaderFooterWin.hxx
parentfae87e03ea3829718ec0381ed3b04ceb52c23720 (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.hxx5
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);