summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorheiko tietze <tietze.heiko@gmail.com>2017-12-22 13:00:31 +0100
committerHeiko Tietze <tietze.heiko@gmail.com>2018-01-22 13:34:01 +0100
commit86e3f95cff4d3dad48d64e50e0c4b05034fa7064 (patch)
treeb938928bad01cf3287343bb7ef169badf9e66a74 /sw/inc
parent7c97a22ac7851329d1a5c71772542c062cd6f4f0 (diff)
tdf#114523 Make inline tooltips for changes optional
Tooltips on tracked changes are not shown when Show track changes is switched off; additional property introduced at Tools > Option > Writer > Changes to disable the inline tooltip completely Change-Id: I5b54895bb22d167a383b06627c69326c3c2f5b02 Reviewed-on: https://gerrit.libreoffice.org/46971 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Heiko Tietze <tietze.heiko@gmail.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/IDocumentRedlineAccess.hxx3
-rw-r--r--sw/inc/modcfg.hxx21
2 files changed, 16 insertions, 8 deletions
diff --git a/sw/inc/IDocumentRedlineAccess.hxx b/sw/inc/IDocumentRedlineAccess.hxx
index de115fac77e0..7ff58d456ca4 100644
--- a/sw/inc/IDocumentRedlineAccess.hxx
+++ b/sw/inc/IDocumentRedlineAccess.hxx
@@ -239,6 +239,9 @@ public:
virtual void SetRedlinePassword(
/*[in]*/const css::uno::Sequence <sal_Int8>& rNewPassword) = 0;
+ virtual bool IsHideInlineTooltips() = 0;
+ virtual void SetHideInlineTooltips(bool bSet) = 0;
+
protected:
virtual ~IDocumentRedlineAccess() {};
};
diff --git a/sw/inc/modcfg.hxx b/sw/inc/modcfg.hxx
index 2091957eedf4..bd9fa3b25c70 100644
--- a/sw/inc/modcfg.hxx
+++ b/sw/inc/modcfg.hxx
@@ -65,14 +65,15 @@ class SwRevisionConfig : public utl::ConfigItem
{
friend class SwModuleOptions;
- AuthorCharAttr aInsertAttr; //Revision/TextDisplay/Insert/Attribute // Redlining: author character attributes
- //Revision/TextDisplay/Insert/Color
- AuthorCharAttr aDeletedAttr; //Revision/TextDisplay/Delete/Attribute
- //Revision/TextDisplay/Delete/Color
- AuthorCharAttr aFormatAttr; //Revision/TextDisplay/ChangeAttribute/Attribute
- //Revision/TextDisplay/ChangeAttribute/Color
- sal_uInt16 nMarkAlign; //Revision/LinesChanged/Mark
- Color aMarkColor; //Revision/LinesChanged/Color
+ AuthorCharAttr aInsertAttr; //Revision/TextDisplay/Insert/Attribute // Redlining: author character attributes
+ //Revision/TextDisplay/Insert/Color
+ AuthorCharAttr aDeletedAttr; //Revision/TextDisplay/Delete/Attribute
+ //Revision/TextDisplay/Delete/Color
+ AuthorCharAttr aFormatAttr; //Revision/TextDisplay/ChangeAttribute/Attribute
+ //Revision/TextDisplay/ChangeAttribute/Color
+ sal_uInt16 nMarkAlign; //Revision/LinesChanged/Mark
+ Color aMarkColor; //Revision/LinesChanged/Color
+ bool bShowInlineTooltip; //ShowInlineTooltip
static const css::uno::Sequence<OUString>& GetPropertyNames();
@@ -254,6 +255,10 @@ public:
void SetFormatAuthorAttr( AuthorCharAttr const &rAttr ) { aRevisionConfig.aFormatAttr = rAttr;
aRevisionConfig.SetModified();}
+ bool IsShowInlineTooltip() const { return aRevisionConfig.bShowInlineTooltip; }
+ void SetShowInlineTooltip( bool bSet ) { aRevisionConfig.bShowInlineTooltip = bSet;
+ aRevisionConfig.SetModified(); }
+
sal_uInt16 GetMarkAlignMode() const { return aRevisionConfig.nMarkAlign; }
void SetMarkAlignMode(sal_uInt16 nMode) { aRevisionConfig.nMarkAlign = nMode;
aRevisionConfig.SetModified();}