LibreOffice Module chart2 (master) 1
|
#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 tVecVecAny & | getComplexRowLabels () const |
void | setComplexColumnLabels (tVecVecAny &&rNewColumnLabels) |
const tVecVecAny & | getComplexColumnLabels () 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 |
Definition at line 29 of file InternalData.hxx.
|
private |
Definition at line 88 of file InternalData.hxx.
typedef std::vector< std::vector< css::uno::Any > > chart::InternalData::tVecVecAny |
Definition at line 67 of file InternalData.hxx.
chart::InternalData::InternalData | ( | ) |
Definition at line 83 of file InternalData.cxx.
sal_Int32 chart::InternalData::appendColumn | ( | ) |
Definition at line 345 of file InternalData.cxx.
References getColumnCount(), and insertColumn().
Referenced by chart::InternalDataProvider::appendSequence(), and chart::InternalDataProvider::createDataSequenceFromArray().
sal_Int32 chart::InternalData::appendRow | ( | ) |
Definition at line 351 of file InternalData.cxx.
References getRowCount(), and insertRow().
Referenced by chart::InternalDataProvider::appendSequence().
void chart::InternalData::createDefaultData | ( | ) |
Definition at line 97 of file InternalData.cxx.
References chart::fDefaultData, i, m_aColumnLabels, m_aData, m_aRowLabels, m_nColumnCount, m_nRowCount, chart::SchResId(), and u.
Referenced by chart::InternalDataProvider::initialize().
void chart::InternalData::deleteColumn | ( | sal_Int32 | nAtIndex | ) |
Definition at line 403 of file InternalData.cxx.
References dump(), m_aColumnLabels, m_aData, m_nColumnCount, and m_nRowCount.
Referenced by chart::InternalDataProvider::deleteDataPointForAllSequences(), and chart::InternalDataProvider::deleteSequence().
void chart::InternalData::deleteRow | ( | sal_Int32 | nAtIndex | ) |
Definition at line 435 of file InternalData.cxx.
References dump(), m_aData, m_aRowLabels, m_nColumnCount, m_nRowCount, and nIndex.
Referenced by chart::InternalDataProvider::deleteDataPointForAllSequences(), and chart::InternalDataProvider::deleteSequence().
void chart::InternalData::dump | ( | ) | const |
Definition at line 547 of file InternalData.cxx.
Referenced by deleteColumn(), deleteRow(), insertColumn(), insertRow(), and setComplexColumnLabel().
|
private |
resizes the data if at least one of the given dimensions is larger than before.
The data is never becoming smaller only larger.
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().
sal_Int32 chart::InternalData::getColumnCount | ( | ) | const |
Definition at line 362 of file InternalData.cxx.
References m_nColumnCount.
Referenced by appendColumn(), chart::InternalDataProvider::convertRangeToXML(), chart::InternalDataProvider::createDataSequenceByRangeRepresentation(), chart::InternalDataProvider::createDataSequenceFromArray(), chart::InternalDataProvider::createDataSource(), chart::InternalDataProvider::deleteDataPointForAllSequences(), chart::InternalDataProvider::deleteSequence(), chart::InternalDataProvider::hasDataByRangeRepresentation(), chart::InternalDataProvider::insertDataPointForAllSequences(), chart::InternalDataProvider::insertSequence(), and chart::InternalDataProvider::swapDataPointWithNextOneForAllSequences().
Sequence< double > chart::InternalData::getColumnValues | ( | sal_Int32 | nColumnIndex | ) | const |
Definition at line 162 of file InternalData.cxx.
References m_aData, m_nColumnCount, and m_nRowCount.
Referenced by chart::InternalDataProvider::getDataByRangeRepresentation().
std::vector< uno::Any > chart::InternalData::getComplexColumnLabel | ( | sal_Int32 | nColumnIndex | ) | const |
Definition at line 236 of file InternalData.cxx.
References m_aColumnLabels.
Referenced by chart::InternalDataProvider::createDataSequenceFromArray(), and chart::InternalDataProvider::getDataByRangeRepresentation().
const InternalData::tVecVecAny & chart::InternalData::getComplexColumnLabels | ( | ) | const |
Definition at line 496 of file InternalData.cxx.
References m_aColumnLabels.
Referenced by chart::InternalDataProvider::createDataSource(), chart::InternalDataProvider::deleteComplexCategoryLevel(), chart::InternalDataProvider::getAnyColumnDescriptions(), chart::InternalDataProvider::getColumnDescriptions(), chart::InternalDataProvider::getComplexColumnDescriptions(), chart::InternalDataProvider::getDataByRangeRepresentation(), chart::InternalDataProvider::getDateCategories(), chart::InternalDataProvider::insertComplexCategoryLevel(), and chart::InternalDataProvider::setDataByRangeRepresentation().
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().
const InternalData::tVecVecAny & chart::InternalData::getComplexRowLabels | ( | ) | const |
Definition at line 481 of file InternalData.cxx.
References m_aRowLabels.
Referenced by chart::InternalDataProvider::createDataSource(), chart::InternalDataProvider::deleteComplexCategoryLevel(), chart::InternalDataProvider::getAnyRowDescriptions(), chart::InternalDataProvider::getComplexRowDescriptions(), chart::InternalDataProvider::getDataByRangeRepresentation(), chart::InternalDataProvider::getDateCategories(), chart::InternalDataProvider::getRowDescriptions(), chart::InternalDataProvider::insertComplexCategoryLevel(), and chart::InternalDataProvider::setDataByRangeRepresentation().
Definition at line 150 of file InternalData.cxx.
References i, m_aData, m_nColumnCount, and m_nRowCount.
Referenced by chart::InternalDataProvider::getData().
sal_Int32 chart::InternalData::getRowCount | ( | ) | const |
Definition at line 357 of file InternalData.cxx.
References m_nRowCount.
Referenced by appendRow(), chart::InternalDataProvider::convertRangeToXML(), chart::InternalDataProvider::createDataSequenceByRangeRepresentation(), chart::InternalDataProvider::createDataSource(), chart::InternalDataProvider::deleteDataPointForAllSequences(), chart::InternalDataProvider::deleteSequence(), chart::InternalDataProvider::hasDataByRangeRepresentation(), chart::InternalDataProvider::insertDataPointForAllSequences(), chart::InternalDataProvider::insertSequence(), and chart::InternalDataProvider::swapDataPointWithNextOneForAllSequences().
Sequence< double > chart::InternalData::getRowValues | ( | sal_Int32 | nRowIndex | ) | const |
Definition at line 169 of file InternalData.cxx.
References m_aData, m_nColumnCount, and m_nRowCount.
Referenced by chart::InternalDataProvider::getDataByRangeRepresentation().
void chart::InternalData::insertColumn | ( | sal_Int32 | nAfterIndex | ) |
Definition at line 312 of file InternalData.cxx.
References dump(), m_aColumnLabels, m_aData, m_nColumnCount, and m_nRowCount.
Referenced by appendColumn(), chart::InternalDataProvider::insertDataPointForAllSequences(), and chart::InternalDataProvider::insertSequence().
void chart::InternalData::insertRow | ( | sal_Int32 | nAfterIndex | ) |
Definition at line 367 of file InternalData.cxx.
References dump(), m_aData, m_aRowLabels, m_nColumnCount, m_nRowCount, and nIndex.
Referenced by appendRow(), chart::InternalDataProvider::insertDataPointForAllSequences(), and chart::InternalDataProvider::insertSequence().
void chart::InternalData::setColumnValues | ( | sal_Int32 | nColumnIndex, |
const std::vector< double > & | rNewData | ||
) |
Definition at line 177 of file InternalData.cxx.
References enlargeData(), i, m_aData, m_nColumnCount, and m_nRowCount.
Referenced by chart::InternalDataProvider::createDataSequenceFromArray(), and chart::InternalDataProvider::setDataByRangeRepresentation().
void chart::InternalData::setComplexColumnLabel | ( | sal_Int32 | nColumnIndex, |
std::vector< css::uno::Any > && | rComplexLabel | ||
) |
Definition at line 201 of file InternalData.cxx.
References dump(), enlargeData(), m_aColumnLabels, and o3tl::make_unsigned().
Referenced by chart::InternalDataProvider::createDataSequenceFromArray(), and chart::InternalDataProvider::setDataByRangeRepresentation().
void chart::InternalData::setComplexColumnLabels | ( | tVecVecAny && | rNewColumnLabels | ) |
Definition at line 486 of file InternalData.cxx.
References enlargeData(), m_aColumnLabels, and m_nColumnCount.
Referenced by chart::InternalDataProvider::deleteComplexCategoryLevel(), chart::InternalDataProvider::insertComplexCategoryLevel(), chart::InternalDataProvider::setAnyColumnDescriptions(), chart::InternalDataProvider::setColumnDescriptions(), chart::InternalDataProvider::setComplexColumnDescriptions(), chart::InternalDataProvider::setDataByRangeRepresentation(), and chart::InternalDataProvider::setDateCategories().
void chart::InternalData::setComplexRowLabel | ( | sal_Int32 | nRowIndex, |
std::vector< css::uno::Any > && | rComplexLabel | ||
) |
Definition at line 215 of file InternalData.cxx.
References enlargeData(), m_aRowLabels, and o3tl::make_unsigned().
Referenced by chart::InternalDataProvider::createDataSequenceFromArray(), and chart::InternalDataProvider::setDataByRangeRepresentation().
void chart::InternalData::setComplexRowLabels | ( | tVecVecAny && | rNewRowLabels | ) |
Definition at line 471 of file InternalData.cxx.
References enlargeData(), m_aRowLabels, and m_nRowCount.
Referenced by chart::InternalDataProvider::deleteComplexCategoryLevel(), chart::InternalDataProvider::insertComplexCategoryLevel(), chart::InternalDataProvider::setAnyRowDescriptions(), chart::InternalDataProvider::setComplexRowDescriptions(), chart::InternalDataProvider::setDataByRangeRepresentation(), chart::InternalDataProvider::setDateCategories(), and chart::InternalDataProvider::setRowDescriptions().
void chart::InternalData::setData | ( | const css::uno::Sequence< css::uno::Sequence< double > > & | rDataInRows | ) |
Definition at line 124 of file InternalData.cxx.
References getLength(), m_aColumnLabels, m_aData, m_aRowLabels, m_nColumnCount, and m_nRowCount.
Referenced by chart::InternalDataProvider::setData().
void chart::InternalData::setRowValues | ( | sal_Int32 | nRowIndex, |
const std::vector< double > & | rNewData | ||
) |
Definition at line 189 of file InternalData.cxx.
References enlargeData(), i, m_aData, and m_nColumnCount.
Referenced by chart::InternalDataProvider::setDataByRangeRepresentation().
void chart::InternalData::swapColumnWithNext | ( | sal_Int32 | nColumnIndex | ) |
Definition at line 269 of file InternalData.cxx.
References m_aColumnLabels, m_aData, m_nColumnCount, and m_nRowCount.
Referenced by chart::InternalDataProvider::swapDataPointWithNextOneForAllSequences().
void chart::InternalData::swapRowWithNext | ( | sal_Int32 | nRowIndex | ) |
Definition at line 251 of file InternalData.cxx.
References m_aData, m_aRowLabels, m_nColumnCount, and m_nRowCount.
Referenced by chart::InternalDataProvider::swapDataPointWithNextOneForAllSequences().
|
private |
Definition at line 91 of file InternalData.hxx.
Referenced by createDefaultData(), deleteColumn(), getComplexColumnLabel(), getComplexColumnLabels(), insertColumn(), setComplexColumnLabel(), setComplexColumnLabels(), setData(), and swapColumnWithNext().
|
private |
Definition at line 89 of file InternalData.hxx.
Referenced by createDefaultData(), deleteColumn(), deleteRow(), enlargeData(), getColumnValues(), getData(), getRowValues(), insertColumn(), insertRow(), setColumnValues(), setData(), setRowValues(), swapColumnWithNext(), and swapRowWithNext().
|
private |
Definition at line 90 of file InternalData.hxx.
Referenced by createDefaultData(), deleteRow(), getComplexRowLabel(), getComplexRowLabels(), insertRow(), setComplexRowLabel(), setComplexRowLabels(), setData(), and swapRowWithNext().
|
private |
Definition at line 85 of file InternalData.hxx.
Referenced by createDefaultData(), deleteColumn(), deleteRow(), enlargeData(), getColumnCount(), getColumnValues(), getData(), getRowValues(), insertColumn(), insertRow(), setColumnValues(), setComplexColumnLabels(), setData(), setRowValues(), swapColumnWithNext(), and swapRowWithNext().
|
private |
Definition at line 86 of file InternalData.hxx.
Referenced by createDefaultData(), deleteColumn(), deleteRow(), enlargeData(), getColumnValues(), getData(), getRowCount(), getRowValues(), insertColumn(), insertRow(), setColumnValues(), setComplexRowLabels(), setData(), swapColumnWithNext(), and swapRowWithNext().