summaryrefslogtreecommitdiff
path: root/sw/source/core/view/viewsh.cxx
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/viewsh.cxx
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/viewsh.cxx')
-rw-r--r--sw/source/core/view/viewsh.cxx1
1 files changed, 1 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() );
}