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

#include <chartpos.hxx>

Public Member Functions

 ~ScChartPositionMap ()
 
SCCOL GetColCount () const
 deletes all ScAddress* More...
 
SCROW GetRowCount () const
 
bool IsValid (SCCOL nCol, SCROW nRow) const
 
sal_uInt64 GetIndex (SCCOL nCol, SCROW nRow) const
 
const ScAddress * GetPosition (sal_uInt64 nIndex) const
 
const ScAddress * GetPosition (SCCOL nChartCol, SCROW nChartRow) const
 might be NULL indicating "no value" More...
 
const ScAddress * GetColHeaderPosition (SCCOL nChartCol) const
 
const ScAddress * GetRowHeaderPosition (SCROW nChartRow) const
 

Private Member Functions

 ScChartPositionMap (SCCOL nChartCols, SCROW nChartRows, SCCOL nColAdd, SCROW nRowAdd, ColumnMap &rCols)
 
 ScChartPositionMap (const ScChartPositionMap &)=delete
 
ScChartPositionMap & operator= (const ScChartPositionMap &)=delete
 

Private Attributes

std::unique_ptr< std::unique_ptr< ScAddress >[]> ppData
 
std::unique_ptr< std::unique_ptr< ScAddress >[]> ppColHeader
 
std::unique_ptr< std::unique_ptr< ScAddress >[]> ppRowHeader
 
sal_uInt64 nCount
 
SCCOL nColCount
 
SCROW nRowCount
 

Friends

class ScChartPositioner
 

Detailed Description

Definition at line 32 of file chartpos.hxx.

Constructor & Destructor Documentation

◆ ScChartPositionMap() [1/2]

ScChartPositionMap::ScChartPositionMap ( SCCOL  nChartCols,
SCROW  nChartRows,
SCCOL  nColAdd,
SCROW  nRowAdd,
ColumnMap &  rCols 
)
private

Definition at line 447 of file chartpos.cxx.

References nColCount, nCount, nIndex, nRowCount, ppColHeader, ppData, and ppRowHeader.

◆ ScChartPositionMap() [2/2]

ScChartPositionMap::ScChartPositionMap ( const ScChartPositionMap &  )
privatedelete

◆ ~ScChartPositionMap()

ScChartPositionMap::~ScChartPositionMap ( )

Definition at line 520 of file chartpos.cxx.

Member Function Documentation

◆ GetColCount()

SCCOL ScChartPositionMap::GetColCount ( ) const
inline

deletes all ScAddress*

Definition at line 55 of file chartpos.hxx.

References nColCount.

Referenced by ScChartArray::CreateMemChartMulti().

◆ GetColHeaderPosition()

const ScAddress * ScChartPositionMap::GetColHeaderPosition ( SCCOL  nChartCol) const
inline

Definition at line 78 of file chartpos.hxx.

References nColCount, and ppColHeader.

Referenced by ScChartArray::CreateMemChartMulti().

◆ GetIndex()

sal_uInt64 ScChartPositionMap::GetIndex ( SCCOL  nCol,
SCROW  nRow 
) const
inline

Definition at line 61 of file chartpos.hxx.

References nRowCount.

Referenced by GetPosition().

◆ GetPosition() [1/2]

const ScAddress * ScChartPositionMap::GetPosition ( sal_uInt64  nIndex) const
inline

Definition at line 64 of file chartpos.hxx.

References nCount, nIndex, and ppData.

Referenced by ScChartArray::CreateMemChartMulti().

◆ GetPosition() [2/2]

const ScAddress * ScChartPositionMap::GetPosition ( SCCOL  nChartCol,
SCROW  nChartRow 
) const
inline

might be NULL indicating "no value"

Definition at line 72 of file chartpos.hxx.

References GetIndex(), IsValid(), and ppData.

◆ GetRowCount()

SCROW ScChartPositionMap::GetRowCount ( ) const
inline

Definition at line 56 of file chartpos.hxx.

References nRowCount.

Referenced by ScChartArray::CreateMemChartMulti().

◆ GetRowHeaderPosition()

const ScAddress * ScChartPositionMap::GetRowHeaderPosition ( SCROW  nChartRow) const
inline

Definition at line 84 of file chartpos.hxx.

References nRowCount, and ppRowHeader.

Referenced by ScChartArray::CreateMemChartMulti().

◆ IsValid()

bool ScChartPositionMap::IsValid ( SCCOL  nCol,
SCROW  nRow 
) const
inline

Definition at line 58 of file chartpos.hxx.

References nColCount, and nRowCount.

Referenced by GetPosition().

◆ operator=()

ScChartPositionMap & ScChartPositionMap::operator= ( const ScChartPositionMap &  )
privatedelete

Friends And Related Function Documentation

◆ ScChartPositioner

friend class ScChartPositioner
friend

Definition at line 34 of file chartpos.hxx.

Member Data Documentation

◆ nColCount

SCCOL ScChartPositionMap::nColCount
private

Definition at line 40 of file chartpos.hxx.

Referenced by GetColCount(), GetColHeaderPosition(), IsValid(), and ScChartPositionMap().

◆ nCount

sal_uInt64 ScChartPositionMap::nCount
private

Definition at line 39 of file chartpos.hxx.

Referenced by GetPosition().

◆ nRowCount

SCROW ScChartPositionMap::nRowCount
private

Definition at line 41 of file chartpos.hxx.

Referenced by GetIndex(), GetRowCount(), GetRowHeaderPosition(), IsValid(), and ScChartPositionMap().

◆ ppColHeader

std::unique_ptr<std::unique_ptr<ScAddress>[]> ScChartPositionMap::ppColHeader
private

Definition at line 37 of file chartpos.hxx.

Referenced by GetColHeaderPosition(), and ScChartPositionMap().

◆ ppData

std::unique_ptr<std::unique_ptr<ScAddress>[]> ScChartPositionMap::ppData
private

Definition at line 36 of file chartpos.hxx.

Referenced by GetPosition(), and ScChartPositionMap().

◆ ppRowHeader

std::unique_ptr<std::unique_ptr<ScAddress>[]> ScChartPositionMap::ppRowHeader
private

Definition at line 38 of file chartpos.hxx.

Referenced by GetRowHeaderPosition(), and ScChartPositionMap().


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