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

#include <viewopti.hxx>

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

Public Member Functions

 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
 
ScViewOptionsoperator= (const ScViewOptions &rCpy)
 
bool operator== (const ScViewOptions &rOpt) const
 
bool operator!= (const ScViewOptions &rOpt) const
 

Private Attributes

bool aOptArr [MAX_OPT]
 
ScVObjMode aModeArr [MAX_TYPE]
 
Color aGridCol
 
OUString aGridColName
 
ScGridOptions aGridOpt
 

Detailed Description

Definition at line 78 of file viewopti.hxx.

Constructor & Destructor Documentation

ScViewOptions::ScViewOptions ( )

Definition at line 79 of file viewopti.cxx.

ScViewOptions::ScViewOptions ( const ScViewOptions rCpy)

Definition at line 84 of file viewopti.cxx.

ScViewOptions::~ScViewOptions ( )

Definition at line 89 of file viewopti.cxx.

Member Function Documentation

std::unique_ptr< SvxGridItem > ScViewOptions::CreateGridItem ( ) const

Definition at line 158 of file viewopti.cxx.

Referenced by ScModule::CreateItemSet().

Color const & ScViewOptions::GetGridColor ( OUString *  pStrName = nullptr) const
const ScGridOptions& ScViewOptions::GetGridOptions ( ) const
inline
ScVObjMode ScViewOptions::GetObjMode ( ScVObjType  eObj) const
inline
bool ScViewOptions::GetOption ( ScViewOption  eOpt) const
inline
bool ScViewOptions::operator!= ( const ScViewOptions rOpt) const
inline

Definition at line 102 of file viewopti.hxx.

References operator==().

ScViewOptions & ScViewOptions::operator= ( const ScViewOptions rCpy)

Definition at line 129 of file viewopti.cxx.

References aGridCol, aGridColName, aGridOpt, aModeArr, aOptArr, for(), i, MAX_OPT, and MAX_TYPE.

bool ScViewOptions::operator== ( const ScViewOptions rOpt) const

Definition at line 143 of file viewopti.cxx.

References aGridCol, aGridColName, aGridOpt, aModeArr, aOptArr, i, MAX_OPT, and MAX_TYPE.

void ScViewOptions::SetDefaults ( )
void ScViewOptions::SetGridColor ( const Color rCol,
const OUString &  rName 
)
inline

Definition at line 93 of file viewopti.hxx.

Referenced by ScViewCfg::ScViewCfg(), and ScTabViewObj::setPropertyValue().

void ScViewOptions::SetGridOptions ( const ScGridOptions rNew)
inline
void ScViewOptions::SetObjMode ( ScVObjType  eObj,
ScVObjMode  eMode 
)
inline

Definition at line 90 of file viewopti.hxx.

Referenced by ScViewCfg::ScViewCfg(), and ScTabViewObj::setPropertyValue().

void ScViewOptions::SetOption ( ScViewOption  eOpt,
bool  bNew 
)
inline

Member Data Documentation

Color ScViewOptions::aGridCol
private

Definition at line 107 of file viewopti.hxx.

Referenced by operator=(), and operator==().

OUString ScViewOptions::aGridColName
private

Definition at line 108 of file viewopti.hxx.

Referenced by operator=(), and operator==().

ScGridOptions ScViewOptions::aGridOpt
private

Definition at line 109 of file viewopti.hxx.

Referenced by operator=(), and operator==().

ScVObjMode ScViewOptions::aModeArr[MAX_TYPE]
private

Definition at line 106 of file viewopti.hxx.

Referenced by operator=(), and operator==().

bool ScViewOptions::aOptArr[MAX_OPT]
private

Definition at line 105 of file viewopti.hxx.

Referenced by operator=(), and operator==().


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