LibreOffice Module sw (master)  1
Public Member Functions | Private Attributes | Friends | List of all members
SwMasterUsrPref Class Reference

#include <usrpref.hxx>

Inheritance diagram for SwMasterUsrPref:
[legend]
Collaboration diagram for SwMasterUsrPref:
[legend]

Public Member Functions

 SwMasterUsrPref (bool bWeb)
 
 ~SwMasterUsrPref ()
 
void SetUsrPref (const SwViewOption &rCopy)
 
void SetModified ()
 
void SetUpdateLinkMode (sal_Int32 nSet, bool bNoModify=false)
 
sal_Int32 GetUpdateLinkMode () const
 
void SetUpdateFields (bool bSet)
 
bool IsUpdateFields () const
 
SwFieldUpdateFlags GetFieldUpdateFlags () const
 
void SetFieldUpdateFlags (SwFieldUpdateFlags eSet)
 
void SetUpdateCharts (bool bSet)
 
bool IsUpdateCharts () const
 
FieldUnit GetMetric () const
 
void SetMetric (FieldUnit eSet, bool bNoModify=false)
 
bool IsHScrollMetric () const
 
FieldUnit GetHScrollMetric () const
 
void SetHScrollMetric (FieldUnit eSet)
 
bool IsVScrollMetric () const
 
FieldUnit GetVScrollMetric () const
 
void SetVScrollMetric (FieldUnit eSet)
 
bool IsApplyCharUnit () const
 
void SetApplyCharUnit (bool bSet, bool noModify=false)
 
sal_Int32 GetDefTabInMm100 () const
 
void SetDefTabInMm100 (sal_Int32 nSet, bool bNoModify=false)
 
bool IsSquaredPageMode () const
 
void SetDefaultPageMode (bool bVal, bool bNoModify=false)
 
bool IsAlignMathObjectsToBaseline () const
 
void SetAlignMathObjectsToBaseline (bool bVal, bool noModify=false)
 
- Public Member Functions inherited from SwViewOption
 SwViewOption ()
 
 SwViewOption (const SwViewOption &)
 
 ~SwViewOption ()
 
ViewOptFlags1 GetCoreOptions () const
 
void SetUIOptions (const SwViewOption &)
 
bool IsIdle () const
 
void SetIdle (bool b) const
 
bool IsTab (bool bHard=false) const
 
void SetTab (bool b)
 
bool IsBlank (bool bHard=false) const
 
void SetBlank (bool b)
 
bool IsHardBlank () const
 
void SetHardBlank (bool b)
 
bool IsParagraph (bool bHard=false) const
 
void SetParagraph (bool b)
 
bool IsLineBreak (bool bHard=false) const
 
void SetLineBreak (bool b)
 
void SetPageBreak (bool b)
 
void SetColumnBreak (bool b)
 
bool IsSoftHyph () const
 
void SetSoftHyph (bool b)
 
bool IsFieldName () const
 
void SetFieldName (bool b)
 
bool IsPostIts () const
 
void SetPostIts (bool b)
 
bool IsShowInlineTooltips () const
 
void SetShowInlineTooltips (bool b)
 
bool IsUseHeaderFooterMenu () const
 
void SetUseHeaderFooterMenu (bool b)
 
bool IsShowHiddenChar (bool bHard=false) const
 
void SetShowHiddenChar (bool b)
 
bool IsShowHiddenField () const
 
void SetShowHiddenField (bool b)
 
bool IsGraphic () const
 
void SetGraphic (bool b)
 
bool IsPageBack () const
 
void SetPageBack (bool b)
 
bool IsTable () const
 
void SetTable (bool b)
 
bool IsDraw () const
 
void SetDraw (bool b)
 
bool IsControl () const
 
void SetControl (bool b)
 
bool IsSnap () const
 
void SetSnap (bool b)
 
void SetSnapSize (Size const &rSz)
 
const SizeGetSnapSize () const
 
bool IsGridVisible () const
 
void SetGridVisible (bool b)
 
bool IsOnlineSpell () const
 
void SetOnlineSpell (bool b)
 
bool IsViewMetaChars () const
 
void SetViewMetaChars (bool b)
 
bool IsSynchronize () const
 
void SetSynchronize (bool b)
 
bool IsCrossHair () const
 
void SetCrossHair (bool b)
 
bool IsBlackFont () const
 
void SetBlackFont (bool b)
 
