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 <svx/svxids.hrc>
24 #include <editeng/svxenum.hxx>
25 #include <editeng/svxacorr.hxx>
27 #include <vcl/region.hxx>
28 #include <vcl/outdev.hxx>
29 #include <vcl/window.hxx>
30 #include <swmodule.hxx>
31 #include <swtypes.hxx>
32 #include <viewopt.hxx>
33 #include <wdocsh.hxx>
34 #include <swrect.hxx>
35 #include <crstate.hxx>
36 #include <authratr.hxx>
37 #include <svtools/colorcfg.hxx>
39 #include <unotools/configmgr.hxx>
40 #include <unotools/syslocale.hxx>
41 
42 #include <editeng/acorrcfg.hxx>
43 #include <comphelper/lok.hxx>
45 
48 Color SwViewOption::s_aDocColor(COL_LIGHTGRAY);
57 Color SwViewOption::s_aSmarttagColor(COL_LIGHTMAGENTA);
65 
67 sal_uInt16 SwViewOption::s_nPixelTwips = 0; // one pixel on the screen
68 
69 bool SwViewOption::IsEqualFlags( const SwViewOption &rOpt ) const
70 {
71  return m_nCoreOptions == rOpt.m_nCoreOptions
73  && m_aSnapSize == rOpt.m_aSnapSize
75  && m_nDivisionX == rOpt.GetDivisionX()
76  && m_nDivisionY == rOpt.GetDivisionY()
80  && mbFormView == rOpt.IsFormView()
81  && mbBrowseMode == rOpt.getBrowseMode()
85  && m_bIdle == rOpt.m_bIdle
86 #ifdef DBG_UTIL
87  // correspond to the statements in ui/config/cfgvw.src
88  && m_bTest1 == rOpt.IsTest1()
89  && m_bTest2 == rOpt.IsTest2()
90  && m_bTest3 == rOpt.IsTest3()
91  && m_bTest4 == rOpt.IsTest4()
92  && m_bTest5 == rOpt.IsTest5()
93  && m_bTest6 == rOpt.IsTest6()
94  && m_bTest7 == rOpt.IsTest7()
95  && m_bTest8 == rOpt.IsTest8()
96  && m_bTest10 == rOpt.IsTest10()
97 #endif
98  ;
99 }
100 
102  const SwRect &rRect, ::Color nCol )
103 {
104  if ( pOut->GetOutDevType() != OUTDEV_PRINTER )
105  {
106  const Color aCol( nCol );
107  const Color aOldColor( pOut->GetFillColor() );
108  pOut->SetFillColor( aCol );
109  pOut->DrawRect( rRect.SVRect() );
110  pOut->SetFillColor( aOldColor );
111  }
112  else
113  DrawRectPrinter( pOut, rRect );
114 }
115 
117  const SwRect &rRect )
118 {
119  Color aOldColor(pOut->GetLineColor());
120  Color aOldFillColor( pOut->GetFillColor() );
121  pOut->SetLineColor( COL_BLACK );
123  pOut->DrawRect( rRect.SVRect() );
124  pOut->SetFillColor( aOldFillColor );
125  pOut->SetLineColor( aOldColor );
126 }
127 
129 {
130  assert(pOut && "no Outdev");
131  return sal_uInt16(pOut->GetTextWidth(" "));
132 }
133 
134 void SwViewOption::PaintPostIts( OutputDevice *pOut, const SwRect &rRect, bool bIsScript )
135 {
136  if( pOut && bIsScript )
137  {
138  Color aOldLineColor( pOut->GetLineColor() );
139  pOut->SetLineColor( COL_GRAY );
140  // to make it look nice, we subtract two pixels everywhere
141  sal_uInt16 nPix = s_nPixelTwips * 2;
142  if( rRect.Width() <= 2 * nPix || rRect.Height() <= 2 * nPix )
143  nPix = 0;
144  const Point aTopLeft( rRect.Left() + nPix, rRect.Top() + nPix );
145  const Point aBotRight( rRect.Right() - nPix, rRect.Bottom() - nPix );
146  const SwRect aRect( aTopLeft, aBotRight );
147  DrawRect( pOut, aRect, s_aScriptIndicatorColor );
148  pOut->SetLineColor( aOldLineColor );
149  }
150 }
151 
153  m_sSymbolFont( "symbol" ),
154  m_aRetouchColor( COL_TRANSPARENT ),
155  mnViewLayoutColumns( 0 ),
156  m_nPagePreviewRow( 1 ),
157  m_nPagePreviewCol( 2 ),
158  m_nShadowCursorFillMode( FILL_TAB ),
159  m_bReadonly(false),
160  m_bStarOneSetting(false),
161  m_bIsPagePreview(false),
162  m_bSelectionInReadonly(false),
163  mbFormView(false),
164  mbBrowseMode(false),
165  mbBookView(false),
166  mbViewLayoutBookMode(false),
167  mbHideWhitespaceMode(false),
168  m_bShowPlaceHolderFields( true ),
169  m_nZoom( 100 ),
170  m_eZoom( SvxZoomType::PERCENT ),
171  m_nTableDestination(TBL_DEST_CELL)
172 {
173  // Initialisation is a little simpler now
174  // all Bits to 0
185 
189 
190  m_nUIOptions =
195 
196  if (!utl::ConfigManager::IsFuzzing() && MeasurementSystem::Metric != SvtSysLocale().GetLocaleData().getMeasurementSystemEnum())
197  {
198  m_aSnapSize.setWidth(720); // 1/2"
199  m_aSnapSize.setHeight(720); // 1/2"
200 
201  }
202  else
203  {
204  m_aSnapSize.setWidth(567); // 1 cm
205  m_aSnapSize.setHeight(567); // 1 cm
206  }
208 
209  m_bSelectionInReadonly = !utl::ConfigManager::IsFuzzing() && SW_MOD()->GetAccessibilityOptions().IsSelectionInReadonly();
210 
211  m_bIdle = true;
212 
213 #ifdef DBG_UTIL
214  // correspond to the statements in ui/config/cfgvw.src
216  m_bTest5 = m_bTest6 = m_bTest7 = m_bTest8 = m_bTest10 = false;
217 #endif
220 }
221 
223 {
224  m_bReadonly = false;
225  m_bSelectionInReadonly = false;
226  // #114856# Form view
227  mbFormView = rVOpt.mbFormView;
228  m_nZoom = rVOpt.m_nZoom ;
229  m_aSnapSize = rVOpt.m_aSnapSize ;
231  m_nDivisionX = rVOpt.m_nDivisionX ;
232  m_nDivisionY = rVOpt.m_nDivisionY ;
236  m_eZoom = rVOpt.m_eZoom ;
238  m_nUIOptions = rVOpt.m_nUIOptions ;
245  mbBookView = rVOpt.mbBookView;
246  mbBrowseMode = rVOpt.mbBrowseMode;
250  m_bIdle = rVOpt.m_bIdle;
251 
252 #ifdef DBG_UTIL
253  m_bTest1 = rVOpt.m_bTest1;
254  m_bTest2 = rVOpt.m_bTest2;
255  m_bTest3 = rVOpt.m_bTest3;
256  m_bTest4 = rVOpt.m_bTest4;
257  m_bTest5 = rVOpt.m_bTest5;
258  m_bTest6 = rVOpt.m_bTest6;
259  m_bTest7 = rVOpt.m_bTest7;
260  m_bTest8 = rVOpt.m_bTest8;
261  m_bTest10 = rVOpt.m_bTest10;
262 #endif
263 }
264 
266 {
267  // #114856# Form view
268  mbFormView = rVOpt.mbFormView ;
269  m_nZoom = rVOpt.m_nZoom ;
270  m_aSnapSize = rVOpt.m_aSnapSize ;
272  m_nDivisionX = rVOpt.m_nDivisionX ;
273  m_nDivisionY = rVOpt.m_nDivisionY ;
277  m_eZoom = rVOpt.m_eZoom ;
279  m_nUIOptions = rVOpt.m_nUIOptions ;
286  mbBookView = rVOpt.mbBookView;
287  mbBrowseMode = rVOpt.mbBrowseMode;
291  m_bIdle = rVOpt.m_bIdle;
292 
293 #ifdef DBG_UTIL
294  m_bTest1 = rVOpt.m_bTest1;
295  m_bTest2 = rVOpt.m_bTest2;
296  m_bTest3 = rVOpt.m_bTest3;
297  m_bTest4 = rVOpt.m_bTest4;
298  m_bTest5 = rVOpt.m_bTest5;
299  m_bTest6 = rVOpt.m_bTest6;
300  m_bTest7 = rVOpt.m_bTest7;
301  m_bTest8 = rVOpt.m_bTest8;
302  m_bTest10 = rVOpt.m_bTest10;
303 #endif
304  return *this;
305 }
306 
308 {
309 }
310 
311 void SwViewOption::Init( vcl::Window const *pWin )
312 {
313  if( !s_nPixelTwips && pWin )
314  {
315  s_nPixelTwips = static_cast<sal_uInt16>(pWin->PixelToLogic( Size(1,1) ).Height());
316  }
317 }
318 
320 {
322  return rFlags.bAutoCmpltCollectWords;
323 }
324 
326 {
327  if (b)
329  else
331 }
332 
334  m_nItemId (SID_ATTR_CHAR_UNDERLINE),
335  m_nAttr (LINESTYLE_SINGLE),
336  m_nColor (COL_TRANSPARENT)
337 {
338 }
339 
340 sal_uInt16 GetHtmlMode(const SwDocShell* pShell)
341 {
342  sal_uInt16 nRet = 0;
343  if(!pShell || dynamic_cast<const SwWebDocShell*>( pShell) )
344  {
346  SvxHtmlOptions& rHtmlOpt = SvxHtmlOptions::Get();
347  switch ( rHtmlOpt.GetExportMode() )
348  {
349  case HTML_CFG_MSIE:
350  nRet |= HTMLMODE_FULL_STYLES;
351  break;
352  case HTML_CFG_NS40:
353  // no special features for this browser
354  break;
355  case HTML_CFG_WRITER:
356  nRet |= HTMLMODE_FULL_STYLES;
357  break;
358  }
359  }
360  return nRet;
361 }
362 
364 {
365  return s_aDocColor;
366 }
367 
369 {
370  return s_aDocBoundColor;
371 }
372 
374 {
375  return s_aObjectBoundColor;
376 }
377 
379 {
380  return s_aAppBackgroundColor;
381 }
382 
384 {
385  return s_aTableBoundColor;
386 }
387 
389 {
390  return s_aIndexShadingsColor;
391 }
392 
394 {
395  return s_aLinksColor;
396 }
397 
399 {
400  return s_aVisitedLinksColor;
401 }
402 
404 {
405  return s_aDirectCursorColor;
406 }
407 
409 {
410  return s_aTextGridColor;
411 }
412 
414 {
415  return s_aSpellColor;
416 }
417 
419 {
420  return s_aSmarttagColor;
421 }
422 
424 {
425  return s_aShadowColor;
426 }
427 
429 {
430  return s_aFontColor;
431 }
432 
434 {
435  return s_aFieldShadingsColor;
436 }
437 
439 {
440  return s_aSectionBoundColor;
441 }
442 
444 {
445  return s_aPageBreakColor;
446 }
447 
449 {
451 }
452 
454 {
456 
458  s_aDocBoundColor = aValue.nColor;
460  if(aValue.bIsVisible)
462 
464 
465  aValue = rConfig.GetColorValue(svtools::OBJECTBOUNDARIES);
466  s_aObjectBoundColor = aValue.nColor;
467  if(aValue.bIsVisible)
469 
470  aValue = rConfig.GetColorValue(svtools::TABLEBOUNDARIES);
471  s_aTableBoundColor = aValue.nColor;
472  if(aValue.bIsVisible)
474 
475  aValue = rConfig.GetColorValue(svtools::WRITERIDXSHADINGS);
476  s_aIndexShadingsColor = aValue.nColor;
477  if(aValue.bIsVisible)
479 
480  aValue = rConfig.GetColorValue(svtools::LINKS);
481  s_aLinksColor = aValue.nColor;
482  if(aValue.bIsVisible)
484 
485  aValue = rConfig.GetColorValue(svtools::LINKSVISITED);
486  s_aVisitedLinksColor = aValue.nColor;
487  if(aValue.bIsVisible)
489 
490  aValue = rConfig.GetColorValue(svtools::SHADOWCOLOR);
491  s_aShadowColor = aValue.nColor;
492  if(aValue.bIsVisible)
494 
496 
498 
500 
502 
504 
506  s_aFieldShadingsColor = aValue.nColor;
507  if(aValue.bIsVisible)
509 
511  s_aSectionBoundColor = aValue.nColor;
512  if(aValue.bIsVisible)
514 
515  aValue = rConfig.GetColorValue(svtools::WRITERPAGEBREAKS);
516  s_aPageBreakColor = aValue.nColor;
517 
520 
522 }
523 
524 void SwViewOption::SetAppearanceFlag(ViewOptFlags nFlag, bool bSet, bool bSaveInConfig )
525 {
526  if(bSet)
527  s_nAppearanceFlags |= nFlag;
528  else
529  s_nAppearanceFlags &= ~nFlag;
530  if(bSaveInConfig)
531  {
532  //create an editable svtools::ColorConfig and store the change
533  svtools::EditableColorConfig aEditableConfig;
534  struct FlagToConfig_Impl
535  {
536  ViewOptFlags const nFlag;
537  svtools::ColorConfigEntry const eEntry;
538  };
539  static const FlagToConfig_Impl aFlags[] =
540  {
551  };
552  sal_uInt16 nPos = 0;
553  while(aFlags[nPos].nFlag != ViewOptFlags::NONE)
554  {
555  if(nFlag & aFlags[nPos].nFlag)
556  {
557  svtools::ColorConfigValue aValue = aEditableConfig.GetColorValue(aFlags[nPos].eEntry);
558  aValue.bIsVisible = bSet;
559  aEditableConfig.SetColorValue(aFlags[nPos].eEntry, aValue);
560  }
561  nPos++;
562  }
563  }
564 }
565 
567 {
568  return bool(s_nAppearanceFlags & nFlag);
569 }
570 
571 namespace{
572 rtl::Reference<comphelper::ConfigurationListener> const & getWCOptionListener()
573 {
574  static rtl::Reference<comphelper::ConfigurationListener> xListener(new comphelper::ConfigurationListener("/org.openoffice.Office.Writer/Cursor/Option"));
575  return xListener;
576 }
577 }
578 
580 {
581  static comphelper::ConfigurationListenerProperty<bool> gIgnoreProtectedArea(getWCOptionListener(), "IgnoreProtectedArea");
582  return gIgnoreProtectedArea.get();
583 }
584 
585 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static bool IsAppearanceFlag(ViewOptFlags nFlag)
Definition: viewopt.cxx:566
bool m_bTest4
Definition: viewopt.hxx:183
bool m_bTest6
Definition: viewopt.hxx:185
bool mbViewLayoutBookMode
Definition: viewopt.hxx:167
OutDevType GetOutDevType() const
static Color & GetFieldShadingsColor()
Definition: viewopt.cxx:433
const Color & GetRetoucheColor() const
Definition: viewopt.hxx:539
static Color s_aSectionBoundColor
Definition: viewopt.hxx:139
bool IsTest4() const
Definition: viewopt.hxx:458
static SvxAutoCorrCfg & Get()
constexpr::Color COL_BLACK(0x00, 0x00, 0x00)
bool m_bTest10
Definition: viewopt.hxx:188
ViewOptFlags
Definition: viewopt.hxx:107
bool m_bTest1
Definition: viewopt.hxx:180
bool m_bTest3
Definition: viewopt.hxx:182
ViewOptCoreFlags2 m_nCore2Options
Definition: viewopt.hxx:150
static Color s_aLinksColor
Definition: viewopt.hxx:132
static Color & GetHeaderFooterMarkColor()
Definition: viewopt.cxx:448
bool mbBrowseMode
Definition: viewopt.hxx:165
bool m_bShowPlaceHolderFields
Definition: viewopt.hxx:169
bool IsTest10() const
Definition: viewopt.hxx:463
bool IsEqualFlags(const SwViewOption &rOpt) const
Definition: viewopt.cxx:69
static bool IsAutoCompleteWords()
Definition: viewopt.cxx:319
static Color & GetTextGridColor()
Definition: viewopt.cxx:408
void SetColorValue(ColorConfigEntry eEntry, const ColorConfigValue &rValue)
static Color & GetLinksColor()
Definition: viewopt.cxx:393
bool mbBookView
Definition: viewopt.hxx:166
void Height(long nNew)
Definition: swrect.hxx:189
bool IsTest8() const
Definition: viewopt.hxx:462
constexpr::Color COL_GRAY(0x80, 0x80, 0x80)
static Color s_aTableBoundColor
Definition: viewopt.hxx:129
static Color s_aFontColor
Definition: viewopt.hxx:130
static Color & GetSmarttagColor()
Definition: viewopt.cxx:418
Of course Writer needs its own rectangles.
Definition: swrect.hxx:34
static ViewOptFlags s_nAppearanceFlags
Definition: viewopt.hxx:145
static sal_uInt16 s_nPixelTwips
Definition: viewopt.hxx:146
bool m_bStarOneSetting
Definition: viewopt.hxx:161
static sal_uInt16 GetPostItsWidth(const OutputDevice *pOut)
Definition: viewopt.cxx:128
constexpr::Color COL_TRANSPARENT(0xFF, 0xFF, 0xFF, 0xFF)
void Top(const long nTop)
Definition: swrect.hxx:202
static Color s_aDocBoundColor
Definition: viewopt.hxx:126
short m_nDivisionX
Definition: viewopt.hxx:155
short GetDivisionX() const
Definition: viewopt.hxx:405
bool getBrowseMode() const
Definition: viewopt.hxx:433
short GetDivisionY() const
Definition: viewopt.hxx:407
ViewOptFlags2 m_nUIOptions
Definition: viewopt.hxx:151
static bool IsFuzzing()
default, fill with tabs
Definition: crstate.hxx:30
ViewOptFlags1
Definition: viewopt.hxx:37
static Color & GetVisitedLinksColor()
Definition: viewopt.cxx:398
SvxSwAutoFormatFlags & GetSwFlags()
static Color s_aAppBackgroundColor
Definition: viewopt.hxx:128
void Right(const long nRight)
Definition: swrect.hxx:198
static Color & GetAppBackgroundColor()
Definition: viewopt.cxx:378
static Color & GetSectionBoundColor()
Definition: viewopt.cxx:438
#define HTML_CFG_WRITER
void DrawRect(const tools::Rectangle &rRect)
static Color s_aVisitedLinksColor
Definition: viewopt.hxx:133
static SvxHtmlOptions & Get()
bool m_bSelectionInReadonly
Definition: viewopt.hxx:163
OUTDEV_PRINTER
static void SetAppearanceFlag(ViewOptFlags nFlag, bool bSet, bool bSaveInConfig=false)
Definition: viewopt.cxx:524
sal_uInt16 mnViewLayoutColumns
Definition: viewopt.hxx:154
void SetLineColor()
static Color s_aFieldShadingsColor
Definition: viewopt.hxx:138
WRITERSCRIPTINDICATOR
#define SW_MOD()
Definition: swmodule.hxx:256
OUString m_sSymbolFont
Definition: viewopt.hxx:148
static Color s_aDocColor
Definition: viewopt.hxx:125
static Color & GetShadowColor()
Definition: viewopt.cxx:423
sal_uInt8 m_nPagePreviewCol
Definition: viewopt.hxx:158
SvxZoomType m_eZoom
Definition: viewopt.hxx:174
static void DrawRectPrinter(OutputDevice *pOut, const SwRect &rRect)
Definition: viewopt.cxx:116
void SetOnlineSpell(bool b)
Definition: viewopt.cxx:325
#define TBL_DEST_CELL
Definition: viewopt.hxx:102
bool IsFormView() const
Definition: viewopt.hxx:430
ViewOptFlags1 m_nCoreOptions
Definition: viewopt.hxx:149
SvxAutoCorrect * GetAutoCorrect()
sal_uInt8 m_nShadowCursorFillMode
Definition: viewopt.hxx:159
short m_nDivisionY
Definition: viewopt.hxx:156
Color m_aRetouchColor
Definition: viewopt.hxx:152
HTMLMODE_ON
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
Definition: viewopt.cxx:340
void SetFillColor()
const Color & GetLineColor() const
LINESTYLE_SINGLE
#define HTML_CFG_MSIE
static Color & GetObjectBoundariesColor()
Definition: viewopt.cxx:373
Size m_aSnapSize
Definition: viewopt.hxx:153
ColorConfigEntryCount
static void ApplyColorConfigValues(const svtools::ColorConfig &rConfig)
Definition: viewopt.cxx:453
bool IsTest2() const
Definition: viewopt.hxx:456
static void PaintPostIts(OutputDevice *pOut, const SwRect &rRect, bool bIsScript)
Definition: viewopt.cxx:134
WRITERHEADERFOOTERMARK
bool m_bTest8
Definition: viewopt.hxx:187
static Color & GetDirectCursorColor()
Definition: viewopt.cxx:403
static Color & GetPageBreakColor()
Definition: viewopt.cxx:443
bool IsTest5() const
Definition: viewopt.hxx:459
sal_uInt8 GetPagePrevRow() const
Definition: viewopt.hxx:420
static void Init(vcl::Window const *pWin)
Definition: viewopt.cxx:311
WRITERFIELDSHADINGS
Point PixelToLogic(const Point &rDevicePt) const
bool m_bIdle
Definition: viewopt.hxx:170
void Left(const long nLeft)
Definition: swrect.hxx:193
void Bottom(const long nBottom)
Definition: swrect.hxx:207
static Color & GetIndexShadingsColor()
Definition: viewopt.cxx:388
bool IsTest7() const
Definition: viewopt.hxx:461
static Color s_aDirectCursorColor
Definition: viewopt.hxx:134
tools::Rectangle SVRect() const
Definition: swrect.hxx:282
ColorConfigValue GetColorValue(ColorConfigEntry eEntry, bool bSmart=true) const
HTMLMODE_SOME_STYLES
bool IsTest1() const
Definition: viewopt.hxx:455
static Color s_aHeaderFooterMarkColor
Definition: viewopt.hxx:143
bool m_bTest7
Definition: viewopt.hxx:186
void Width(long nNew)
Definition: swrect.hxx:185
#define HTML_CFG_NS40
static Color & GetDocBoundariesColor()
Definition: viewopt.cxx:368
sal_uInt16 m_nZoom
Definition: viewopt.hxx:173
static Color & GetFontColor()
Definition: viewopt.cxx:428
static Color s_aShadowColor
Definition: viewopt.hxx:142
bool mbHideWhitespaceMode
Definition: viewopt.hxx:168
bool mbFormView
Definition: viewopt.hxx:164
const ColorConfigValue & GetColorValue(ColorConfigEntry eEntry) const
static Color & GetDocColor()
Definition: viewopt.cxx:363
sal_uInt8 m_nTableDestination
Definition: viewopt.hxx:176
const OUString PERCENT("Percent")
bool IsTest6() const
Definition: viewopt.hxx:460
WRITERSECTIONBOUNDARIES
static Color s_aSmarttagColor
Definition: viewopt.hxx:137
static Color s_aIndexShadingsColor
Definition: viewopt.hxx:131
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:579
SwViewOption & operator=(const SwViewOption &rOpt)
Definition: viewopt.cxx:265
HTMLMODE_FULL_STYLES
sal_uInt16 GetExportMode() const
static Color & GetSpellColor()
Definition: viewopt.cxx:413
static Color s_aPageBreakColor
Definition: viewopt.hxx:140
static Color s_aTextGridColor
Definition: viewopt.hxx:135
SvxZoomType
static Color s_aObjectBoundColor
Definition: viewopt.hxx:127
sal_uInt8 m_nPagePreviewRow
Definition: viewopt.hxx:157
bool m_bTest5
Definition: viewopt.hxx:184
static Color s_aSpellColor
Definition: viewopt.hxx:136
static void DrawRect(OutputDevice *pOut, const SwRect &rRect,::Color nCol)
Definition: viewopt.cxx:101
bool IsTest3() const
Definition: viewopt.hxx:457
WRITERDIRECTCURSOR
sal_Int32 nPos
bool m_bReadonly
Definition: viewopt.hxx:160
void setWidth(long nWidth)
static Color & GetTableBoundariesColor()
Definition: viewopt.cxx:383
bool m_bTest2
Definition: viewopt.hxx:181
sal_uInt8 GetPagePrevCol() const
Definition: viewopt.hxx:422
bool m_bIsPagePreview
Definition: viewopt.hxx:162
static Color s_aScriptIndicatorColor
Definition: viewopt.hxx:141
const Color & GetFillColor() const
const LocaleDataWrapper & GetLocaleData()
void setHeight(long nHeight)