LibreOffice Module sc (master) 1
|
#include <viewdata.hxx>
Private Member Functions | |
ScViewDataTable (const ScDocument *pDoc=nullptr) | |
void | InitData (const ScDocument &rDoc) |
void | WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &rSettings, const ScViewData &rViewData, SCTAB nTab) const |
void | ReadUserDataSequence (const css::uno::Sequence< css::beans::PropertyValue > &rSettings, ScViewData &rViewData, SCTAB nTab, bool &rHasZoom) |
ScSplitPos | SanitizeWhichActive () const |
Sanitize the active split range value to not point into a grid window that would never be initialized due to non-matching split modes. More... | |
Private Attributes | |
SvxZoomType | eZoomType |
Fraction | aZoomX |
Fraction | aZoomY |
Fraction | aPageZoomX |
Fraction | aPageZoomY |
tools::Long | nTPosX [2] |
tools::Long | nTPosY [2] |
tools::Long | nMPosX [2] |
tools::Long | nMPosY [2] |
tools::Long | nPixPosX [2] |
tools::Long | nPixPosY [2] |
tools::Long | nHSplitPos |
tools::Long | nVSplitPos |
ScSplitMode | eHSplitMode |
ScSplitMode | eVSplitMode |
ScSplitPos | eWhichActive |
SCCOL | nFixPosX |
SCROW | nFixPosY |
SCCOL | nCurX |
SCROW | nCurY |
SCCOL | nOldCurX |
SCROW | nOldCurY |
ScPositionHelper | aWidthHelper |
ScPositionHelper | aHeightHelper |
SCCOL | nPosX [2] |
X position of the top left cell of the visible area. More... | |
SCROW | nPosY [2] |
Y position of the top left cell of the visible area. More... | |
SCCOL | nMaxTiledCol |
SCROW | nMaxTiledRow |
bool | bShowGrid |
bool | mbOldCursorValid |
Friends | |
class | ScViewData |
Definition at line 206 of file viewdata.hxx.
|
private |
|
private |
Definition at line 523 of file viewdata.cxx.
References aHeightHelper, aWidthHelper, and ScPositionHelper::setDocument().
|
private |
Definition at line 606 of file viewdata.cxx.
References aPageZoomX, aPageZoomY, aZoomX, aZoomY, bShowGrid, COL_AUTO(), eHSplitMode, eVSplitMode, eWhichActive, eZoomType, ScViewData::GetDocument(), ScDocument::GetDrawLayer(), ScViewData::GetMarkData(), ScViewData::GetPPTX(), ScViewData::GetPPTY(), nCurX, nCurY, nFixPosX, nFixPosY, nHSplitPos, nPosX, nPosY, nVSplitPos, SdrModel::ReadUserDataSequenceValue(), ScDocument::SanitizeCol(), ScDocument::SanitizeRow(), SanitizeWhichActive(), SC_ACTIVESPLITRANGE, SC_CURSORPOSITIONX, SC_CURSORPOSITIONY, SC_HORIZONTALSPLITMODE, SC_HORIZONTALSPLITPOSITION, SC_HORIZONTALSPLITPOSITION_TWIPS, SC_PAGEVIEWZOOMVALUE, SC_POSITIONBOTTOM, SC_POSITIONLEFT, SC_POSITIONRIGHT, SC_POSITIONTOP, SC_SPLIT_BOTTOM, SC_SPLIT_FIX, SC_SPLIT_LEFT, SC_SPLIT_MODE_MAX_ENUM, SC_SPLIT_POS_MAX_ENUM, SC_SPLIT_RIGHT, SC_SPLIT_TOP, SC_TABLESELECTED, SC_UNO_SHOWGRID, SC_UNONAME_TABCOLOR, SC_VERTICALSPLITMODE, SC_VERTICALSPLITPOSITION, SC_VERTICALSPLITPOSITION_TWIPS, SC_ZOOMTYPE, SC_ZOOMVALUE, ScMarkData::SelectTable(), ScDocument::SetTabBgColor(), and sName.
|
private |
Sanitize the active split range value to not point into a grid window that would never be initialized due to non-matching split modes.
This is to be done when reading settings from file formats or configurations that could have arbitrary values. The caller is responsible for actually assigning the new value to eWhichActive because we want this function to be const to be able to call the check from anywhere.
Definition at line 744 of file viewdata.cxx.
References eHSplitMode, eVSplitMode, eWhichActive, SAL_WARN, SC_SPLIT_BOTTOMLEFT, SC_SPLIT_NONE, SC_SPLIT_RIGHT, SC_SPLIT_TOP, WhichH(), and WhichV().
Referenced by ReadUserDataSequence(), ScViewData::SetActivePart(), and WriteUserDataSequence().
|
private |
Definition at line 529 of file viewdata.cxx.
References aPageZoomY, aZoomY, bShowGrid, eHSplitMode, eVSplitMode, eWhichActive, eZoomType, ScViewData::GetDocument(), ScDocument::GetDrawLayer(), comphelper::LibreOfficeKit::isActive(), nCurX, nCurY, nFixPosX, nFixPosY, nHSplitPos, nPosX, nPosY, nVSplitPos, ScViewData::OverrideWithLOKFreeze(), SanitizeWhichActive(), SC_ACTIVE_SPLIT_RANGE, SC_ACTIVESPLITRANGE, SC_CURSOR_X, SC_CURSOR_Y, SC_CURSORPOSITIONX, SC_CURSORPOSITIONY, SC_HORIZONTAL_SPLIT_MODE, SC_HORIZONTAL_SPLIT_POSITION, SC_HORIZONTALSPLITMODE, SC_HORIZONTALSPLITPOSITION, SC_PAGEVIEWZOOMVALUE, SC_POSITION_BOTTOM, SC_POSITION_LEFT, SC_POSITION_RIGHT, SC_POSITION_TOP, SC_POSITIONBOTTOM, SC_POSITIONLEFT, SC_POSITIONRIGHT, SC_POSITIONTOP, SC_SPLIT_BOTTOM, SC_SPLIT_FIX, SC_SPLIT_LEFT, SC_SPLIT_RIGHT, SC_SPLIT_TOP, SC_TABLE_PAGE_VIEW_ZOOM_VALUE, SC_TABLE_SHOWGRID, SC_TABLE_VIEWSETTINGS_COUNT, SC_TABLE_ZOOM_TYPE, SC_TABLE_ZOOM_VALUE, SC_UNO_SHOWGRID, SC_VERTICAL_SPLIT_MODE, SC_VERTICAL_SPLIT_POSITION, SC_VERTICALSPLITMODE, SC_VERTICALSPLITPOSITION, SC_ZOOMTYPE, SC_ZOOMVALUE, and SdrModel::WriteUserDataSequence().
|
friend |
Definition at line 208 of file viewdata.hxx.
|
private |
Definition at line 238 of file viewdata.hxx.
Referenced by ScViewData::GetLOKDocHeightPixel(), ScViewData::GetLOKHeightHelper(), ScViewData::GetScrPos(), and InitData().
|
private |
Definition at line 213 of file viewdata.hxx.
Referenced by ScViewData::GetZoomX(), ScViewData::ReadExtOptions(), and ReadUserDataSequence().
|
private |
Definition at line 214 of file viewdata.hxx.
Referenced by ScViewData::GetZoomY(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), ScViewData::WriteUserData(), ScViewData::WriteUserDataSequence(), and WriteUserDataSequence().
|
private |
Definition at line 237 of file viewdata.hxx.
Referenced by ScViewData::GetLOKDocWidthPixel(), ScViewData::GetLOKWidthHelper(), ScViewData::GetScrPos(), and InitData().
|
private |
Definition at line 211 of file viewdata.hxx.
Referenced by ScViewData::GetZoomX(), ScViewData::ReadExtOptions(), and ReadUserDataSequence().
|
private |
Definition at line 212 of file viewdata.hxx.
Referenced by ScViewData::GetZoomY(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), ScViewData::WriteUserData(), ScViewData::WriteUserDataSequence(), and WriteUserDataSequence().
|
private |
Definition at line 245 of file viewdata.hxx.
Referenced by ScViewData::GetShowGrid(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), and WriteUserDataSequence().
|
private |
Definition at line 225 of file viewdata.hxx.
Referenced by ScViewData::DeriveLOKFreezeIfNeeded(), ScViewData::GetHSplitMode(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), SanitizeWhichActive(), ScViewData::SetHSplitMode(), and WriteUserDataSequence().
|
private |
Definition at line 226 of file viewdata.hxx.
Referenced by ScViewData::DeriveLOKFreezeIfNeeded(), ScViewData::GetVSplitMode(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), SanitizeWhichActive(), ScViewData::SetVSplitMode(), and WriteUserDataSequence().
|
private |
Definition at line 227 of file viewdata.hxx.
Referenced by ScViewData::GetActivePart(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), SanitizeWhichActive(), ScViewData::SetActivePart(), and WriteUserDataSequence().
|
private |
Definition at line 210 of file viewdata.hxx.
Referenced by ScViewData::GetZoomType(), ReadUserDataSequence(), ScViewData::WriteUserDataSequence(), and WriteUserDataSequence().
|
private |
Definition at line 246 of file viewdata.hxx.
Referenced by ScViewData::GetOldCurX(), ScViewData::GetOldCurY(), ScViewData::ResetOldCursor(), and ScViewData::SetOldCursor().
|
private |
Definition at line 232 of file viewdata.hxx.
Referenced by ScViewData::GetCurX(), ScViewData::GetOldCurX(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), ScViewData::SetCurX(), and WriteUserDataSequence().
|
private |
Definition at line 233 of file viewdata.hxx.
Referenced by ScViewData::GetCurY(), ScViewData::GetOldCurY(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), ScViewData::SetCurY(), and WriteUserDataSequence().
|
private |
Definition at line 229 of file viewdata.hxx.
Referenced by ScViewData::DeriveLOKFreezeIfNeeded(), ScViewData::GetFixPosX(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), ScViewData::SetFixPosX(), and WriteUserDataSequence().
|
private |
Definition at line 230 of file viewdata.hxx.
Referenced by ScViewData::DeriveLOKFreezeIfNeeded(), ScViewData::GetFixPosY(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), ScViewData::SetFixPosY(), and WriteUserDataSequence().
|
private |
Definition at line 222 of file viewdata.hxx.
Referenced by ScViewData::DeriveLOKFreezeIfNeeded(), ScViewData::GetHSplitPos(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), ScViewData::SetHSplitPos(), and WriteUserDataSequence().
|
private |
Definition at line 242 of file viewdata.hxx.
Referenced by ScViewData::GetLOKDocWidthPixel(), ScViewData::GetMaxTiledCol(), and ScViewData::SetMaxTiledCol().
|
private |
Definition at line 243 of file viewdata.hxx.
Referenced by ScViewData::GetLOKDocHeightPixel(), ScViewData::GetMaxTiledRow(), and ScViewData::SetMaxTiledRow().
|
private |
Definition at line 218 of file viewdata.hxx.
Referenced by ScViewData::GetLogicMode(), ScViewDataTable(), and ScViewData::SetPosX().
|
private |
Definition at line 219 of file viewdata.hxx.
Referenced by ScViewData::GetLogicMode(), ScViewDataTable(), and ScViewData::SetPosY().
|
private |
Definition at line 234 of file viewdata.hxx.
Referenced by ScViewData::GetOldCurX(), and ScViewData::SetOldCursor().
|
private |
Definition at line 235 of file viewdata.hxx.
Referenced by ScViewData::GetOldCurY(), and ScViewData::SetOldCursor().
|
private |
Definition at line 220 of file viewdata.hxx.
Referenced by ScViewData::GetPixPos(), ScViewData::RecalcPixPos(), ScViewDataTable(), and ScViewData::SetPosX().
|
private |
Definition at line 221 of file viewdata.hxx.
Referenced by ScViewData::GetPixPos(), ScViewData::RecalcPixPos(), ScViewDataTable(), and ScViewData::SetPosY().
|
private |
X position of the top left cell of the visible area.
Definition at line 240 of file viewdata.hxx.
Referenced by ScViewData::GetPosX(), ScViewData::OverrideWithLOKFreeze(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), ScViewData::RecalcPixPos(), ScViewDataTable(), ScViewData::SetPosX(), and WriteUserDataSequence().
|
private |
Y position of the top left cell of the visible area.
Definition at line 241 of file viewdata.hxx.
Referenced by ScViewData::GetPosY(), ScViewData::OverrideWithLOKFreeze(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), ScViewData::RecalcPixPos(), ScViewDataTable(), ScViewData::SetPosY(), and WriteUserDataSequence().
|
private |
Definition at line 216 of file viewdata.hxx.
Referenced by ScViewDataTable(), and ScViewData::SetPosX().
|
private |
Definition at line 217 of file viewdata.hxx.
Referenced by ScViewDataTable(), and ScViewData::SetPosY().
|
private |
Definition at line 223 of file viewdata.hxx.
Referenced by ScViewData::DeriveLOKFreezeIfNeeded(), ScViewData::GetVSplitPos(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), ScViewData::SetVSplitPos(), and WriteUserDataSequence().