20#ifndef INCLUDED_SW_INC_VIEWOPT_HXX
21#define INCLUDED_SW_INC_VIEWOPT_HXX
23#include <config_feature_desktop.h>
175#define TBL_DEST_CELL 0
176#define TBL_DEST_ROW 1
177#define TBL_DEST_TBL 2
286 bool IsTab(
bool bHard =
false)
const
288 return !m_bReadonly && m_nCoreOptions.
bTab && (m_nCoreOptions.
bViewMetachars || bHard);
292 m_nCoreOptions.
bTab = b;
301 m_nCoreOptions.
bBlank = b;
306 return !m_bReadonly && (m_nCoreOptions.
bHardBlank);
315 return !m_bReadonly && m_nCoreOptions.
bParagraph &&
329 return !m_bReadonly && (m_nCoreOptions.
bBookmarks)
330 && (bHard || IsFieldShadings());
335 return !m_bReadonly && (m_nCoreOptions.
bLinebreak) &&
354 {
return !m_bReadonly && (m_nCoreOptions.
bSoftHyph); }
362 {
return !m_bReadonly && (m_nCoreOptions.
bFieldName); }
387 static sal_uInt16 GetPostItsWidth(
const OutputDevice *pOut );
423 bool IsShowOutlineContentVisibilityButton()
const;
427 bool IsTreatSubOutlineLevelsAsContent()
const;
432 {
return !m_bReadonly && m_nCoreOptions.
bCharHidden &&
454 {
return m_nCoreOptions.
bTable; }
456 { m_nCoreOptions.
bTable = b; }
459 {
return m_nCoreOptions.
bDraw; }
461 { m_nCoreOptions.
bDraw = b; }
469 {
return m_nCoreOptions.
bSnap; }
471 { m_nCoreOptions.
bSnap = b; }
530 static bool IsIgnoreProtectedArea();
547 m_nCore2Options |= f;
549 m_nCore2Options &= ~f;
558 static constexpr sal_uInt16 defDocumentBorder = 284;
560 static constexpr sal_uInt16 defGapBetweenPages = 284;
562 static constexpr sal_uInt16 minGapBetweenPages = 22;
564 sal_uInt16
GetDocumentBorder()
const {
return IsWhitespaceHidden() ? minGapBetweenPages : defDocumentBorder; }
565 sal_uInt16
GetGapBetweenPages()
const {
return IsWhitespaceHidden() ? minGapBetweenPages : defGapBetweenPages; }
585 static bool IsAutoCompleteWords();
598 GetViewLayoutColumns() == 0; }
613 sal_uInt16
GetZoom()
const {
return m_nZoom; }
623 inline bool operator == (
const SwViewOption &rOpt )
const;
624 bool operator != (
const SwViewOption &rOpt )
const {
return !(*
this == rOpt); }
629#if HAVE_FEATURE_DESKTOP
637#if HAVE_FEATURE_DESKTOP
691#if HAVE_FEATURE_DESKTOP
702#if HAVE_FEATURE_DESKTOP
716#if HAVE_FEATURE_DESKTOP
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();
767 static Color& GetFieldShadingsColor();
768 static Color& GetSectionBoundColor();
769 static Color& GetPageBreakColor();
770 static Color& GetHeaderFooterMarkColor();
784 static void SetAppearanceFlag(
ViewOptFlags nFlag,
bool bSet,
bool bSaveInConfig =
false);
792 {
return m_nDefaultAnchor; }
794 { m_nDefaultAnchor = aFlag; }
Of course Writer needs its own rectangles.
bool operator==(const SwViewOption &rOpt) const
bool IsViewHRuler(bool bDirect=false) const
static bool IsSectionBoundaries()
void SetPagePreview(bool bSet)
bool IsShowChangesInMargin2() const
void SetIdle(bool b) const
bool IsHideWhitespaceMode() const
static Color s_aVisitedLinksColor
static bool IsDocBoundaries()
bool IsParagraph(bool bHard=false) const
void SetUIOption(bool b, ViewOptFlags2 f)
void SetLineBreak(bool b)
void SetHideWhitespaceMode(bool bMode)
bool IsVRulerRight() const
bool IsPagePreview() const
bool IsSynchronize() const
void SetShdwCursorFillMode(SwFillMode nMode)
void SetShowContentTips(bool b)
static Color s_aPageBreakColor
bool IsShadowCursor() const
sal_uInt8 m_nPagePreviewCol
bool IsSmoothScroll() const
static Color s_aGrammarColor
sal_Int32 GetDefaultAnchor() const
bool IsShowBookmarks(bool const bHard=false) const
const OUString & GetSymbolFont() const
static Color s_aTextGridColor
sal_uInt16 GetGapBetweenPages() const
void SetShowChangesInMargin(bool b)
void SetPagePrevCol(sal_uInt8 n)
bool IsViewLayoutBookMode() const
void SetVRulerRight(bool b)
void SetBlackFont(bool b)
bool IsBlank(bool bHard=false) const
void SetViewHRuler(bool b)
SwFillMode m_nShadowCursorFillMode
void SetTableDest(sal_uInt8 nNew)
void SetResolvedPostIts(bool b)
static Color s_aIndexShadingsColor
void SetDefaultAnchor(const sal_Int32 aFlag)
void SetStarOneSetting(bool bSet)
void SetSynchronize(bool b)
bool IsGridVisible() const
void SetGrfKeepZoom(bool b)
static bool IsTableBoundaries()
SvxZoomType GetZoomType() const
static Color s_aFontColor
static Color s_aShadowColor
bool IsShowHiddenField() const
void SetShowHiddenChar(bool b)
void SetHardBlank(bool b)
void SetFormView(bool bSet)
static bool IsIndexShadings()
bool IsMultipageView() const
SwFillMode GetShdwCursorFillMode() const
bool IsShowHiddenPara() const
void SetColumnBreak(bool b)
short GetDivisionY() const
sal_uInt16 GetZoom() const
bool IsPagePrevBookview() const
bool IsSelectionInReadonly() const
static Color s_aFieldShadingsColor
void SetPageBreak(bool b)
ViewOptCoreFlags2 m_nCore2Options
static Color s_aTableBoundColor
sal_uInt8 m_nPagePreviewRow
void SetZoomType(SvxZoomType eZoom_)
sal_uInt16 mnViewLayoutColumns
void SetZoom(sal_uInt16 n)
sal_uInt8 GetPagePrevCol() const
static bool IsObjectBoundaries()
ViewOptFlags2 m_nUIOptions
sal_Int32 m_nDefaultAnchor
void SetCursorInProtectedArea(bool b)
void SetParagraph(bool b)
const Color & GetRetoucheColor() const
sal_uInt16 GetViewLayoutColumns() const
bool IsShowScrollBarTips() const
void SetShadowCursor(bool b)
sal_uInt8 GetPagePrevRow() const
void SetTreatSubOutlineLevelsAsContent(bool b)
void SetPagePrevRow(sal_uInt8 n)
void SetCore2Option(bool b, ViewOptCoreFlags2 f)
void SetSmoothScroll(bool b)
void SetUseHeaderFooterMenu(bool b)
void SetGridVisible(bool b)
void SetShowHiddenField(bool b)
void SetSnapSize(Size const &rSz)
bool m_bShowPlaceHolderFields
void SetShowScrollBarTips(bool b)
bool mbHideWhitespaceMode
bool IsViewAnyRuler() const
void SetShowOutlineContentVisibilityButton(bool b)
void SetShowBookmarks(bool const b)
static void SetDocBoundaries(bool bSet)
bool IsViewHScrollBar() const
const Size & GetSnapSize() const
void SetKeepRatio(bool b)
static Color s_aDocBoundColor
ViewOptFlags1 m_nCoreOptions
bool IsShowPlaceHolderFields() const
bool IsShowContentTips() const
bool getBrowseMode() const
void SetViewHScrollBar(bool b)
bool IsShowHiddenChar(bool bHard=false) const
void SetPagePrevBookview(bool bSet)
void SetOnlineSpell(bool b)
bool IsViewVRuler(bool bDirect=false) const
static Color s_aSmarttagColor
void SetShowPlaceHolderFields(bool bSet)
bool IsCursorInProtectedArea() const
void SetReadonly(bool bSet)
bool IsViewVScrollBar() const
void SetViewVScrollBar(bool b)
void SetUIOptions(const SwViewOption &)
sal_uInt8 m_nTableDestination
void SetViewAnyRuler(bool bSet)
void SetViewVRuler(bool b)
static Color s_aHeaderFooterMarkColor
void SetDivisionX(short n)
void SetViewLayoutColumns(sal_uInt16 nNew)
bool CanHideWhitespace() const
The rules that allow for hiding whitespace.
bool IsViewMetaChars() const
void SetShowHiddenPara(bool b)
static bool IsFieldShadings()
sal_uInt8 GetTableDest() const
void SetPDFExport(bool b)
static Color s_aObjectBoundColor
void SetPrtFormat(bool b)
static Color s_aDirectCursorColor
bool IsResolvedPostIts() const
bool IsLineBreak(bool bHard=false) const
void SetShowChangesInMargin2(bool b)
static Color s_aAppBackgroundColor
void SetSymbolFont(const OUString &sSet)
static Color s_aLinksColor
static ViewOptFlags s_nAppearanceFlags
static Color s_aScriptIndicatorColor
static Color s_aSectionBoundColor
bool IsEqualFlags(const SwViewOption &rOpt) const
void SetSelectionInReadonly(bool bSet)
bool IsTab(bool bHard=false) const
void SetCrossHair(bool b)
bool IsOnlineSpell() const
void SetShowInlineTooltips(bool b)
short GetDivisionX() const
bool m_bSelectionInReadonly
void SetDivisionY(short n)
void SetFieldName(bool b)
bool IsWhitespaceHidden() const
bool IsUseHeaderFooterMenu() const
void SetRetoucheColor(const Color &r)
static Color s_aSpellColor
bool IsGrfKeepZoom() const
bool IsShowInlineTooltips() const
void SetViewLayoutBookMode(bool bNew)
bool IsShowChangesInMargin() const
void setBrowseMode(bool bSet)
static bool IsVisitedLinks()
static sal_uInt16 s_nPixelTwips
sal_uInt16 GetDocumentBorder() const
void SetViewMetaChars(bool b)
bool IsStarOneSetting() const
bool mbViewLayoutBookMode
bool bTreatSubOutlineLevelsAsContent
bool bShowChangesInMargin
bool bShowOutlineContentVisibilityButton
bool operator==(const ViewOptFlags1 &rOther) const
bool bShowChangesInMargin2
bool bUseHeaderFooterMenu
SW_DLLPUBLIC sal_uInt16 GetHtmlMode(const SwDocShell *)