20#ifndef INCLUDED_SW_INC_VIEWOPT_HXX
21#define INCLUDED_SW_INC_VIEWOPT_HXX
23#include <config_feature_desktop.h>
108#define TBL_DEST_CELL 0
109#define TBL_DEST_ROW 1
110#define TBL_DEST_TBL 2
219 bool IsTab(
bool bHard =
false)
const
249 && (bHard || IsFieldShadings());
285 static sal_uInt16 GetPostItsWidth(
const OutputDevice *pOut );
312 bool IsShowOutlineContentVisibilityButton()
const;
316 bool IsTreatSubOutlineLevelsAsContent()
const;
373 void SetOnlineSpell(
bool b );
415 static bool IsIgnoreProtectedArea();
432 m_nCore2Options |=
f;
434 m_nCore2Options &= ~f;
441 m_nCoreOptions &= ~f;
450 static constexpr sal_uInt16 defDocumentBorder = 284;
452 static constexpr sal_uInt16 defGapBetweenPages = 284;
454 static constexpr sal_uInt16 minGapBetweenPages = 22;
456 sal_uInt16
GetDocumentBorder()
const {
return IsWhitespaceHidden() ? minGapBetweenPages : defDocumentBorder; }
457 sal_uInt16
GetGapBetweenPages()
const {
return IsWhitespaceHidden() ? minGapBetweenPages : defGapBetweenPages; }
477 static bool IsAutoCompleteWords();
490 GetViewLayoutColumns() == 0; }
505 sal_uInt16
GetZoom()
const {
return m_nZoom; }
515 inline bool operator == (
const SwViewOption &rOpt )
const;
516 bool operator != (
const SwViewOption &rOpt )
const {
return !(*
this == rOpt); }
521#if HAVE_FEATURE_DESKTOP
529#if HAVE_FEATURE_DESKTOP
583#if HAVE_FEATURE_DESKTOP
594#if HAVE_FEATURE_DESKTOP
608#if HAVE_FEATURE_DESKTOP
644 static Color& GetDocColor();
645 static Color& GetDocBoundariesColor();
646 static Color& GetAppBackgroundColor();
647 static Color& GetObjectBoundariesColor();
648 static Color& GetTableBoundariesColor();
649 static Color& GetIndexShadingsColor();
650 static Color& GetLinksColor();
651 static Color& GetVisitedLinksColor();
652 static Color& GetDirectCursorColor();
653 static Color& GetTextGridColor();
654 static Color& GetSpellColor();
655 static Color& GetSmarttagColor();
656 static Color& GetShadowColor();
658 static Color& GetFieldShadingsColor();
659 static Color& GetSectionBoundColor();
660 static Color& GetPageBreakColor();
661 static Color& GetHeaderFooterMarkColor();
675 static void SetAppearanceFlag(
ViewOptFlags nFlag,
bool bSet,
bool bSaveInConfig =
false);
683 {
return m_nDefaultAnchor; }
685 { 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
ViewOptFlags1 GetCoreOptions() const
bool IsSmoothScroll() const
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
void SetCoreOption(bool b, ViewOptFlags1 f)
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)
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
void(* f)(TrueTypeTable *)
@ TreatSubOutlineLevelsAsContent
@ ShowOutlineContentVisibilityButton
SW_DLLPUBLIC sal_uInt16 GetHtmlMode(const SwDocShell *)