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

#include <viewdata.hxx>

Collaboration diagram for ScViewDataTable:
[legend]

Private Member Functions

 ScViewDataTable (ScDocument *pDoc=nullptr)
 
void InitData (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
 
long nTPosX [2]
 
long nTPosY [2]
 
long nMPosX [2]
 
long nMPosY [2]
 
long nPixPosX [2]
 
long nPixPosY [2]
 
long nHSplitPos
 
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
 

Detailed Description

Definition at line 207 of file viewdata.hxx.

Constructor & Destructor Documentation

ScViewDataTable::ScViewDataTable ( ScDocument pDoc = nullptr)
private

Definition at line 483 of file viewdata.cxx.

References nMPosX, nMPosY, nPixPosX, nPixPosY, nPosX, nPosY, nTPosX, and nTPosY.

Member Function Documentation

void ScViewDataTable::InitData ( ScDocument rDoc)
private

Definition at line 517 of file viewdata.cxx.

References aHeightHelper, aWidthHelper, and ScPositionHelper::setDocument().

void ScViewDataTable::ReadUserDataSequence ( const css::uno::Sequence< css::beans::PropertyValue > &  rSettings,
ScViewData rViewData,
SCTAB  nTab,
bool &  rHasZoom 
)
private
ScSplitPos ScViewDataTable::SanitizeWhichActive ( ) const
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 732 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().

void ScViewDataTable::WriteUserDataSequence ( css::uno::Sequence< css::beans::PropertyValue > &  rSettings,
const ScViewData rViewData,
SCTAB  nTab 
) const
private

Friends And Related Function Documentation

friend class ScViewData
friend

Definition at line 209 of file viewdata.hxx.

Member Data Documentation

ScPositionHelper ScViewDataTable::aHeightHelper
private
Fraction ScViewDataTable::aPageZoomX
private
Fraction ScViewDataTable::aPageZoomY
private
ScPositionHelper ScViewDataTable::aWidthHelper
private
Fraction ScViewDataTable::aZoomX
private
Fraction ScViewDataTable::aZoomY
private
bool ScViewDataTable::bShowGrid
private
ScSplitMode ScViewDataTable::eHSplitMode
private
ScSplitMode ScViewDataTable::eVSplitMode
private
ScSplitPos ScViewDataTable::eWhichActive
private
SvxZoomType ScViewDataTable::eZoomType
private
bool ScViewDataTable::mbOldCursorValid
private
SCCOL ScViewDataTable::nCurX
private
SCROW ScViewDataTable::nCurY
private
SCCOL ScViewDataTable::nFixPosX
private
SCROW ScViewDataTable::nFixPosY
private
long ScViewDataTable::nHSplitPos
private
SCCOL ScViewDataTable::nMaxTiledCol
private
SCROW ScViewDataTable::nMaxTiledRow
private
long ScViewDataTable::nMPosX[2]
private

Definition at line 219 of file viewdata.hxx.

Referenced by ScViewData::GetLogicMode(), ScViewDataTable(), and ScViewData::SetPosX().

long ScViewDataTable::nMPosY[2]
private

Definition at line 220 of file viewdata.hxx.

Referenced by ScViewData::GetLogicMode(), ScViewDataTable(), and ScViewData::SetPosY().

SCCOL ScViewDataTable::nOldCurX
private

Definition at line 235 of file viewdata.hxx.

Referenced by ScViewData::GetOldCurX(), and ScViewData::SetOldCursor().

SCROW ScViewDataTable::nOldCurY
private

Definition at line 236 of file viewdata.hxx.

Referenced by ScViewData::GetOldCurY(), and ScViewData::SetOldCursor().

long ScViewDataTable::nPixPosX[2]
private
long ScViewDataTable::nPixPosY[2]
private
SCCOL ScViewDataTable::nPosX[2]
private

X position of the top left cell of the visible area.

Definition at line 241 of file viewdata.hxx.

Referenced by ScViewData::GetPosX(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), ScViewData::RecalcPixPos(), ScViewDataTable(), ScViewData::SetPosX(), and WriteUserDataSequence().

SCROW ScViewDataTable::nPosY[2]
private

Y position of the top left cell of the visible area.

Definition at line 242 of file viewdata.hxx.

Referenced by ScViewData::GetPosY(), ScViewData::ReadExtOptions(), ReadUserDataSequence(), ScViewData::RecalcPixPos(), ScViewDataTable(), ScViewData::SetPosY(), and WriteUserDataSequence().

long ScViewDataTable::nTPosX[2]
private

Definition at line 217 of file viewdata.hxx.

Referenced by ScViewDataTable(), and ScViewData::SetPosX().

long ScViewDataTable::nTPosY[2]
private

Definition at line 218 of file viewdata.hxx.

Referenced by ScViewDataTable(), and ScViewData::SetPosY().

long ScViewDataTable::nVSplitPos
private

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