LibreOffice Module chart2 (master) 1
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
chart::InternalData Class Reference

#include <InternalData.hxx>

Public Types

typedef std::vector< std::vector< css::uno::Any > > tVecVecAny
 

Public Member Functions

 InternalData ()
 
void createDefaultData ()
 
void setData (const css::uno::Sequence< css::uno::Sequence< double > > &rDataInRows)
 
css::uno::Sequence< css::uno::Sequence< double > > getData () const
 
css::uno::Sequence< double > getColumnValues (sal_Int32 nColumnIndex) const
 
css::uno::Sequence< double > getRowValues (sal_Int32 nRowIndex) const
 
void setColumnValues (sal_Int32 nColumnIndex, const std::vector< double > &rNewData)
 
void setRowValues (sal_Int32 nRowIndex, const std::vector< double > &rNewData)
 
void setComplexColumnLabel (sal_Int32 nColumnIndex, std::vector< css::uno::Any > &&rComplexLabel)
 
void setComplexRowLabel (sal_Int32 nRowIndex, std::vector< css::uno::Any > &&rComplexLabel)
 
std::vector< css::uno::Any > getComplexColumnLabel (sal_Int32 nColumnIndex) const
 
std::vector< css::uno::Any > getComplexRowLabel (sal_Int32 nRowIndex) const
 
void swapRowWithNext (sal_Int32 nRowIndex)
 
void swapColumnWithNext (sal_Int32 nColumnIndex)
 
void insertColumn (sal_Int32 nAfterIndex)
 
void insertRow (sal_Int32 nAfterIndex)
 
void deleteColumn (sal_Int32 nAtIndex)
 
void deleteRow (sal_Int32 nAtIndex)
 
sal_Int32 appendColumn ()
 
sal_Int32 appendRow ()
 
sal_Int32 getRowCount () const
 
sal_Int32 getColumnCount () const
 
void setComplexRowLabels (tVecVecAny &&rNewRowLabels)
 
const tVecVecAnygetComplexRowLabels () const
 
void setComplexColumnLabels (tVecVecAny &&rNewColumnLabels)
 
const tVecVecAnygetComplexColumnLabels () const
 
void dump () const
 

Private Types

typedef std::valarray< double > tDataType
 

Private Member Functions

bool enlargeData (sal_Int32 nColumnCount, sal_Int32 nRowCount)
 resizes the data if at least one of the given dimensions is larger than before. More...
 

Private Attributes

sal_Int32 m_nColumnCount
 
sal_Int32 m_nRowCount
 
tDataType m_aData
 
tVecVecAny m_aRowLabels
 
tVecVecAny m_aColumnLabels
 

Detailed Description

Definition at line 29 of file InternalData.hxx.

Member Typedef Documentation

◆ tDataType

typedef std::valarray< double > chart::InternalData::tDataType
private

Definition at line 88 of file InternalData.hxx.

◆ tVecVecAny

typedef std::vector< std::vector< css::uno::Any > > chart::InternalData::tVecVecAny

Definition at line 67 of file InternalData.hxx.

Constructor & Destructor Documentation

◆ InternalData()

chart::InternalData::InternalData ( )

Definition at line 83 of file InternalData.cxx.

Member Function Documentation

◆ appendColumn()

sal_Int32 chart::InternalData::appendColumn ( )
Returns
the index of the newly appended column

Definition at line 345 of file InternalData.cxx.

References getColumnCount(), and insertColumn().

Referenced by chart::InternalDataProvider::appendSequence(), and chart::InternalDataProvider::createDataSequenceFromArray().

◆ appendRow()

sal_Int32 chart::InternalData::appendRow ( )
Returns
the index of the newly appended row

Definition at line 351 of file InternalData.cxx.

References getRowCount(), and insertRow().

Referenced by chart::InternalDataProvider::appendSequence().

◆ createDefaultData()

void chart::InternalData::createDefaultData ( )

◆ deleteColumn()

void chart::InternalData::deleteColumn ( sal_Int32  nAtIndex)

◆ deleteRow()

void chart::InternalData::deleteRow ( sal_Int32  nAtIndex)

