diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-04-07 16:21:08 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-04-08 07:30:17 +0200 |
commit | 523922ee9d033fd304d2b50a72b76853ddcfbcdf (patch) | |
tree | 2c425badafc0b2dc31b57b1bc681ffabbfc1a6a1 /include/sfx2/objsh.hxx | |
parent | Sukapura: Fix for tdf#131974 Undo & Redo for RTL UI (diff) | |
download | core-523922ee9d033fd304d2b50a72b76853ddcfbcdf.tar.gz core-523922ee9d033fd304d2b50a72b76853ddcfbcdf.zip |
Fix edit button still appearing in Calc
... even when editing readonly docs was disabled.
Viewshell was not yet available at this point, so
move the code where it belongs, into the object shell.
Change-Id: I71cbaf9c912beeeb0b8177538999049f7f8b4e03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91832
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'include/sfx2/objsh.hxx')
-rw-r--r-- | include/sfx2/objsh.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx index dd7d637a7de1..ae7d32e34d54 100644 --- a/include/sfx2/objsh.hxx +++ b/include/sfx2/objsh.hxx @@ -585,6 +585,8 @@ public: const css::uno::Reference<css::embed::XStorage>& xTarget, const css::uno::Sequence<OUString>& rExceptions = css::uno::Sequence<OUString>()); + bool isEditDocLocked(); + // The functions from SvPersist void EnableSetModified( bool bEnable = true ); bool IsEnableSetModified() const; |