summaryrefslogtreecommitdiff
path: root/sw/inc/viewopt.hxx
diff options
context:
space:
mode:
authorAriel Constenla-Haile <arielch@apache.org>2012-12-11 03:31:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-06-07 12:04:44 +0100
commit6005dd5366a86d6b7b1535233a99e24501e053a3 (patch)
tree9dc7d5bd88cbf874f9da21bfc1988bd8f5b75c21 /sw/inc/viewopt.hxx
parent5f62dc930687a02b5958280e942d4ab5fa7980a4 (diff)
Resolves: #i25945# Allow disabling scrollbar tips by API and configuration
(cherry picked from commit a2bbabbe141de1303ebf052e5c22b6e77387785e) Conflicts: offapi/com/sun/star/text/ViewSettings.idl officecfg/registry/schema/org/openoffice/Office/Writer.xcs sw/source/ui/config/usrpref.cxx sw/source/ui/uiview/viewport.cxx Change-Id: I939ec22527a0b654de5f379e781c24c0a3088739
Diffstat (limited to 'sw/inc/viewopt.hxx')
-rw-r--r--sw/inc/viewopt.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx
index f13e6c52e1b7..b205f1e481b3 100644
--- a/sw/inc/viewopt.hxx
+++ b/sw/inc/viewopt.hxx
@@ -85,7 +85,7 @@ namespace svtools{ class ColorConfig;}
#define VIEWOPT_2_GRFKEEPZOOM 0x00040000L
#define VIEWOPT_2_CONTENT_TIPS 0x00100000L
#define VIEWOPT_2_RESERVED3 0x00200000L
-#define VIEWOPT_2_RESERVED4 0x00400000L
+#define VIEWOPT_2_SCROLLBAR_TIPS 0x00400000L
#define VIEWOPT_2_PRTFORMAT 0x00800000L
#define VIEWOPT_2_SHADOWCRSR 0x01000000L
#define VIEWOPT_2_V_RULER_RIGHT 0x02000000L
@@ -468,6 +468,8 @@ public:
{ return nUIOptions & VIEWOPT_2_CONTENT_TIPS ? sal_True : sal_False; }
sal_Bool IsPrtFormat() const
{ return nUIOptions & VIEWOPT_2_PRTFORMAT ? sal_True : sal_False; }
+ sal_Bool IsShowScrollBarTips() const
+ { return nUIOptions & VIEWOPT_2_SCROLLBAR_TIPS ? sal_True : sal_False; }
SvxZoomType GetZoomType() const { return eZoom; }
@@ -485,6 +487,8 @@ public:
{ b ? (nUIOptions |= VIEWOPT_2_CONTENT_TIPS) : (nUIOptions &= ~VIEWOPT_2_CONTENT_TIPS); }
void SetPrtFormat( sal_Bool b)
{ b ? (nUIOptions |= VIEWOPT_2_PRTFORMAT) : (nUIOptions &= ~VIEWOPT_2_PRTFORMAT); }
+ void SetShowScrollBarTips( sal_Bool b)
+ { b ? (nUIOptions |= VIEWOPT_2_SCROLLBAR_TIPS) : (nUIOptions &= ~VIEWOPT_2_SCROLLBAR_TIPS); }
void SetZoomType (SvxZoomType eZoom_){ eZoom = eZoom_; }
void SetTblDest( sal_uInt8 nNew ) { nTblDest = nNew; }