◆ dump()

void chart::InternalData::dump ( ) const

◆ enlargeData()

bool chart::InternalData::enlargeData ( sal_Int32  nColumnCount,
sal_Int32  nRowCount 
)
private

resizes the data if at least one of the given dimensions is larger than before.

The data is never becoming smaller only larger.

Returns
</true>, if the data was enlarged

Definition at line 287 of file InternalData.cxx.

References m_aData, m_nColumnCount, and m_nRowCount.

Referenced by setColumnValues(), setComplexColumnLabel(), setComplexColumnLabels(), setComplexRowLabel(), setComplexRowLabels(), and setRowValues().

◆ getColumnCount()

sal_Int32 chart::InternalData::getColumnCount ( ) const

◆ getColumnValues()

Sequence< double > chart::InternalData::getColumnValues ( sal_Int32  nColumnIndex) const

◆ getComplexColumnLabel()

std::vector< uno::Any > chart::InternalData::getComplexColumnLabel ( sal_Int32  nColumnIndex) const

◆ getComplexColumnLabels()

const InternalData::tVecVecAny & chart::InternalData::getComplexColumnLabels ( ) const

◆ getComplexRowLabel()

std::vector< uno::Any > chart::InternalData::getComplexRowLabel ( sal_Int32  nRowIndex) const

Definition at line 243 of file InternalData.cxx.

References m_aRowLabels.

Referenced by chart::InternalDataProvider::getDataByRangeRepresentation().

◆ getComplexRowLabels()

const InternalData::tVecVecAny & chart::InternalData::getComplexRowLabels ( ) const

◆ getData()

Sequence< Sequence< double > > chart::InternalData::getData ( ) const

Definition at line 150 of file InternalData.cxx.

References i, m_aData, m_nColumnCount, and m_nRowCount.

Referenced by chart::InternalDataProvider::getData().

◆ getRowCount()

sal_Int32 chart::InternalData::getRowCount ( ) const

◆ getRowValues()

Sequence< double > chart::InternalData::getRowValues ( sal_Int32  nRowIndex) const

◆ insertColumn()

void chart::InternalData::insertColumn ( sal_Int32  nAfterIndex)

◆ insertRow()

void chart::InternalData::insertRow ( sal_Int32  nAfterIndex)

◆ setColumnValues()

void chart::InternalData::setColumnValues ( sal_Int32  nColumnIndex,
const std::vector< double > &  rNewData 
)

◆ setComplexColumnLabel()

void chart::InternalData::setComplexColumnLabel ( sal_Int32  nColumnIndex,
std::vector< css::uno::Any > &&  rComplexLabel 
)

◆ setComplexColumnLabels()

void chart::InternalData::setComplexColumnLabels ( tVecVecAny &&  rNewColumnLabels)

◆ setComplexRowLabel()

void chart::InternalData::setComplexRowLabel ( sal_Int32  nRowIndex,
std::vector< css::uno::Any > &&  rComplexLabel 
)

◆ setComplexRowLabels()

void chart::InternalData::setComplexRowLabels ( tVecVecAny &&  rNewRowLabels)

◆ setData()

void chart::InternalData::setData ( const css::uno::Sequence< css::uno::Sequence< double > > &  rDataInRows)

◆ setRowValues()

void chart::InternalData::setRowValues ( sal_Int32  nRowIndex,
const std::vector< double > &  rNewData 
)

◆ swapColumnWithNext()

void chart::InternalData::swapColumnWithNext ( sal_Int32  nColumnIndex)

◆ swapRowWithNext()

void chart::InternalData::swapRowWithNext ( sal_Int32  nRowIndex)

Member Data Documentation

◆ m_aColumnLabels

tVecVecAny chart::InternalData::m_aColumnLabels
private

◆ m_aData

tDataType chart::InternalData::m_aData
private

◆ m_aRowLabels

tVecVecAny chart::InternalData::m_aRowLabels
private

◆ m_nColumnCount

sal_Int32 chart::InternalData::m_nColumnCount
private

◆ m_nRowCount

sal_Int32 chart::InternalData::m_nRowCount
private

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