LibreOffice Module sw (master)  1
viewopt.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #include <sfx2/htmlmode.hxx>
21 #include <svtools/htmlcfg.hxx>
22 
23 #include <editeng/editids.hrc>
24 #include <editeng/svxacorr.hxx>
26 #include <vcl/outdev.hxx>
27 #include <vcl/window.hxx>
28 #include <swmodule.hxx>
29 #include <viewopt.hxx>
30 #include <wdocsh.hxx>
31 #include <swrect.hxx>
32 #include <crstate.hxx>
33 #include <authratr.hxx>
34 #include <svtools/colorcfg.hxx>
36 #include <unotools/configmgr.hxx>
37 #include <unotools/syslocale.hxx>
38 
39 #include <editeng/acorrcfg.hxx>
40 #include <comphelper/lok.hxx>
42 
45 Color SwViewOption::s_aDocColor(COL_LIGHTGRAY);
54 Color SwViewOption::s_aSmarttagColor(COL_LIGHTMAGENTA);
62 
64 sal_uInt16 SwViewOption::s_nPixelTwips = 0; // one pixel on the screen
65 
66 bool SwViewOption::IsEqualFlags( const SwViewOption &rOpt ) const
67 {
68  return m_nCoreOptions == rOpt.m_nCoreOptions
70  && m_aSnapSize == rOpt.m_aSnapSize
72  && m_nDivisionX == rOpt.GetDivisionX()
73  && m_nDivisionY == rOpt.GetDivisionY()
77  && mbFormView == rOpt.IsFormView()
78  && mbBrowseMode == rOpt.getBrowseMode()
82  && m_bIdle == rOpt.m_bIdle
83 #ifdef DBG_UTIL
84  // correspond to the statements in ui/config/cfgvw.src
85  && m_bTest1 == rOpt.IsTest1()
86  && m_bTest2 == rOpt.IsTest2()
87  && m_bTest3 == rOpt.IsTest3()
88  && m_bTest4 == rOpt.IsTest4()
89  && m_bTest5 == rOpt.IsTest5()
90  && m_bTest6 == rOpt.IsTest6()
91  && m_bTest7 == rOpt.IsTest7()
92  && m_bTest8 == rOpt.IsTest8()
93  && m_bTest10 == rOpt.IsTest10()
94 #endif
95  ;
96 }
97 
99  const SwRect &rRect, ::Color nCol )
100 {
101  if ( pOut->GetOutDevType() != OUTDEV_PRINTER )
102  {
103  const Color aCol( nCol );
104  const Color aOldColor( pOut->GetFillColor() );
105  pOut->SetFillColor( aCol );
106  pOut->DrawRect( rRect.SVRect() );
107  pOut->SetFillColor( aOldColor );
108  }
109  else
110  DrawRectPrinter( pOut, rRect );
111 }
112 
114  const SwRect &rRect )
115 {
116  Color aOldColor(pOut->GetLineColor());
117  Color aOldFillColor( pOut->GetFillColor() );
118  pOut->SetLineColor( COL_BLACK );
120  pOut->DrawRect( rRect.SVRect() );
121  pOut->SetFillColor( aOldFillColor );
122  pOut->SetLineColor( aOldColor );
123 }
124 
126 {
127  assert(pOut && "no Outdev");
128  return sal_uInt16(pOut->GetTextWidth(" "));
129 }
130 
131 void SwViewOption::PaintPostIts( OutputDevice *pOut, const SwRect &rRect, bool bIsScript )
132 {
133  if( !(pOut && bIsScript) )
134  return;
135 
136  Color aOldLineColor( pOut->GetLineColor() );
137  pOut->SetLineColor( COL_GRAY );
138  // to make it look nice, we subtract two pixels everywhere
139  sal_uInt16 nPix = s_nPixelTwips * 2;
140  if( rRect.Width() <= 2 * nPix || rRect.Height() <= 2 * nPix )
141  nPix = 0;
142  const Point aTopLeft( rRect.Left() + nPix, rRect.Top() + nPix );
143  const Point aBotRight( rRect.Right() - nPix, rRect.Bottom() - nPix );
144  const SwRect aRect( aTopLeft, aBotRight );
145  DrawRect( pOut, aRect, s_aScriptIndicatorColor );
146  pOut->SetLineColor( aOldLineColor );
147 }
148 
150  m_sSymbolFont( "symbol" ),
151  m_aRetouchColor( COL_TRANSPARENT ),
152  mnViewLayoutColumns( 0 ),
153  m_nPagePreviewRow( 1 ),
154  m_nPagePreviewCol( 2 ),
155  m_nShadowCursorFillMode( SwFillMode::Tab ),
156  m_bReadonly(false),
157  m_bStarOneSetting(false),
158  m_bIsPagePreview(false),
159  m_bSelectionInReadonly(false),
160  mbFormView(false),
161  mbBrowseMode(false),
162  mbBookView(false),
163  mbViewLayoutBookMode(false),
164  mbHideWhitespaceMode(false),
165  m_bShowPlaceHolderFields( true ),
166  m_nZoom( 100 ),
167  m_eZoom( SvxZoomType::PERCENT ),
168  m_nTableDestination(TBL_DEST_CELL)
169 {
170  // Initialisation is a little simpler now
171  // all Bits to 0
182 
186 
187  m_nUIOptions =
192 
193  if (!utl::ConfigManager::IsFuzzing() && MeasurementSystem::Metric != SvtSysLocale().GetLocaleData().getMeasurementSystemEnum())
194  {
195  m_aSnapSize.setWidth(720); // 1/2"
196  m_aSnapSize.setHeight(720); // 1/2"
197 
198  }
199  else
200  {
201  m_aSnapSize.setWidth(567); // 1 cm
202  m_aSnapSize.setHeight(567); // 1 cm
203  }
205 
206  m_bSelectionInReadonly = !utl::ConfigManager::IsFuzzing() && SW_MOD()->GetAccessibilityOptions().IsSelectionInReadonly();
207 
208  m_bIdle = true;
209 
210 #ifdef DBG_UTIL
211  // correspond to the statements in ui/config/cfgvw.src
213  m_bTest5 = m_bTest6 = m_bTest7 = m_bTest8 = m_bTest10 = false;
214 #endif
217 }
218 
220 {
221  m_bReadonly = false;
222  m_bSelectionInReadonly = false;
223  // #114856# Form view
224  mbFormView = rVOpt.mbFormView;
225  m_nZoom = rVOpt.m_nZoom ;
226  m_aSnapSize = rVOpt.m_aSnapSize ;
228  m_nDivisionX = rVOpt.m_nDivisionX ;
229  m_nDivisionY = rVOpt.m_nDivisionY ;
233  m_eZoom = rVOpt.m_eZoom ;
235  m_nUIOptions = rVOpt.m_nUIOptions ;
242  mbBookView = rVOpt.mbBookView;
243  mbBrowseMode = rVOpt.mbBrowseMode;
247  m_bIdle = rVOpt.m_bIdle;
248 
249 #ifdef DBG_UTIL
250  m_bTest1 = rVOpt.m_bTest1;
251  m_bTest2 = rVOpt.m_bTest2;
252  m_bTest3 = rVOpt.m_bTest3;
253  m_bTest4 = rVOpt.m_bTest4;
254  m_bTest5 = rVOpt.m_bTest5;
255  m_bTest6 = rVOpt.m_bTest6;
256  m_bTest7 = rVOpt.m_bTest7;
257  m_bTest8 = rVOpt.m_bTest8;
258  m_bTest10 = rVOpt.m_bTest10;
259 #endif
260 }
261 
263 {
264  // #114856# Form view
265  mbFormView = rVOpt.mbFormView ;
266  m_nZoom = rVOpt.m_nZoom ;
267  m_aSnapSize = rVOpt.m_aSnapSize ;
269  m_nDivisionX = rVOpt.m_nDivisionX ;
270  m_nDivisionY = rVOpt.m_nDivisionY ;
274  m_eZoom = rVOpt.m_eZoom ;
276  m_nUIOptions = rVOpt.m_nUIOptions ;
283  mbBookView = rVOpt.mbBookView;
284  mbBrowseMode = rVOpt.mbBrowseMode;
288  m_bIdle = rVOpt.m_bIdle;
289 
290 #ifdef DBG_UTIL
291  m_bTest1 = rVOpt.m_bTest1;
292  m_bTest2 = rVOpt.m_bTest2;
293  m_bTest3 = rVOpt.m_bTest3;
294  m_bTest4 = rVOpt.m_bTest4;
295  m_bTest5 = rVOpt.m_bTest5;
296  m_bTest6 = rVOpt.m_bTest6;
297  m_bTest7 = rVOpt.m_bTest7;
298  m_bTest8 = rVOpt.m_bTest8;
299  m_bTest10 = rVOpt.m_bTest10;
300 #endif
301  return *this;
302 }
303 
305 {
306 }
307 
308 void SwViewOption::Init( vcl::Window const *pWin )
309 {
310  if( !s_nPixelTwips && pWin )
311  {
312  s_nPixelTwips = static_cast<sal_uInt16>(pWin->PixelToLogic( Size(1,1) ).Height());
313  }
314 }
315 
317 {
319  return rFlags.bAutoCmpltCollectWords;
320 }
321 
323 {
324  if (b)
326  else
328 }
329 
331  m_nItemId (SID_ATTR_CHAR_UNDERLINE),
332  m_nAttr (LINESTYLE_SINGLE),
333  m_nColor (COL_TRANSPARENT)
334 {
335 }
336 
337 sal_uInt16 GetHtmlMode(const SwDocShell* pShell)
338 {
339  sal_uInt16 nRet = 0;
340  if(!pShell || dynamic_cast<const SwWebDocShell*>( pShell) )
341  {
343  SvxHtmlOptions& rHtmlOpt = SvxHtmlOptions::Get();
344  switch ( rHtmlOpt.GetExportMode() )
345  {
346  case HTML_CFG_MSIE:
347  nRet |= HTMLMODE_FULL_STYLES;
348  break;
349  case HTML_CFG_NS40:
350  // no special features for this browser
351  break;
352  case HTML_CFG_WRITER:
353  nRet |= HTMLMODE_FULL_STYLES;
354  break;
355  }
356  }
357  return nRet;
358 }
359 
361 {
362  return s_aDocColor;
363 }
364 
366 {
367  return s_aDocBoundColor;
368 }
369 
371 {
372  return s_aObjectBoundColor;
373 }
374 
376 {
377  return s_aAppBackgroundColor;
378 }
379 
381 {
382  return s_aTableBoundColor;
383 }
384 
386 {
387  return s_aIndexShadingsColor;
388 }
389 
391 {
392  return s_aLinksColor;
393 }
394 
396 {
397  return s_aVisitedLinksColor;
398 }
399 
401 {
402  return s_aDirectCursorColor;
403 }
404 
406 {
407  return s_aTextGridColor;
408 }
409 
411 {
412  return s_aSpellColor;
413 }
414 
416 {
417  return s_aSmarttagColor;
418 }
419 
421 {
422  return s_aShadowColor;
423 }
424 
426 {
427  return s_aFontColor;
428 }
429 
431 {
432  return s_aFieldShadingsColor;
433 }
434 
436 {
437  return s_aSectionBoundColor;
438 }
439 
441 {
442  return s_aPageBreakColor;
443 }
444 
446 {
448 }
449 
451 {
453 
455  s_aDocBoundColor = aValue.nColor;
457  if(aValue.bIsVisible)
459 
461 
462  aValue = rConfig.GetColorValue(svtools::OBJECTBOUNDARIES);
463  s_aObjectBoundColor = aValue.nColor;
464  if(aValue.bIsVisible)
466 
467  aValue = rConfig.GetColorValue(svtools::TABLEBOUNDARIES);
468  s_aTableBoundColor = aValue.nColor;
469  if(aValue.bIsVisible)
471 
472  aValue = rConfig.GetColorValue(svtools::WRITERIDXSHADINGS);
473  s_aIndexShadingsColor = aValue.nColor;
474  if(aValue.bIsVisible)
476 
477  aValue = rConfig.GetColorValue(svtools::LINKS);
478  s_aLinksColor = aValue.nColor;
479  if(aValue.bIsVisible)
481 
482  aValue = rConfig.GetColorValue(svtools::LINKSVISITED);
483  s_aVisitedLinksColor = aValue.nColor;
484  if(aValue.bIsVisible)
486 
487  aValue = rConfig.GetColorValue(svtools::SHADOWCOLOR);
488  s_aShadowColor = aValue.nColor;
489  if(aValue.bIsVisible)
491 
493 
495 
497 
499 
501 
503  s_aFieldShadingsColor = aValue.nColor;
504  if(aValue.bIsVisible)
506 
508  s_aSectionBoundColor = aValue.nColor;
509  if(aValue.bIsVisible)
511 
512  aValue = rConfig.GetColorValue(svtools::WRITERPAGEBREAKS);
513  s_aPageBreakColor = aValue.nColor;
514 
517 
519 }
520 
521 void SwViewOption::SetAppearanceFlag(ViewOptFlags nFlag, bool bSet, bool bSaveInConfig )
522 {
523  if(bSet)
524  s_nAppearanceFlags |= nFlag;
525  else
526  s_nAppearanceFlags &= ~nFlag;
527  if(!bSaveInConfig)
528  return;
529 
530  //create an editable svtools::ColorConfig and store the change
531  svtools::EditableColorConfig aEditableConfig;
532  struct FlagToConfig_Impl
533  {
534  ViewOptFlags nFlag;
536  };
537  static const FlagToConfig_Impl aFlags[] =
538  {
549  };
550  sal_uInt16 nPos = 0;
551  while(aFlags[nPos].nFlag != ViewOptFlags::NONE)
552  {
553  if(nFlag & aFlags[nPos].nFlag)
554  {
555  svtools::ColorConfigValue aValue = aEditableConfig.GetColorValue(aFlags[nPos].eEntry);
556  aValue.bIsVisible = bSet;
557  aEditableConfig.SetColorValue(aFlags[nPos].eEntry, aValue);
558  }
559  nPos++;
560  }
561 }
562 
564 {
565  return bool(s_nAppearanceFlags & nFlag);
566 }
567 
568 namespace{
569 rtl::Reference<comphelper::ConfigurationListener> const & getWCOptionListener()
570 {
571  static rtl::Reference<comphelper::ConfigurationListener> xListener(new comphelper::ConfigurationListener("/org.openoffice.Office.Writer/Cursor/Option"));
572  return xListener;
573 }
574 }
575 
577 {
578  static comphelper::ConfigurationListenerProperty<bool> gIgnoreProtectedArea(getWCOptionListener(), "IgnoreProtectedArea");
579  return gIgnoreProtectedArea.get();
580 }
581 
582 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static bool IsAppearanceFlag(ViewOptFlags nFlag)
Definition: viewopt.cxx:563
bool m_bTest4
Definition: viewopt.hxx:188
bool m_bTest6
Definition: viewopt.hxx:190
bool mbViewLayoutBookMode
Definition: viewopt.hxx:172
OutDevType GetOutDevType() const
static Color & GetFieldShadingsColor()
Definition: viewopt.cxx:430
const Color & GetRetoucheColor() const
Definition: viewopt.hxx:560
ViewOptFlags1
Definition: viewopt.hxx:40
static Color s_aSectionBoundColor
Definition: viewopt.hxx:144
bool IsTest4() const
Definition: viewopt.hxx:479
static SvxAutoCorrCfg & Get()
constexpr::Color COL_BLACK(0x00, 0x00, 0x00)
bool m_bTest10
Definition: viewopt.hxx:193
ViewOptFlags
Definition: viewopt.hxx:112
bool m_bTest1
Definition: viewopt.hxx:185
bool m_bTest3
Definition: viewopt.hxx:187
ViewOptCoreFlags2 m_nCore2Options
Definition: viewopt.hxx:155
static Color s_aLinksColor
Definition: viewopt.hxx:137
static Color & GetHeaderFooterMarkColor()
Definition: viewopt.cxx:445
bool mbBrowseMode
Definition: viewopt.hxx:170
bool m_bShowPlaceHolderFields
Definition: viewopt.hxx:174
bool IsTest10() const
Definition: viewopt.hxx:484
bool IsEqualFlags(const SwViewOption &rOpt) const
Definition: viewopt.cxx:66
static bool IsAutoCompleteWords()
Definition: viewopt.cxx:316
static Color & GetTextGridColor()
Definition: viewopt.cxx:405
void SetColorValue(ColorConfigEntry eEntry, const ColorConfigValue &rValue)
static Color & GetLinksColor()
Definition: viewopt.cxx:390
bool mbBookView
Definition: viewopt.hxx:171
void Height(long nNew)
Definition: swrect.hxx:191
bool IsTest8() const
Definition: viewopt.hxx:483
constexpr::Color COL_GRAY(0x80, 0x80, 0x80)
static Color s_aTableBoundColor
Definition: viewopt.hxx:134
static Color s_aFontColor
Definition: viewopt.hxx:135
static Color & GetSmarttagColor()
Definition: viewopt.cxx:415
Of course Writer needs its own rectangles.
Definition: swrect.hxx:35
static ViewOptFlags s_nAppearanceFlags
Definition: viewopt.hxx:150
static sal_uInt16 s_nPixelTwips
Definition: viewopt.hxx:151
SwFillMode m_nShadowCursorFillMode
Definition: viewopt.hxx:164
bool m_bStarOneSetting
Definition: viewopt.hxx:166
static sal_uInt16 GetPostItsWidth(const OutputDevice *pOut)
Definition: viewopt.cxx:125
constexpr::Color COL_TRANSPARENT(0xFF, 0xFF, 0xFF, 0xFF)
void Top(const long nTop)
Definition: swrect.hxx:204
static Color s_aDocBoundColor
Definition: viewopt.hxx:131
short m_nDivisionX
Definition: viewopt.hxx:160
short GetDivisionX() const
Definition: viewopt.hxx:426
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
bool getBrowseMode() const
Definition: viewopt.hxx:454
short GetDivisionY() const
Definition: viewopt.hxx:428
ViewOptFlags2 m_nUIOptions
Definition: viewopt.hxx:156
static bool IsFuzzing()
static Color & GetVisitedLinksColor()
Definition: viewopt.cxx:395
SvxSwAutoFormatFlags & GetSwFlags()
SwFillMode
Definition: crstate.hxx:28
static Color s_aAppBackgroundColor
Definition: viewopt.hxx:133
void Right(const long nRight)
Definition: swrect.hxx:200
static Color & GetAppBackgroundColor()
Definition: viewopt.cxx:375
static Color & GetSectionBoundColor()
Definition: viewopt.cxx:435
#define HTML_CFG_WRITER
void DrawRect(const tools::Rectangle &rRect)
static Color s_aVisitedLinksColor
Definition: viewopt.hxx:138
static SvxHtmlOptions & Get()
bool m_bSelectionInReadonly
Definition: viewopt.hxx:168
OUTDEV_PRINTER
static void SetAppearanceFlag(ViewOptFlags nFlag, bool bSet, bool bSaveInConfig=false)
Definition: viewopt.cxx:521
sal_uInt16 mnViewLayoutColumns
Definition: viewopt.hxx:159
void SetLineColor()
static Color s_aFieldShadingsColor
Definition: viewopt.hxx:143
WRITERSCRIPTINDICATOR
#define SW_MOD()
Definition: swmodule.hxx:255
OUString m_sSymbolFont
Definition: viewopt.hxx:153
static Color s_aDocColor
Definition: viewopt.hxx:130
static Color & GetShadowColor()
Definition: viewopt.cxx:420
sal_uInt8 m_nPagePreviewCol
Definition: viewopt.hxx:163
SvxZoomType m_eZoom
Definition: viewopt.hxx:179
static void DrawRectPrinter(OutputDevice *pOut, const SwRect &rRect)
Definition: viewopt.cxx:113
void SetOnlineSpell(bool b)
Definition: viewopt.cxx:322
#define TBL_DEST_CELL
Definition: viewopt.hxx:107
bool IsFormView() const
Definition: viewopt.hxx:451
ViewOptFlags1 m_nCoreOptions
Definition: viewopt.hxx:154
SvxAutoCorrect * GetAutoCorrect()
short m_nDivisionY
Definition: viewopt.hxx:161
Color m_aRetouchColor
Definition: viewopt.hxx:157
HTMLMODE_ON
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
Definition: viewopt.cxx:337
void SetFillColor()
const Color & GetLineColor() const
LINESTYLE_SINGLE
#define HTML_CFG_MSIE
static Color & GetObjectBoundariesColor()
Definition: viewopt.cxx:370
Size m_aSnapSize
Definition: viewopt.hxx:158
ColorConfigEntryCount
static void ApplyColorConfigValues(const svtools::ColorConfig &rConfig)
Definition: viewopt.cxx:450
bool IsTest2() const
Definition: viewopt.hxx:477
static void PaintPostIts(OutputDevice *pOut, const SwRect &rRect, bool bIsScript)
Definition: viewopt.cxx:131
WRITERHEADERFOOTERMARK
bool m_bTest8
Definition: viewopt.hxx:192
static Color & GetDirectCursorColor()
Definition: viewopt.cxx:400
static Color & GetPageBreakColor()
Definition: viewopt.cxx:440
bool IsTest5() const
Definition: viewopt.hxx:480
sal_uInt8 GetPagePrevRow() const
Definition: viewopt.hxx:441
static void Init(vcl::Window const *pWin)
Definition: viewopt.cxx:308
WRITERFIELDSHADINGS
Point PixelToLogic(const Point &rDevicePt) const
bool m_bIdle
Definition: viewopt.hxx:175
void Left(const long nLeft)
Definition: swrect.hxx:195
void Bottom(const long nBottom)
Definition: swrect.hxx:209
static Color & GetIndexShadingsColor()
Definition: viewopt.cxx:385
bool IsTest7() const
Definition: viewopt.hxx:482
static Color s_aDirectCursorColor
Definition: viewopt.hxx:139
tools::Rectangle SVRect() const
Definition: swrect.hxx:280
ColorConfigValue GetColorValue(ColorConfigEntry eEntry, bool bSmart=true) const
HTMLMODE_SOME_STYLES
bool IsTest1() const
Definition: viewopt.hxx:476
static Color s_aHeaderFooterMarkColor
Definition: viewopt.hxx:148
bool m_bTest7
Definition: viewopt.hxx:191
void Width(long nNew)
Definition: swrect.hxx:187
#define HTML_CFG_NS40
static Color & GetDocBoundariesColor()
Definition: viewopt.cxx:365
sal_uInt16 m_nZoom
Definition: viewopt.hxx:178
static Color & GetFontColor()
Definition: viewopt.cxx:425
static Color s_aShadowColor
Definition: viewopt.hxx:147
bool mbHideWhitespaceMode
Definition: viewopt.hxx:173
bool mbFormView
Definition: viewopt.hxx:169
const ColorConfigValue & GetColorValue(ColorConfigEntry eEntry) const
static Color & GetDocColor()
Definition: viewopt.cxx:360
sal_uInt8 m_nTableDestination
Definition: viewopt.hxx:181
const OUString PERCENT("Percent")
bool IsTest6() const
Definition: viewopt.hxx:481
WRITERSECTIONBOUNDARIES
static Color s_aSmarttagColor
Definition: viewopt.hxx:142
static Color s_aIndexShadingsColor
Definition: viewopt.hxx:136
long GetTextWidth(const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, vcl::TextLayoutCache const *=nullptr, SalLayoutGlyphs const *const pLayoutCache=nullptr) const
static bool IsIgnoreProtectedArea()
Definition: viewopt.cxx:576
SwViewOption & operator=(const SwViewOption &rOpt)
Definition: viewopt.cxx:262
HTMLMODE_FULL_STYLES
sal_uInt16 GetExportMode() const
static Color & GetSpellColor()
Definition: viewopt.cxx:410
static Color s_aPageBreakColor
Definition: viewopt.hxx:145
static Color s_aTextGridColor
Definition: viewopt.hxx:140
SvxZoomType
static Color s_aObjectBoundColor
Definition: viewopt.hxx:132
sal_uInt8 m_nPagePreviewRow
Definition: viewopt.hxx:162
bool m_bTest5
Definition: viewopt.hxx:189
static Color s_aSpellColor
Definition: viewopt.hxx:141
static void DrawRect(OutputDevice *pOut, const SwRect &rRect,::Color nCol)
Definition: viewopt.cxx:98
bool IsTest3() const
Definition: viewopt.hxx:478
WRITERDIRECTCURSOR
bool m_bReadonly
Definition: viewopt.hxx:165
void setWidth(long nWidth)
static Color & GetTableBoundariesColor()
Definition: viewopt.cxx:380
bool m_bTest2
Definition: viewopt.hxx:186
sal_uInt8 GetPagePrevCol() const
Definition: viewopt.hxx:443
bool m_bIsPagePreview
Definition: viewopt.hxx:167
static Color s_aScriptIndicatorColor
Definition: viewopt.hxx:146
sal_uInt16 nPos
const Color & GetFillColor() const
const LocaleDataWrapper & GetLocaleData()
void setHeight(long nHeight)