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() [1/2]

ScViewOptions::ScViewOptions ( )

Definition at line 75 of file viewopti.cxx.

References SetDefaults().

◆ ScViewOptions() [2/2]

ScViewOptions::ScViewOptions ( const ScViewOptions rCpy)

Definition at line 80 of file viewopti.cxx.

◆ ~ScViewOptions()

ScViewOptions::~ScViewOptions ( )

Definition at line 85 of file viewopti.cxx.

Member Function Documentation

◆ CreateGridItem()

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

◆ GetGridColor()

Color const & ScViewOptions::GetGridColor ( OUString *  pStrName = nullptr) const

◆ GetGridOptions()

const ScGridOptions & ScViewOptions::GetGridOptions ( ) const
inline

◆ GetObjMode()

ScVObjMode ScViewOptions::GetObjMode ( ScVObjType  eObj) const
inline

◆ GetOption()

bool ScViewOptions::GetOption ( ScViewOption  eOpt) const
inline

◆ operator!=()

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

Definition at line 102 of file viewopti.hxx.

References operator==().

◆ operator=()

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

◆ operator==()

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

Definition at line 128 of file viewopti.cxx.

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

◆ SetDefaults()

void ScViewOptions::SetDefaults ( )

◆ SetGridColor()

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

◆ SetGridOptions()

void ScViewOptions::SetGridOptions ( const ScGridOptions rNew)
inline

◆ SetObjMode()

void ScViewOptions::SetObjMode ( ScVObjType  eObj,
ScVObjMode  eMode 
)
inline

◆ SetOption()

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

Member Data Documentation

◆ aGridCol

Color ScViewOptions::aGridCol
private

Definition at line 107 of file viewopti.hxx.

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

◆ aGridColName

OUString ScViewOptions::aGridColName
private

Definition at line 108 of file viewopti.hxx.

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

◆ aGridOpt

ScGridOptions ScViewOptions::aGridOpt
private

Definition at line 109 of file viewopti.hxx.

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

◆ aModeArr

ScVObjMode ScViewOptions::aModeArr[MAX_TYPE]
private

Definition at line 106 of file viewopti.hxx.

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

◆ aOptArr

bool ScViewOptions::aOptArr[MAX_OPT]
private

Definition at line 105 of file viewopti.hxx.

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


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