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 = o3tl::narrowing<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  switch ( SvxHtmlOptions::GetExportMode() )
361  {
362  case HTML_CFG_MSIE:
363  nRet |= HTMLMODE_FULL_STYLES;
364  break;
365  case HTML_CFG_NS40:
366  // no special features for this browser
367  break;
368  case HTML_CFG_WRITER:
369  nRet |= HTMLMODE_FULL_STYLES;
370  break;
371  }
372  }
373  return nRet;
374 }
375 
377 {
378  switch ( m_nDefaultAnchor )
379  {
380  case 0:
381  return RndStdIds::FLY_AT_PARA; //0
382  case 1:
383  return RndStdIds::FLY_AT_CHAR; //4
384  case 2:
385  return RndStdIds::FLY_AS_CHAR; //1
386  default:
387  return RndStdIds::FLY_AT_CHAR; //4
388  }//switch
389 }
390 
392 {
393  return s_aDocColor;
394 }
395 
397 {
398  return s_aDocBoundColor;
399 }
400 
402 {
403  return s_aObjectBoundColor;
404 }
405 
407 {
408  return s_aAppBackgroundColor;
409 }
410 
412 {
413  return s_aTableBoundColor;
414 }
415 
417 {
418  return s_aIndexShadingsColor;
419 }
420 
422 {
423  return s_aLinksColor;
424 }
425 
427 {
428  return s_aVisitedLinksColor;
429 }
430 
432 {
433  return s_aDirectCursorColor;
434 }
435 
437 {
438  return s_aTextGridColor;
439 }
440 
442 {
443  return s_aSpellColor;
444 }
445 
447 {
448  return s_aSmarttagColor;
449 }
450 
452 {
453  return s_aShadowColor;
454 }
455 
457 {
458  return s_aFontColor;
459 }
460 
462 {
463  return s_aFieldShadingsColor;
464 }
465 
467 {
468  return s_aSectionBoundColor;
469 }
470 
472 {
473  return s_aPageBreakColor;
474 }
475 
477 {
479 }
480 
482 {
484 
486  s_aDocBoundColor = aValue.nColor;
488  if(aValue.bIsVisible)
490 
492 
493  aValue = rConfig.GetColorValue(svtools::OBJECTBOUNDARIES);
494  s_aObjectBoundColor = aValue.nColor;
495  if(aValue.bIsVisible)
497 
498  aValue = rConfig.GetColorValue(svtools::TABLEBOUNDARIES);
499  s_aTableBoundColor = aValue.nColor;
500  if(aValue.bIsVisible)
502 
503  aValue = rConfig.GetColorValue(svtools::WRITERIDXSHADINGS);
504  s_aIndexShadingsColor = aValue.nColor;
505  if(aValue.bIsVisible)
507 
508  aValue = rConfig.GetColorValue(svtools::LINKS);
509  s_aLinksColor = aValue.nColor;
510  if(aValue.bIsVisible)
512 
513  aValue = rConfig.GetColorValue(svtools::LINKSVISITED);
514  s_aVisitedLinksColor = aValue.nColor;
515  if(aValue.bIsVisible)
517 
518  aValue = rConfig.GetColorValue(svtools::SHADOWCOLOR);
519  s_aShadowColor = aValue.nColor;
520  if(aValue.bIsVisible)
522 
524 
526 
528 
530 
532 
534  s_aFieldShadingsColor = aValue.nColor;
535  if(aValue.bIsVisible)
537 
539  s_aSectionBoundColor = aValue.nColor;
540  if(aValue.bIsVisible)
542 
543  aValue = rConfig.GetColorValue(svtools::WRITERPAGEBREAKS);
544  s_aPageBreakColor = aValue.nColor;
545 
548 
550 }
551 
552 void SwViewOption::SetAppearanceFlag(ViewOptFlags nFlag, bool bSet, bool bSaveInConfig )
553 {
554  if(bSet)
555  s_nAppearanceFlags |= nFlag;
556  else
557  s_nAppearanceFlags &= ~nFlag;
558  if(!bSaveInConfig)
559  return;
560 
561  //create an editable svtools::ColorConfig and store the change
562  svtools::EditableColorConfig aEditableConfig;
563  struct FlagToConfig_Impl
564  {
565  ViewOptFlags nFlag;
567  };
568  static const FlagToConfig_Impl aFlags[] =
569  {
580  };
581  sal_uInt16 nPos = 0;
582  while(aFlags[nPos].nFlag != ViewOptFlags::NONE)
583  {
584  if(nFlag & aFlags[nPos].nFlag)
585  {
586  svtools::ColorConfigValue aValue = aEditableConfig.GetColorValue(aFlags[nPos].eEntry);
587  aValue.bIsVisible = bSet;
588  aEditableConfig.SetColorValue(aFlags[nPos].eEntry, aValue);
589  }
590  nPos++;
591  }
592 }
593 
595 {
596  return bool(s_nAppearanceFlags & nFlag);
597 }
598 
599 namespace{
600 rtl::Reference<comphelper::ConfigurationListener> const & getWCOptionListener()
601 {
602  static rtl::Reference<comphelper::ConfigurationListener> xListener(new comphelper::ConfigurationListener("/org.openoffice.Office.Writer/Cursor/Option"));
603  return xListener;
604 }
605 }
606 
608 {
609  static comphelper::ConfigurationListenerProperty<bool> gIgnoreProtectedArea(getWCOptionListener(), "IgnoreProtectedArea");
610  return gIgnoreProtectedArea.get();
611 }
612 
613 /* 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:594
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:461
const Color & GetRetoucheColor() const
Definition: viewopt.hxx:578
void Right(const tools::Long nRight)
Definition: swrect.hxx:199
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:476
bool mbBrowseMode
Definition: viewopt.hxx:171
void Left(const tools::Long nLeft)
Definition: swrect.hxx:194
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
RndStdIds GetDefaultAnchorType() const
Definition: viewopt.cxx:376
constexpr OUStringLiteral PERCENT(u"Percent")
static Color & GetTextGridColor()
Definition: viewopt.cxx:436
void SetColorValue(ColorConfigEntry eEntry, const ColorConfigValue &rValue)
static Color & GetLinksColor()
Definition: viewopt.cxx:421
bool mbBookView
Definition: viewopt.hxx:172
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:446
Of course Writer needs its own rectangles.
Definition: swrect.hxx:34
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
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:186
static Color & GetVisitedLinksColor()
Definition: viewopt.cxx:426
SvxSwAutoFormatFlags & GetSwFlags()
SwFillMode
Definition: crstate.hxx:28
static Color s_aAppBackgroundColor
Definition: viewopt.hxx:134
static Color & GetAppBackgroundColor()
Definition: viewopt.cxx:406
static Color & GetSectionBoundColor()
Definition: viewopt.cxx:466
#define HTML_CFG_WRITER
void DrawRect(const tools::Rectangle &rRect)
static Color s_aVisitedLinksColor
Definition: viewopt.hxx:139
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:552
sal_uInt16 mnViewLayoutColumns
Definition: viewopt.hxx:160
void SetLineColor()
static Color s_aFieldShadingsColor
Definition: viewopt.hxx:144
WRITERSCRIPTINDICATOR
#define SW_MOD()
Definition: swmodule.hxx:256
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:451
tools::Long GetTextWidth(const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, vcl::text::TextLayoutCache const *=nullptr, SalLayoutGlyphs const *const pLayoutCache=nullptr) const
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:401
Size m_aSnapSize
Definition: viewopt.hxx:159
ColorConfigEntryCount
static void ApplyColorConfigValues(const svtools::ColorConfig &rConfig)
Definition: viewopt.cxx:481
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:431
static Color & GetPageBreakColor()
Definition: viewopt.cxx:471
bool IsTest5() const
Definition: viewopt.hxx:498
sal_uInt8 GetPagePrevRow() const
Definition: viewopt.hxx:459
WRITERFIELDSHADINGS
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
bool m_bIdle
Definition: viewopt.hxx:176
void Bottom(const tools::Long nBottom)
Definition: swrect.hxx:208
static Color & GetIndexShadingsColor()
Definition: viewopt.cxx:416
bool IsTest7() const
Definition: viewopt.hxx:500
static Color s_aDirectCursorColor
Definition: viewopt.hxx:140
tools::Rectangle SVRect() const
Definition: swrect.hxx:272
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:396
sal_uInt16 m_nZoom
Definition: viewopt.hxx:180
static Color & GetFontColor()
Definition: viewopt.cxx:456
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:203
const ColorConfigValue & GetColorValue(ColorConfigEntry eEntry) const
static Color & GetDocColor()
Definition: viewopt.cxx:391
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:607
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
static Color & GetSpellColor()
Definition: viewopt.cxx:441
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:190
static Color & GetTableBoundariesColor()
Definition: viewopt.cxx:411
bool m_bTest2
Definition: viewopt.hxx:188
sal_uInt16 GetExportMode()
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()