summaryrefslogtreecommitdiff
path: root/sw/inc/viewopt.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-04-07 09:17:41 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-04-07 11:44:37 +0000
commit4a59caddac55002ccecb6fda538255bfe03c6d2d (patch)
tree12d2a5d23c595648bb83490a1faf2cf4e233a3c7 /sw/inc/viewopt.hxx
parent37674e1f2dde65848cdad3b630970de8eca6b44e (diff)
tdf#90362 sw: config option for ignoring protected areas
Change-Id: Idfa62aa5bbccf62ee85f863150e13f80b8b5db90 Reviewed-on: https://gerrit.libreoffice.org/15181 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/inc/viewopt.hxx')
-rw-r--r--sw/inc/viewopt.hxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx
index bae0e1db1d63..87dc830856c8 100644
--- a/sw/inc/viewopt.hxx
+++ b/sw/inc/viewopt.hxx
@@ -69,6 +69,7 @@ namespace svtools{ class ColorConfig;}
#define VIEWOPT_CORE2_CRSR_IN_PROT 0x00000008L
#define VIEWOPT_CORE2_PDF_EXPORT 0x00000010L
#define VIEWOPT_CORE2_PRINTING 0x00000020L
+#define VIEWOPT_CORE2_IGNORE_PROT 0x00000040L
#define VIEWOPT_2_H_RULER 0x00000400L
#define VIEWOPT_2_VSCROLLBAR 0x00000800L
@@ -103,7 +104,7 @@ namespace svtools{ class ColorConfig;}
// Implementation in core/text/txtpaint.cxx.
extern void SyncVout( const OutputDevice *pOut );
-class SwViewOption
+class SW_DLLPUBLIC SwViewOption
{
static Color aDocColor; // color of document boundaries
static Color aDocBoundColor; // color of document boundaries
@@ -342,6 +343,16 @@ public:
inline void SetCursorInProtectedArea(bool b)
{ b ? (nCore2Options |= VIEWOPT_CORE2_CRSR_IN_PROT) : (nCore2Options &= ~VIEWOPT_CORE2_CRSR_IN_PROT);}
+ bool IsIgnoreProtectedArea() const
+ {
+ return (nCore2Options & VIEWOPT_CORE2_IGNORE_PROT) != 0;
+ }
+
+ void SetIgnoreProtectedArea(bool bSet)
+ {
+ bSet ? (nCore2Options |= VIEWOPT_CORE2_IGNORE_PROT) : (nCore2Options &= ~VIEWOPT_CORE2_IGNORE_PROT);
+ }
+
inline bool IsPDFExport() const
{return (nCore2Options & VIEWOPT_CORE2_PDF_EXPORT) != 0; }
@@ -553,7 +564,7 @@ public:
static Color& GetSpellColor();
static Color& GetSmarttagColor();
static Color& GetShadowColor();
- SW_DLLPUBLIC static Color& GetFontColor();
+ static Color& GetFontColor();
static Color& GetFieldShadingsColor();
static Color& GetSectionBoundColor();
static Color& GetPageBreakColor();