summaryrefslogtreecommitdiff
path: root/sw/source/ui/inc/HeaderFooterWin.hxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-07 22:22:47 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-08 15:42:58 +0200
commit79f53401c6801e240800fb6e1eaae8f55974f9c6 (patch)
tree4c7a57602aec1dda55a5104be4bd5a5d97064634 /sw/source/ui/inc/HeaderFooterWin.hxx
parent1291efeee9ee4079e6bb38e0b06e9f73c365c7a0 (diff)
Header/Footer: just don't always drop and create SwHeaderFooterWin
This minimizes the number of creation / deletion of SwHeaderFooterWin objects and simply updates the existing ones.
Diffstat (limited to 'sw/source/ui/inc/HeaderFooterWin.hxx')
-rw-r--r--sw/source/ui/inc/HeaderFooterWin.hxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/sw/source/ui/inc/HeaderFooterWin.hxx b/sw/source/ui/inc/HeaderFooterWin.hxx
index 42b80a1c28ed..cd2991adc810 100644
--- a/sw/source/ui/inc/HeaderFooterWin.hxx
+++ b/sw/source/ui/inc/HeaderFooterWin.hxx
@@ -30,6 +30,7 @@
#include <pagedesc.hxx>
+#include <vcl/menubtn.hxx>
#include <vcl/window.hxx>
class SwHeaderFooterButton;
@@ -48,13 +49,19 @@ class SwHeaderFooterWin : public Window
SwHeaderFooterButton* m_pButton;
public:
- SwHeaderFooterWin( SwEditWin* pEditWin, const SwPageFrm* pPageFrm, bool bHeader, Point aOffset );
+ SwHeaderFooterWin( SwEditWin* pEditWin, const SwPageFrm* pPageFrm, bool bHeader );
~SwHeaderFooterWin( );
+ void SetOffset( Point aOffset );
+
virtual void Paint( const Rectangle& rRect );
bool IsHeader() { return m_bIsHeader; };
bool IsEmptyHeaderFooter( );
+ const SwPageFrm* GetPageFrame( ) { return m_pPageFrm; };
+
+private:
+ MenuButton* GetMenuButton();
};
#endif