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

Detailed Description

Definition at line 206 of file viewdata.hxx.

Constructor & Destructor Documentation

◆ ScViewDataTable()

ScViewDataTable::ScViewDataTable ( const ScDocument pDoc = nullptr)
private

Definition at line 489 of file viewdata.cxx.

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

Member Function Documentation

◆ InitData()

void ScViewDataTable::InitData ( const ScDocument rDoc)
private

Definition at line 523 of file viewdata.cxx.

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

◆ ReadUserDataSequence()

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

◆ SanitizeWhichActive()

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 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().

◆ WriteUserDataSequence()

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

Friends And Related Function Documentation

◆ ScViewData

friend class ScViewData
friend

Definition at line 208 of file viewdata.hxx.

Member Data Documentation

◆ aHeightHelper

ScPositionHelper ScViewDataTable::aHeightHelper
private

◆ aPageZoomX

Fraction ScViewDataTable::aPageZoomX
private

◆ aPageZoomY

Fraction ScViewDataTable::aPageZoomY
private

◆ aWidthHelper

ScPositionHelper ScViewDataTable::aWidthHelper
private

◆ aZoomX

Fraction ScViewDataTable::aZoomX
private

◆ aZoomY

Fraction ScViewDataTable::aZoomY
private

◆ bShowGrid

bool ScViewDataTable::bShowGrid
private

◆ eHSplitMode

ScSplitMode ScViewDataTable::eHSplitMode
private

◆ eVSplitMode

ScSplitMode ScViewDataTable::eVSplitMode
private

◆ eWhichActive

ScSplitPos ScViewDataTable::eWhichActive
private

◆ eZoomType

SvxZoomType ScViewDataTable::eZoomType
private

◆ mbOldCursorValid

bool ScViewDataTable::mbOldCursorValid
private

◆ nCurX

SCCOL ScViewDataTable::nCurX
private

◆ nCurY

SCROW ScViewDataTable::nCurY
private

◆ nFixPosX

SCCOL ScViewDataTable::nFixPosX
private

◆ nFixPosY

SCROW ScViewDataTable::nFixPosY
private

◆ nHSplitPos

tools::Long ScViewDataTable::nHSplitPos
private

◆ nMaxTiledCol

SCCOL ScViewDataTable::nMaxTiledCol
private

◆ nMaxTiledRow

SCROW ScViewDataTable::nMaxTiledRow
private

◆ nMPosX

tools::Long ScViewDataTable::nMPosX[2]
private

Definition at line 218 of file viewdata.hxx.

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

◆ nMPosY

tools::Long ScViewDataTable::nMPosY[2]
private

Definition at line 219 of file viewdata.hxx.

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

◆ nOldCurX

SCCOL ScViewDataTable::nOldCurX
private

Definition at line 234 of file viewdata.hxx.

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

◆ nOldCurY

SCROW ScViewDataTable::nOldCurY
private

Definition at line 235 of file viewdata.hxx.

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

◆ nPixPosX

tools::Long ScViewDataTable::nPixPosX[2]
private

◆ nPixPosY

tools::Long ScViewDataTable::nPixPosY[2]
private

◆ nPosX

SCCOL ScViewDataTable::nPosX[2]
private

◆ nPosY

SCROW ScViewDataTable::nPosY[2]
private

◆ nTPosX

tools::Long ScViewDataTable::nTPosX[2]
private

Definition at line 216 of file viewdata.hxx.

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

◆ nTPosY

tools::Long ScViewDataTable::nTPosY[2]
private

Definition at line 217 of file viewdata.hxx.

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

◆ nVSplitPos

tools::Long ScViewDataTable::nVSplitPos
private

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