LibreOffice Module sw (master) 1
viewopt.hxx
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#ifndef INCLUDED_SW_INC_VIEWOPT_HXX
21#define INCLUDED_SW_INC_VIEWOPT_HXX
22
23#include <config_feature_desktop.h>
24
25#include <tools/gen.hxx>
26#include <tools/color.hxx>
27
28#include <svx/swframetypes.hxx>
29#include <sfx2/zoomitem.hxx>
30#include "swdllapi.h"
31
32class SwRect;
33class OutputDevice;
34class SwDocShell;
35namespace svtools{ class ColorConfig;}
36enum class SwFillMode;
37
39{
41 bool bTab : 1;
42 bool bBlank : 1;
43 bool bHardBlank : 1;
44 bool bParagraph : 1;
45 bool bLinebreak : 1;
46 bool bPagebreak : 1;
47 bool bColumnbreak : 1;
48 bool bSoftHyph : 1;
49 bool bBookmarks : 1;
50 bool bRef : 1;
51 bool bFieldName : 1;
52 bool bPostits : 1;
53 bool bFieldHidden : 1;
54 bool bCharHidden : 1;
55 bool bGraphic : 1;
56 bool bTable : 1;
57 bool bDraw : 1;
58 bool bControl : 1;
59 bool bCrosshair : 1;
60 bool bSnap : 1;
61 bool bSynchronize : 1;
62 bool bGridVisible : 1;
63 bool bOnlineSpell : 1;
65 bool bShowInlineTooltips : 1; //tooltips on tracked changes
67 bool bPageback : 1;
69 bool bShowChangesInMargin : 1; //tracked deletions in margin
70 bool bShowChangesInMargin2 : 1; //tracked insertions in margin
71
74 , bTab(false)
75 , bBlank(false)
76 , bHardBlank(true)
77 , bParagraph(false)
78 , bLinebreak(false)
79 , bPagebreak(false)
80 , bColumnbreak(false)
81 , bSoftHyph(true)
82 , bBookmarks(false)
83 , bRef(true)
84 , bFieldName(false)
85 , bPostits(true)
86 , bFieldHidden(false)
87 , bCharHidden(false)
88 , bGraphic(true)
89 , bTable(true)
90 , bDraw(true)
91 , bControl(true)
92 , bCrosshair(false)
93 , bSnap(false)
94 , bSynchronize(false)
95 , bGridVisible(false)
96 , bOnlineSpell(false)
98 , bShowInlineTooltips(false)
99 , bViewMetachars(false)
100 , bPageback(true)
102 , bShowChangesInMargin(false)
103 , bShowChangesInMargin2(false)
104 {}
105
106 bool operator==(const ViewOptFlags1& rOther) const
107 {
109 && bTab == rOther.bTab
110 && bBlank == rOther.bBlank
111 && bHardBlank == rOther.bHardBlank
112 && bParagraph == rOther.bParagraph
113 && bLinebreak == rOther.bLinebreak
114 && bPagebreak == rOther.bPagebreak
115 && bColumnbreak == rOther.bColumnbreak
116 && bSoftHyph == rOther.bSoftHyph
117 && bBookmarks == rOther.bBookmarks
118 && bRef == rOther.bRef
119 && bFieldName == rOther.bFieldName
120 && bPostits == rOther.bPostits
121 && bFieldHidden == rOther.bFieldHidden
122 && bCharHidden == rOther.bCharHidden
123 && bGraphic == rOther.bGraphic
124 && bTable == rOther.bTable
125 && bDraw == rOther.bDraw
126 && bControl == rOther.bControl
127 && bCrosshair == rOther.bCrosshair
128 && bSnap == rOther.bSnap
129 && bSynchronize == rOther.bSynchronize
130 && bGridVisible == rOther.bGridVisible
131 && bOnlineSpell == rOther.bOnlineSpell
134 && bViewMetachars == rOther.bViewMetachars
135 && bPageback == rOther.bPageback
139 }
140};
141
143 BlackFont = 0x0001,
144 HiddenPara = 0x0002,
145 SmoothScroll = 0x0004,
146 CursorInProt = 0x0008,
147 PdfExport = 0x0010,
148 Printing = 0x0020,
149};
150namespace o3tl {
151 template<> struct typed_flags<ViewOptCoreFlags2> : is_typed_flags<ViewOptCoreFlags2, 0x003f> {};
152};
153
154enum class ViewOptFlags2 {
155 HRuler = 0x00000400,
156 VScrollbar = 0x00000800,
157 HScrollbar = 0x00001000,
158 VRuler = 0x00004000,
159 AnyRuler = 0x00008000,
160 Modified = 0x00010000,
161 KeepAspectRatio = 0x00020000,
162 GrfKeepZoom = 0x00040000,
163 ContentTips = 0x00100000,
164 ScrollbarTips = 0x00400000,
165 PrintFormat = 0x00800000,
166 ShadowCursor = 0x01000000,
167 VRulerRight = 0x02000000,
168 ResolvedPostits = 0x04000000,
169};
170namespace o3tl {
171 template<> struct typed_flags<ViewOptFlags2> : is_typed_flags<ViewOptFlags2, 0x07d7dc00> {};
172};
173
174// Table background.
175#define TBL_DEST_CELL 0
176#define TBL_DEST_ROW 1
177#define TBL_DEST_TBL 2
178
179// Appearance flags.
180enum class ViewOptFlags {
181 NONE = 0x0000,
182 DocBoundaries = 0x0001,
183 ObjectBoundaries = 0x0002,
184 TableBoundaries = 0x0004,
185 IndexShadings = 0x0008,
186 Links = 0x0010,
187 VisitedLinks = 0x0020,
188 FieldShadings = 0x0040,
189 SectionBoundaries = 0x0080,
190 Shadow = 0x0100,
191};
192namespace o3tl {
193 template<> struct typed_flags<ViewOptFlags> : is_typed_flags<ViewOptFlags, 0x01ff> {};
194}
195
197{
198 SwViewColors();
199 SwViewColors(const svtools::ColorConfig& rConfig);
200 bool operator==(const SwViewColors& rOther) const
201 {
202 return m_aDocColor == rOther.m_aDocColor
207 && m_aFontColor == rOther.m_aFontColor
209 && m_aLinksColor == rOther.m_aLinksColor
212 && m_aSpellColor == rOther.m_aSpellColor
219 && m_aShadowColor == rOther.m_aShadowColor
222 }
223 Color m_aDocColor; // color of document boundaries
224 Color m_aDocBoundColor; // color of document boundaries
225 Color m_aObjectBoundColor; // color of object boundaries
226 Color m_aAppBackgroundColor; // application background
227 Color m_aTableBoundColor; // color of table boundaries
229 Color m_aIndexShadingsColor; // background color of indexes
233 Color m_aSpellColor; // mark color of online spell checking
243};
244
246{
249 OUString m_sThemeName;
250
251 static sal_uInt16 s_nPixelTwips;// 1 Pixel == ? Twips
252
253 OUString m_sSymbolFont; // Symbolfont.
254 ViewOptFlags1 m_nCoreOptions; // Bits for SwViewShell.
255 ViewOptCoreFlags2 m_nCore2Options; // Bits for SwViewShell.
257 Color m_aRetouchColor; // DefaultBackground for BrowseView
258 Size m_aSnapSize; // Describes horizontal and vertical snap.
259 sal_uInt16 mnViewLayoutColumns; // # columns for edit view
260 short m_nDivisionX; // Grid division.
262 sal_uInt8 m_nPagePreviewRow; // Page Preview Row/Columns.
263 sal_uInt8 m_nPagePreviewCol; // Page Preview Row/Columns.
264 SwFillMode m_nShadowCursorFillMode; // FillMode for ShadowCursor.
265 bool m_bReadonly : 1; // Readonly-Doc.
266 bool m_bStarOneSetting : 1;// Prevent from UI automatics (no scrollbars in readonly documents).
267 bool m_bIsPagePreview : 1; // The preview mustn't print field/footnote/... shadings.
268 bool m_bSelectionInReadonly : 1; // Determines whether selection is switched on in readonly documents.
269 bool mbFormView : 1;
270 bool mbBrowseMode : 1;
271 bool mbBookView : 1; // View mode for page preview.
272 bool mbViewLayoutBookMode : 1; // Book view mode for edit view.
273 bool mbHideWhitespaceMode : 1; // Hide header, footer, and pagebreak.
274 bool m_bShowPlaceHolderFields : 1; // Only used in printing!
275 mutable bool m_bIdle;
276 sal_Int32 m_nDefaultAnchor; // GetDefaultAnchorType() to convert int to RndStdIds
277
278 // Scale
279 sal_uInt16 m_nZoom; // In percent.
280 SvxZoomType m_eZoom; // 'enum' for zoom.
281
282 sal_uInt8 m_nTableDestination; // Destination for table background.
283
284#ifdef DBG_UTIL
285 // Corresponds to statements in ui/config/cfgvw.src.
286 bool m_bTest1 :1; // Test-flag "Layout not loading"
287 bool m_bTest2 :1; // Test-flag "WYSIWYG++"
288 bool m_bTest3 :1; // Test-flag ""
289 bool m_bTest4 :1; // Test-flag "WYSIWYG debug"
290 bool m_bTest5 :1; // Test-flag "No idle format"
291 bool m_bTest6 :1; // Test-flag "No screen adj"
292 bool m_bTest7 :1; // Test-flag "win format"
293 bool m_bTest8 :1; // Test-flag ""
294 bool m_bTest10 :1; // Test-Flag "Format by Input"
295#endif
296
297public:
298 SwViewOption(); // CTOR
301
302 static void Init(const OutputDevice* pWin); // Initializing of static data.
303
304 inline void SetUIOptions( const SwViewOption& );
305
306 void SetColorConfig(const SwViewColors& rColorConfig)
307 {
308 m_aColorConfig = rColorConfig;
309 }
310
312 {
313 return m_aColorConfig;
314 }
315
316 void SetThemeName(const OUString& rThemeName)
317 {
318 m_sThemeName = rThemeName;
319 }
320
321 OUString GetThemeName() const
322 {
323 return m_sThemeName;
324 }
325
326 static void SetInitialColorConfig(const SwViewColors& rColorConfig)
327 {
328 s_aInitialColorConfig = rColorConfig;
329 }
330
331 // Options from nCoreOptions
332 bool IsIdle() const
333 { return m_bIdle; }
334
335 // Logically this is a const function since it does not modify the viewoptions
336 // but only effects idle formatting. Of course that member is already implement
337 // in the wrong place here... Also currently there are many const modifying casts in the code
338 // just to call this function on otherwise const objects. Thus declaring it as const now.
339 void SetIdle( bool b ) const
340 { m_bIdle = b; }
341
342 bool IsTab(bool bHard = false) const
343 {
344 return !m_bReadonly && m_nCoreOptions.bTab && (m_nCoreOptions.bViewMetachars || bHard);
345 }
346 void SetTab( bool b )
347 {
348 m_nCoreOptions.bTab = b;
349 }
350
351 bool IsBlank(bool bHard = false) const
352 {
353 return !m_bReadonly && m_nCoreOptions.bBlank && (m_nCoreOptions.bViewMetachars || bHard);
354 }
355 void SetBlank(bool b)
356 {
357 m_nCoreOptions.bBlank = b;
358 }
359
360 bool IsHardBlank() const
361 {
362 return !m_bReadonly && (m_nCoreOptions.bHardBlank);
363 }
364 void SetHardBlank( bool b )
365 {
366 m_nCoreOptions.bHardBlank = b;
367 }
368
369 bool IsParagraph(bool bHard = false) const
370 {
371 return !m_bReadonly && m_nCoreOptions.bParagraph &&
372 (m_nCoreOptions.bViewMetachars || bHard);
373 }
374 void SetParagraph( bool b )
375 {
376 m_nCoreOptions.bParagraph = b;
377 }
378
379 void SetShowBookmarks(bool const b)
380 {
381 m_nCoreOptions.bBookmarks = b;
382 }
383 bool IsShowBookmarks(bool const bHard = false) const
384 {
385 return !m_bReadonly && (m_nCoreOptions.bBookmarks)
386 && (bHard || IsFieldShadings());
387 }
388
389 bool IsLineBreak(bool bHard = false) const
390 {
391 return !m_bReadonly && (m_nCoreOptions.bLinebreak) &&
392 ((m_nCoreOptions.bViewMetachars) || bHard);
393 }
394 void SetLineBreak( bool b )
395 {
396 m_nCoreOptions.bLinebreak = b;
397 }
398
399 void SetPageBreak( bool b )
400 {
401 m_nCoreOptions.bPagebreak = b;
402 }
403
404 void SetColumnBreak( bool b)
405 {
406 m_nCoreOptions.bColumnbreak = b;
407 }
408
409 bool IsSoftHyph() const
410 { return !m_bReadonly && (m_nCoreOptions.bSoftHyph); }
411
412 void SetSoftHyph( bool b )
413 {
414 m_nCoreOptions.bSoftHyph = b;
415 }
416
417 bool IsFieldName() const
418 { return !m_bReadonly && (m_nCoreOptions.bFieldName); }
419
420 void SetFieldName( bool b )
421 {
422 m_nCoreOptions.bFieldName = b;
423 }
424
425 bool IsPostIts() const
426 {
427 return m_nCoreOptions.bPostits;
428 }
429
430 void SetPostIts( bool b )
431 {
432 m_nCoreOptions.bPostits = b;
433 }
434
435 bool IsResolvedPostIts() const
436 { return bool(m_nUIOptions & ViewOptFlags2::ResolvedPostits); }
437
438 void SetResolvedPostIts( bool b )
439 { SetUIOption(b, ViewOptFlags2::ResolvedPostits); }
440
441 void PaintPostIts( OutputDevice *pOut, const SwRect &rRect,
442 bool bIsScript ) const;
443 static sal_uInt16 GetPostItsWidth( const OutputDevice *pOut );
444
445 //show/hide tooltips on tracked changes
447 {
448 return m_nCoreOptions.bShowInlineTooltips;
449 }
450
452 { m_nCoreOptions.bShowInlineTooltips = b; }
453
454 //show/hide tracked deletions in text
456 {
457 return m_nCoreOptions.bShowChangesInMargin;
458 }
459
461 {
462 m_nCoreOptions.bShowChangesInMargin = b;
463 }
464
465 //show/hide tracked insertions in text
467 { return m_nCoreOptions.bShowChangesInMargin2; }
468
470 { m_nCoreOptions.bShowChangesInMargin2 = b; }
471
472 //show/hide interactive header/footer on top/bottom of pages
474 { return m_nCoreOptions.bUseHeaderFooterMenu; }
476 { m_nCoreOptions.bUseHeaderFooterMenu = b; }
477
478 //show/hide outline content visibility button
479 bool IsShowOutlineContentVisibilityButton() const;
481 { m_nCoreOptions.bShowOutlineContentVisibilityButton = b; }
482
483 bool IsTreatSubOutlineLevelsAsContent() const;
485 { m_nCoreOptions.bTreatSubOutlineLevelsAsContent = b; }
486
487 bool IsShowHiddenChar(bool bHard = false) const
488 { return !m_bReadonly && m_nCoreOptions.bCharHidden &&
489 (m_nCoreOptions.bViewMetachars || bHard); }
490
491 void SetShowHiddenChar( bool b )
492 { m_nCoreOptions.bCharHidden = b; }
493
494 bool IsShowHiddenField() const
495 { return !m_bReadonly && m_nCoreOptions.bFieldHidden; }
496 void SetShowHiddenField( bool b )
497 { m_nCoreOptions.bFieldHidden = b; }
498
499 bool IsGraphic() const
500 { return m_nCoreOptions.bGraphic; }
501 void SetGraphic( bool b )
502 { m_nCoreOptions.bGraphic = b; }
503
504 bool IsPageBack() const
505 { return m_nCoreOptions.bPageback; }
506 void SetPageBack( bool b )
507 { m_nCoreOptions.bPageback = b; }
508
509 bool IsTable() const
510 { return m_nCoreOptions.bTable; }
511 void SetTable( bool b )
512 { m_nCoreOptions.bTable = b; }
513
514 bool IsDraw() const
515 { return m_nCoreOptions.bDraw; }
516 void SetDraw( bool b )
517 { m_nCoreOptions.bDraw = b; }
518
519 bool IsControl() const
520 { return m_nCoreOptions.bControl; }
521 void SetControl( bool b )
522 { m_nCoreOptions.bControl = b; }
523
524 bool IsSnap() const
525 { return m_nCoreOptions.bSnap; }
526 void SetSnap( bool b )
527 { m_nCoreOptions.bSnap = b; }
528
529 void SetSnapSize( Size const &rSz ){ m_aSnapSize = rSz; }
530 const Size &GetSnapSize() const { return m_aSnapSize; }
531
532 bool IsGridVisible() const
533 { return !m_bReadonly && m_nCoreOptions.bGridVisible; }
534 void SetGridVisible( bool b )
535 { m_nCoreOptions.bGridVisible = b; }
536
537 bool IsOnlineSpell() const
538 {
539 return !m_bReadonly && m_nCoreOptions.bOnlineSpell;
540 }
541 void SetOnlineSpell( bool b )
542 {
543 m_nCoreOptions.bOnlineSpell = b;
544 }
545
546 bool IsViewMetaChars() const
547 { return !m_bReadonly && m_nCoreOptions.bViewMetachars; }
548 void SetViewMetaChars( bool b)
549 { m_nCoreOptions.bViewMetachars = b; }
550
551 bool IsSynchronize() const
552 { return m_nCoreOptions.bSynchronize; }
553 void SetSynchronize( bool b )
554 { m_nCoreOptions.bSynchronize = b; }
555
556 bool IsCrossHair() const
557 { return m_nCoreOptions.bCrosshair; }
558 void SetCrossHair( bool b )
559 { m_nCoreOptions.bCrosshair = b; }
560
561 // Options from nCore2Options
562 bool IsBlackFont() const
563 {return bool(m_nCore2Options & ViewOptCoreFlags2::BlackFont); }
564
565 void SetBlackFont(bool b)
566 { SetCore2Option(b, ViewOptCoreFlags2::BlackFont); }
567
568 bool IsShowHiddenPara() const
569 {return bool(m_nCore2Options & ViewOptCoreFlags2::HiddenPara); }
570
571 void SetShowHiddenPara(bool b)
572 { SetCore2Option(b, ViewOptCoreFlags2::HiddenPara); }
573
574 bool IsSmoothScroll() const
575 {return bool(m_nCore2Options & ViewOptCoreFlags2::SmoothScroll); }
576
577 void SetSmoothScroll(bool b)
578 { SetCore2Option(b, ViewOptCoreFlags2::SmoothScroll); }
579
581 {return bool(m_nCore2Options & ViewOptCoreFlags2::CursorInProt); }
582
584 { SetCore2Option(b, ViewOptCoreFlags2::CursorInProt); }
585
586 static bool IsIgnoreProtectedArea();
587
588 bool IsPDFExport() const
589 {return bool(m_nCore2Options & ViewOptCoreFlags2::PdfExport); }
590
591 void SetPDFExport(bool b)
592 { SetCore2Option(b, ViewOptCoreFlags2::PdfExport); }
593
594 bool IsPrinting() const
595 {return bool(m_nCore2Options & ViewOptCoreFlags2::Printing); }
596
597 void SetPrinting(bool b)
598 { SetCore2Option(b, ViewOptCoreFlags2::Printing); }
599
601 {
602 if (b)
603 m_nCore2Options |= f;
604 else
605 m_nCore2Options &= ~f;
606 }
607
608 short GetDivisionX() const { return m_nDivisionX; }
609 void SetDivisionX( short n ){ m_nDivisionX = n; }
610 short GetDivisionY() const { return m_nDivisionY; }
611 void SetDivisionY( short n ){ m_nDivisionY = n; }
612
613 // Default margin left and above document: 284 twips == 5.0 mm.
614 static constexpr sal_uInt16 defDocumentBorder = 284;
615 // Default gap between pages: 284 twips == 5.0 mm.
616 static constexpr sal_uInt16 defGapBetweenPages = 284;
617 // Minimum edge-to-text distance: 22 twips == 0.4 mm.
618 static constexpr sal_uInt16 minGapBetweenPages = 22;
619
620 sal_uInt16 GetDocumentBorder() const { return IsWhitespaceHidden() ? minGapBetweenPages : defDocumentBorder; }
621 sal_uInt16 GetGapBetweenPages() const { return IsWhitespaceHidden() ? minGapBetweenPages : defGapBetweenPages; }
622
623 sal_uInt8 GetPagePrevRow() const { return m_nPagePreviewRow; }
624 void SetPagePrevRow( sal_uInt8 n ) { m_nPagePreviewRow = n; }
625 sal_uInt8 GetPagePrevCol() const { return m_nPagePreviewCol; }
626 void SetPagePrevCol( sal_uInt8 n ) { m_nPagePreviewCol = n; }
627 bool IsReadonly() const { return m_bReadonly; }
628 void SetReadonly(bool bSet) { m_bReadonly = bSet; }
629
630 bool IsSelectionInReadonly() const {return m_bSelectionInReadonly;}
631 void SetSelectionInReadonly(bool bSet) {m_bSelectionInReadonly = bSet;}
632
633 bool IsFormView() const { return mbFormView; }
634 void SetFormView( bool bSet ) { mbFormView = bSet; }
635
636 bool getBrowseMode() const { return mbBrowseMode; }
637 void setBrowseMode(bool bSet) { mbBrowseMode = bSet; }
638 bool IsPagePrevBookview() const { return mbBookView; }
639 void SetPagePrevBookview(bool bSet) { mbBookView = bSet; }
640
641 static bool IsAutoCompleteWords();
642
643 bool IsViewLayoutBookMode() const { return mbViewLayoutBookMode; }
644 void SetViewLayoutBookMode( bool bNew ) { mbViewLayoutBookMode = bNew; }
645 sal_uInt16 GetViewLayoutColumns() const { return mnViewLayoutColumns; }
646 void SetViewLayoutColumns( sal_uInt16 nNew ) { mnViewLayoutColumns = nNew; }
647 bool IsHideWhitespaceMode() const { return mbHideWhitespaceMode; }
648 void SetHideWhitespaceMode( bool bMode ) { mbHideWhitespaceMode = bMode; }
649
651 bool CanHideWhitespace() const { return !IsMultipageView(); }
652 bool IsWhitespaceHidden() const { return IsHideWhitespaceMode() && !IsMultipageView(); }
653 bool IsMultipageView() const { return IsViewLayoutBookMode() ||
654 GetViewLayoutColumns() == 0; }
655
656#ifdef DBG_UTIL
657 // Correspond to statements in ui/config/cfgvw.src.
658 bool IsTest1() const { return m_bTest1; }
659 bool IsTest2() const { return m_bTest2; }
660 bool IsTest3() const { return m_bTest3; }
661 bool IsTest4() const { return m_bTest4; }
662 bool IsTest5() const { return m_bTest5; }
663 bool IsTest6() const { return m_bTest6; }
664 bool IsTest7() const { return m_bTest7; }
665 bool IsTest8() const { return m_bTest8; }
666 bool IsTest10() const { return m_bTest10; }
667#endif
668
669 sal_uInt16 GetZoom() const { return m_nZoom; }
670 void SetZoom( sal_uInt16 n ){ m_nZoom = n; }
671
672 static void DrawRect( OutputDevice* pOut, const SwRect &rRect, ::Color nCol );
673 static void DrawRectPrinter( OutputDevice* pOut, const SwRect& rRect );
674
675 SwViewOption& operator=( const SwViewOption &rOpt );
676
677 // Compare methods.
678 bool IsEqualFlags ( const SwViewOption &rOpt ) const;
679 inline bool operator == ( const SwViewOption &rOpt ) const;
680 bool operator != ( const SwViewOption &rOpt ) const { return !(*this == rOpt); }
681
682 // Options from nUIOptions
683 bool IsViewVScrollBar() const
684 {
685#if HAVE_FEATURE_DESKTOP
686 return bool(m_nUIOptions & ViewOptFlags2::VScrollbar);
687#else
688 return false;
689#endif
690 }
691 bool IsViewHScrollBar() const
692 {
693#if HAVE_FEATURE_DESKTOP
694 return bool(m_nUIOptions & ViewOptFlags2::HScrollbar);
695#else
696 return false;
697#endif
698 }
699 bool IsKeepRatio() const
700 { return bool(m_nUIOptions & ViewOptFlags2::KeepAspectRatio); }
701 bool IsGrfKeepZoom() const
702 { return bool(m_nUIOptions & ViewOptFlags2::GrfKeepZoom); }
703 bool IsShowContentTips() const
704 { return bool(m_nUIOptions & ViewOptFlags2::ContentTips); }
705 bool IsPrtFormat() const
706 { return bool(m_nUIOptions & ViewOptFlags2::PrintFormat); }
708 { return bool(m_nUIOptions & ViewOptFlags2::ScrollbarTips); }
709
710 SvxZoomType GetZoomType() const { return m_eZoom; }
711
712 sal_uInt8 GetTableDest() const { return m_nTableDestination; }
713
714 void SetViewVScrollBar(bool b)
715 { SetUIOption(b, ViewOptFlags2::VScrollbar); }
716 void SetViewHScrollBar(bool b)
717 { SetUIOption(b, ViewOptFlags2::HScrollbar); }
718 void SetKeepRatio (bool b)
719 { SetUIOption(b, ViewOptFlags2::KeepAspectRatio); }
720 void SetGrfKeepZoom (bool b)
721 { SetUIOption(b, ViewOptFlags2::GrfKeepZoom); }
722 void SetShowContentTips( bool b)
723 { SetUIOption(b, ViewOptFlags2::ContentTips); }
724 void SetPrtFormat( bool b)
725 { SetUIOption(b, ViewOptFlags2::PrintFormat); }
727 { SetUIOption(b, ViewOptFlags2::ScrollbarTips); }
728 void SetUIOption( bool b, ViewOptFlags2 f)
729 {
730 if (b)
731 m_nUIOptions |= f;
732 else
733 m_nUIOptions &= ~f;
734 }
735
736 void SetZoomType (SvxZoomType eZoom_){ m_eZoom = eZoom_; }
737 void SetTableDest( sal_uInt8 nNew ) { m_nTableDestination = nNew; }
738
739 const OUString& GetSymbolFont() const {return m_sSymbolFont;}
740 void SetSymbolFont(const OUString& sSet) {m_sSymbolFont = sSet;}
741
742 const Color& GetRetoucheColor() const { return m_aRetouchColor;}
743 void SetRetoucheColor(const Color&r) { m_aRetouchColor = r; }
744
745 bool IsViewAnyRuler() const
746 {
747#if HAVE_FEATURE_DESKTOP
748 return bool(m_nUIOptions & ViewOptFlags2::AnyRuler);
749#else
750 return false;
751#endif
752 }
753 void SetViewAnyRuler(bool bSet)
754 { SetUIOption(bSet, ViewOptFlags2::AnyRuler);}
755
756 bool IsViewHRuler(bool bDirect = false) const
757 {
758#if HAVE_FEATURE_DESKTOP
759 return bDirect
760 ? bool(m_nUIOptions & ViewOptFlags2::HRuler)
762#else
763 (void) bDirect;
764 return false;
765#endif
766 }
767 void SetViewHRuler (bool b)
768 { SetUIOption(b, ViewOptFlags2::HRuler ); }
769
770 bool IsViewVRuler(bool bDirect = false) const
771 {
772#if HAVE_FEATURE_DESKTOP
773 return bDirect
774 ? bool(m_nUIOptions & ViewOptFlags2::VRuler)
776#else
777 (void) bDirect;
778 return false;
779#endif
780 }
781 void SetViewVRuler (bool b)
782 { SetUIOption(b, ViewOptFlags2::VRuler); }
783
784 // ShadowCursor, switch on/off, get/set color/mode.
785 bool IsShadowCursor() const
786 { return bool(m_nUIOptions & ViewOptFlags2::ShadowCursor); }
787 void SetShadowCursor(bool b)
788 { SetUIOption(b, ViewOptFlags2::ShadowCursor); }
789
790 //move vertical ruler to the right
791 bool IsVRulerRight() const
792 { return bool(m_nUIOptions & ViewOptFlags2::VRulerRight); }
793 void SetVRulerRight(bool b)
794 { SetUIOption(b, ViewOptFlags2::VRulerRight); }
795
796 bool IsStarOneSetting() const {return m_bStarOneSetting; }
797 void SetStarOneSetting(bool bSet) {m_bStarOneSetting = bSet; }
798
799 bool IsPagePreview() const {return m_bIsPagePreview; }
800 void SetPagePreview(bool bSet) { m_bIsPagePreview= bSet; }
801
802 SwFillMode GetShdwCursorFillMode() const { return m_nShadowCursorFillMode; }
803 void SetShdwCursorFillMode( SwFillMode nMode ) { m_nShadowCursorFillMode = nMode; };
804
805 bool IsShowPlaceHolderFields() const { return m_bShowPlaceHolderFields; }
806 void SetShowPlaceHolderFields(bool bSet) { m_bShowPlaceHolderFields = bSet; }
807
808 const Color& GetDocColor() const;
809 const Color& GetDocBoundariesColor() const;
810 const Color& GetAppBackgroundColor() const;
811 const Color& GetObjectBoundariesColor() const;
812 const Color& GetTableBoundariesColor() const;
813 const Color& GetIndexShadingsColor() const;
814 const Color& GetLinksColor() const;
815 const Color& GetVisitedLinksColor() const;
816 const Color& GetTextGridColor() const;
817 const Color& GetSpellColor() const;
818 const Color& GetGrammarColor() const;
819 const Color& GetSmarttagColor() const;
820 const Color& GetShadowColor() const;
821 const Color& GetFontColor() const;
822 const Color& GetFieldShadingsColor() const;
823 const Color& GetSectionBoundColor() const;
824 const Color& GetPageBreakColor() const;
825 const Color& GetHeaderFooterMarkColor() const;
826
827 bool IsAppearanceFlag(ViewOptFlags nFlag) const;
828
829 bool IsDocBoundaries() const {return IsAppearanceFlag(ViewOptFlags::DocBoundaries);}
830 bool IsObjectBoundaries() const {return IsAppearanceFlag(ViewOptFlags::ObjectBoundaries);}
831 bool IsTableBoundaries() const {return IsAppearanceFlag(ViewOptFlags::TableBoundaries);}
832 bool IsIndexShadings() const {return IsAppearanceFlag(ViewOptFlags::IndexShadings);}
833 bool IsLinks() const {return IsAppearanceFlag(ViewOptFlags::Links);}
834 bool IsVisitedLinks() const {return IsAppearanceFlag(ViewOptFlags::VisitedLinks);}
835 bool IsFieldShadings() const {return IsAppearanceFlag(ViewOptFlags::FieldShadings);}
836 bool IsSectionBoundaries() const {return IsAppearanceFlag(ViewOptFlags::SectionBoundaries);}
837 bool IsShadow() const {return IsAppearanceFlag(ViewOptFlags::Shadow);}
838
839 void SetAppearanceFlag(ViewOptFlags nFlag, bool bSet, bool bSaveInConfig = false);
840
841 void SetDocBoundaries(bool bSet) {SetAppearanceFlag(ViewOptFlags::DocBoundaries, bSet);}
842
843 // get/set default anchor (0..2); use GetDefaultAnchorType() to convert into RndStdIds::FLY_*
844 sal_Int32 GetDefaultAnchor() const
845 { return m_nDefaultAnchor; }
846 void SetDefaultAnchor( const sal_Int32 aFlag )
847 { m_nDefaultAnchor = aFlag; }
848
849 RndStdIds GetDefaultAnchorType() const;
850
851 // Useful for when getting the current view SwViewOption is not possible otherwise
852 static const SwViewOption& GetCurrentViewOptions();
853};
854
855inline bool SwViewOption::operator==( const SwViewOption &rOpt ) const
856{
857 return IsEqualFlags( rOpt ) && m_nZoom == rOpt.GetZoom() && m_aColorConfig == rOpt.m_aColorConfig && m_sThemeName == rOpt.m_sThemeName;
858}
859
860inline void SwViewOption::SetUIOptions( const SwViewOption& rVOpt )
861{
865}
866
867// Helper function for checking HTML-capabilities.
868SW_DLLPUBLIC sal_uInt16 GetHtmlMode(const SwDocShell*);
869
870#endif
871
872/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Of course Writer needs its own rectangles.
Definition: swrect.hxx:35
bool operator==(const SwViewOption &rOpt) const
Definition: viewopt.hxx:855
bool IsViewHRuler(bool bDirect=false) const
Definition: viewopt.hxx:756
void SetPagePreview(bool bSet)
Definition: viewopt.hxx:800
OUString m_sSymbolFont
Definition: viewopt.hxx:253
bool IsShowChangesInMargin2() const
Definition: viewopt.hxx:466
void SetIdle(bool b) const
Definition: viewopt.hxx:339
bool IsHideWhitespaceMode() const
Definition: viewopt.hxx:647
bool IsReadonly() const
Definition: viewopt.hxx:627
bool IsIndexShadings() const
Definition: viewopt.hxx:832
bool IsParagraph(bool bHard=false) const
Definition: viewopt.hxx:369
bool m_bTest6
Definition: viewopt.hxx:291
void SetUIOption(bool b, ViewOptFlags2 f)
Definition: viewopt.hxx:728
bool IsVisitedLinks() const
Definition: viewopt.hxx:834
bool IsSectionBoundaries() const
Definition: viewopt.hxx:836
void SetLineBreak(bool b)
Definition: viewopt.hxx:394
void SetHideWhitespaceMode(bool bMode)
Definition: viewopt.hxx:648
bool m_bIsPagePreview
Definition: viewopt.hxx:267
bool IsVRulerRight() const
Definition: viewopt.hxx:791
bool IsPagePreview() const
Definition: viewopt.hxx:799
bool IsSynchronize() const
Definition: viewopt.hxx:551
void SetShdwCursorFillMode(SwFillMode nMode)
Definition: viewopt.hxx:803
void SetShowContentTips(bool b)
Definition: viewopt.hxx:722
bool IsShadowCursor() const
Definition: viewopt.hxx:785
sal_uInt8 m_nPagePreviewCol
Definition: viewopt.hxx:263
bool IsTest3() const
Definition: viewopt.hxx:660
bool m_bTest4
Definition: viewopt.hxx:289
bool IsSmoothScroll() const
Definition: viewopt.hxx:574
sal_Int32 GetDefaultAnchor() const
Definition: viewopt.hxx:844
void SetTab(bool b)
Definition: viewopt.hxx:346
void SetPrinting(bool b)
Definition: viewopt.hxx:597
OUString m_sThemeName
Definition: viewopt.hxx:249
bool IsShowBookmarks(bool const bHard=false) const
Definition: viewopt.hxx:383
const OUString & GetSymbolFont() const
Definition: viewopt.hxx:739
void SetGraphic(bool b)
Definition: viewopt.hxx:501
sal_uInt16 GetGapBetweenPages() const
Definition: viewopt.hxx:621
void SetShowChangesInMargin(bool b)
Definition: viewopt.hxx:460
void SetPagePrevCol(sal_uInt8 n)
Definition: viewopt.hxx:626
bool IsViewLayoutBookMode() const
Definition: viewopt.hxx:643
void SetVRulerRight(bool b)
Definition: viewopt.hxx:793
static void SetInitialColorConfig(const SwViewColors &rColorConfig)
Definition: viewopt.hxx:326
bool mbBookView
Definition: viewopt.hxx:271
void SetBlackFont(bool b)
Definition: viewopt.hxx:565
bool IsBlank(bool bHard=false) const
Definition: viewopt.hxx:351
void SetViewHRuler(bool b)
Definition: viewopt.hxx:767
SwFillMode m_nShadowCursorFillMode
Definition: viewopt.hxx:264
void SetTableDest(sal_uInt8 nNew)
Definition: viewopt.hxx:737
void SetResolvedPostIts(bool b)
Definition: viewopt.hxx:438
void SetDefaultAnchor(const sal_Int32 aFlag)
Definition: viewopt.hxx:846
sal_uInt16 m_nZoom
Definition: viewopt.hxx:279
bool m_bTest3
Definition: viewopt.hxx:288
void SetStarOneSetting(bool bSet)
Definition: viewopt.hxx:797
void SetSynchronize(bool b)
Definition: viewopt.hxx:553
bool IsGridVisible() const
Definition: viewopt.hxx:532
void SetGrfKeepZoom(bool b)
Definition: viewopt.hxx:720
const SwViewColors & GetColorConfig() const
Definition: viewopt.hxx:311
bool IsShadow() const
Definition: viewopt.hxx:837
bool mbFormView
Definition: viewopt.hxx:269
SvxZoomType GetZoomType() const
Definition: viewopt.hxx:710
bool IsShowHiddenField() const
Definition: viewopt.hxx:494
void SetShowHiddenChar(bool b)
Definition: viewopt.hxx:491
void SetHardBlank(bool b)
Definition: viewopt.hxx:364
void SetFormView(bool bSet)
Definition: viewopt.hxx:634
bool IsMultipageView() const
Definition: viewopt.hxx:653
SwFillMode GetShdwCursorFillMode() const
Definition: viewopt.hxx:802
bool IsTable() const
Definition: viewopt.hxx:509
bool IsShowHiddenPara() const
Definition: viewopt.hxx:568
void SetColumnBreak(bool b)
Definition: viewopt.hxx:404
short GetDivisionY() const
Definition: viewopt.hxx:610
bool IsHardBlank() const
Definition: viewopt.hxx:360
sal_uInt16 GetZoom() const
Definition: viewopt.hxx:669
void SetPostIts(bool b)
Definition: viewopt.hxx:430
bool IsPagePrevBookview() const
Definition: viewopt.hxx:638
bool IsSelectionInReadonly() const
Definition: viewopt.hxx:630
void SetTable(bool b)
Definition: viewopt.hxx:511
void SetPageBreak(bool b)
Definition: viewopt.hxx:399
ViewOptCoreFlags2 m_nCore2Options
Definition: viewopt.hxx:255
OUString GetThemeName() const
Definition: viewopt.hxx:321
bool m_bReadonly
Definition: viewopt.hxx:265
void SetPageBack(bool b)
Definition: viewopt.hxx:506
bool IsPrtFormat() const
Definition: viewopt.hxx:705
bool IsLinks() const
Definition: viewopt.hxx:833
sal_uInt8 m_nPagePreviewRow
Definition: viewopt.hxx:262
void SetZoomType(SvxZoomType eZoom_)
Definition: viewopt.hxx:736
sal_uInt16 mnViewLayoutColumns
Definition: viewopt.hxx:259
void SetZoom(sal_uInt16 n)
Definition: viewopt.hxx:670
sal_uInt8 GetPagePrevCol() const
Definition: viewopt.hxx:625
ViewOptFlags2 m_nUIOptions
Definition: viewopt.hxx:256
sal_Int32 m_nDefaultAnchor
Definition: viewopt.hxx:276
void SetCursorInProtectedArea(bool b)
Definition: viewopt.hxx:583
void SetParagraph(bool b)
Definition: viewopt.hxx:374
bool IsPrinting() const
Definition: viewopt.hxx:594
const Color & GetRetoucheColor() const
Definition: viewopt.hxx:742
bool IsTest7() const
Definition: viewopt.hxx:664
sal_uInt16 GetViewLayoutColumns() const
Definition: viewopt.hxx:645
bool IsShowScrollBarTips() const
Definition: viewopt.hxx:707
void SetShadowCursor(bool b)
Definition: viewopt.hxx:787
sal_uInt8 GetPagePrevRow() const
Definition: viewopt.hxx:623
void SetTreatSubOutlineLevelsAsContent(bool b)
Definition: viewopt.hxx:484
void SetPagePrevRow(sal_uInt8 n)
Definition: viewopt.hxx:624
bool IsIdle() const
Definition: viewopt.hxx:332
void SetCore2Option(bool b, ViewOptCoreFlags2 f)
Definition: viewopt.hxx:600
bool m_bTest7
Definition: viewopt.hxx:292
bool IsBlackFont() const
Definition: viewopt.hxx:562
void SetSoftHyph(bool b)
Definition: viewopt.hxx:412
static SwViewColors s_aInitialColorConfig
Definition: viewopt.hxx:248
void SetSmoothScroll(bool b)
Definition: viewopt.hxx:577
void SetUseHeaderFooterMenu(bool b)
Definition: viewopt.hxx:475
void SetGridVisible(bool b)
Definition: viewopt.hxx:534
void SetShowHiddenField(bool b)
Definition: viewopt.hxx:496
void SetSnapSize(Size const &rSz)
Definition: viewopt.hxx:529
bool m_bShowPlaceHolderFields
Definition: viewopt.hxx:274
void SetShowScrollBarTips(bool b)
Definition: viewopt.hxx:726
bool mbHideWhitespaceMode
Definition: viewopt.hxx:273
bool IsViewAnyRuler() const
Definition: viewopt.hxx:745
void SetShowOutlineContentVisibilityButton(bool b)
Definition: viewopt.hxx:480
bool m_bTest10
Definition: viewopt.hxx:294
bool IsTest8() const
Definition: viewopt.hxx:665
void SetThemeName(const OUString &rThemeName)
Definition: viewopt.hxx:316
void SetShowBookmarks(bool const b)
Definition: viewopt.hxx:379
bool m_bTest8
Definition: viewopt.hxx:293
bool IsKeepRatio() const
Definition: viewopt.hxx:699
bool IsViewHScrollBar() const
Definition: viewopt.hxx:691
bool IsPageBack() const
Definition: viewopt.hxx:504
const Size & GetSnapSize() const
Definition: viewopt.hxx:530
SvxZoomType m_eZoom
Definition: viewopt.hxx:280
void SetBlank(bool b)
Definition: viewopt.hxx:355
void SetKeepRatio(bool b)
Definition: viewopt.hxx:718
ViewOptFlags1 m_nCoreOptions
Definition: viewopt.hxx:254
bool IsShowPlaceHolderFields() const
Definition: viewopt.hxx:805
bool m_bTest1
Definition: viewopt.hxx:286
bool IsShowContentTips() const
Definition: viewopt.hxx:703
short m_nDivisionY
Definition: viewopt.hxx:261
bool mbBrowseMode
Definition: viewopt.hxx:270
bool getBrowseMode() const
Definition: viewopt.hxx:636
void SetViewHScrollBar(bool b)
Definition: viewopt.hxx:716
bool IsPDFExport() const
Definition: viewopt.hxx:588
short m_nDivisionX
Definition: viewopt.hxx:260
void SetColorConfig(const SwViewColors &rColorConfig)
Definition: viewopt.hxx:306
bool IsShowHiddenChar(bool bHard=false) const
Definition: viewopt.hxx:487
bool m_bIdle
Definition: viewopt.hxx:275
void SetPagePrevBookview(bool bSet)
Definition: viewopt.hxx:639
void SetOnlineSpell(bool b)
Definition: viewopt.hxx:541
void SetControl(bool b)
Definition: viewopt.hxx:521
bool IsViewVRuler(bool bDirect=false) const
Definition: viewopt.hxx:770
bool IsGraphic() const
Definition: viewopt.hxx:499
bool m_bStarOneSetting
Definition: viewopt.hxx:266
void SetShowPlaceHolderFields(bool bSet)
Definition: viewopt.hxx:806
bool IsCursorInProtectedArea() const
Definition: viewopt.hxx:580
bool IsTest5() const
Definition: viewopt.hxx:662
void SetReadonly(bool bSet)
Definition: viewopt.hxx:628
bool IsViewVScrollBar() const
Definition: viewopt.hxx:683
void SetViewVScrollBar(bool b)
Definition: viewopt.hxx:714
bool IsTest1() const
Definition: viewopt.hxx:658
void SetUIOptions(const SwViewOption &)
Definition: viewopt.hxx:860
bool IsSoftHyph() const
Definition: viewopt.hxx:409
sal_uInt8 m_nTableDestination
Definition: viewopt.hxx:282
Size m_aSnapSize
Definition: viewopt.hxx:258
bool IsFieldName() const
Definition: viewopt.hxx:417
bool IsTest10() const
Definition: viewopt.hxx:666
void SetSnap(bool b)
Definition: viewopt.hxx:526
bool IsControl() const
Definition: viewopt.hxx:519
SwViewColors m_aColorConfig
Definition: viewopt.hxx:247
void SetViewAnyRuler(bool bSet)
Definition: viewopt.hxx:753
bool IsTableBoundaries() const
Definition: viewopt.hxx:831
void SetViewVRuler(bool b)
Definition: viewopt.hxx:781
void SetDivisionX(short n)
Definition: viewopt.hxx:609
bool IsPostIts() const
Definition: viewopt.hxx:425
void SetViewLayoutColumns(sal_uInt16 nNew)
Definition: viewopt.hxx:646
bool IsObjectBoundaries() const
Definition: viewopt.hxx:830
bool m_bTest5
Definition: viewopt.hxx:290
bool CanHideWhitespace() const
The rules that allow for hiding whitespace.
Definition: viewopt.hxx:651
bool IsViewMetaChars() const
Definition: viewopt.hxx:546
void SetShowHiddenPara(bool b)
Definition: viewopt.hxx:571
sal_uInt8 GetTableDest() const
Definition: viewopt.hxx:712
void SetPDFExport(bool b)
Definition: viewopt.hxx:591
Color m_aRetouchColor
Definition: viewopt.hxx:257
void SetPrtFormat(bool b)
Definition: viewopt.hxx:724
void SetDraw(bool b)
Definition: viewopt.hxx:516
bool IsResolvedPostIts() const
Definition: viewopt.hxx:435
bool IsLineBreak(bool bHard=false) const
Definition: viewopt.hxx:389
void SetShowChangesInMargin2(bool b)
Definition: viewopt.hxx:469
void SetSymbolFont(const OUString &sSet)
Definition: viewopt.hxx:740
void SetDocBoundaries(bool bSet)
Definition: viewopt.hxx:841
bool IsEqualFlags(const SwViewOption &rOpt) const
Definition: viewopt.cxx:144
void SetSelectionInReadonly(bool bSet)
Definition: viewopt.hxx:631
bool IsTab(bool bHard=false) const
Definition: viewopt.hxx:342
void SetCrossHair(bool b)
Definition: viewopt.hxx:558
bool IsOnlineSpell() const
Definition: viewopt.hxx:537
void SetShowInlineTooltips(bool b)
Definition: viewopt.hxx:451
bool IsFormView() const
Definition: viewopt.hxx:633
short GetDivisionX() const
Definition: viewopt.hxx:608
bool IsDocBoundaries() const
Definition: viewopt.hxx:829
bool IsTest4() const
Definition: viewopt.hxx:661
bool m_bSelectionInReadonly
Definition: viewopt.hxx:268
bool m_bTest2
Definition: viewopt.hxx:287
void SetDivisionY(short n)
Definition: viewopt.hxx:611
void SetFieldName(bool b)
Definition: viewopt.hxx:420
bool IsWhitespaceHidden() const
Definition: viewopt.hxx:652
bool IsUseHeaderFooterMenu() const
Definition: viewopt.hxx:473
void SetRetoucheColor(const Color &r)
Definition: viewopt.hxx:743
bool IsGrfKeepZoom() const
Definition: viewopt.hxx:701
bool IsShowInlineTooltips() const
Definition: viewopt.hxx:446
void SetViewLayoutBookMode(bool bNew)
Definition: viewopt.hxx:644
bool IsShowChangesInMargin() const
Definition: viewopt.hxx:455
bool IsFieldShadings() const
Definition: viewopt.hxx:835
void setBrowseMode(bool bSet)
Definition: viewopt.hxx:637
static sal_uInt16 s_nPixelTwips
Definition: viewopt.hxx:251
bool IsTest6() const
Definition: viewopt.hxx:663
bool IsSnap() const
Definition: viewopt.hxx:524
sal_uInt16 GetDocumentBorder() const
Definition: viewopt.hxx:620
bool IsCrossHair() const
Definition: viewopt.hxx:556
bool IsDraw() const
Definition: viewopt.hxx:514
void SetViewMetaChars(bool b)
Definition: viewopt.hxx:548
bool IsTest2() const
Definition: viewopt.hxx:659
bool IsStarOneSetting() const
Definition: viewopt.hxx:796
bool mbViewLayoutBookMode
Definition: viewopt.hxx:272
void Init()
SwFillMode
Definition: crstate.hxx:29
@ ColorConfig
sal_Int64 n
Color GetFontColor()
NONE
ViewOptFlags m_nAppearanceFlags
Definition: viewopt.hxx:242
Color m_aScriptIndicatorColor
Definition: viewopt.hxx:239
Color m_aFieldShadingsColor
Definition: viewopt.hxx:236
Color m_aPageBreakColor
Definition: viewopt.hxx:238
Color m_aDocBoundColor
Definition: viewopt.hxx:224
Color m_aSectionBoundColor
Definition: viewopt.hxx:237
Color m_aIndexShadingsColor
Definition: viewopt.hxx:229
Color m_aLinksColor
Definition: viewopt.hxx:230
Color m_aVisitedLinksColor
Definition: viewopt.hxx:231
Color m_aTextGridColor
Definition: viewopt.hxx:232
Color m_aGrammarColor
Definition: viewopt.hxx:234
Color m_aFontColor
Definition: viewopt.hxx:228
Color m_aSpellColor
Definition: viewopt.hxx:233
Color m_aShadowColor
Definition: viewopt.hxx:240
Color m_aSmarttagColor
Definition: viewopt.hxx:235
Color m_aHeaderFooterMarkColor
Definition: viewopt.hxx:241
bool operator==(const SwViewColors &rOther) const
Definition: viewopt.hxx:200
Color m_aTableBoundColor
Definition: viewopt.hxx:227
Color m_aDocColor
Definition: viewopt.hxx:223
Color m_aAppBackgroundColor
Definition: viewopt.hxx:226
Color m_aObjectBoundColor
Definition: viewopt.hxx:225
bool bCharHidden
Definition: viewopt.hxx:54
bool bViewMetachars
Definition: viewopt.hxx:66
bool bShowInlineTooltips
Definition: viewopt.hxx:65
bool bLinebreak
Definition: viewopt.hxx:45
bool bControl
Definition: viewopt.hxx:58
bool bTreatSubOutlineLevelsAsContent
Definition: viewopt.hxx:64
bool bGridVisible
Definition: viewopt.hxx:62
bool bPostits
Definition: viewopt.hxx:52
bool bSoftHyph
Definition: viewopt.hxx:48
bool bShowChangesInMargin
Definition: viewopt.hxx:69
bool bFieldHidden
Definition: viewopt.hxx:53
bool bShowOutlineContentVisibilityButton
Definition: viewopt.hxx:68
bool bCrosshair
Definition: viewopt.hxx:59
bool bPageback
Definition: viewopt.hxx:67
bool bFieldName
Definition: viewopt.hxx:51
bool bSynchronize
Definition: viewopt.hxx:61
bool operator==(const ViewOptFlags1 &rOther) const
Definition: viewopt.hxx:106
bool bGraphic
Definition: viewopt.hxx:55
bool bShowChangesInMargin2
Definition: viewopt.hxx:70
bool bColumnbreak
Definition: viewopt.hxx:47
bool bOnlineSpell
Definition: viewopt.hxx:63
bool bParagraph
Definition: viewopt.hxx:44
bool bUseHeaderFooterMenu
Definition: viewopt.hxx:40
bool bHardBlank
Definition: viewopt.hxx:43
bool bPagebreak
Definition: viewopt.hxx:46
bool bBookmarks
Definition: viewopt.hxx:49
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
RndStdIds
unsigned char sal_uInt8
ViewOptFlags
Definition: viewopt.hxx:180
ViewOptCoreFlags2
Definition: viewopt.hxx:142
SW_DLLPUBLIC sal_uInt16 GetHtmlMode(const SwDocShell *)
Definition: viewopt.cxx:415
ViewOptFlags2
Definition: viewopt.hxx:154
SvxZoomType