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

bool aOptArr [MAX_OPT]
 
ScVObjMode aModeArr [MAX_TYPE]
 
Color aGridCol
 
OUString aGridColName
 
ScGridOptions aGridOpt
 
OUString sColorSchemeName = "Default"
 
Color aDocCol
 

Detailed Description

Definition at line 76 of file viewopti.hxx.

Constructor & Destructor Documentation

◆ ScViewOptions() [1/2]

ScViewOptions::ScViewOptions ( )

Definition at line 78 of file viewopti.cxx.

References SetDefaults().

◆ ScViewOptions() [2/2]

ScViewOptions::ScViewOptions ( const ScViewOptions rCpy)

Definition at line 83 of file viewopti.cxx.

◆ ~ScViewOptions()

ScViewOptions::~ScViewOptions ( )

Definition at line 88 of file viewopti.cxx.

Member Function Documentation

◆ CreateGridItem()

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

◆ GetColorSchemeName()

const OUString & ScViewOptions::GetColorSchemeName ( ) const
inline

◆ GetDocColor()

const Color & ScViewOptions::GetDocColor ( ) const
inline

◆ 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 106 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 133 of file viewopti.cxx.

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

◆ SetColorSchemeName()

void ScViewOptions::SetColorSchemeName ( const OUString &  rName)
inline

Definition at line 99 of file viewopti.hxx.

Referenced by ScModule::ConfigurationChanged().

◆ SetDefaults()

void ScViewOptions::SetDefaults ( )

◆ SetDocColor()

void ScViewOptions::SetDocColor ( const Color rDocColor)
inline

Definition at line 102 of file viewopti.hxx.

Referenced by ScModule::ConfigurationChanged().

◆ 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

◆ aDocCol

Color ScViewOptions::aDocCol
private

Definition at line 117 of file viewopti.hxx.

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

◆ aGridCol

Color ScViewOptions::aGridCol
private

Definition at line 111 of file viewopti.hxx.

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

◆ aGridColName

OUString ScViewOptions::aGridColName
private

Definition at line 112 of file viewopti.hxx.

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

◆ aGridOpt

ScGridOptions ScViewOptions::aGridOpt
private

Definition at line 113 of file viewopti.hxx.

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

◆ aModeArr

ScVObjMode ScViewOptions::aModeArr[MAX_TYPE]
private

Definition at line 110 of file viewopti.hxx.

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

◆ aOptArr

bool ScViewOptions::aOptArr[MAX_OPT]
private

Definition at line 109 of file viewopti.hxx.

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

◆ sColorSchemeName

OUString ScViewOptions::sColorSchemeName = "Default"
private

Definition at line 115 of file viewopti.hxx.


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