LibreOffice Module sc (master) 1
|
#include <viewopti.hxx>
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 ScGridOptions & | GetGridOptions () const |
void | SetGridOptions (const ScGridOptions &rNew) |
std::unique_ptr< SvxGridItem > | CreateGridItem () const |
ScViewOptions & | operator= (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 |
Definition at line 81 of file viewopti.hxx.
ScViewOptions::ScViewOptions | ( | ) |
Definition at line 75 of file viewopti.cxx.
References SetDefaults().
ScViewOptions::ScViewOptions | ( | const ScViewOptions & | rCpy | ) |
Definition at line 80 of file viewopti.cxx.
ScViewOptions::~ScViewOptions | ( | ) |
Definition at line 85 of file viewopti.cxx.
std::unique_ptr< SvxGridItem > ScViewOptions::CreateGridItem | ( | ) | const |
Definition at line 144 of file viewopti.cxx.
References aGridOpt, SvxOptionsGrid::GetEqualGrid(), SvxOptionsGrid::GetFieldDivisionX(), SvxOptionsGrid::GetFieldDivisionY(), SvxOptionsGrid::GetFieldDrawX(), SvxOptionsGrid::GetFieldDrawY(), SvxOptionsGrid::GetFieldSnapX(), SvxOptionsGrid::GetFieldSnapY(), SvxOptionsGrid::GetGridVisible(), SvxOptionsGrid::GetSynchronize(), and SvxOptionsGrid::GetUseGridSnap().
Referenced by ScModule::CreateItemSet().
Color const & ScViewOptions::GetGridColor | ( | OUString * | pStrName = nullptr | ) | const |
Definition at line 119 of file viewopti.cxx.
References aGridCol, and aGridColName.
Referenced by ScGridWindow::DrawContent(), ScDocumentConfiguration::getPropertyValue(), ScTabViewObj::getPropertyValue(), ScViewData::WriteExtOptions(), and ScViewData::WriteUserDataSequence().
|
inline |
Definition at line 99 of file viewopti.hxx.
Referenced by ScTabViewShell::ExecDrawOpt(), ScTabViewShell::GetDrawOptState(), ScDocumentConfiguration::getPropertyValue(), ScModule::ModifyOptions(), ScViewData::ReadUserDataSequence(), FuDraw::ResetModifiers(), ScViewCfg::ScViewCfg(), ScDocumentConfiguration::setPropertyValue(), ScDrawView::UpdateUserViewOptions(), ScTabView::ViewOptionsHasChanged(), and ScViewData::WriteUserDataSequence().
|
inline |
Definition at line 94 of file viewopti.hxx.
Referenced by ScTabView::DrawEnableAnim(), ScGridWindow::DrawRedraw(), ScTabViewObj::getPropertyValue(), and ScViewData::SetOptions().
|
inline |
Definition at line 91 of file viewopti.hxx.
Referenced by ScGridWindow::CreateAnchorHandle(), ScGridWindow::Draw(), ScGridWindow::DrawContent(), ScPrintFunc::DrawToDev(), ScTabViewShell::Execute(), ScTabViewShell::GetDrawOptState(), ScDocumentConfiguration::getPropertyValue(), ScTabViewObj::getPropertyValue(), ScTabViewShell::GetState(), IMPL_LINK(), ScViewData::IsGridMode(), ScViewData::IsHeaderMode(), ScViewData::IsHScrollMode(), ScViewData::IsOutlineMode(), ScViewData::IsSyntaxMode(), ScViewData::IsTabMode(), ScViewData::IsThemedCursor(), ScViewData::IsVScrollMode(), ScModule::ModifyOptions(), ScTabView::PaintArea(), ScGridWindow::RequestHelp(), ScViewFunc::SearchAndReplace(), ScViewData::SetOptions(), ScViewFunc::SetWidthOrHeight(), ScDrawView::UpdateUserViewOptions(), ScViewData::WriteUserDataSequence(), XclExpTabViewSettings::XclExpTabViewSettings(), and XclExpWindow1::XclExpWindow1().
|
inline |
Definition at line 105 of file viewopti.hxx.
References operator==().
|
default |
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.
void ScViewOptions::SetDefaults | ( | ) |
Definition at line 89 of file viewopti.cxx.
References aGridCol, aGridOpt, aModeArr, aOptArr, SC_STD_GRIDCOLOR, ScGridOptions::SetDefaults(), VOBJ_MODE_SHOW, VOBJ_TYPE_CHART, VOBJ_TYPE_DRAW, VOBJ_TYPE_OLE, VOPT_ANCHOR, VOPT_CLIPMARKS, 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.
Referenced by ScViewOptions().
|
inline |
Definition at line 96 of file viewopti.hxx.
Referenced by ScViewData::ReadExtOptions(), ScViewData::ReadUserDataSequence(), ScViewCfg::ScViewCfg(), ScDocumentConfiguration::setPropertyValue(), and ScTabViewObj::setPropertyValue().
|
inline |
Definition at line 100 of file viewopti.hxx.
Referenced by ScTabViewShell::ExecDrawOpt(), ScModule::ModifyOptions(), ScViewData::ReadUserDataSequence(), ScViewCfg::ScViewCfg(), and ScDocumentConfiguration::setPropertyValue().
|
inline |
Definition at line 93 of file viewopti.hxx.
References eMode.
Referenced by ImportExcel::Hideobj(), ScViewData::ReadUserDataSequence(), ScViewCfg::ScViewCfg(), and ScTabViewObj::setPropertyValue().
|
inline |
Definition at line 90 of file viewopti.hxx.
Referenced by DefaultOptions(), ScTabViewShell::ExecDrawOpt(), ScTabViewShell::Execute(), XclImpDocViewSettings::Finalize(), XclImpTabViewSettings::Finalize(), sc::IMPL_STATIC_LINK(), ScDrawTransferObj::InitDocShell(), ScViewData::ReadUserDataSequence(), ScViewCfg::ScViewCfg(), ScViewData::SetHeaderMode(), ScDocumentConfiguration::setPropertyValue(), ScTabViewObj::setPropertyValue(), and ScViewData::SetSyntaxMode().
|
private |
Definition at line 110 of file viewopti.hxx.
Referenced by GetGridColor(), operator==(), and SetDefaults().
|
private |
Definition at line 111 of file viewopti.hxx.
Referenced by GetGridColor(), and operator==().
|
private |
Definition at line 112 of file viewopti.hxx.
Referenced by CreateGridItem(), operator==(), and SetDefaults().
|
private |
Definition at line 109 of file viewopti.hxx.
Referenced by operator==(), and SetDefaults().
|
private |
Definition at line 108 of file viewopti.hxx.
Referenced by operator==(), and SetDefaults().