From 3d294102638b15dc04ee2bb0100e6f1921d69e1d Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Mon, 12 Sep 2011 16:31:02 +0200 Subject: 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. --- sw/source/core/view/viewsh.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sw/source/core/view/viewsh.cxx') 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() ); } -- cgit v1.2.3