bool IsShowHiddenPara () const
 
void SetShowHiddenPara (bool b)
 
bool IsSmoothScroll () const
 
void SetSmoothScroll (bool b)
 
bool IsCursorInProtectedArea () const
 
void SetCursorInProtectedArea (bool b)
 
bool IsPDFExport () const
 
void SetPDFExport (bool b)
 
bool IsPrinting () const
 
void SetPrinting (bool b)
 
void SetCore2Option (bool b, ViewOptCoreFlags2 f)
 
void SetCoreOption (bool b, ViewOptFlags1 f)
 
short GetDivisionX () const
 
void SetDivisionX (short n)
 
short GetDivisionY () const
 
void SetDivisionY (short n)
 
sal_uInt16 GetDocumentBorder () const
 
sal_uInt16 GetGapBetweenPages () const
 
sal_uInt8 GetPagePrevRow () const
 
void SetPagePrevRow (sal_uInt8 n)
 
sal_uInt8 GetPagePrevCol () const
 
void SetPagePrevCol (sal_uInt8 n)
 
bool IsReadonly () const
 
void SetReadonly (bool bSet)
 
bool IsSelectionInReadonly () const
 
void SetSelectionInReadonly (bool bSet)
 
bool IsFormView () const
 
void SetFormView (bool bSet)
 
bool getBrowseMode () const
 
void setBrowseMode (bool bSet)
 
bool IsPagePrevBookview () const
 
void SetPagePrevBookview (bool bSet)
 
bool IsViewLayoutBookMode () const
 
void SetViewLayoutBookMode (bool bNew)
 
sal_uInt16 GetViewLayoutColumns () const
 
void SetViewLayoutColumns (sal_uInt16 nNew)
 
bool IsHideWhitespaceMode () const
 
void SetHideWhitespaceMode (bool bMode)
 
bool CanHideWhitespace () const
 The rules that allow for hiding whitespace. More...
 
bool IsWhitespaceHidden () const
 
bool IsMultipageView () const
 
bool IsTest1 () const
 
bool IsTest2 () const
 
bool IsTest3 () const
 
bool IsTest4 () const
 
bool IsTest5 () const
 
bool IsTest6 () const
 
bool IsTest7 () const
 
bool IsTest8 () const
 
bool IsTest10 () const
 
sal_uInt16 GetZoom () const
 
void SetZoom (sal_uInt16 n)
 
SwViewOptionoperator= (const SwViewOption &rOpt)
 
bool IsEqualFlags (const SwViewOption &rOpt) const
 
bool operator== (const SwViewOption &rOpt) const
 
bool operator!= (const SwViewOption &rOpt) const
 
bool IsViewVScrollBar () const
 
bool IsViewHScrollBar () const
 
bool IsKeepRatio () const
 
bool IsGrfKeepZoom () const
 
bool IsShowContentTips () const
 
bool IsPrtFormat () const
 
bool IsShowScrollBarTips () const
 
SvxZoomType GetZoomType () const
 
sal_uInt8 GetTableDest () const
 
void SetViewVScrollBar (bool b)
 
void SetViewHScrollBar (bool b)
 
void SetKeepRatio (bool b)
 
void SetGrfKeepZoom (bool b)
 
void SetShowContentTips (bool b)
 
void SetPrtFormat (bool b)
 
void SetShowScrollBarTips (bool b)
 
void SetUIOption (bool b, ViewOptFlags2 f)
 
void SetZoomType (SvxZoomType eZoom_)
 
void SetTableDest (sal_uInt8 nNew)
 
const OUString & GetSymbolFont () const
 
void SetSymbolFont (const OUString &sSet)
 
const ColorGetRetoucheColor () const
 
void SetRetoucheColor (const Color &r)
 
bool IsViewAnyRuler () const
 
void SetViewAnyRuler (bool bSet)
 
bool IsViewHRuler (bool bDirect=false) const
 
void SetViewHRuler (bool b)
 
bool IsViewVRuler (bool bDirect=false) const
 
void SetViewVRuler (bool b)
 
bool IsShadowCursor () const
 
void SetShadowCursor (bool b)
 
bool IsVRulerRight () const
 
void SetVRulerRight (bool b)
 
bool IsStarOneSetting () const
 
void SetStarOneSetting (bool bSet)
 
bool IsPagePreview () const
 
void SetPagePreview (bool bSet)
 
sal_uInt8 GetShdwCursorFillMode () const
 
void SetShdwCursorFillMode (sal_uInt8 nMode)
 
bool IsShowPlaceHolderFields () const
 
void SetShowPlaceHolderFields (bool bSet)
 

Private Attributes

SwFieldUpdateFlags m_eFieldUpdateFlags
 
sal_Int32 m_nLinkUpdateMode
 
FieldUnit m_eUserMetric
 
FieldUnit m_eHScrollMetric
 
bool m_bIsHScrollMetricSet
 
FieldUnit m_eVScrollMetric
 
bool m_bIsVScrollMetricSet
 
sal_Int32 m_nDefTabInMm100
 
bool m_bIsSquaredPageMode
 
bool m_bIsAlignMathObjectsToBaseline
 
SwContentViewConfig m_aContentConfig
 
SwLayoutViewConfig m_aLayoutConfig
 
SwGridConfig m_aGridConfig
 
SwCursorConfig m_aCursorConfig
 
std::unique_ptr< SwWebColorConfigm_pWebColorConfig
 
bool m_bApplyCharUnit
 

Friends

class SwContentViewConfig
 
class SwLayoutViewConfig
 
class SwGridConfig
 
class SwCursorConfig
 
class SwWebColorConfig
 

Additional Inherited Members

- Static Public Member Functions inherited from SwViewOption
static void Init (vcl::Window const *pWin)
 
static void PaintPostIts (OutputDevice *pOut, const SwRect &rRect, bool bIsScript)
 
static sal_uInt16 GetPostItsWidth (const OutputDevice *pOut)
 
static bool IsIgnoreProtectedArea ()
 
static bool IsAutoCompleteWords ()
 
static void DrawRect (OutputDevice *pOut, const SwRect &rRect,::Color nCol)
 
static void DrawRectPrinter (OutputDevice *pOut, const SwRect &rRect)
 
static ColorGetDocColor ()
 
static ColorGetDocBoundariesColor ()
 
static ColorGetAppBackgroundColor ()
 
static ColorGetObjectBoundariesColor ()
 
static ColorGetTableBoundariesColor ()
 
static ColorGetIndexShadingsColor ()
 
static ColorGetLinksColor ()
 
static ColorGetVisitedLinksColor ()
 
static ColorGetDirectCursorColor ()
 
static ColorGetTextGridColor ()
 
static ColorGetSpellColor ()
 
static ColorGetSmarttagColor ()
 
static ColorGetShadowColor ()
 
static ColorGetFontColor ()
 
static ColorGetFieldShadingsColor ()
 
static ColorGetSectionBoundColor ()
 
static ColorGetPageBreakColor ()
 
static ColorGetHeaderFooterMarkColor ()
 
static bool IsAppearanceFlag (ViewOptFlags nFlag)
 
static bool IsDocBoundaries ()
 
static bool IsObjectBoundaries ()
 
static bool IsTableBoundaries ()
 
static bool IsIndexShadings ()
 
static bool IsLinks ()
 
static bool IsVisitedLinks ()
 
static bool IsFieldShadings ()
 
static bool IsSectionBoundaries ()
 
static bool IsShadow ()
 
static void SetAppearanceFlag (ViewOptFlags nFlag, bool bSet, bool bSaveInConfig=false)
 
static void SetDocBoundaries (bool bSet)
 
static void ApplyColorConfigValues (const svtools::ColorConfig &rConfig)
 
- Static Public Attributes inherited from SwViewOption
static constexpr sal_uInt16 defDocumentBorder = 284
 
static constexpr sal_uInt16 defGapBetweenPages = 284
 
static constexpr sal_uInt16 minGapBetweenPages = 22
 

Detailed Description

Definition at line 123 of file usrpref.hxx.

Constructor & Destructor Documentation

SwMasterUsrPref::SwMasterUsrPref ( bool  bWeb)
SwMasterUsrPref::~SwMasterUsrPref ( )

Definition at line 81 of file usrpref.cxx.

Member Function Documentation

sal_Int32 SwMasterUsrPref::GetDefTabInMm100 ( ) const
inline

Definition at line 244 of file usrpref.hxx.

References m_nDefTabInMm100.

Referenced by SwModule::CreateItemSet(), and SwLayoutViewConfig::ImplCommit().

SwFieldUpdateFlags SwMasterUsrPref::GetFieldUpdateFlags ( ) const
inline

Definition at line 188 of file usrpref.hxx.

References m_eFieldUpdateFlags.

Referenced by SwLoadOptPage::Reset().

FieldUnit SwMasterUsrPref::GetHScrollMetric ( ) const
inline
FieldUnit SwMasterUsrPref::GetMetric ( ) const
inline
sal_Int32 SwMasterUsrPref::GetUpdateLinkMode ( ) const
inline

Definition at line 173 of file usrpref.hxx.

References m_nLinkUpdateMode.

Referenced by SwContentViewConfig::ImplCommit(), and SwLoadOptPage::Reset().

FieldUnit SwMasterUsrPref::GetVScrollMetric ( ) const
inline
bool SwMasterUsrPref::IsAlignMathObjectsToBaseline ( ) const
inline

Definition at line 261 of file usrpref.hxx.

References m_bIsAlignMathObjectsToBaseline.

Referenced by SwLayoutViewConfig::ImplCommit().

bool SwMasterUsrPref::IsApplyCharUnit ( ) const
inline
bool SwMasterUsrPref::IsHScrollMetric ( ) const
inline

Definition at line 216 of file usrpref.hxx.

References m_bIsHScrollMetricSet.

Referenced by SwModule::ApplyUserCharUnit(), and SwModule::ApplyUserMetric().

bool SwMasterUsrPref::IsSquaredPageMode ( ) const
inline

Definition at line 253 of file usrpref.hxx.

References m_bIsSquaredPageMode.

Referenced by SwLayoutViewConfig::ImplCommit().

bool SwMasterUsrPref::IsUpdateCharts ( ) const
inline

Definition at line 206 of file usrpref.hxx.

References AUTOUPD_FIELD_AND_CHARTS.

Referenced by SwContentViewConfig::ImplCommit().

bool SwMasterUsrPref::IsUpdateFields ( ) const
inline

Definition at line 186 of file usrpref.hxx.

References AUTOUPD_OFF.

Referenced by SwContentViewConfig::ImplCommit().

bool SwMasterUsrPref::IsVScrollMetric ( ) const
inline

Definition at line 224 of file usrpref.hxx.

References m_bIsVScrollMetricSet.

Referenced by SwModule::ApplyUserCharUnit(), and SwModule::ApplyUserMetric().

void SwMasterUsrPref::SetAlignMathObjectsToBaseline ( bool  bVal,
bool  noModify = false 
)
inline

Definition at line 262 of file usrpref.hxx.

References utl::ConfigItem::SetModified().

Referenced by SwModule::ApplyItemSet(), and SwLayoutViewConfig::Load().

void SwMasterUsrPref::SetApplyCharUnit ( bool  bSet,
bool  noModify = false 
)
inline

Definition at line 236 of file usrpref.hxx.

References utl::ConfigItem::SetModified().

Referenced by SwModule::ApplyUserCharUnit(), and SwLayoutViewConfig::Load().

void SwMasterUsrPref::SetDefaultPageMode ( bool  bVal,
bool  bNoModify = false 
)
inline

Definition at line 254 of file usrpref.hxx.

References utl::ConfigItem::SetModified().

Referenced by SwLayoutViewConfig::Load().

void SwMasterUsrPref::SetDefTabInMm100 ( sal_Int32  nSet,
bool  bNoModify = false 
)
inline

Definition at line 245 of file usrpref.hxx.

References utl::ConfigItem::SetModified().

Referenced by SwModule::ApplyItemSet(), and SwLayoutViewConfig::Load().

void SwMasterUsrPref::SetFieldUpdateFlags ( SwFieldUpdateFlags  eSet)
inline

Definition at line 189 of file usrpref.hxx.

References utl::ConfigItem::SetModified().

void SwMasterUsrPref::SetHScrollMetric ( FieldUnit  eSet)
inline

Definition at line 218 of file usrpref.hxx.

References utl::ConfigItem::SetModified().

Referenced by SwModule::ApplyItemSet(), and SwModule::ApplyRulerMetric().

void SwMasterUsrPref::SetMetric ( FieldUnit  eSet,
bool  bNoModify = false 
)
inline

Definition at line 209 of file usrpref.hxx.

References utl::ConfigItem::SetModified().

Referenced by SwModule::ApplyUserMetric(), and SwLayoutViewConfig::Load().

void SwMasterUsrPref::SetModified ( )
inline
void SwMasterUsrPref::SetUpdateCharts ( bool  bSet)
inline

Definition at line 195 of file usrpref.hxx.

References AUTOUPD_FIELD_AND_CHARTS, and AUTOUPD_FIELD_ONLY.

Referenced by SwContentViewConfig::Load().

void SwMasterUsrPref::SetUpdateFields ( bool  bSet)
inline

Definition at line 175 of file usrpref.hxx.

References AUTOUPD_FIELD_ONLY, and AUTOUPD_OFF.

Referenced by SwContentViewConfig::Load().

void SwMasterUsrPref::SetUpdateLinkMode ( sal_Int32  nSet,
bool  bNoModify = false 
)
inline

Definition at line 167 of file usrpref.hxx.

References utl::ConfigItem::SetModified().

Referenced by SwContentViewConfig::Load().

void SwMasterUsrPref::SetUsrPref ( const SwViewOption rCopy)

Definition at line 44 of file usrpref.cxx.

Referenced by SwModule::ApplyUsrPref().

void SwMasterUsrPref::SetVScrollMetric ( FieldUnit  eSet)
inline

Definition at line 226 of file usrpref.hxx.

References utl::ConfigItem::SetModified().

Referenced by SwModule::ApplyItemSet(), and SwModule::ApplyRulerMetric().

Friends And Related Function Documentation

friend class SwContentViewConfig
friend

Definition at line 125 of file usrpref.hxx.

friend class SwCursorConfig
friend

Definition at line 128 of file usrpref.hxx.

friend class SwGridConfig
friend

Definition at line 127 of file usrpref.hxx.

friend class SwLayoutViewConfig
friend

Definition at line 126 of file usrpref.hxx.

friend class SwWebColorConfig
friend

Definition at line 129 of file usrpref.hxx.

Member Data Documentation

SwContentViewConfig SwMasterUsrPref::m_aContentConfig
private

Definition at line 144 of file usrpref.hxx.

Referenced by SwMasterUsrPref().

SwCursorConfig SwMasterUsrPref::m_aCursorConfig
private

Definition at line 147 of file usrpref.hxx.

Referenced by SwMasterUsrPref().

SwGridConfig SwMasterUsrPref::m_aGridConfig
private

Definition at line 146 of file usrpref.hxx.

Referenced by SwMasterUsrPref().

SwLayoutViewConfig SwMasterUsrPref::m_aLayoutConfig
private

Definition at line 145 of file usrpref.hxx.

Referenced by SwMasterUsrPref().

bool SwMasterUsrPref::m_bApplyCharUnit
private

Definition at line 150 of file usrpref.hxx.

Referenced by IsApplyCharUnit().

bool SwMasterUsrPref::m_bIsAlignMathObjectsToBaseline
private

Definition at line 142 of file usrpref.hxx.

Referenced by IsAlignMathObjectsToBaseline().

bool SwMasterUsrPref::m_bIsHScrollMetricSet
private
bool SwMasterUsrPref::m_bIsSquaredPageMode
private

Definition at line 141 of file usrpref.hxx.

Referenced by IsSquaredPageMode().

bool SwMasterUsrPref::m_bIsVScrollMetricSet
private
SwFieldUpdateFlags SwMasterUsrPref::m_eFieldUpdateFlags
private

Definition at line 131 of file usrpref.hxx.

Referenced by GetFieldUpdateFlags().

FieldUnit SwMasterUsrPref::m_eHScrollMetric
private
FieldUnit SwMasterUsrPref::m_eUserMetric
private

Definition at line 133 of file usrpref.hxx.

Referenced by GetHScrollMetric(), GetMetric(), GetVScrollMetric(), and SwMasterUsrPref().

FieldUnit SwMasterUsrPref::m_eVScrollMetric
private
sal_Int32 SwMasterUsrPref::m_nDefTabInMm100
private

Definition at line 139 of file usrpref.hxx.

Referenced by GetDefTabInMm100().

sal_Int32 SwMasterUsrPref::m_nLinkUpdateMode
private

Definition at line 132 of file usrpref.hxx.

Referenced by GetUpdateLinkMode().

std::unique_ptr<SwWebColorConfig> SwMasterUsrPref::m_pWebColorConfig
private

Definition at line 148 of file usrpref.hxx.

Referenced by SwMasterUsrPref().


The documentation for this class was generated from the following files: