LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ScViewCfg Class Reference

#include <viewopti.hxx>

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

Public Member Functions

 ScViewCfg ()
 
void SetOptions (const ScViewOptions &rNew)
 
- Public Member Functions inherited from ScViewOptions
 ScViewOptions ()
 
 ScViewOptions (const ScViewOptions &rCpy)
 
 ~ScViewOptions ()
 
void SetDefaults ()
 
void SetOption (ScViewOption eOpt, bool bNew)
 
bool GetOption (ScViewOption eOpt) const
 
void SetObjMode (ScVObjType eObj, ScVObjMode eMode)
 
ScVObjMode GetObjMode (ScVObjType eObj) const
 
void SetGridColor (const Color &rCol, const OUString &rName)
 
Color const & GetGridColor (OUString *pStrName=nullptr) const
 
const ScGridOptionsGetGridOptions () const
 
void SetGridOptions (const ScGridOptions &rNew)
 
std::unique_ptr< SvxGridItemCreateGridItem () const
 
const OUString & GetColorSchemeName () const
 
void SetColorSchemeName (const OUString &rName)
 
const ColorGetDocColor () const
 
void SetDocColor (const Color &rDocColor)
 
ScViewOptionsoperator= (const ScViewOptions &rCpy)
 
bool operator== (const ScViewOptions &rOpt) const
 
bool operator!= (const ScViewOptions &rOpt) const
 

Private Member Functions

 DECL_LINK (LayoutCommitHdl, ScLinkConfigItem &, void)
 
 DECL_LINK (DisplayCommitHdl, ScLinkConfigItem &, void)
 
 DECL_LINK (GridCommitHdl, ScLinkConfigItem &, void)
 

Static Private Member Functions

static css::uno::Sequence< OUString > GetLayoutPropertyNames ()
 
static css::uno::Sequence< OUString > GetDisplayPropertyNames ()
 
static css::uno::Sequence< OUString > GetGridPropertyNames ()
 

Private Attributes

ScLinkConfigItem aLayoutItem
 
ScLinkConfigItem aDisplayItem
 
ScLinkConfigItem aGridItem
 

Detailed Description

Definition at line 144 of file viewopti.hxx.

Constructor & Destructor Documentation

◆ ScViewCfg()

ScViewCfg::ScViewCfg ( )

Definition at line 284 of file viewopti.cxx.

References aDisplayItem, aGridItem, aLayoutItem, Any, utl::ConfigItem::EnableNotification(), ScUnoHelpFunctions::GetBoolFromAny(), GetDisplayPropertyNames(), ScViewOptions::GetGridOptions(), GetGridPropertyNames(), GetLayoutPropertyNames(), ScLinkConfigItem::GetProperties(), LINK, pValues, SCDISPLAYOPT_ANCHOR, SCDISPLAYOPT_CHART, SCDISPLAYOPT_DRAWING, SCDISPLAYOPT_FORMULA, SCDISPLAYOPT_FORMULAMARK, SCDISPLAYOPT_NOTETAG, SCDISPLAYOPT_OBJECTGRA, SCDISPLAYOPT_VALUEHI, SCDISPLAYOPT_ZEROVALUE, SCGRIDOPT_OPTION_X, SCGRIDOPT_OPTION_Y, SCGRIDOPT_RESOLU_X, SCGRIDOPT_RESOLU_Y, SCGRIDOPT_SIZETOGRID, SCGRIDOPT_SNAPTOGRID, SCGRIDOPT_SUBDIV_X, SCGRIDOPT_SUBDIV_Y, SCGRIDOPT_SYNCHRON, SCGRIDOPT_VISIBLE, SCLAYOUTOPT_COLROWHDR, SCLAYOUTOPT_GRID_ONCOLOR, SCLAYOUTOPT_GRIDCOLOR, SCLAYOUTOPT_GRIDLINES, SCLAYOUTOPT_GUIDE, SCLAYOUTOPT_HORISCROLL, SCLAYOUTOPT_OUTLINE, SCLAYOUTOPT_PAGEBREAK, SCLAYOUTOPT_SHEETTAB, SCLAYOUTOPT_SUMMARY, SCLAYOUTOPT_THEMEDCURSOR, SCLAYOUTOPT_VERTSCROLL, ScLinkConfigItem::SetCommitLink(), SvxOptionsGrid::SetEqualGrid(), SvxOptionsGrid::SetFieldDivisionX(), SvxOptionsGrid::SetFieldDivisionY(), SvxOptionsGrid::SetFieldDrawX(), SvxOptionsGrid::SetFieldDrawY(), SvxOptionsGrid::SetFieldSnapX(), SvxOptionsGrid::SetFieldSnapY(), ScViewOptions::SetGridColor(), ScViewOptions::SetGridOptions(), SvxOptionsGrid::SetGridVisible(), ScViewOptions::SetObjMode(), ScViewOptions::SetOption(), SvxOptionsGrid::SetSynchronize(), SvxOptionsGrid::SetUseGridSnap(), VOBJ_MODE_HIDE, VOBJ_MODE_SHOW, VOBJ_TYPE_CHART, VOBJ_TYPE_DRAW, VOBJ_TYPE_OLE, VOPT_ANCHOR, VOPT_FORMULAS, VOPT_FORMULAS_MARKS, VOPT_GRID, VOPT_GRID_ONTOP, VOPT_HEADER, VOPT_HELPLINES, VOPT_HSCROLL, VOPT_NOTES, VOPT_NULLVALS, VOPT_OUTLINER, VOPT_PAGEBREAKS, VOPT_SUMMARY, VOPT_SYNTAX, VOPT_TABCONTROLS, VOPT_THEMEDCURSOR, and VOPT_VSCROLL.

Member Function Documentation

◆ DECL_LINK() [1/3]

ScViewCfg::DECL_LINK ( DisplayCommitHdl  ,
ScLinkConfigItem ,
void   
)
private

◆ DECL_LINK() [2/3]

ScViewCfg::DECL_LINK ( GridCommitHdl  ,
ScLinkConfigItem ,
void   
)
private

◆ DECL_LINK() [3/3]

ScViewCfg::DECL_LINK ( LayoutCommitHdl  ,
ScLinkConfigItem ,
void   
)
private

◆ GetDisplayPropertyNames()

Sequence< OUString > ScViewCfg::GetDisplayPropertyNames ( )
staticprivate

Definition at line 251 of file viewopti.cxx.

Referenced by ScViewCfg().

◆ GetGridPropertyNames()

Sequence< OUString > ScViewCfg::GetGridPropertyNames ( )
staticprivate

Definition at line 264 of file viewopti.cxx.

References ScOptionsUtil::IsMetricSystem().

Referenced by ScViewCfg().

◆ GetLayoutPropertyNames()

Sequence< OUString > ScViewCfg::GetLayoutPropertyNames ( )
staticprivate

Definition at line 235 of file viewopti.cxx.

Referenced by ScViewCfg().

◆ SetOptions()

void ScViewCfg::SetOptions ( const ScViewOptions rNew)

Definition at line 609 of file viewopti.cxx.

References aDisplayItem, aGridItem, aLayoutItem, and utl::ConfigItem::SetModified().

Member Data Documentation

◆ aDisplayItem

ScLinkConfigItem ScViewCfg::aDisplayItem
private

Definition at line 147 of file viewopti.hxx.

Referenced by ScViewCfg(), and SetOptions().

◆ aGridItem

ScLinkConfigItem ScViewCfg::aGridItem
private

Definition at line 148 of file viewopti.hxx.

Referenced by ScViewCfg(), and SetOptions().

◆ aLayoutItem

ScLinkConfigItem ScViewCfg::aLayoutItem
private

Definition at line 146 of file viewopti.hxx.

Referenced by ScViewCfg(), and SetOptions().


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