summaryrefslogtreecommitdiff
path: root/sw/source/core/view
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-12 16:31:02 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-12 18:09:36 +0200
commit3d294102638b15dc04ee2bb0100e6f1921d69e1d (patch)
tree2381015de1f8ab8a9fe9d5d9f5a9780dae12a4b5 /sw/source/core/view
parent8cc839dc6ac3239bc4a3738cfb6078a8bf92ea72 (diff)
Header/Footer: added a timer to show the separator
When leaving the mouse over a header or footer area for 2 seconds, the separator is shown. This feature enables adding headers and footers easily without knowing anything about page styles. The separators are hidden back after 2 seconds outside the header or footer area.
Diffstat (limited to 'sw/source/core/view')
-rw-r--r--sw/source/core/view/viewsh.cxx1
-rw-r--r--sw/source/core/view/vnew.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 912a327e6d06..c831abbfeaee 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -98,6 +98,7 @@ using namespace ::com::sun::star;
void ViewShell::ToggleHeaderFooterEdit( ) {
bHeaderFooterEdit = !bHeaderFooterEdit;
+ SetShowHeaderFooterSeparator( bHeaderFooterEdit );
// Repaint everything to update the colors of the selected area
Paint( VisArea().SVRect() );
}
diff --git a/sw/source/core/view/vnew.cxx b/sw/source/core/view/vnew.cxx
index 3bc3012ca4b5..5b4708e7125c 100644
--- a/sw/source/core/view/vnew.cxx
+++ b/sw/source/core/view/vnew.cxx
@@ -153,6 +153,7 @@ ViewShell::ViewShell( SwDoc& rDocument, Window *pWindow,
mpTmpRef( 0 ),
pOpt( 0 ),
pAccOptions( new SwAccessibilityOptions ),
+ bShowHeaderFooterSeparator( sal_False ),
bHeaderFooterEdit( sal_False ),
mpTargetPaintWindow(0),
mpBufferedOut(0),