From 589f754e7c2fa6d62fb8a8b566757c9cf5bea893 Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Tue, 20 Sep 2011 15:22:02 +0200 Subject: 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. --- sw/source/ui/inc/HeaderFooterWin.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sw/source/ui/inc/HeaderFooterWin.hxx') 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; }; -- cgit v1.2.3