summaryrefslogtreecommitdiff
path: root/include/sfx2/viewsh.hxx
diff options
context:
space:
mode:
authorGökay Şatır <gokaysatir@gmail.com>2024-03-06 15:36:44 +0300
committerMiklos Vajna <vmiklos@collabora.com>2024-03-19 16:53:37 +0100
commitd50d40b12cf3077dd83e7d3da33e6f3a15e44e14 (patch)
tree95b24ad435664b5b88a1d8de3a137a505b045cfd /include/sfx2/viewsh.hxx
parent02c67183f14fffb3578fa8713b865a568dc6b648 (diff)
Allow enabling comment editing in readonly view mode.
Online side can set this property to allow comment editing. This is the infra. Implementation will be in another commit. Change-Id: I3a6f1ad6818c2c6587d98896c3d6d913d51a2295 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164988 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include/sfx2/viewsh.hxx')
-rw-r--r--include/sfx2/viewsh.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sfx2/viewsh.hxx b/include/sfx2/viewsh.hxx
index b52b8b520992..adecc4e1a968 100644
--- a/include/sfx2/viewsh.hxx
+++ b/include/sfx2/viewsh.hxx
@@ -222,6 +222,7 @@ private:
LOKDocumentFocusListener& GetLOKDocumentFocusListener();
const LOKDocumentFocusListener& GetLOKDocumentFocusListener() const;
bool lokReadOnlyView = false; // When true, this is a LOK readonly view.
+ bool allowChangeComments = false; // When true, user can edit comments in readonly view mode.
public:
@@ -247,6 +248,8 @@ public:
void SetLokReadOnlyView(bool readOnlyView) { lokReadOnlyView = readOnlyView; };
bool IsLokReadOnlyView() const { return lokReadOnlyView; };
+ void SetAllowChangeComments(bool allow) { allowChangeComments = allow; }
+ bool IsAllowChangeComments() { return allowChangeComments; }
// Misc