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 ScAddressGetPosition (sal_uInt64 nIndex) const
const ScAddressGetPosition (SCCOL nChartCol, SCROW nChartRow) const
 might be NULL indicating "no value" More...
const ScAddressGetColHeaderPosition (SCCOL nChartCol) const
const ScAddressGetRowHeaderPosition (SCROW nChartRow) const

Private Member Functions

 ScChartPositionMap (SCCOL nChartCols, SCROW nChartRows, SCCOL nColAdd, SCROW nRowAdd, ColumnMap &rCols)
 ScChartPositionMap (const ScChartPositionMap &)=delete
ScChartPositionMapoperator= (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


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 

Definition at line 446 of file chartpos.cxx.

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

◆ ScChartPositionMap() [2/2]

ScChartPositionMap::ScChartPositionMap ( const ScChartPositionMap )

◆ ~ScChartPositionMap()

ScChartPositionMap::~ScChartPositionMap ( )

Definition at line 519 of file chartpos.cxx.

Member Function Documentation

◆ GetColCount()

SCCOL ScChartPositionMap::GetColCount ( ) const

deletes all ScAddress*

Definition at line 55 of file chartpos.hxx.

References nColCount.

Referenced by ScChartArray::CreateMemChartMulti(), ScCellRangesBase::setColumnDescriptions(), and ScCellRangesBase::setData().

◆ GetColHeaderPosition()

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

◆ GetIndex()

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

Definition at line 61 of file chartpos.hxx.

References nRowCount.

Referenced by GetPosition().

◆ GetPosition() [1/2]

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

Definition at line 64 of file chartpos.hxx.

References nCount, nIndex, and ppData.

Referenced by ScChartArray::CreateMemChartMulti(), and ScCellRangesBase::setData().

◆ GetPosition() [2/2]

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

might be NULL indicating "no value"

Definition at line 72 of file chartpos.hxx.

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

◆ GetRowCount()

SCROW ScChartPositionMap::GetRowCount ( ) const

◆ GetRowHeaderPosition()

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

Definition at line 84 of file chartpos.hxx.

References nRowCount, and ppRowHeader.

Referenced by ScChartArray::CreateMemChartMulti(), and ScCellRangesBase::setRowDescriptions().

◆ IsValid()

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

Definition at line 58 of file chartpos.hxx.

References nColCount, and nRowCount.

Referenced by GetPosition().

◆ operator=()

ScChartPositionMap & ScChartPositionMap::operator= ( const ScChartPositionMap )

Friends And Related Function Documentation

◆ ScChartPositioner

friend class ScChartPositioner

Definition at line 34 of file chartpos.hxx.

Member Data Documentation

◆ nColCount

SCCOL ScChartPositionMap::nColCount

Definition at line 40 of file chartpos.hxx.

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

◆ nCount

sal_uInt64 ScChartPositionMap::nCount

Definition at line 39 of file chartpos.hxx.

Referenced by GetPosition().

◆ nRowCount

SCROW ScChartPositionMap::nRowCount

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

Definition at line 37 of file chartpos.hxx.

Referenced by GetColHeaderPosition(), and ScChartPositionMap().

◆ ppData

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

Definition at line 36 of file chartpos.hxx.

Referenced by GetPosition(), and ScChartPositionMap().

◆ ppRowHeader

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

Definition at line 38 of file chartpos.hxx.

Referenced by GetRowHeaderPosition(), and ScChartPositionMap().

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