summaryrefslogtreecommitdiff
path: root/sw/source/ui/wrtsh
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-12-29 13:42:43 +0100
committerJan Holesovsky <kendy@suse.cz>2011-12-29 13:47:05 +0100
commitcce76e658af88813e17dea4f04388a29d7e582df (patch)
treedfb1b2ef931c4aaf1c363f278c4beda509fc66eb /sw/source/ui/wrtsh
parent64e08fd3c5980b74bb958dc566c229d92db18726 (diff)
Header/Footer: When editing, show only the appropriate conrol.
Instead of showing both the header and footer controls, show only the footer-related if in footer, or header-related if in header.
Diffstat (limited to 'sw/source/ui/wrtsh')
-rw-r--r--sw/source/ui/wrtsh/wrtsh1.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/ui/wrtsh/wrtsh1.cxx b/sw/source/ui/wrtsh/wrtsh1.cxx
index b67e43350d93..d042c4dc5a42 100644
--- a/sw/source/ui/wrtsh/wrtsh1.cxx
+++ b/sw/source/ui/wrtsh/wrtsh1.cxx
@@ -1889,14 +1889,11 @@ void SwWrtShell::ChangeHeaderOrFooter(
EndAllAction();
}
-void SwWrtShell::SetShowHeaderFooterSeparator( bool bShow )
+void SwWrtShell::SetShowHeaderFooterSeparator( FrameControlType eControl, bool bShow )
{
- ViewShell::SetShowHeaderFooterSeparator( bShow );
+ ViewShell::SetShowHeaderFooterSeparator( eControl, bShow );
if ( !bShow )
- {
- GetView().GetEditWin().GetFrameControlsManager().HideControls( Header );
- GetView().GetEditWin().GetFrameControlsManager().HideControls( Footer );
- }
+ GetView().GetEditWin().GetFrameControlsManager().HideControls( eControl );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */