summaryrefslogtreecommitdiff
path: root/include/sfx2/viewsh.hxx
diff options
context:
space:
mode:
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