summaryrefslogtreecommitdiff
path: root/sw/source/ui/inc/HeaderFooterWin.hxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-20 15:22:02 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-20 17:01:19 +0200
commit589f754e7c2fa6d62fb8a8b566757c9cf5bea893 (patch)
tree8bed5616e930a193679bf8dd90d9c74477d91223 /sw/source/ui/inc/HeaderFooterWin.hxx
parentfbb48a21a8c2f4ba00f96544fafc8eb8e908aa10 (diff)
Header/Footer: move the separator line painting to a Window control
This avoids drawing control things on the document OutputDevice and helps keeping them properly refreshed without refreshing the whole document layout.
Diffstat (limited to 'sw/source/ui/inc/HeaderFooterWin.hxx')
-rw-r--r--sw/source/ui/inc/HeaderFooterWin.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/ui/inc/HeaderFooterWin.hxx b/sw/source/ui/inc/HeaderFooterWin.hxx
index 50af8fd4acf4..c59211da6558 100644
--- a/sw/source/ui/inc/HeaderFooterWin.hxx
+++ b/sw/source/ui/inc/HeaderFooterWin.hxx
@@ -45,17 +45,20 @@ class SwHeaderFooterWin : public MenuButton
bool m_bIsHeader;
bool m_bReadonly;
PopupMenu* m_pPopupMenu;
+ Window* m_pLine;
public:
SwHeaderFooterWin( SwEditWin* pEditWin, const SwPageFrm* pPageFrm, bool bHeader );
~SwHeaderFooterWin( );
- void SetOffset( Point aOffset );
+ void SetOffset( Point aOffset, long nXLineStart, long nXLineEnd );
virtual void Paint( const Rectangle& rRect );
virtual void MouseButtonDown( const MouseEvent& rMEvt );
virtual void Select( );
+ void ShowAll( bool bShow );
+
bool IsHeader() { return m_bIsHeader; };
bool IsEmptyHeaderFooter( );
const SwPageFrm* GetPageFrame( ) { return m_pPageFrm; };