summaryrefslogtreecommitdiff
path: root/sw/source/ui/inc/HeaderFooterWin.hxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-06 18:48:49 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-06 18:50:37 +0200
commitb8162ca024faf539e5e5ae62d39ccaa03b71e82e (patch)
treeff3cae19361273df8d4f9c70174f597e84d09e40 /sw/source/ui/inc/HeaderFooterWin.hxx
parentc3db5332558d35adc8374836fd17025220e73180 (diff)
Header/Footer: added the menu button to the separator.
Show either a SPIN_DOWN arrow if there is a header or a plus is there is none.
Diffstat (limited to 'sw/source/ui/inc/HeaderFooterWin.hxx')
-rw-r--r--sw/source/ui/inc/HeaderFooterWin.hxx17
1 files changed, 12 insertions, 5 deletions
diff --git a/sw/source/ui/inc/HeaderFooterWin.hxx b/sw/source/ui/inc/HeaderFooterWin.hxx
index 9f59f142774d..e35bc9a42802 100644
--- a/sw/source/ui/inc/HeaderFooterWin.hxx
+++ b/sw/source/ui/inc/HeaderFooterWin.hxx
@@ -32,6 +32,8 @@
#include <vcl/floatwin.hxx>
+class SwHeaderFooterButton;
+
/** Class for the header and footer separator control window.
This control is showing the header / footer style name and provides
@@ -39,15 +41,20 @@
*/
class SwHeaderFooterWin : public FloatingWindow
{
- SwEditWin* m_pEditWin;
- rtl::OUString m_sLabel;
- SwPageDesc* m_pPageDesc;
- bool m_bIsHeader;
+ SwEditWin* m_pEditWin;
+ rtl::OUString m_sLabel;
+ const SwPageFrm* m_pPageFrm;
+ bool m_bIsHeader;
+ SwHeaderFooterButton* m_pButton;
public:
- SwHeaderFooterWin( SwEditWin* pEditWin, SwPageDesc* pPageDesc, bool bHeader, Point aOffset );
+ SwHeaderFooterWin( SwEditWin* pEditWin, const SwPageFrm* pPageFrm, bool bHeader, Point aOffset );
+ ~SwHeaderFooterWin( );
virtual void Paint( const Rectangle& rRect );
+
+ bool IsHeader() { return m_bIsHeader; };
+ bool IsEmptyHeaderFooter( );
};
#endif