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>
25 #include <officecfg/Office/Common.hxx>
27 #include <vcl/outdev.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
84 #ifdef DBG_UTIL
85  // correspond to the statements in ui/config/cfgvw.src
86  && m_bTest1 == rOpt.IsTest1()
87  && m_bTest2 == rOpt.IsTest2()
88  && m_bTest3 == rOpt.IsTest3()
89  && m_bTest4 == rOpt.IsTest4()
90  && m_bTest5 == rOpt.IsTest5()
91  && m_bTest6 == rOpt.IsTest6()
92  && m_bTest7 == rOpt.IsTest7()
93  && m_bTest8 == rOpt.IsTest8()
94  && m_bTest10 == rOpt.IsTest10()
95 #endif
96  ;
97 }
98 
100 {
103 }
104 
106 {
109 }
110 
112  const SwRect &rRect, ::Color nCol )
113 {
114  if ( pOut->GetOutDevType() != OUTDEV_PRINTER )
115  {
116  const Color aCol( nCol );
117  const Color aOldColor( pOut->GetFillColor() );
118  pOut->SetFillColor( aCol );
119  pOut->DrawRect( rRect.SVRect() );
120  pOut->SetFillColor( aOldColor );
121  }
122  else
123  DrawRectPrinter( pOut, rRect );
124 }
125 
127  const SwRect &rRect )
128 {
129  Color aOldColor(pOut->GetLineColor());
130  Color aOldFillColor( pOut->GetFillColor() );
131  pOut->SetLineColor( COL_BLACK );
133  pOut->DrawRect( rRect.SVRect() );
134  pOut->SetFillColor( aOldFillColor );
135  pOut->SetLineColor( aOldColor );
136 }
137 
139 {
140  assert(pOut && "no Outdev");
141  return sal_uInt16(pOut->GetTextWidth(" "));
142 }
143 
144 void SwViewOption::PaintPostIts( OutputDevice *pOut, const SwRect &rRect, bool bIsScript )
145 {
146  if( !(pOut && bIsScript) )
147  return;
148 
149  Color aOldLineColor( pOut->GetLineColor() );
150  pOut->SetLineColor( COL_GRAY );
151  // to make it look nice, we subtract two pixels everywhere
152  sal_uInt16 nPix = s_nPixelTwips * 2;
153  if( rRect.Width() <= 2 * nPix || rRect.Height() <= 2 * nPix )
154  nPix = 0;
155  const Point aTopLeft( rRect.Left() + nPix, rRect.Top() + nPix );
156  const Point aBotRight( rRect.Right() - nPix, rRect.Bottom() - nPix );
157  const SwRect aRect( aTopLeft, aBotRight );
158  DrawRect( pOut, aRect, s_aScriptIndicatorColor );
159  pOut->SetLineColor( aOldLineColor );
160 }
161 
163  m_sSymbolFont( "symbol" ),
164  m_aRetouchColor( COL_TRANSPARENT ),
165  mnViewLayoutColumns( 0 ),
166  m_nPagePreviewRow( 1 ),
167  m_nPagePreviewCol( 2 ),
168  m_nShadowCursorFillMode( SwFillMode::Tab ),
169  m_bReadonly(false),
170  m_bStarOneSetting(false),
171  m_bIsPagePreview(false),
172  m_bSelectionInReadonly(false),
173  mbFormView(false),
174  mbBrowseMode(false),
175  mbBookView(false),
176  mbViewLayoutBookMode(false),
177  mbHideWhitespaceMode(false),
178  m_bShowPlaceHolderFields( true ),
179  m_nZoom( 100 ),
180  m_eZoom( SvxZoomType::PERCENT ),
181  m_nTableDestination(TBL_DEST_CELL)
182 {
183  // Initialisation is a little simpler now
184  // all Bits to 0
195 
199 
200  m_nUIOptions =
205 
206  if (!utl::ConfigManager::IsFuzzing() && MeasurementSystem::Metric != SvtSysLocale().GetLocaleData().getMeasurementSystemEnum())
207  {
208  m_aSnapSize.setWidth(720); // 1/2"
209  m_aSnapSize.setHeight(720); // 1/2"
210 
211  }
212  else
213  {
214  m_aSnapSize.setWidth(567); // 1 cm
215  m_aSnapSize.setHeight(567); // 1 cm
216  }
218 
219  m_bSelectionInReadonly = !utl::ConfigManager::IsFuzzing() && SW_MOD()->GetAccessibilityOptions().IsSelectionInReadonly();
220 
221  m_bIdle = true;
222 
223  m_nDefaultAnchor = 1; //FLY_TO_CHAR
224 
225 #ifdef DBG_UTIL
226  // correspond to the statements in ui/config/cfgvw.src
228  m_bTest5 = m_bTest6 = m_bTest7 = m_bTest8 = m_bTest10 = false;
229 #endif
232 }
233 
235 {
236  m_bReadonly = false;
237  m_bSelectionInReadonly = false;
238  // #114856# Form view
239  mbFormView = rVOpt.mbFormView;
240  m_nZoom = rVOpt.m_nZoom ;
241  m_aSnapSize = rVOpt.m_aSnapSize ;
243  m_nDivisionX = rVOpt.m_nDivisionX ;
244  m_nDivisionY = rVOpt.m_nDivisionY ;
248  m_eZoom = rVOpt.m_eZoom ;
250  m_nUIOptions = rVOpt.m_nUIOptions ;
257  mbBookView = rVOpt.mbBookView;
258  mbBrowseMode = rVOpt.mbBrowseMode;
262  m_bIdle = rVOpt.m_bIdle;
264 
265 #ifdef DBG_UTIL
266  m_bTest1 = rVOpt.m_bTest1;
267  m_bTest2 = rVOpt.m_bTest2;
268  m_bTest3 = rVOpt.m_bTest3;
269  m_bTest4 = rVOpt.m_bTest4;
270  m_bTest5 = rVOpt.m_bTest5;
271  m_bTest6 = rVOpt.m_bTest6;
272  m_bTest7 = rVOpt.m_bTest7;
273  m_bTest8 = rVOpt.m_bTest8;
274  m_bTest10 = rVOpt.m_bTest10;
275 #endif
276 }
277 
279 {
280  // #114856# Form view
281  mbFormView = rVOpt.mbFormView ;
282  m_nZoom = rVOpt.m_nZoom ;
283  m_aSnapSize = rVOpt.m_aSnapSize ;
285  m_nDivisionX = rVOpt.m_nDivisionX ;
286  m_nDivisionY = rVOpt.m_nDivisionY ;
290  m_eZoom = rVOpt.m_eZoom ;
292  m_nUIOptions = rVOpt.m_nUIOptions ;
299  mbBookView = rVOpt.mbBookView;
300  mbBrowseMode = rVOpt.mbBrowseMode;
304  m_bIdle = rVOpt.m_bIdle;
306 
307 #ifdef DBG_UTIL
308  m_bTest1 = rVOpt.m_bTest1;
309  m_bTest2 = rVOpt.m_bTest2;
310  m_bTest3 = rVOpt.m_bTest3;
311  m_bTest4 = rVOpt.m_bTest4;
312  m_bTest5 = rVOpt.m_bTest5;
313  m_bTest6 = rVOpt.m_bTest6;
314  m_bTest7 = rVOpt.m_bTest7;
315  m_bTest8 = rVOpt.m_bTest8;
316  m_bTest10 = rVOpt.m_bTest10;
317 #endif
318  return *this;
319 }
320 
322 {
323 }
324 
326 {
327  if( !s_nPixelTwips && pWin )
328  {
329  s_nPixelTwips = static_cast<sal_uInt16>(pWin->PixelToLogic( Size(1,1) ).Height());
330  }
331 }
332 
334 {
336  return rFlags.bAutoCmpltCollectWords;
337 }
338 
340 {
341  if (b)
343  else
345 }
346 
348  m_nItemId (SID_ATTR_CHAR_UNDERLINE),
349  m_nAttr (LINESTYLE_SINGLE),
350  m_nColor (COL_TRANSPARENT)
351 {
352 }
353 
354 sal_uInt16 GetHtmlMode(const SwDocShell* pShell)
355 {
356  sal_uInt16 nRet = 0;
357  if(!pShell || dynamic_cast<const SwWebDocShell*>( pShell) )
358  {
360  SvxHtmlOptions& rHtmlOpt = SvxHtmlOptions::Get();
361  switch ( rHtmlOpt.GetExportMode() )
362  {
363  case HTML_CFG_MSIE:
364  nRet |= HTMLMODE_FULL_STYLES;
365  break;
366  case HTML_CFG_NS40:
367  // no special features for this browser
368  break;
369  case HTML_CFG_WRITER:
370  nRet |= HTMLMODE_FULL_STYLES;
371  break;
372  }
373  }
374  return nRet;
375 }
376 
378 {
379  switch ( m_nDefaultAnchor )
380  {
381  case 0:
382  return RndStdIds::FLY_AT_PARA; //0
383  case 1:
384  return RndStdIds::FLY_AT_CHAR; //4
385  case 2:
386  return RndStdIds::FLY_AS_CHAR; //1
387  default:
388  return RndStdIds::FLY_AT_CHAR; //4
389  }//switch
390 }
391 
393 {
394  return s_aDocColor;
395 }
396 
398 {
399  return s_aDocBoundColor;
400 }
401 
403 {
404  return s_aObjectBoundColor;
405 }
406 
408 {
409  return s_aAppBackgroundColor;
410 }
411 
413 {
414  return s_aTableBoundColor;
415 }
416 
418 {
419  return s_aIndexShadingsColor;
420 }
421 
423 {
424  return s_aLinksColor;
425 }
426 
428 {
429  return s_aVisitedLinksColor;
430 }
431 
433 {
434  return s_aDirectCursorColor;
435 }
436 
438 {
439  return s_aTextGridColor;
440 }
441 
443 {
444  return s_aSpellColor;
445 }
446 
448 {
449  return s_aSmarttagColor;
450 }
451 
453 {
454  return s_aShadowColor;
455 }
456 
458 {
459  return s_aFontColor;
460 }
461 
463 {
464  return s_aFieldShadingsColor;
465 }
466 
468 {
469  return s_aSectionBoundColor;
470 }
471 
473 {
474  return s_aPageBreakColor;
475 }
476 
478 {
480 }
481 
483 {
485 
487  s_aDocBoundColor = aValue.nColor;
489  if(aValue.bIsVisible)
491 
493 
494  aValue = rConfig.GetColorValue(svtools::OBJECTBOUNDARIES);
495  s_aObjectBoundColor = aValue.nColor;
496  if(aValue.bIsVisible)
498 
499  aValue = rConfig.GetColorValue(svtools::TABLEBOUNDARIES);
500  s_aTableBoundColor = aValue.nColor;
501  if(aValue.bIsVisible)
503 
504  aValue = rConfig.GetColorValue(svtools::WRITERIDXSHADINGS);
505  s_aIndexShadingsColor = aValue.nColor;
506  if(aValue.bIsVisible)
508 
509  aValue = rConfig.GetColorValue(svtools::LINKS);
510  s_aLinksColor = aValue.nColor;
511  if(aValue.bIsVisible)
513 
514  aValue = rConfig.GetColorValue(svtools::LINKSVISITED);
515  s_aVisitedLinksColor = aValue.nColor;
516  if(aValue.bIsVisible)
518 
519  aValue = rConfig.GetColorValue(svtools::SHADOWCOLOR);
520  s_aShadowColor = aValue.nColor;
521  if(aValue.bIsVisible)
523 
525 
527 
529 
531 
533 
535  s_aFieldShadingsColor = aValue.nColor;
536  if(aValue.bIsVisible)
538 
540  s_aSectionBoundColor = aValue.nColor;
541  if(aValue.bIsVisible)
543 
544  aValue = rConfig.GetColorValue(svtools::WRITERPAGEBREAKS);
545  s_aPageBreakColor = aValue.nColor;
546 
549 
551 }
552 
553 void SwViewOption::SetAppearanceFlag(ViewOptFlags nFlag, bool bSet, bool bSaveInConfig )
554 {
555  if(bSet)
556  s_nAppearanceFlags |= nFlag;
557  else
558  s_nAppearanceFlags &= ~nFlag;
559  if(!bSaveInConfig)
560  return;
561 
562  //create an editable svtools::ColorConfig and store the change
563  svtools::EditableColorConfig aEditableConfig;
564  struct FlagToConfig_Impl
565  {
566  ViewOptFlags nFlag;
568  };
569  static const FlagToConfig_Impl aFlags[] =
570  {
581  };
582  sal_uInt16 nPos = 0;
583  while(aFlags[nPos].nFlag != ViewOptFlags::NONE)
584  {
585  if(nFlag & aFlags[nPos].nFlag)
586  {
587  svtools::ColorConfigValue aValue = aEditableConfig.GetColorValue(aFlags[nPos].eEntry);
588  aValue.bIsVisible = bSet;
589  aEditableConfig.SetColorValue(aFlags[nPos].eEntry, aValue);
590  }
591  nPos++;
592  }
593 }
594 
596 {
597  return bool(s_nAppearanceFlags & nFlag);
598 }
599 
600 namespace{
601 rtl::Reference<comphelper::ConfigurationListener> const & getWCOptionListener()
602 {
603  static rtl::Reference<comphelper::ConfigurationListener> xListener(new comphelper::ConfigurationListener("/org.openoffice.Office.Writer/Cursor/Option"));
604  return xListener;
605 }
606 }
607 
609 {
610  static comphelper::ConfigurationListenerProperty<bool> gIgnoreProtectedArea(getWCOptionListener(), "IgnoreProtectedArea");
611  return gIgnoreProtectedArea.get();
612 }
613 
614 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
static bool IsAppearanceFlag(ViewOptFlags nFlag)
Definition: viewopt.cxx:595
bool m_bTest4
Definition: viewopt.hxx:190
bool m_bTest6
Definition: viewopt.hxx:192
bool mbViewLayoutBookMode
Definition: viewopt.hxx:173
OutDevType GetOutDevType() const
static Color & GetFieldShadingsColor()
Definition: viewopt.cxx:462
const Color & GetRetoucheColor() const
Definition: viewopt.hxx:578
void Right(const tools::Long nRight)
Definition: swrect.hxx:200
static Color s_aSectionBoundColor
Definition: viewopt.hxx:145
bool IsTest4() const
Definition: viewopt.hxx:497
static SvxAutoCorrCfg & Get()
bool m_bTest10
Definition: viewopt.hxx:195
ViewOptFlags
Definition: viewopt.hxx:113
bool m_bTest1
Definition: viewopt.hxx:187
bool m_bTest3
Definition: viewopt.hxx:189
ViewOptCoreFlags2 m_nCore2Options
Definition: viewopt.hxx:156
void setWidth(tools::Long nWidth)
static Color s_aLinksColor
Definition: viewopt.hxx:138
static Color & GetHeaderFooterMarkColor()
Definition: viewopt.cxx:477
bool mbBrowseMode
Definition: viewopt.hxx:171
void Left(const tools::Long nLeft)
Definition: swrect.hxx:195
bool m_bShowPlaceHolderFields
Definition: viewopt.hxx:175
constexpr::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
bool IsTest10() const
Definition: viewopt.hxx:502
bool IsEqualFlags(const SwViewOption &rOpt) const
Definition: viewopt.cxx:66
static bool IsAutoCompleteWords()
Definition: viewopt.cxx:333
constexpr OUStringLiteral PERCENT(u"Percent")
static Color & GetTextGridColor()
Definition: viewopt.cxx:437
void SetColorValue(ColorConfigEntry eEntry, const ColorConfigValue &rValue)
static Color & GetLinksColor()
Definition: viewopt.cxx:422
bool mbBookView
Definition: viewopt.hxx:172
RndStdIds GetDefaultAnchorType()
Definition: viewopt.cxx:377
bool IsTest8() const
Definition: viewopt.hxx:501
static Color s_aTableBoundColor
Definition: viewopt.hxx:135
static Color s_aFontColor
Definition: viewopt.hxx:136
static Color & GetSmarttagColor()
Definition: viewopt.cxx:447
Of course Writer needs its own rectangles.
Definition: swrect.hxx:35
static ViewOptFlags s_nAppearanceFlags
Definition: viewopt.hxx:151
static sal_uInt16 s_nPixelTwips
Definition: viewopt.hxx:152
SwFillMode m_nShadowCursorFillMode
Definition: viewopt.hxx:165
bool m_bStarOneSetting
Definition: viewopt.hxx:167
static sal_uInt16 GetPostItsWidth(const OutputDevice *pOut)
Definition: viewopt.cxx:138
static void Init(const OutputDevice *pWin)
Definition: viewopt.cxx:325
static Color s_aDocBoundColor
Definition: viewopt.hxx:132
short m_nDivisionX
Definition: viewopt.hxx:161
short GetDivisionX() const
Definition: viewopt.hxx:444
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
bool getBrowseMode() const
Definition: viewopt.hxx:472
short GetDivisionY() const
Definition: viewopt.hxx:446
ViewOptFlags2 m_nUIOptions
Definition: viewopt.hxx:157
static bool IsFuzzing()
void Width(tools::Long nNew)
Definition: swrect.hxx:187
static Color & GetVisitedLinksColor()
Definition: viewopt.cxx:427
SvxSwAutoFormatFlags & GetSwFlags()
SwFillMode
Definition: crstate.hxx:28
static Color s_aAppBackgroundColor
Definition: viewopt.hxx:134
static Color & GetAppBackgroundColor()
Definition: viewopt.cxx:407
static Color & GetSectionBoundColor()
Definition: viewopt.cxx:467
#define HTML_CFG_WRITER
void DrawRect(const tools::Rectangle &rRect)
static Color s_aVisitedLinksColor
Definition: viewopt.hxx:139
static SvxHtmlOptions & Get()
bool m_bSelectionInReadonly
Definition: viewopt.hxx:169
bool IsShowOutlineContentVisibilityButton() const
Definition: viewopt.cxx:99
OUTDEV_PRINTER
static void SetAppearanceFlag(ViewOptFlags nFlag, bool bSet, bool bSaveInConfig=false)
Definition: viewopt.cxx:553
sal_uInt16 mnViewLayoutColumns
Definition: viewopt.hxx:160
void SetLineColor()
static Color s_aFieldShadingsColor
Definition: viewopt.hxx:144
WRITERSCRIPTINDICATOR
#define SW_MOD()
Definition: swmodule.hxx:255
OUString m_sSymbolFont
Definition: viewopt.hxx:154
static Color s_aDocColor
Definition: viewopt.hxx:131
ViewOptFlags1
Definition: viewopt.hxx:38
static Color & GetShadowColor()
Definition: viewopt.cxx:452
sal_uInt8 m_nPagePreviewCol
Definition: viewopt.hxx:164
SvxZoomType m_eZoom
Definition: viewopt.hxx:181
static void DrawRectPrinter(OutputDevice *pOut, const SwRect &rRect)
Definition: viewopt.cxx:126
void SetOnlineSpell(bool b)
Definition: viewopt.cxx:339
#define TBL_DEST_CELL
Definition: viewopt.hxx:108
bool IsFormView() const
Definition: viewopt.hxx:469
ViewOptFlags1 m_nCoreOptions
Definition: viewopt.hxx:155
SvxAutoCorrect * GetAutoCorrect()
short m_nDivisionY
Definition: viewopt.hxx:162
Color m_aRetouchColor
Definition: viewopt.hxx:158
HTMLMODE_ON
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
Definition: viewopt.cxx:354
void SetFillColor()
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_GRAY
const Color & GetLineColor() const
LINESTYLE_SINGLE
#define HTML_CFG_MSIE
static Color & GetObjectBoundariesColor()
Definition: viewopt.cxx:402
Size m_aSnapSize
Definition: viewopt.hxx:159
ColorConfigEntryCount
static void ApplyColorConfigValues(const svtools::ColorConfig &rConfig)
Definition: viewopt.cxx:482
bool IsTest2() const
Definition: viewopt.hxx:495
static void PaintPostIts(OutputDevice *pOut, const SwRect &rRect, bool bIsScript)
Definition: viewopt.cxx:144
WRITERHEADERFOOTERMARK
bool m_bTest8
Definition: viewopt.hxx:194
static Color & GetDirectCursorColor()
Definition: viewopt.cxx:432
static Color & GetPageBreakColor()
Definition: viewopt.cxx:472
bool IsTest5() const
Definition: viewopt.hxx:498
sal_uInt8 GetPagePrevRow() const
Definition: viewopt.hxx:459
WRITERFIELDSHADINGS
Point PixelToLogic(const Point &rDevicePt) const
bool m_bIdle
Definition: viewopt.hxx:176
void Bottom(const tools::Long nBottom)
Definition: swrect.hxx:209
static Color & GetIndexShadingsColor()
Definition: viewopt.cxx:417
bool IsTest7() const
Definition: viewopt.hxx:500
static Color s_aDirectCursorColor
Definition: viewopt.hxx:140
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:494
static Color s_aHeaderFooterMarkColor
Definition: viewopt.hxx:149
bool m_bTest7
Definition: viewopt.hxx:193
#define HTML_CFG_NS40
static Color & GetDocBoundariesColor()
Definition: viewopt.cxx:397
sal_uInt16 m_nZoom
Definition: viewopt.hxx:180
static Color & GetFontColor()
Definition: viewopt.cxx:457
static Color s_aShadowColor
Definition: viewopt.hxx:148
bool mbHideWhitespaceMode
Definition: viewopt.hxx:174
bool mbFormView
Definition: viewopt.hxx:170
void Top(const tools::Long nTop)
Definition: swrect.hxx:204
tools::Long GetTextWidth(const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, vcl::TextLayoutCache const *=nullptr, SalLayoutGlyphs const *const pLayoutCache=nullptr) const
const ColorConfigValue & GetColorValue(ColorConfigEntry eEntry) const
static Color & GetDocColor()
Definition: viewopt.cxx:392
sal_uInt8 m_nTableDestination
Definition: viewopt.hxx:183
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_BLACK
bool IsTest6() const
Definition: viewopt.hxx:499
WRITERSECTIONBOUNDARIES
static Color s_aSmarttagColor
Definition: viewopt.hxx:143
static Color s_aIndexShadingsColor
Definition: viewopt.hxx:137
bool IsTreatSubOutlineLevelsAsContent() const
Definition: viewopt.cxx:105
static bool IsIgnoreProtectedArea()
Definition: viewopt.cxx:608
SwViewOption & operator=(const SwViewOption &rOpt)
Definition: viewopt.cxx:278
void setHeight(tools::Long nHeight)
sal_Int32 m_nDefaultAnchor
Definition: viewopt.hxx:177
HTMLMODE_FULL_STYLES
sal_uInt16 GetExportMode() const
static Color & GetSpellColor()
Definition: viewopt.cxx:442
RndStdIds
static Color s_aPageBreakColor
Definition: viewopt.hxx:146
static Color s_aTextGridColor
Definition: viewopt.hxx:141
SvxZoomType
static Color s_aObjectBoundColor
Definition: viewopt.hxx:133
sal_uInt8 m_nPagePreviewRow
Definition: viewopt.hxx:163
bool m_bTest5
Definition: viewopt.hxx:191
static Color s_aSpellColor
Definition: viewopt.hxx:142
static void DrawRect(OutputDevice *pOut, const SwRect &rRect,::Color nCol)
Definition: viewopt.cxx:111
bool IsTest3() const
Definition: viewopt.hxx:496
WRITERDIRECTCURSOR
bool m_bReadonly
Definition: viewopt.hxx:166
void Height(tools::Long nNew)
Definition: swrect.hxx:191
static Color & GetTableBoundariesColor()
Definition: viewopt.cxx:412
bool m_bTest2
Definition: viewopt.hxx:188
sal_uInt8 GetPagePrevCol() const
Definition: viewopt.hxx:461
bool m_bIsPagePreview
Definition: viewopt.hxx:168
static Color s_aScriptIndicatorColor
Definition: viewopt.hxx:147
sal_uInt16 nPos
const Color & GetFillColor() const
const LocaleDataWrapper & GetLocaleData()