diff options
Diffstat (limited to 'sw/source/ui/inc')
-rw-r--r-- | sw/source/ui/inc/HeaderFooterWin.hxx | 9 | ||||
-rw-r--r-- | sw/source/ui/inc/edtwin.hxx | 5 |
2 files changed, 11 insertions, 3 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 diff --git a/sw/source/ui/inc/edtwin.hxx b/sw/source/ui/inc/edtwin.hxx index 1c03d77c32dc..142514c655f7 100644 --- a/sw/source/ui/inc/edtwin.hxx +++ b/sw/source/ui/inc/edtwin.hxx @@ -312,8 +312,9 @@ public: void SetUseInputLanguage( sal_Bool bNew ); sal_Bool IsUseInputLanguage() const { return bUseInputLanguage; } - void AddHeaderFooterControl( const SwPageFrm* pPageFrm, bool bHeader, Point aOffset ); - void ClearHeaderFooterControls( ); + void SetHeaderFooterControl( const SwPageFrm* pPageFrm, bool bHeader, Point aOffset ); + void RemoveHeaderFooterControls( const SwPageFrm* pPageFrm ); + void HideHeaderFooterControls( ); SwEditWin(Window *pParent, SwView &); virtual ~SwEditWin(); |