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
308 m_aColorConfig = rColorConfig;
313 return m_aColorConfig;
318 m_sThemeName = rThemeName;
328 s_aInitialColorConfig = rColorConfig;
342 bool IsTab(
bool bHard =
false)
const
344 return !m_bReadonly && m_nCoreOptions.
bTab && (m_nCoreOptions.
bViewMetachars || bHard);
348 m_nCoreOptions.
bTab = b;
357 m_nCoreOptions.
bBlank = b;
362 return !m_bReadonly && (m_nCoreOptions.
bHardBlank);
371 return !m_bReadonly && m_nCoreOptions.
bParagraph &&
385 return !m_bReadonly && (m_nCoreOptions.
bBookmarks)
386 && (bHard || IsFieldShadings());
391 return !m_bReadonly && (m_nCoreOptions.
bLinebreak) &&
410 {
return !m_bReadonly && (m_nCoreOptions.
bSoftHyph); }
418 {
return !m_bReadonly && (m_nCoreOptions.
bFieldName); }
442 bool bIsScript )
const;
443 static sal_uInt16 GetPostItsWidth(
const OutputDevice *pOut );
479 bool IsShowOutlineContentVisibilityButton()
const;
483 bool IsTreatSubOutlineLevelsAsContent()
const;
488 {
return !m_bReadonly && m_nCoreOptions.
bCharHidden &&
510 {
return m_nCoreOptions.
bTable; }
512 { m_nCoreOptions.
bTable = b; }
515 {
return m_nCoreOptions.
bDraw; }
517 { m_nCoreOptions.
bDraw = b; }
525 {
return m_nCoreOptions.
bSnap; }
527 { m_nCoreOptions.
bSnap = b; }
586 static bool IsIgnoreProtectedArea();
603 m_nCore2Options |= f;
605 m_nCore2Options &= ~f;
614 static constexpr sal_uInt16 defDocumentBorder = 284;
616 static constexpr sal_uInt16 defGapBetweenPages = 284;
618 static constexpr sal_uInt16 minGapBetweenPages = 22;
620 sal_uInt16
GetDocumentBorder()
const {
return IsWhitespaceHidden() ? minGapBetweenPages : defDocumentBorder; }
621 sal_uInt16
GetGapBetweenPages()
const {
return IsWhitespaceHidden() ? minGapBetweenPages : defGapBetweenPages; }
641 static bool IsAutoCompleteWords();
654 GetViewLayoutColumns() == 0; }
669 sal_uInt16
GetZoom()
const {
return m_nZoom; }
679 inline bool operator == (
const SwViewOption &rOpt )
const;
680 bool operator != (
const SwViewOption &rOpt )
const {
return !(*
this == rOpt); }
685#if HAVE_FEATURE_DESKTOP
693#if HAVE_FEATURE_DESKTOP
747#if HAVE_FEATURE_DESKTOP
758#if HAVE_FEATURE_DESKTOP
772#if HAVE_FEATURE_DESKTOP
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;
822 const Color& GetFieldShadingsColor()
const;
823 const Color& GetSectionBoundColor()
const;
824 const Color& GetPageBreakColor()
const;
825 const Color& GetHeaderFooterMarkColor()
const;
839 void SetAppearanceFlag(
ViewOptFlags nFlag,
bool bSet,
bool bSaveInConfig =
false);
845 {
return m_nDefaultAnchor; }
847 { m_nDefaultAnchor = aFlag; }
Of course Writer needs its own rectangles.
bool operator==(const SwViewOption &rOpt) const
bool IsViewHRuler(bool bDirect=false) const
void SetPagePreview(bool bSet)
bool IsShowChangesInMargin2() const
void SetIdle(bool b) const
bool IsHideWhitespaceMode() const
bool IsIndexShadings() const
bool IsParagraph(bool bHard=false) const
void SetUIOption(bool b, ViewOptFlags2 f)
bool IsVisitedLinks() const
bool IsSectionBoundaries() const
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)
bool IsShadowCursor() const
sal_uInt8 m_nPagePreviewCol
bool IsSmoothScroll() const
sal_Int32 GetDefaultAnchor() const
bool IsShowBookmarks(bool const bHard=false) const
const OUString & GetSymbolFont() const
sal_uInt16 GetGapBetweenPages() const
void SetShowChangesInMargin(bool b)
void SetPagePrevCol(sal_uInt8 n)
bool IsViewLayoutBookMode() const
void SetVRulerRight(bool b)
static void SetInitialColorConfig(const SwViewColors &rColorConfig)
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)
void SetDefaultAnchor(const sal_Int32 aFlag)
void SetStarOneSetting(bool bSet)
void SetSynchronize(bool b)
bool IsGridVisible() const
void SetGrfKeepZoom(bool b)
const SwViewColors & GetColorConfig() const
SvxZoomType GetZoomType() const
bool IsShowHiddenField() const
void SetShowHiddenChar(bool b)
void SetHardBlank(bool b)
void SetFormView(bool bSet)
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
void SetPageBreak(bool b)
ViewOptCoreFlags2 m_nCore2Options
OUString GetThemeName() const
sal_uInt8 m_nPagePreviewRow
void SetZoomType(SvxZoomType eZoom_)
sal_uInt16 mnViewLayoutColumns
void SetZoom(sal_uInt16 n)
sal_uInt8 GetPagePrevCol() const
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)
static SwViewColors s_aInitialColorConfig
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 SetThemeName(const OUString &rThemeName)
void SetShowBookmarks(bool const b)
bool IsViewHScrollBar() const
const Size & GetSnapSize() const
void SetKeepRatio(bool b)
ViewOptFlags1 m_nCoreOptions
bool IsShowPlaceHolderFields() const
bool IsShowContentTips() const
bool getBrowseMode() const
void SetViewHScrollBar(bool b)
void SetColorConfig(const SwViewColors &rColorConfig)
bool IsShowHiddenChar(bool bHard=false) const
void SetPagePrevBookview(bool bSet)
void SetOnlineSpell(bool b)
bool IsViewVRuler(bool bDirect=false) const
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
SwViewColors m_aColorConfig
void SetViewAnyRuler(bool bSet)
bool IsTableBoundaries() const
void SetViewVRuler(bool b)
void SetDivisionX(short n)
void SetViewLayoutColumns(sal_uInt16 nNew)
bool IsObjectBoundaries() const
bool CanHideWhitespace() const
The rules that allow for hiding whitespace.
bool IsViewMetaChars() const
void SetShowHiddenPara(bool b)
sal_uInt8 GetTableDest() const
void SetPDFExport(bool b)
void SetPrtFormat(bool b)
bool IsResolvedPostIts() const
bool IsLineBreak(bool bHard=false) const
void SetShowChangesInMargin2(bool b)
void SetSymbolFont(const OUString &sSet)
void SetDocBoundaries(bool bSet)
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 IsDocBoundaries() const
bool m_bSelectionInReadonly
void SetDivisionY(short n)
void SetFieldName(bool b)
bool IsWhitespaceHidden() const
bool IsUseHeaderFooterMenu() const
void SetRetoucheColor(const Color &r)
bool IsGrfKeepZoom() const
bool IsShowInlineTooltips() const
void SetViewLayoutBookMode(bool bNew)
bool IsShowChangesInMargin() const
bool IsFieldShadings() const
void setBrowseMode(bool bSet)
static sal_uInt16 s_nPixelTwips
sal_uInt16 GetDocumentBorder() const
void SetViewMetaChars(bool b)
bool IsStarOneSetting() const
bool mbViewLayoutBookMode
ViewOptFlags m_nAppearanceFlags
Color m_aScriptIndicatorColor
Color m_aFieldShadingsColor
Color m_aSectionBoundColor
Color m_aIndexShadingsColor
Color m_aVisitedLinksColor
Color m_aHeaderFooterMarkColor
bool operator==(const SwViewColors &rOther) const
Color m_aAppBackgroundColor
Color m_aObjectBoundColor
bool bTreatSubOutlineLevelsAsContent
bool bShowChangesInMargin
bool bShowOutlineContentVisibilityButton
bool operator==(const ViewOptFlags1 &rOther) const
bool bShowChangesInMargin2
bool bUseHeaderFooterMenu
SW_DLLPUBLIC sal_uInt16 GetHtmlMode(const SwDocShell *)