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 static Color s_aDocColor; // color of document boundaries
199 static Color s_aDocBoundColor; // color of document boundaries
200 static Color s_aObjectBoundColor; // color of object boundaries
201 static Color s_aAppBackgroundColor; // application background
202 static Color s_aTableBoundColor; // color of table boundaries
204 static Color s_aIndexShadingsColor; // background color of indexes
209 static Color s_aSpellColor; // mark color of online spell checking
218
220 static sal_uInt16 s_nPixelTwips;// 1 Pixel == ? Twips
221
222 OUString m_sSymbolFont; // Symbolfont.
223 ViewOptFlags1 m_nCoreOptions; // Bits for SwViewShell.
224 ViewOptCoreFlags2 m_nCore2Options; // Bits for SwViewShell.
226 Color m_aRetouchColor; // DefaultBackground for BrowseView
227 Size m_aSnapSize; // Describes horizontal and vertical snap.
228 sal_uInt16 mnViewLayoutColumns; // # columns for edit view
229 short m_nDivisionX; // Grid division.
231 sal_uInt8 m_nPagePreviewRow; // Page Preview Row/Columns.
232 sal_uInt8 m_nPagePreviewCol; // Page Preview Row/Columns.
233 SwFillMode m_nShadowCursorFillMode; // FillMode for ShadowCursor.
234 bool m_bReadonly : 1; // Readonly-Doc.
235 bool m_bStarOneSetting : 1;// Prevent from UI automatics (no scrollbars in readonly documents).
236 bool m_bIsPagePreview : 1; // The preview mustn't print field/footnote/... shadings.
237 bool m_bSelectionInReadonly : 1; // Determines whether selection is switched on in readonly documents.
238 bool mbFormView : 1;
239 bool mbBrowseMode : 1;
240 bool mbBookView : 1; // View mode for page preview.
241 bool mbViewLayoutBookMode : 1; // Book view mode for edit view.
242 bool mbHideWhitespaceMode : 1; // Hide header, footer, and pagebreak.
243 bool m_bShowPlaceHolderFields : 1; // Only used in printing!
244 mutable bool m_bIdle;
245 sal_Int32 m_nDefaultAnchor; // GetDefaultAnchorType() to convert int to RndStdIds
246
247 // Scale
248 sal_uInt16 m_nZoom; // In percent.
249 SvxZoomType m_eZoom; // 'enum' for zoom.
250
251 sal_uInt8 m_nTableDestination; // Destination for table background.
252
253#ifdef DBG_UTIL
254 // Corresponds to statements in ui/config/cfgvw.src.
255 bool m_bTest1 :1; // Test-flag "Layout not loading"
256 bool m_bTest2 :1; // Test-flag "WYSIWYG++"
257 bool m_bTest3 :1; // Test-flag ""
258 bool m_bTest4 :1; // Test-flag "WYSIWYG debug"
259 bool m_bTest5 :1; // Test-flag "No idle format"
260 bool m_bTest6 :1; // Test-flag "No screen adj"
261 bool m_bTest7 :1; // Test-flag "win format"
262 bool m_bTest8 :1; // Test-flag ""
263 bool m_bTest10 :1; // Test-Flag "Format by Input"
264#endif
265
266public:
267 SwViewOption(); // CTOR
270
271 static void Init(const OutputDevice* pWin); // Initializing of static data.
272
273 inline void SetUIOptions( const SwViewOption& );
274
275 // Options from nCoreOptions
276 bool IsIdle() const
277 { return m_bIdle; }
278
279 // Logically this is a const function since it does not modify the viewoptions
280 // but only effects idle formatting. Of course that member is already implement
281 // in the wrong place here... Also currently there are many const modifying casts in the code
282 // just to call this function on otherwise const objects. Thus declaring it as const now.
283 void SetIdle( bool b ) const
284 { m_bIdle = b; }
285
286 bool IsTab(bool bHard = false) const
287 {
288 return !m_bReadonly && m_nCoreOptions.bTab && (m_nCoreOptions.bViewMetachars || bHard);
289 }
290 void SetTab( bool b )
291 {
292 m_nCoreOptions.bTab = b;
293 }
294
295 bool IsBlank(bool bHard = false) const
296 {
297 return !m_bReadonly && m_nCoreOptions.bBlank && (m_nCoreOptions.bViewMetachars || bHard);
298 }
299 void SetBlank(bool b)
300 {
301 m_nCoreOptions.bBlank = b;
302 }
303
304 bool IsHardBlank() const
305 {
306 return !m_bReadonly && (m_nCoreOptions.bHardBlank);
307 }
308 void SetHardBlank( bool b )
309 {
310 m_nCoreOptions.bHardBlank = b;
311 }
312
313 bool IsParagraph(bool bHard = false) const
314 {
315 return !m_bReadonly && m_nCoreOptions.bParagraph &&
316 (m_nCoreOptions.bViewMetachars || bHard);
317 }
318 void SetParagraph( bool b )
319 {
320 m_nCoreOptions.bParagraph = b;
321 }
322
323 void SetShowBookmarks(bool const b)
324 {
325 m_nCoreOptions.bBookmarks = b;
326 }
327 bool IsShowBookmarks(bool const bHard = false) const
328 {
329 return !m_bReadonly && (m_nCoreOptions.bBookmarks)
330 && (bHard || IsFieldShadings());
331 }
332
333 bool IsLineBreak(bool bHard = false) const
334 {
335 return !m_bReadonly && (m_nCoreOptions.bLinebreak) &&
336 ((m_nCoreOptions.bViewMetachars) || bHard);
337 }
338 void SetLineBreak( bool b )
339 {
340 m_nCoreOptions.bLinebreak = b;
341 }
342
343 void SetPageBreak( bool b )
344 {
345 m_nCoreOptions.bPagebreak = b;
346 }
347
348 void SetColumnBreak( bool b)
349 {
350 m_nCoreOptions.bColumnbreak = b;
351 }
352
353 bool IsSoftHyph() const
354 { return !m_bReadonly && (m_nCoreOptions.bSoftHyph); }
355
356 void SetSoftHyph( bool b )
357 {
358 m_nCoreOptions.bSoftHyph = b;
359 }
360
361 bool IsFieldName() const
362 { return !m_bReadonly && (m_nCoreOptions.bFieldName); }
363
364 void SetFieldName( bool b )
365 {
366 m_nCoreOptions.bFieldName = b;
367 }
368
369 bool IsPostIts() const
370 {
371 return m_nCoreOptions.bPostits;
372 }
373
374 void SetPostIts( bool b )
375 {
376 m_nCoreOptions.bPostits = b;
377 }
378
379 bool IsResolvedPostIts() const
380 { return bool(m_nUIOptions & ViewOptFlags2::ResolvedPostits); }
381
382 void SetResolvedPostIts( bool b )
383 { SetUIOption(b, ViewOptFlags2::ResolvedPostits); }
384
385 static void PaintPostIts( OutputDevice *pOut, const SwRect &rRect,
386 bool bIsScript );
387 static sal_uInt16 GetPostItsWidth( const OutputDevice *pOut );
388
389 //show/hide tooltips on tracked changes
391 {
392 return m_nCoreOptions.bShowInlineTooltips;
393 }
394
396 { m_nCoreOptions.bShowInlineTooltips = b; }
397
398 //show/hide tracked deletions in text
400 {
401 return m_nCoreOptions.bShowChangesInMargin;
402 }
403
405 {
406 m_nCoreOptions.bShowChangesInMargin = b;
407 }
408
409 //show/hide tracked insertions in text
411 { return m_nCoreOptions.bShowChangesInMargin2; }
412
414 { m_nCoreOptions.bShowChangesInMargin2 = b; }
415
416 //show/hide interactive header/footer on top/bottom of pages
418 { return m_nCoreOptions.bUseHeaderFooterMenu; }
420 { m_nCoreOptions.bUseHeaderFooterMenu = b; }
421
422 //show/hide outline content visibility button
423 bool IsShowOutlineContentVisibilityButton() const;
425 { m_nCoreOptions.bShowOutlineContentVisibilityButton = b; }
426
427 bool IsTreatSubOutlineLevelsAsContent() const;
429 { m_nCoreOptions.bTreatSubOutlineLevelsAsContent = b; }
430
431 bool IsShowHiddenChar(bool bHard = false) const
432 { return !m_bReadonly && m_nCoreOptions.bCharHidden &&
433 (m_nCoreOptions.bViewMetachars || bHard); }
434
435 void SetShowHiddenChar( bool b )
436 { m_nCoreOptions.bCharHidden = b; }
437
438 bool IsShowHiddenField() const
439 { return !m_bReadonly && m_nCoreOptions.bFieldHidden; }
440 void SetShowHiddenField( bool b )
441 { m_nCoreOptions.bFieldHidden = b; }
442
443 bool IsGraphic() const
444 { return m_nCoreOptions.bGraphic; }
445 void SetGraphic( bool b )
446 { m_nCoreOptions.bGraphic = b; }
447
448 bool IsPageBack() const
449 { return m_nCoreOptions.bPageback; }
450 void SetPageBack( bool b )
451 { m_nCoreOptions.bPageback = b; }
452
453 bool IsTable() const
454 { return m_nCoreOptions.bTable; }
455 void SetTable( bool b )
456 { m_nCoreOptions.bTable = b; }
457
458 bool IsDraw() const
459 { return m_nCoreOptions.bDraw; }
460 void SetDraw( bool b )
461 { m_nCoreOptions.bDraw = b; }
462
463 bool IsControl() const
464 { return m_nCoreOptions.bControl; }
465 void SetControl( bool b )
466 { m_nCoreOptions.bControl = b; }
467
468 bool IsSnap() const
469 { return m_nCoreOptions.bSnap; }
470 void SetSnap( bool b )
471 { m_nCoreOptions.bSnap = b; }
472
473 void SetSnapSize( Size const &rSz ){ m_aSnapSize = rSz; }
474 const Size &GetSnapSize() const { return m_aSnapSize; }
475
476 bool IsGridVisible() const
477 { return !m_bReadonly && m_nCoreOptions.bGridVisible; }
478 void SetGridVisible( bool b )
479 { m_nCoreOptions.bGridVisible = b; }
480
481 bool IsOnlineSpell() const
482 {
483 return !m_bReadonly && m_nCoreOptions.bOnlineSpell;
484 }
485 void SetOnlineSpell( bool b )
486 {
487 m_nCoreOptions.bOnlineSpell = b;
488 }
489
490 bool IsViewMetaChars() const
491 { return !m_bReadonly && m_nCoreOptions.bViewMetachars; }
492 void SetViewMetaChars( bool b)
493 { m_nCoreOptions.bViewMetachars = b; }
494
495 bool IsSynchronize() const
496 { return m_nCoreOptions.bSynchronize; }
497 void SetSynchronize( bool b )
498 { m_nCoreOptions.bSynchronize = b; }
499
500 bool IsCrossHair() const
501 { return m_nCoreOptions.bCrosshair; }
502 void SetCrossHair( bool b )
503 { m_nCoreOptions.bCrosshair = b; }
504
505 // Options from nCore2Options
506 bool IsBlackFont() const
507 {return bool(m_nCore2Options & ViewOptCoreFlags2::BlackFont); }
508
509 void SetBlackFont(bool b)
510 { SetCore2Option(b, ViewOptCoreFlags2::BlackFont); }
511
512 bool IsShowHiddenPara() const
513 {return bool(m_nCore2Options & ViewOptCoreFlags2::HiddenPara); }
514
515 void SetShowHiddenPara(bool b)
516 { SetCore2Option(b, ViewOptCoreFlags2::HiddenPara); }
517
518 bool IsSmoothScroll() const
519 {return bool(m_nCore2Options & ViewOptCoreFlags2::SmoothScroll); }
520
521 void SetSmoothScroll(bool b)
522 { SetCore2Option(b, ViewOptCoreFlags2::SmoothScroll); }
523
525 {return bool(m_nCore2Options & ViewOptCoreFlags2::CursorInProt); }
526
528 { SetCore2Option(b, ViewOptCoreFlags2::CursorInProt); }
529
530 static bool IsIgnoreProtectedArea();
531
532 bool IsPDFExport() const
533 {return bool(m_nCore2Options & ViewOptCoreFlags2::PdfExport); }
534
535 void SetPDFExport(bool b)
536 { SetCore2Option(b, ViewOptCoreFlags2::PdfExport); }
537
538 bool IsPrinting() const
539 {return bool(m_nCore2Options & ViewOptCoreFlags2::Printing); }
540
541 void SetPrinting(bool b)
542 { SetCore2Option(b, ViewOptCoreFlags2::Printing); }
543
545 {
546 if (b)
547 m_nCore2Options |= f;
548 else
549 m_nCore2Options &= ~f;
550 }
551
552 short GetDivisionX() const { return m_nDivisionX; }
553 void SetDivisionX( short n ){ m_nDivisionX = n; }
554 short GetDivisionY() const { return m_nDivisionY; }
555 void SetDivisionY( short n ){ m_nDivisionY = n; }
556
557 // Default margin left and above document: 284 twips == 5.0 mm.
558 static constexpr sal_uInt16 defDocumentBorder = 284;
559 // Default gap between pages: 284 twips == 5.0 mm.
560 static constexpr sal_uInt16 defGapBetweenPages = 284;
561 // Minimum edge-to-text distance: 22 twips == 0.4 mm.
562 static constexpr sal_uInt16 minGapBetweenPages = 22;
563
564 sal_uInt16 GetDocumentBorder() const { return IsWhitespaceHidden() ? minGapBetweenPages : defDocumentBorder; }
565 sal_uInt16 GetGapBetweenPages() const { return IsWhitespaceHidden() ? minGapBetweenPages : defGapBetweenPages; }
566
567 sal_uInt8 GetPagePrevRow() const { return m_nPagePreviewRow; }
568 void SetPagePrevRow( sal_uInt8 n ) { m_nPagePreviewRow = n; }
569 sal_uInt8 GetPagePrevCol() const { return m_nPagePreviewCol; }
570 void SetPagePrevCol( sal_uInt8 n ) { m_nPagePreviewCol = n; }
571 bool IsReadonly() const { return m_bReadonly; }
572 void SetReadonly(bool bSet) { m_bReadonly = bSet; }
573
574 bool IsSelectionInReadonly() const {return m_bSelectionInReadonly;}
575 void SetSelectionInReadonly(bool bSet) {m_bSelectionInReadonly = bSet;}
576
577 bool IsFormView() const { return mbFormView; }
578 void SetFormView( bool bSet ) { mbFormView = bSet; }
579
580 bool getBrowseMode() const { return mbBrowseMode; }
581 void setBrowseMode(bool bSet) { mbBrowseMode = bSet; }
582 bool IsPagePrevBookview() const { return mbBookView; }
583 void SetPagePrevBookview(bool bSet) { mbBookView = bSet; }
584
585 static bool IsAutoCompleteWords();
586
587 bool IsViewLayoutBookMode() const { return mbViewLayoutBookMode; }
588 void SetViewLayoutBookMode( bool bNew ) { mbViewLayoutBookMode = bNew; }
589 sal_uInt16 GetViewLayoutColumns() const { return mnViewLayoutColumns; }
590 void SetViewLayoutColumns( sal_uInt16 nNew ) { mnViewLayoutColumns = nNew; }
591 bool IsHideWhitespaceMode() const { return mbHideWhitespaceMode; }
592 void SetHideWhitespaceMode( bool bMode ) { mbHideWhitespaceMode = bMode; }
593
595 bool CanHideWhitespace() const { return !IsMultipageView(); }
596 bool IsWhitespaceHidden() const { return IsHideWhitespaceMode() && !IsMultipageView(); }
597 bool IsMultipageView() const { return IsViewLayoutBookMode() ||
598 GetViewLayoutColumns() == 0; }
599
600#ifdef DBG_UTIL
601 // Correspond to statements in ui/config/cfgvw.src.
602 bool IsTest1() const { return m_bTest1; }
603 bool IsTest2() const { return m_bTest2; }
604 bool IsTest3() const { return m_bTest3; }
605 bool IsTest4() const { return m_bTest4; }
606 bool IsTest5() const { return m_bTest5; }
607 bool IsTest6() const { return m_bTest6; }
608 bool IsTest7() const { return m_bTest7; }
609 bool IsTest8() const { return m_bTest8; }
610 bool IsTest10() const { return m_bTest10; }
611#endif
612
613 sal_uInt16 GetZoom() const { return m_nZoom; }
614 void SetZoom( sal_uInt16 n ){ m_nZoom = n; }
615
616 static void DrawRect( OutputDevice* pOut, const SwRect &rRect, ::Color nCol );
617 static void DrawRectPrinter( OutputDevice* pOut, const SwRect& rRect );
618
619 SwViewOption& operator=( const SwViewOption &rOpt );
620
621 // Compare methods.
622 bool IsEqualFlags ( const SwViewOption &rOpt ) const;
623 inline bool operator == ( const SwViewOption &rOpt ) const;
624 bool operator != ( const SwViewOption &rOpt ) const { return !(*this == rOpt); }
625
626 // Options from nUIOptions
627 bool IsViewVScrollBar() const
628 {
629#if HAVE_FEATURE_DESKTOP
630 return bool(m_nUIOptions & ViewOptFlags2::VScrollbar);
631#else
632 return false;
633#endif
634 }
635 bool IsViewHScrollBar() const
636 {
637#if HAVE_FEATURE_DESKTOP
638 return bool(m_nUIOptions & ViewOptFlags2::HScrollbar);
639#else
640 return false;
641#endif
642 }
643 bool IsKeepRatio() const
644 { return bool(m_nUIOptions & ViewOptFlags2::KeepAspectRatio); }
645 bool IsGrfKeepZoom() const
646 { return bool(m_nUIOptions & ViewOptFlags2::GrfKeepZoom); }
647 bool IsShowContentTips() const
648 { return bool(m_nUIOptions & ViewOptFlags2::ContentTips); }
649 bool IsPrtFormat() const
650 { return bool(m_nUIOptions & ViewOptFlags2::PrintFormat); }
652 { return bool(m_nUIOptions & ViewOptFlags2::ScrollbarTips); }
653
654 SvxZoomType GetZoomType() const { return m_eZoom; }
655
656 sal_uInt8 GetTableDest() const { return m_nTableDestination; }
657
658 void SetViewVScrollBar(bool b)
659 { SetUIOption(b, ViewOptFlags2::VScrollbar); }
660 void SetViewHScrollBar(bool b)
661 { SetUIOption(b, ViewOptFlags2::HScrollbar); }
662 void SetKeepRatio (bool b)
663 { SetUIOption(b, ViewOptFlags2::KeepAspectRatio); }
664 void SetGrfKeepZoom (bool b)
665 { SetUIOption(b, ViewOptFlags2::GrfKeepZoom); }
666 void SetShowContentTips( bool b)
667 { SetUIOption(b, ViewOptFlags2::ContentTips); }
668 void SetPrtFormat( bool b)
669 { SetUIOption(b, ViewOptFlags2::PrintFormat); }
671 { SetUIOption(b, ViewOptFlags2::ScrollbarTips); }
672 void SetUIOption( bool b, ViewOptFlags2 f)
673 {
674 if (b)
675 m_nUIOptions |= f;
676 else
677 m_nUIOptions &= ~f;
678 }
679
680 void SetZoomType (SvxZoomType eZoom_){ m_eZoom = eZoom_; }
681 void SetTableDest( sal_uInt8 nNew ) { m_nTableDestination = nNew; }
682
683 const OUString& GetSymbolFont() const {return m_sSymbolFont;}
684 void SetSymbolFont(const OUString& sSet) {m_sSymbolFont = sSet;}
685
686 const Color& GetRetoucheColor() const { return m_aRetouchColor;}
687 void SetRetoucheColor(const Color&r) { m_aRetouchColor = r; }
688
689 bool IsViewAnyRuler() const
690 {
691#if HAVE_FEATURE_DESKTOP
692 return bool(m_nUIOptions & ViewOptFlags2::AnyRuler);
693#else
694 return false;
695#endif
696 }
697 void SetViewAnyRuler(bool bSet)
698 { SetUIOption(bSet, ViewOptFlags2::AnyRuler);}
699
700 bool IsViewHRuler(bool bDirect = false) const
701 {
702#if HAVE_FEATURE_DESKTOP
703 return bDirect
704 ? bool(m_nUIOptions & ViewOptFlags2::HRuler)
706#else
707 (void) bDirect;
708 return false;
709#endif
710 }
711 void SetViewHRuler (bool b)
712 { SetUIOption(b, ViewOptFlags2::HRuler ); }
713
714 bool IsViewVRuler(bool bDirect = false) const
715 {
716#if HAVE_FEATURE_DESKTOP
717 return bDirect
718 ? bool(m_nUIOptions & ViewOptFlags2::VRuler)
720#else
721 (void) bDirect;
722 return false;
723#endif
724 }
725 void SetViewVRuler (bool b)
726 { SetUIOption(b, ViewOptFlags2::VRuler); }
727
728 // ShadowCursor, switch on/off, get/set color/mode.
729 bool IsShadowCursor() const
730 { return bool(m_nUIOptions & ViewOptFlags2::ShadowCursor); }
731 void SetShadowCursor(bool b)
732 { SetUIOption(b, ViewOptFlags2::ShadowCursor); }
733
734 //move vertical ruler to the right
735 bool IsVRulerRight() const
736 { return bool(m_nUIOptions & ViewOptFlags2::VRulerRight); }
737 void SetVRulerRight(bool b)
738 { SetUIOption(b, ViewOptFlags2::VRulerRight); }
739
740 bool IsStarOneSetting() const {return m_bStarOneSetting; }
741 void SetStarOneSetting(bool bSet) {m_bStarOneSetting = bSet; }
742
743 bool IsPagePreview() const {return m_bIsPagePreview; }
744 void SetPagePreview(bool bSet) { m_bIsPagePreview= bSet; }
745
746 SwFillMode GetShdwCursorFillMode() const { return m_nShadowCursorFillMode; }
747 void SetShdwCursorFillMode( SwFillMode nMode ) { m_nShadowCursorFillMode = nMode; };
748
749 bool IsShowPlaceHolderFields() const { return m_bShowPlaceHolderFields; }
750 void SetShowPlaceHolderFields(bool bSet) { m_bShowPlaceHolderFields = bSet; }
751
752 static Color& GetDocColor();
753 static Color& GetDocBoundariesColor();
754 static Color& GetAppBackgroundColor();
755 static Color& GetObjectBoundariesColor();
756 static Color& GetTableBoundariesColor();
757 static Color& GetIndexShadingsColor();
758 static Color& GetLinksColor();
759 static Color& GetVisitedLinksColor();
760 static Color& GetDirectCursorColor();
761 static Color& GetTextGridColor();
762 static Color& GetSpellColor();
763 static Color& GetGrammarColor();
764 static Color& GetSmarttagColor();
765 static Color& GetShadowColor();
766 static Color& GetFontColor();
767 static Color& GetFieldShadingsColor();
768 static Color& GetSectionBoundColor();
769 static Color& GetPageBreakColor();
770 static Color& GetHeaderFooterMarkColor();
771
772 static bool IsAppearanceFlag(ViewOptFlags nFlag);
773
774 static bool IsDocBoundaries() {return IsAppearanceFlag(ViewOptFlags::DocBoundaries);}
775 static bool IsObjectBoundaries() {return IsAppearanceFlag(ViewOptFlags::ObjectBoundaries);}
776 static bool IsTableBoundaries() {return IsAppearanceFlag(ViewOptFlags::TableBoundaries );}
777 static bool IsIndexShadings() {return IsAppearanceFlag(ViewOptFlags::IndexShadings );}
778 static bool IsLinks() {return IsAppearanceFlag(ViewOptFlags::Links );}
779 static bool IsVisitedLinks() {return IsAppearanceFlag(ViewOptFlags::VisitedLinks );}
780 static bool IsFieldShadings() {return IsAppearanceFlag(ViewOptFlags::FieldShadings);}
781 static bool IsSectionBoundaries() {return IsAppearanceFlag(ViewOptFlags::SectionBoundaries);}
782 static bool IsShadow() {return IsAppearanceFlag(ViewOptFlags::Shadow );}
783
784 static void SetAppearanceFlag(ViewOptFlags nFlag, bool bSet, bool bSaveInConfig = false);
785
786 static void SetDocBoundaries(bool bSet) {SetAppearanceFlag(ViewOptFlags::DocBoundaries, bSet);}
787
788 static void ApplyColorConfigValues(const svtools::ColorConfig& rConfig);
789
790 // get/set default anchor (0..2); use GetDefaultAnchorType() to convert into RndStdIds::FLY_*
791 sal_Int32 GetDefaultAnchor() const
792 { return m_nDefaultAnchor; }
793 void SetDefaultAnchor( const sal_Int32 aFlag )
794 { m_nDefaultAnchor = aFlag; }
795
796 RndStdIds GetDefaultAnchorType() const;
797};
798
799inline bool SwViewOption::operator==( const SwViewOption &rOpt ) const
800{
801 return IsEqualFlags( rOpt ) && m_nZoom == rOpt.GetZoom();
802}
803
804inline void SwViewOption::SetUIOptions( const SwViewOption& rVOpt )
805{
809}
810
811// Helper function for checking HTML-capabilities.
812SW_DLLPUBLIC sal_uInt16 GetHtmlMode(const SwDocShell*);
813
814#endif
815
816/* 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:799
bool IsViewHRuler(bool bDirect=false) const
Definition: viewopt.hxx:700
static bool IsShadow()
Definition: viewopt.hxx:782
static bool IsSectionBoundaries()
Definition: viewopt.hxx:781
void SetPagePreview(bool bSet)
Definition: viewopt.hxx:744
OUString m_sSymbolFont
Definition: viewopt.hxx:222
bool IsShowChangesInMargin2() const
Definition: viewopt.hxx:410
static bool IsLinks()
Definition: viewopt.hxx:778
void SetIdle(bool b) const
Definition: viewopt.hxx:283
bool IsHideWhitespaceMode() const
Definition: viewopt.hxx:591
static Color s_aVisitedLinksColor
Definition: viewopt.hxx:206
bool IsReadonly() const
Definition: viewopt.hxx:571
static bool IsDocBoundaries()
Definition: viewopt.hxx:774
bool IsParagraph(bool bHard=false) const
Definition: viewopt.hxx:313
bool m_bTest6
Definition: viewopt.hxx:260
void SetUIOption(bool b, ViewOptFlags2 f)
Definition: viewopt.hxx:672
void SetLineBreak(bool b)
Definition: viewopt.hxx:338
void SetHideWhitespaceMode(bool bMode)
Definition: viewopt.hxx:592
bool m_bIsPagePreview
Definition: viewopt.hxx:236
bool IsVRulerRight() const
Definition: viewopt.hxx:735
bool IsPagePreview() const
Definition: viewopt.hxx:743
bool IsSynchronize() const
Definition: viewopt.hxx:495
void SetShdwCursorFillMode(SwFillMode nMode)
Definition: viewopt.hxx:747
void SetShowContentTips(bool b)
Definition: viewopt.hxx:666
static Color s_aPageBreakColor
Definition: viewopt.hxx:214
bool IsShadowCursor() const
Definition: viewopt.hxx:729
sal_uInt8 m_nPagePreviewCol
Definition: viewopt.hxx:232
bool IsTest3() const
Definition: viewopt.hxx:604
bool m_bTest4
Definition: viewopt.hxx:258
bool IsSmoothScroll() const
Definition: viewopt.hxx:518
static Color s_aGrammarColor
Definition: viewopt.hxx:210
sal_Int32 GetDefaultAnchor() const
Definition: viewopt.hxx:791
void SetTab(bool b)
Definition: viewopt.hxx:290
void SetPrinting(bool b)
Definition: viewopt.hxx:541
bool IsShowBookmarks(bool const bHard=false) const
Definition: viewopt.hxx:327
const OUString & GetSymbolFont() const
Definition: viewopt.hxx:683
void SetGraphic(bool b)
Definition: viewopt.hxx:445
static Color s_aTextGridColor
Definition: viewopt.hxx:208
sal_uInt16 GetGapBetweenPages() const
Definition: viewopt.hxx:565
void SetShowChangesInMargin(bool b)
Definition: viewopt.hxx:404
void SetPagePrevCol(sal_uInt8 n)
Definition: viewopt.hxx:570
bool IsViewLayoutBookMode() const
Definition: viewopt.hxx:587
void SetVRulerRight(bool b)
Definition: viewopt.hxx:737
bool mbBookView
Definition: viewopt.hxx:240
void SetBlackFont(bool b)
Definition: viewopt.hxx:509
bool IsBlank(bool bHard=false) const
Definition: viewopt.hxx:295
void SetViewHRuler(bool b)
Definition: viewopt.hxx:711
SwFillMode m_nShadowCursorFillMode
Definition: viewopt.hxx:233
void SetTableDest(sal_uInt8 nNew)
Definition: viewopt.hxx:681
void SetResolvedPostIts(bool b)
Definition: viewopt.hxx:382
static Color s_aIndexShadingsColor
Definition: viewopt.hxx:204
void SetDefaultAnchor(const sal_Int32 aFlag)
Definition: viewopt.hxx:793
sal_uInt16 m_nZoom
Definition: viewopt.hxx:248
bool m_bTest3
Definition: viewopt.hxx:257
void SetStarOneSetting(bool bSet)
Definition: viewopt.hxx:741
void SetSynchronize(bool b)
Definition: viewopt.hxx:497
bool IsGridVisible() const
Definition: viewopt.hxx:476
void SetGrfKeepZoom(bool b)
Definition: viewopt.hxx:664
static bool IsTableBoundaries()
Definition: viewopt.hxx:776
bool mbFormView
Definition: viewopt.hxx:238
SvxZoomType GetZoomType() const
Definition: viewopt.hxx:654
static Color s_aFontColor
Definition: viewopt.hxx:203
static Color s_aShadowColor
Definition: viewopt.hxx:216
bool IsShowHiddenField() const
Definition: viewopt.hxx:438
void SetShowHiddenChar(bool b)
Definition: viewopt.hxx:435
void SetHardBlank(bool b)
Definition: viewopt.hxx:308
void SetFormView(bool bSet)
Definition: viewopt.hxx:578
static bool IsIndexShadings()
Definition: viewopt.hxx:777
bool IsMultipageView() const
Definition: viewopt.hxx:597
SwFillMode GetShdwCursorFillMode() const
Definition: viewopt.hxx:746
bool IsTable() const
Definition: viewopt.hxx:453
bool IsShowHiddenPara() const
Definition: viewopt.hxx:512
void SetColumnBreak(bool b)
Definition: viewopt.hxx:348
short GetDivisionY() const
Definition: viewopt.hxx:554
bool IsHardBlank() const
Definition: viewopt.hxx:304
sal_uInt16 GetZoom() const
Definition: viewopt.hxx:613
void SetPostIts(bool b)
Definition: viewopt.hxx:374
bool IsPagePrevBookview() const
Definition: viewopt.hxx:582
bool IsSelectionInReadonly() const
Definition: viewopt.hxx:574
static Color s_aFieldShadingsColor
Definition: viewopt.hxx:212
void SetTable(bool b)
Definition: viewopt.hxx:455
void SetPageBreak(bool b)
Definition: viewopt.hxx:343
ViewOptCoreFlags2 m_nCore2Options
Definition: viewopt.hxx:224
static Color s_aTableBoundColor
Definition: viewopt.hxx:202
bool m_bReadonly
Definition: viewopt.hxx:234
void SetPageBack(bool b)
Definition: viewopt.hxx:450
bool IsPrtFormat() const
Definition: viewopt.hxx:649
sal_uInt8 m_nPagePreviewRow
Definition: viewopt.hxx:231
void SetZoomType(SvxZoomType eZoom_)
Definition: viewopt.hxx:680
sal_uInt16 mnViewLayoutColumns
Definition: viewopt.hxx:228
void SetZoom(sal_uInt16 n)
Definition: viewopt.hxx:614
sal_uInt8 GetPagePrevCol() const
Definition: viewopt.hxx:569
static bool IsObjectBoundaries()
Definition: viewopt.hxx:775
ViewOptFlags2 m_nUIOptions
Definition: viewopt.hxx:225
sal_Int32 m_nDefaultAnchor
Definition: viewopt.hxx:245
void SetCursorInProtectedArea(bool b)
Definition: viewopt.hxx:527
void SetParagraph(bool b)
Definition: viewopt.hxx:318
bool IsPrinting() const
Definition: viewopt.hxx:538
const Color & GetRetoucheColor() const
Definition: viewopt.hxx:686
bool IsTest7() const
Definition: viewopt.hxx:608
sal_uInt16 GetViewLayoutColumns() const
Definition: viewopt.hxx:589
bool IsShowScrollBarTips() const
Definition: viewopt.hxx:651
void SetShadowCursor(bool b)
Definition: viewopt.hxx:731
sal_uInt8 GetPagePrevRow() const
Definition: viewopt.hxx:567
void SetTreatSubOutlineLevelsAsContent(bool b)
Definition: viewopt.hxx:428
void SetPagePrevRow(sal_uInt8 n)
Definition: viewopt.hxx:568
bool IsIdle() const
Definition: viewopt.hxx:276
void SetCore2Option(bool b, ViewOptCoreFlags2 f)
Definition: viewopt.hxx:544
bool m_bTest7
Definition: viewopt.hxx:261
bool IsBlackFont() const
Definition: viewopt.hxx:506
void SetSoftHyph(bool b)
Definition: viewopt.hxx:356
void SetSmoothScroll(bool b)
Definition: viewopt.hxx:521
void SetUseHeaderFooterMenu(bool b)
Definition: viewopt.hxx:419
void SetGridVisible(bool b)
Definition: viewopt.hxx:478
void SetShowHiddenField(bool b)
Definition: viewopt.hxx:440
void SetSnapSize(Size const &rSz)
Definition: viewopt.hxx:473
bool m_bShowPlaceHolderFields
Definition: viewopt.hxx:243
void SetShowScrollBarTips(bool b)
Definition: viewopt.hxx:670
bool mbHideWhitespaceMode
Definition: viewopt.hxx:242
bool IsViewAnyRuler() const
Definition: viewopt.hxx:689
void SetShowOutlineContentVisibilityButton(bool b)
Definition: viewopt.hxx:424
bool m_bTest10
Definition: viewopt.hxx:263
bool IsTest8() const
Definition: viewopt.hxx:609
void SetShowBookmarks(bool const b)
Definition: viewopt.hxx:323
static void SetDocBoundaries(bool bSet)
Definition: viewopt.hxx:786
bool m_bTest8
Definition: viewopt.hxx:262
bool IsKeepRatio() const
Definition: viewopt.hxx:643
bool IsViewHScrollBar() const
Definition: viewopt.hxx:635
bool IsPageBack() const
Definition: viewopt.hxx:448
const Size & GetSnapSize() const
Definition: viewopt.hxx:474
SvxZoomType m_eZoom
Definition: viewopt.hxx:249
void SetBlank(bool b)
Definition: viewopt.hxx:299
void SetKeepRatio(bool b)
Definition: viewopt.hxx:662
static Color s_aDocBoundColor
Definition: viewopt.hxx:199
ViewOptFlags1 m_nCoreOptions
Definition: viewopt.hxx:223
bool IsShowPlaceHolderFields() const
Definition: viewopt.hxx:749
bool m_bTest1
Definition: viewopt.hxx:255
bool IsShowContentTips() const
Definition: viewopt.hxx:647
short m_nDivisionY
Definition: viewopt.hxx:230
bool mbBrowseMode
Definition: viewopt.hxx:239
bool getBrowseMode() const
Definition: viewopt.hxx:580
void SetViewHScrollBar(bool b)
Definition: viewopt.hxx:660
bool IsPDFExport() const
Definition: viewopt.hxx:532
short m_nDivisionX
Definition: viewopt.hxx:229
bool IsShowHiddenChar(bool bHard=false) const
Definition: viewopt.hxx:431
bool m_bIdle
Definition: viewopt.hxx:244
void SetPagePrevBookview(bool bSet)
Definition: viewopt.hxx:583
void SetOnlineSpell(bool b)
Definition: viewopt.hxx:485
void SetControl(bool b)
Definition: viewopt.hxx:465
bool IsViewVRuler(bool bDirect=false) const
Definition: viewopt.hxx:714
static Color s_aSmarttagColor
Definition: viewopt.hxx:211
bool IsGraphic() const
Definition: viewopt.hxx:443
bool m_bStarOneSetting
Definition: viewopt.hxx:235
void SetShowPlaceHolderFields(bool bSet)
Definition: viewopt.hxx:750
bool IsCursorInProtectedArea() const
Definition: viewopt.hxx:524
bool IsTest5() const
Definition: viewopt.hxx:606
void SetReadonly(bool bSet)
Definition: viewopt.hxx:572
bool IsViewVScrollBar() const
Definition: viewopt.hxx:627
void SetViewVScrollBar(bool b)
Definition: viewopt.hxx:658
bool IsTest1() const
Definition: viewopt.hxx:602
void SetUIOptions(const SwViewOption &)
Definition: viewopt.hxx:804
bool IsSoftHyph() const
Definition: viewopt.hxx:353
sal_uInt8 m_nTableDestination
Definition: viewopt.hxx:251
static Color s_aDocColor
Definition: viewopt.hxx:198
Size m_aSnapSize
Definition: viewopt.hxx:227
bool IsFieldName() const
Definition: viewopt.hxx:361
bool IsTest10() const
Definition: viewopt.hxx:610
void SetSnap(bool b)
Definition: viewopt.hxx:470
bool IsControl() const
Definition: viewopt.hxx:463
void SetViewAnyRuler(bool bSet)
Definition: viewopt.hxx:697
void SetViewVRuler(bool b)
Definition: viewopt.hxx:725
static Color s_aHeaderFooterMarkColor
Definition: viewopt.hxx:217
void SetDivisionX(short n)
Definition: viewopt.hxx:553
bool IsPostIts() const
Definition: viewopt.hxx:369
void SetViewLayoutColumns(sal_uInt16 nNew)
Definition: viewopt.hxx:590
bool m_bTest5
Definition: viewopt.hxx:259
bool CanHideWhitespace() const
The rules that allow for hiding whitespace.
Definition: viewopt.hxx:595
bool IsViewMetaChars() const
Definition: viewopt.hxx:490
void SetShowHiddenPara(bool b)
Definition: viewopt.hxx:515
static bool IsFieldShadings()
Definition: viewopt.hxx:780
sal_uInt8 GetTableDest() const
Definition: viewopt.hxx:656
void SetPDFExport(bool b)
Definition: viewopt.hxx:535
Color m_aRetouchColor
Definition: viewopt.hxx:226
static Color s_aObjectBoundColor
Definition: viewopt.hxx:200
void SetPrtFormat(bool b)
Definition: viewopt.hxx:668
static Color s_aDirectCursorColor
Definition: viewopt.hxx:207
void SetDraw(bool b)
Definition: viewopt.hxx:460
bool IsResolvedPostIts() const
Definition: viewopt.hxx:379
bool IsLineBreak(bool bHard=false) const
Definition: viewopt.hxx:333
void SetShowChangesInMargin2(bool b)
Definition: viewopt.hxx:413
static Color s_aAppBackgroundColor
Definition: viewopt.hxx:201
void SetSymbolFont(const OUString &sSet)
Definition: viewopt.hxx:684
static Color s_aLinksColor
Definition: viewopt.hxx:205
static ViewOptFlags s_nAppearanceFlags
Definition: viewopt.hxx:219
static Color s_aScriptIndicatorColor
Definition: viewopt.hxx:215
static Color s_aSectionBoundColor
Definition: viewopt.hxx:213
bool IsEqualFlags(const SwViewOption &rOpt) const
Definition: viewopt.cxx:67
void SetSelectionInReadonly(bool bSet)
Definition: viewopt.hxx:575
bool IsTab(bool bHard=false) const
Definition: viewopt.hxx:286
void SetCrossHair(bool b)
Definition: viewopt.hxx:502
bool IsOnlineSpell() const
Definition: viewopt.hxx:481
void SetShowInlineTooltips(bool b)
Definition: viewopt.hxx:395
bool IsFormView() const
Definition: viewopt.hxx:577
short GetDivisionX() const
Definition: viewopt.hxx:552
bool IsTest4() const
Definition: viewopt.hxx:605
bool m_bSelectionInReadonly
Definition: viewopt.hxx:237
bool m_bTest2
Definition: viewopt.hxx:256
void SetDivisionY(short n)
Definition: viewopt.hxx:555
void SetFieldName(bool b)
Definition: viewopt.hxx:364
bool IsWhitespaceHidden() const
Definition: viewopt.hxx:596
bool IsUseHeaderFooterMenu() const
Definition: viewopt.hxx:417
void SetRetoucheColor(const Color &r)
Definition: viewopt.hxx:687
static Color s_aSpellColor
Definition: viewopt.hxx:209
bool IsGrfKeepZoom() const
Definition: viewopt.hxx:645
bool IsShowInlineTooltips() const
Definition: viewopt.hxx:390
void SetViewLayoutBookMode(bool bNew)
Definition: viewopt.hxx:588
bool IsShowChangesInMargin() const
Definition: viewopt.hxx:399
void setBrowseMode(bool bSet)
Definition: viewopt.hxx:581
static bool IsVisitedLinks()
Definition: viewopt.hxx:779
static sal_uInt16 s_nPixelTwips
Definition: viewopt.hxx:220
bool IsTest6() const
Definition: viewopt.hxx:607
bool IsSnap() const
Definition: viewopt.hxx:468
sal_uInt16 GetDocumentBorder() const
Definition: viewopt.hxx:564
bool IsCrossHair() const
Definition: viewopt.hxx:500
bool IsDraw() const
Definition: viewopt.hxx:458
void SetViewMetaChars(bool b)
Definition: viewopt.hxx:492
bool IsTest2() const
Definition: viewopt.hxx:603
bool IsStarOneSetting() const
Definition: viewopt.hxx:740
bool mbViewLayoutBookMode
Definition: viewopt.hxx:241
void Init()
SwFillMode
Definition: crstate.hxx:29
@ ColorConfig
sal_Int64 n
Color GetFontColor()
NONE
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:332
ViewOptFlags2
Definition: viewopt.hxx:154
SvxZoomType