summaryrefslogtreecommitdiff
path: root/sw/source/ui/wrtsh/wrtsh1.cxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-09 09:13:10 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-09 21:34:08 +0200
commit16400db4629133ad59ce8cbc8746a63b33202fd3 (patch)
tree0e37f19c60edb18847e8e507208203b388df7644 /sw/source/ui/wrtsh/wrtsh1.cxx
parent052f181dad89ad34d90513bc9dcd3e3239727933 (diff)
Header/Footer: don't show the separator action in readonly mode
Diffstat (limited to 'sw/source/ui/wrtsh/wrtsh1.cxx')
-rw-r--r--sw/source/ui/wrtsh/wrtsh1.cxx6
1 files changed, 6 insertions, 0 deletions
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: */