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