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

#include <viewopti.hxx>

Inheritance diagram for ScViewOptions:
Collaboration diagram for ScViewOptions:

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 81 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

◆ GetObjMode()

ScVObjMode ScViewOptions::GetObjMode ( ScVObjType  eObj) const

◆ GetOption()

bool ScViewOptions::GetOption ( ScViewOption  eOpt) const

◆ operator!=()

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

Definition at line 105 of file viewopti.hxx.

References operator==().

◆ operator=()

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

◆ operator==()

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

Definition at line 129 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 

◆ SetGridOptions()

void ScViewOptions::SetGridOptions ( const ScGridOptions rNew)

◆ SetObjMode()

void ScViewOptions::SetObjMode ( ScVObjType  eObj,
ScVObjMode  eMode 

◆ SetOption()

void ScViewOptions::SetOption ( ScViewOption  eOpt,
bool  bNew 

Member Data Documentation

◆ aGridCol

Color ScViewOptions::aGridCol

Definition at line 110 of file viewopti.hxx.

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

◆ aGridColName

OUString ScViewOptions::aGridColName

Definition at line 111 of file viewopti.hxx.

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

◆ aGridOpt

ScGridOptions ScViewOptions::aGridOpt

Definition at line 112 of file viewopti.hxx.

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

◆ aModeArr

ScVObjMode ScViewOptions::aModeArr[MAX_TYPE]

Definition at line 109 of file viewopti.hxx.

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

◆ aOptArr

bool ScViewOptions::aOptArr[MAX_OPT]

Definition at line 108 of file viewopti.hxx.

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

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