summaryrefslogtreecommitdiff
path: root/sw/source/ui/inc/HeaderFooterWin.hxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-12 22:49:43 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-12 22:54:11 +0200
commit6b6e6b8dbc71b56a1833e5dd6e1b2a2f9943ff87 (patch)
tree131411a74737956eddf56a370dfcb062c68ff0a5 /sw/source/ui/inc/HeaderFooterWin.hxx
parentf189e7275dece893a942a9533ce5380d71127df0 (diff)
Header/Footer: the whole separator tab is now a menu button
Diffstat (limited to 'sw/source/ui/inc/HeaderFooterWin.hxx')
-rw-r--r--sw/source/ui/inc/HeaderFooterWin.hxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/sw/source/ui/inc/HeaderFooterWin.hxx b/sw/source/ui/inc/HeaderFooterWin.hxx
index e7d4d65c80fa..f805be2c53f5 100644
--- a/sw/source/ui/inc/HeaderFooterWin.hxx
+++ b/sw/source/ui/inc/HeaderFooterWin.hxx
@@ -33,20 +33,19 @@
#include <vcl/menubtn.hxx>
#include <vcl/window.hxx>
-class SwHeaderFooterButton;
-
/** Class for the header and footer separator control window.
This control is showing the header / footer style name and provides
a few useful actions to the user.
*/
-class SwHeaderFooterWin : public Window
+class SwHeaderFooterWin : public MenuButton
{
SwEditWin* m_pEditWin;
rtl::OUString m_sLabel;
const SwPageFrm* m_pPageFrm;
bool m_bIsHeader;
- SwHeaderFooterButton* m_pButton;
+ bool m_bReadonly;
+ PopupMenu* m_pPopupMenu;
public:
SwHeaderFooterWin( SwEditWin* pEditWin, const SwPageFrm* pPageFrm, bool bHeader );
@@ -55,6 +54,8 @@ public:
void SetOffset( Point aOffset );
virtual void Paint( const Rectangle& rRect );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void Select( );
bool IsHeader() { return m_bIsHeader; };
bool IsEmptyHeaderFooter( );
@@ -64,9 +65,6 @@ public:
void ExecuteCommand(sal_uInt16 nSlot);
void SetReadonly( bool bReadonly );
-
-private:
- MenuButton* GetMenuButton( );
};
#endif