summaryrefslogtreecommitdiff
path: root/sw/inc/viewopt.hxx
diff options
context:
space:
mode:
authorheiko tietze <tietze.heiko@gmail.com>2018-04-08 12:35:58 +0200
committerHeiko Tietze <tietze.heiko@gmail.com>2018-04-10 00:47:22 +0200
commit8b34efff7a7ed13553dfe87cd2413d01c76dec1d (patch)
treefea585bfae98b6af5270b0aef2491b445c1a2004 /sw/inc/viewopt.hxx
parentc7b8dacab8fafdcf89311f780493a896e7350454 (diff)
tdf#114523 Make inline tooltips for changes optional
Revert redline shenanigans from change 46971; option is now set with view Change-Id: I55fcfef8a40ad621630dfcefed9e50fdafa94005 Reviewed-on: https://gerrit.libreoffice.org/52586 Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com> Tested-by: Heiko Tietze <tietze.heiko@gmail.com>
Diffstat (limited to 'sw/inc/viewopt.hxx')
-rw-r--r--sw/inc/viewopt.hxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx
index 92da82a55b54..6b4bbd1de9fc 100644
--- a/sw/inc/viewopt.hxx
+++ b/sw/inc/viewopt.hxx
@@ -57,11 +57,12 @@ enum class ViewOptFlags1 {
Synchronize = 0x01000000,
GridVisible = 0x02000000,
OnlineSpell = 0x04000000,
+ ShowInlineTooltips = 0x10000000, //tooltips on tracked changes
ViewMetachars = 0x20000000,
Pageback = 0x40000000
};
namespace o3tl {
- template<> struct typed_flags<ViewOptFlags1> : is_typed_flags<ViewOptFlags1, 0x67dfcdfe> {};
+ template<> struct typed_flags<ViewOptFlags1> : is_typed_flags<ViewOptFlags1, 0x77dfcdfe> {};
}
enum class ViewOptCoreFlags2 {
@@ -260,6 +261,12 @@ public:
bool bIsScript );
static sal_uInt16 GetPostItsWidth( const OutputDevice *pOut );
+ //show/hide tooltips on tracked changes
+ bool IsShowInlineTooltips() const
+ { return bool(m_nCoreOptions & ViewOptFlags1::ShowInlineTooltips); }
+ void SetShowInlineTooltips( bool b )
+ { b ? (m_nCoreOptions |= ViewOptFlags1::ShowInlineTooltips ) : ( m_nCoreOptions &= ~ViewOptFlags1::ShowInlineTooltips); }
+
bool IsShowHiddenChar(bool bHard = false) const
{ return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::CharHidden) &&
((m_nCoreOptions & ViewOptFlags1::ViewMetachars)||bHard); }