From 16400db4629133ad59ce8cbc8746a63b33202fd3 Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Fri, 9 Sep 2011 09:13:10 +0200 Subject: Header/Footer: don't show the separator action in readonly mode --- sw/source/ui/wrtsh/wrtsh1.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sw/source/ui/wrtsh/wrtsh1.cxx') diff --git a/sw/source/ui/wrtsh/wrtsh1.cxx b/sw/source/ui/wrtsh/wrtsh1.cxx index 9a3a7d953644..94460f91425b 100644 --- a/sw/source/ui/wrtsh/wrtsh1.cxx +++ b/sw/source/ui/wrtsh/wrtsh1.cxx @@ -1808,4 +1808,10 @@ void SwWrtShell::ApplyViewOptions( const SwViewOption &rOpt ) } +void SwWrtShell::SetReadonlyOption(sal_Bool bSet) +{ + GetView().GetEditWin().SetReadonlyHeaderFooterControls( bSet ); + ViewShell::SetReadonlyOption( bSet ); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit