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 =
194 
195  if (!utl::ConfigManager::IsFuzzing() && MeasurementSystem::Metric != SvtSysLocale().GetLocaleData().getMeasurementSystemEnum())
196  {
197  m_aSnapSize.setWidth(720); // 1/2"
198  m_aSnapSize.setHeight(720); // 1/2"
199 
200  }
201  else
202  {
203  m_aSnapSize.setWidth(567); // 1 cm
204  m_aSnapSize.setHeight(567); // 1 cm
205  }
207 
208  m_bSelectionInReadonly = !utl::ConfigManager::IsFuzzing() && SW_MOD()->GetAccessibilityOptions().IsSelectionInReadonly();
209 
210  m_bIdle = true;
211 
212 #ifdef DBG_UTIL
213  // correspond to the statements in ui/config/cfgvw.src
215  m_bTest5 = m_bTest6 = m_bTest7 = m_bTest8 = m_bTest10 = false;
216 #endif
219 }
220 
222 {
223  m_bReadonly = false;
224  m_bSelectionInReadonly = false;
225  // #114856# Form view
226  mbFormView = rVOpt.mbFormView;
227  m_nZoom = rVOpt.m_nZoom ;
228  m_aSnapSize = rVOpt.m_aSnapSize ;
230  m_nDivisionX = rVOpt.m_nDivisionX ;
231  m_nDivisionY = rVOpt.m_nDivisionY ;
235  m_eZoom = rVOpt.m_eZoom ;
237  m_nUIOptions = rVOpt.m_nUIOptions ;
244  mbBookView = rVOpt.mbBookView;
245  mbBrowseMode = rVOpt.mbBrowseMode;
249  m_bIdle = rVOpt.m_bIdle;
250 
251 #ifdef DBG_UTIL
252  m_bTest1 = rVOpt.m_bTest1;
253  m_bTest2 = rVOpt.m_bTest2;
254  m_bTest3 = rVOpt.m_bTest3;
255  m_bTest4 = rVOpt.m_bTest4;
256  m_bTest5 = rVOpt.m_bTest5;
257  m_bTest6 = rVOpt.m_bTest6;
258  m_bTest7 = rVOpt.m_bTest7;
259  m_bTest8 = rVOpt.m_bTest8;
260  m_bTest10 = rVOpt.m_bTest10;
261 #endif
262 }
263 
265 {
266  // #114856# Form view
267  mbFormView = rVOpt.mbFormView ;
268  m_nZoom = rVOpt.m_nZoom ;
269  m_aSnapSize = rVOpt.m_aSnapSize ;
271  m_nDivisionX = rVOpt.m_nDivisionX ;
272  m_nDivisionY = rVOpt.m_nDivisionY ;
276  m_eZoom = rVOpt.m_eZoom ;
278  m_nUIOptions = rVOpt.m_nUIOptions ;
285  mbBookView = rVOpt.mbBookView;
286  mbBrowseMode = rVOpt.mbBrowseMode;
290  m_bIdle = rVOpt.m_bIdle;
291 
292 #ifdef DBG_UTIL
293  m_bTest1 = rVOpt.m_bTest1;
294  m_bTest2 = rVOpt.m_bTest2;
295  m_bTest3 = rVOpt.m_bTest3;
296  m_bTest4 = rVOpt.m_bTest4;
297  m_bTest5 = rVOpt.m_bTest5;
298  m_bTest6 = rVOpt.m_bTest6;
299  m_bTest7 = rVOpt.m_bTest7;
300  m_bTest8 = rVOpt.m_bTest8;
301  m_bTest10 = rVOpt.m_bTest10;
302 #endif
303  return *this;
304 }
305 
307 {
308 }
309 
310 void SwViewOption::Init( vcl::Window const *pWin )
311 {
312  if( !s_nPixelTwips && pWin )
313  {
314  s_nPixelTwips = static_cast<sal_uInt16>(pWin->PixelToLogic( Size(1,1) ).Height());
315  }
316 }
317 
319 {
321  return rFlags.bAutoCmpltCollectWords;
322 }
323 
325 {
326  if (b)
328  else
330 }
331 
333  m_nItemId (SID_ATTR_CHAR_UNDERLINE),
334  m_nAttr (LINESTYLE_SINGLE),
335  m_nColor (COL_TRANSPARENT)
336 {
337 }
338 
339 sal_uInt16 GetHtmlMode(const SwDocShell* pShell)
340 {
341  sal_uInt16 nRet = 0;
342  if(!pShell || dynamic_cast<const SwWebDocShell*>( pShell) )
343  {
345  SvxHtmlOptions& rHtmlOpt = SvxHtmlOptions::Get();
346  switch ( rHtmlOpt.GetExportMode() )
347  {
348  case HTML_CFG_MSIE:
349  nRet |= HTMLMODE_FULL_STYLES;
350  break;
351  case HTML_CFG_NS40:
352  // no special features for this browser
353  break;
354  case HTML_CFG_WRITER:
355  nRet |= HTMLMODE_FULL_STYLES;
356  break;
357  }
358  }
359  return nRet;
360 }
361 
363 {
364  return s_aDocColor;
365 }
366 
368 {
369  return s_aDocBoundColor;
370 }
371 
373 {
374  return s_aObjectBoundColor;
375 }
376 
378 {
379  return s_aAppBackgroundColor;
380 }
381 
383 {
384  return s_aTableBoundColor;
385 }
386 
388 {
389  return s_aIndexShadingsColor;
390 }
391 
393 {
394  return s_aLinksColor;
395 }
396 
398 {
399  return s_aVisitedLinksColor;
400 }
401 
403 {
404  return s_aDirectCursorColor;
405 }
406 
408 {
409  return s_aTextGridColor;
410 }
411 
413 {
414  return s_aSpellColor;
415 }
416 
418 {
419  return s_aSmarttagColor;
420 }
421 
423 {
424  return s_aShadowColor;
425 }
426 
428 {
429  return s_aFontColor;
430 }
431 
433 {
434  return s_aFieldShadingsColor;
435 }
436 
438 {
439  return s_aSectionBoundColor;
440 }
441 
443 {
444  return s_aPageBreakColor;
445 }
446 
448 {
450 }
451 
453 {
455 
457  s_aDocBoundColor = aValue.nColor;
459  if(aValue.bIsVisible)
461 
463 
464  aValue = rConfig.GetColorValue(svtools::OBJECTBOUNDARIES);
465  s_aObjectBoundColor = aValue.nColor;
466  if(aValue.bIsVisible)
468 
469  aValue = rConfig.GetColorValue(svtools::TABLEBOUNDARIES);
470  s_aTableBoundColor = aValue.nColor;
471  if(aValue.bIsVisible)
473 
474  aValue = rConfig.GetColorValue(svtools::WRITERIDXSHADINGS);
475  s_aIndexShadingsColor = aValue.nColor;
476  if(aValue.bIsVisible)
478 
479  aValue = rConfig.GetColorValue(svtools::LINKS);
480  s_aLinksColor = aValue.nColor;
481  if(aValue.bIsVisible)
483 
484  aValue = rConfig.GetColorValue(svtools::LINKSVISITED);
485  s_aVisitedLinksColor = aValue.nColor;
486  if(aValue.bIsVisible)
488 
489  aValue = rConfig.GetColorValue(svtools::SHADOWCOLOR);
490  s_aShadowColor = aValue.nColor;
491  if(aValue.bIsVisible)
493 
495 
497 
499 
501 
503 
505  s_aFieldShadingsColor = aValue.nColor;
506  if(aValue.bIsVisible)
508 
510  s_aSectionBoundColor = aValue.nColor;
511  if(aValue.bIsVisible)
513 
514  aValue = rConfig.GetColorValue(svtools::WRITERPAGEBREAKS);
515  s_aPageBreakColor = aValue.nColor;
516 
519 
521 }
522 
523 void SwViewOption::SetAppearanceFlag(ViewOptFlags nFlag, bool bSet, bool bSaveInConfig )
524 {
525  if(bSet)
526  s_nAppearanceFlags |= nFlag;
527  else
528  s_nAppearanceFlags &= ~nFlag;
529  if(bSaveInConfig)
530  {
531  //create an editable svtools::ColorConfig and store the change
532  svtools::EditableColorConfig aEditableConfig;
533  struct FlagToConfig_Impl
534  {
535  ViewOptFlags const nFlag;
536  svtools::ColorConfigEntry const eEntry;
537  };
538  static const FlagToConfig_Impl aFlags[] =
539  {
550  };
551  sal_uInt16 nPos = 0;
552  while(aFlags[nPos].nFlag != ViewOptFlags::NONE)
553  {
554  if(nFlag & aFlags[nPos].nFlag)
555  {
556  svtools::ColorConfigValue aValue = aEditableConfig.GetColorValue(aFlags[nPos].eEntry);
557  aValue.bIsVisible = bSet;
558  aEditableConfig.SetColorValue(aFlags[nPos].eEntry, aValue);
559  }
560  nPos++;
561  }
562  }
563 }
564 
566 {
567  return bool(s_nAppearanceFlags & nFlag);
568 }
569 
570 namespace{
571 rtl::Reference<comphelper::ConfigurationListener> const & getWCOptionListener()
572 {
573  static rtl::Reference<comphelper::ConfigurationListener> xListener(new comphelper::ConfigurationListener("/org.openoffice.Office.Writer/Cursor/Option"));
574  return xListener;
575 }
576 }
577 
579 {
580  static comphelper::ConfigurationListenerProperty<bool> gIgnoreProtectedArea(getWCOptionListener(), "IgnoreProtectedArea");
581  return gIgnoreProtectedArea.get();
582 }
583 
584 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static bool IsAppearanceFlag(ViewOptFlags nFlag)
Definition: viewopt.cxx:565
bool m_bTest4
Definition: viewopt.hxx:182
bool m_bTest6
Definition: viewopt.hxx:184
bool mbViewLayoutBookMode
Definition: viewopt.hxx:166
OutDevType GetOutDevType() const
static Color & GetFieldShadingsColor()
Definition: viewopt.cxx:432
const Color & GetRetoucheColor() const
Definition: viewopt.hxx:532
static Color s_aSectionBoundColor
Definition: viewopt.hxx:138
bool IsTest4() const
Definition: viewopt.hxx:451
static SvxAutoCorrCfg & Get()
constexpr::Color COL_BLACK(0x00, 0x00, 0x00)
bool m_bTest10
Definition: viewopt.hxx:187
ViewOptFlags
Definition: viewopt.hxx:106
bool m_bTest1
Definition: viewopt.hxx:179
bool m_bTest3
Definition: viewopt.hxx:181
ViewOptCoreFlags2 m_nCore2Options
Definition: viewopt.hxx:149
static Color s_aLinksColor
Definition: viewopt.hxx:131
static Color & GetHeaderFooterMarkColor()
Definition: viewopt.cxx:447
bool mbBrowseMode
Definition: viewopt.hxx:164
bool m_bShowPlaceHolderFields
Definition: viewopt.hxx:168
bool IsTest10() const
Definition: viewopt.hxx:456
bool IsEqualFlags(const SwViewOption &rOpt) const
Definition: viewopt.cxx:69
static bool IsAutoCompleteWords()
Definition: viewopt.cxx:318
static Color & GetTextGridColor()
Definition: viewopt.cxx:407
void SetColorValue(ColorConfigEntry eEntry, const ColorConfigValue &rValue)
static Color & GetLinksColor()
Definition: viewopt.cxx:392
bool mbBookView
Definition: viewopt.hxx:165
void Height(long nNew)
Definition: swrect.hxx:189
bool IsTest8() const
Definition: viewopt.hxx:455
constexpr::Color COL_GRAY(0x80, 0x80, 0x80)
static Color s_aTableBoundColor
Definition: viewopt.hxx:128
static Color s_aFontColor
Definition: viewopt.hxx:129
static Color & GetSmarttagColor()
Definition: viewopt.cxx:417
Of course Writer needs its own rectangles.
Definition: swrect.hxx:34
static ViewOptFlags s_nAppearanceFlags
Definition: viewopt.hxx:144
static sal_uInt16 s_nPixelTwips
Definition: viewopt.hxx:145
bool m_bStarOneSetting
Definition: viewopt.hxx:160
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:125
short m_nDivisionX
Definition: viewopt.hxx:154
short GetDivisionX() const
Definition: viewopt.hxx:398
bool getBrowseMode() const
Definition: viewopt.hxx:426
short GetDivisionY() const
Definition: viewopt.hxx:400
ViewOptFlags2 m_nUIOptions
Definition: viewopt.hxx:150
static bool IsFuzzing()
default, fill with tabs
Definition: crstate.hxx:28
ViewOptFlags1
Definition: viewopt.hxx:37
static Color & GetVisitedLinksColor()
Definition: viewopt.cxx:397
SvxSwAutoFormatFlags & GetSwFlags()
static Color s_aAppBackgroundColor
Definition: viewopt.hxx:127
void Right(const long nRight)
Definition: swrect.hxx:198
static Color & GetAppBackgroundColor()
Definition: viewopt.cxx:377
static Color & GetSectionBoundColor()
Definition: viewopt.cxx:437
#define HTML_CFG_WRITER
void DrawRect(const tools::Rectangle &rRect)
static Color s_aVisitedLinksColor
Definition: viewopt.hxx:132
static SvxHtmlOptions & Get()
bool m_bSelectionInReadonly
Definition: viewopt.hxx:162
OUTDEV_PRINTER
static void SetAppearanceFlag(ViewOptFlags nFlag, bool bSet, bool bSaveInConfig=false)
Definition: viewopt.cxx:523
sal_uInt16 mnViewLayoutColumns
Definition: viewopt.hxx:153
void SetLineColor()
static Color s_aFieldShadingsColor
Definition: viewopt.hxx:137
WRITERSCRIPTINDICATOR
#define SW_MOD()
Definition: swmodule.hxx:255
OUString m_sSymbolFont
Definition: viewopt.hxx:147
static Color s_aDocColor
Definition: viewopt.hxx:124
static Color & GetShadowColor()
Definition: viewopt.cxx:422
sal_uInt8 m_nPagePreviewCol
Definition: viewopt.hxx:157
SvxZoomType m_eZoom
Definition: viewopt.hxx:173
static void DrawRectPrinter(OutputDevice *pOut, const SwRect &rRect)
Definition: viewopt.cxx:116
void SetOnlineSpell(bool b)
Definition: viewopt.cxx:324
#define TBL_DEST_CELL
Definition: viewopt.hxx:101
bool IsFormView() const
Definition: viewopt.hxx:423
ViewOptFlags1 m_nCoreOptions
Definition: viewopt.hxx:148
SvxAutoCorrect * GetAutoCorrect()
sal_uInt8 m_nShadowCursorFillMode
Definition: viewopt.hxx:158
short m_nDivisionY
Definition: viewopt.hxx:155
Color m_aRetouchColor
Definition: viewopt.hxx:151
HTMLMODE_ON
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
Definition: viewopt.cxx:339
void SetFillColor()
const Color & GetLineColor() const
LINESTYLE_SINGLE
#define HTML_CFG_MSIE
static Color & GetObjectBoundariesColor()
Definition: viewopt.cxx:372
Size m_aSnapSize
Definition: viewopt.hxx:152
ColorConfigEntryCount
static void ApplyColorConfigValues(const svtools::ColorConfig &rConfig)
Definition: viewopt.cxx:452
bool IsTest2() const
Definition: viewopt.hxx:449
static void PaintPostIts(OutputDevice *pOut, const SwRect &rRect, bool bIsScript)
Definition: viewopt.cxx:134
WRITERHEADERFOOTERMARK
bool m_bTest8
Definition: viewopt.hxx:186
static Color & GetDirectCursorColor()
Definition: viewopt.cxx:402
static Color & GetPageBreakColor()
Definition: viewopt.cxx:442
bool IsTest5() const
Definition: viewopt.hxx:452
sal_uInt8 GetPagePrevRow() const
Definition: viewopt.hxx:413
static void Init(vcl::Window const *pWin)
Definition: viewopt.cxx:310
WRITERFIELDSHADINGS
Point PixelToLogic(const Point &rDevicePt) const
bool m_bIdle
Definition: viewopt.hxx:169
void Left(const long nLeft)
Definition: swrect.hxx:193
void Bottom(const long nBottom)
Definition: swrect.hxx:207
static Color & GetIndexShadingsColor()
Definition: viewopt.cxx:387
bool IsTest7() const
Definition: viewopt.hxx:454
static Color s_aDirectCursorColor
Definition: viewopt.hxx:133
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:448
static Color s_aHeaderFooterMarkColor
Definition: viewopt.hxx:142
bool m_bTest7
Definition: viewopt.hxx:185
void Width(long nNew)
Definition: swrect.hxx:185
#define HTML_CFG_NS40
static Color & GetDocBoundariesColor()
Definition: viewopt.cxx:367
sal_uInt16 m_nZoom
Definition: viewopt.hxx:172
static Color & GetFontColor()
Definition: viewopt.cxx:427
static Color s_aShadowColor
Definition: viewopt.hxx:141
bool mbHideWhitespaceMode
Definition: viewopt.hxx:167
bool mbFormView
Definition: viewopt.hxx:163
const ColorConfigValue & GetColorValue(ColorConfigEntry eEntry) const
static Color & GetDocColor()
Definition: viewopt.cxx:362
sal_uInt8 m_nTableDestination
Definition: viewopt.hxx:175
const OUString PERCENT("Percent")
bool IsTest6() const
Definition: viewopt.hxx:453
WRITERSECTIONBOUNDARIES
static Color s_aSmarttagColor
Definition: viewopt.hxx:136
static Color s_aIndexShadingsColor
Definition: viewopt.hxx:130
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:578
SwViewOption & operator=(const SwViewOption &rOpt)
Definition: viewopt.cxx:264
HTMLMODE_FULL_STYLES
sal_uInt16 GetExportMode() const
static Color & GetSpellColor()
Definition: viewopt.cxx:412
static Color s_aPageBreakColor
Definition: viewopt.hxx:139
static Color s_aTextGridColor
Definition: viewopt.hxx:134
SvxZoomType
static Color s_aObjectBoundColor
Definition: viewopt.hxx:126
sal_uInt8 m_nPagePreviewRow
Definition: viewopt.hxx:156
bool m_bTest5
Definition: viewopt.hxx:183
static Color s_aSpellColor
Definition: viewopt.hxx:135
static void DrawRect(OutputDevice *pOut, const SwRect &rRect,::Color nCol)
Definition: viewopt.cxx:101
bool IsTest3() const
Definition: viewopt.hxx:450
WRITERDIRECTCURSOR
sal_Int32 nPos
bool m_bReadonly
Definition: viewopt.hxx:159
void setWidth(long nWidth)
static Color & GetTableBoundariesColor()
Definition: viewopt.cxx:382
bool m_bTest2
Definition: viewopt.hxx:180
sal_uInt8 GetPagePrevCol() const
Definition: viewopt.hxx:415
bool m_bIsPagePreview
Definition: viewopt.hxx:161
static Color s_aScriptIndicatorColor
Definition: viewopt.hxx:140
const Color & GetFillColor() const
const LocaleDataWrapper & GetLocaleData()
void setHeight(long nHeight)