LibreOffice Module chart2 (master) 1
|
#include <DataBrowserModel.hxx>
Classes | |
struct | implColumnLess |
struct | tDataColumn |
struct | tDataHeader |
Public Types | |
enum | eCellType { NUMBER , TEXT , TEXTORDATE } |
typedef std::vector< tDataHeader > | tDataHeaderVector |
Public Member Functions | |
DataBrowserModel (const rtl::Reference<::chart::ChartModel > &xChartDoc) | |
~DataBrowserModel () | |
void | insertDataSeries (sal_Int32 nAfterColumnIndex) |
Inserts a new data series after the data series to which the data column with index nAfterColumnIndex belongs. More... | |
void | insertComplexCategoryLevel (sal_Int32 nAfterColumnIndex) |
Inserts a new text column for complex categories. More... | |
void | removeDataSeriesOrComplexCategoryLevel (sal_Int32 nAtColumnIndex) |
Removes a data series to which the data column with index nAtColumnIndex belongs. More... | |
void | swapDataSeries (sal_Int32 nFirstIndex) |
Swaps the series to which the data column with index nFirstIndex belongs with the next series (which starts at an index >= nFirstIndex + 1) More... | |
void | swapDataPointForAllSeries (sal_Int32 nFirstIndex) |
void | insertDataPointForAllSeries (sal_Int32 nAfterIndex) |
void | removeDataPointForAllSeries (sal_Int32 nAtIndex) |
eCellType | getCellType (sal_Int32 nAtColumn) const |
double | getCellNumber (sal_Int32 nAtColumn, sal_Int32 nAtRow) |
If getCellType( nAtColumn, nAtRow ) returns TEXT, the result will be Nan. More... | |
OUString | getCellText (sal_Int32 nAtColumn, sal_Int32 nAtRow) |
css::uno::Any | getCellAny (sal_Int32 nAtColumn, sal_Int32 nAtRow) |
sal_uInt32 | getNumberFormatKey (sal_Int32 nAtColumn) |
bool | setCellNumber (sal_Int32 nAtColumn, sal_Int32 nAtRow, double fValue) |
returns </sal_True> if the number could successfully be set at the given position More... | |
bool | setCellText (sal_Int32 nAtColumn, sal_Int32 nAtRow, const OUString &rText) |
returns </sal_True> if the text could successfully be set at the given position More... | |
bool | setCellAny (sal_Int32 nAtColumn, sal_Int32 nAtRow, const css::uno::Any &aValue) |
sal_Int32 | getColumnCount () const |
sal_Int32 | getMaxRowCount () const |
OUString | getRoleOfColumn (sal_Int32 nColumnIndex) const |
bool | isCategoriesColumn (sal_Int32 nColumnIndex) const |
const tDataHeaderVector & | getDataHeaders () const |
tDataHeader | getHeaderForSeries (const css::uno::Reference< css::chart2::XDataSeries > &xSeries) const |
rtl::Reference< ::chart::DataSeries > | getDataSeriesByColumn (sal_Int32 nColumn) const |
Private Types | |
typedef std::vector< tDataColumn > | tDataColumnVector |
Private Member Functions | |
void | updateFromModel () |
void | removeComplexCategoryLevel (sal_Int32 nAtColumnIndex) |
void | addErrorBarRanges (const rtl::Reference<::chart::DataSeries > &xDataSeries, sal_Int32 nNumberFormatKey, sal_Int32 &rInOutSequenceIndex, sal_Int32 &rInOutHeaderEnd, bool bYError) |
sal_Int32 | getCategoryColumnCount () |
Private Attributes | |
rtl::Reference<::chart::ChartModel > | m_xChartDocument |
std::unique_ptr< DialogModel > | m_apDialogModel |
tDataColumnVector | m_aColumns |
tDataHeaderVector | m_aHeaders |
Definition at line 47 of file DataBrowserModel.hxx.
|
private |
Definition at line 162 of file DataBrowserModel.hxx.
typedef std::vector< tDataHeader > chart::DataBrowserModel::tDataHeaderVector |
Definition at line 133 of file DataBrowserModel.hxx.
Enumerator | |
---|---|
NUMBER | |
TEXT | |
TEXTORDATE |
Definition at line 77 of file DataBrowserModel.hxx.
|
explicit |
Definition at line 247 of file DataBrowserModel.cxx.
References updateFromModel().
chart::DataBrowserModel::~DataBrowserModel | ( | ) |
Definition at line 255 of file DataBrowserModel.cxx.
|
private |
Definition at line 890 of file DataBrowserModel.cxx.
References DBG_UNHANDLED_EXCEPTION, chart::StatisticsHelper::getErrorBars(), chart::StatisticsHelper::getErrorLabeledDataSequenceFromDataSource(), m_aColumns, and NUMBER.
Referenced by updateFromModel().
|
private |
Definition at line 732 of file DataBrowserModel.cxx.
References m_aColumns.
Referenced by insertComplexCategoryLevel(), and insertDataSeries().
uno::Any chart::DataBrowserModel::getCellAny | ( | sal_Int32 | nAtColumn, |
sal_Int32 | nAtRow | ||
) |
Definition at line 588 of file DataBrowserModel.cxx.
References m_aColumns, and nIndex.
double chart::DataBrowserModel::getCellNumber | ( | sal_Int32 | nAtColumn, |
sal_Int32 | nAtRow | ||
) |
If getCellType( nAtColumn, nAtRow ) returns TEXT, the result will be Nan.
Definition at line 570 of file DataBrowserModel.cxx.
References m_aColumns, and nIndex.
OUString chart::DataBrowserModel::getCellText | ( | sal_Int32 | nAtColumn, |
sal_Int32 | nAtRow | ||
) |
Definition at line 608 of file DataBrowserModel.cxx.
References m_aColumns, and nIndex.
DataBrowserModel::eCellType chart::DataBrowserModel::getCellType | ( | sal_Int32 | nAtColumn | ) | const |
Definition at line 561 of file DataBrowserModel.cxx.
References m_aColumns, nIndex, and TEXT.
Referenced by setCellNumber(), and setCellText().
sal_Int32 chart::DataBrowserModel::getColumnCount | ( | ) | const |
Definition at line 687 of file DataBrowserModel.cxx.
References m_aColumns.
|
inline |
Definition at line 135 of file DataBrowserModel.hxx.
References m_aHeaders.
rtl::Reference< DataSeries > chart::DataBrowserModel::getDataSeriesByColumn | ( | sal_Int32 | nColumn | ) | const |
Definition at line 553 of file DataBrowserModel.cxx.
References m_aColumns, and nIndex.
DataBrowserModel::tDataHeader chart::DataBrowserModel::getHeaderForSeries | ( | const css::uno::Reference< css::chart2::XDataSeries > & | xSeries | ) | const |
Definition at line 539 of file DataBrowserModel.cxx.
References m_aHeaders.
Referenced by removeDataSeriesOrComplexCategoryLevel().
sal_Int32 chart::DataBrowserModel::getMaxRowCount | ( | ) | const |
Definition at line 692 of file DataBrowserModel.cxx.
References m_aColumns, and nLength.
sal_uInt32 chart::DataBrowserModel::getNumberFormatKey | ( | sal_Int32 | nAtColumn | ) |
Definition at line 628 of file DataBrowserModel.cxx.
References m_aColumns, and nIndex.
OUString chart::DataBrowserModel::getRoleOfColumn | ( | sal_Int32 | nColumnIndex | ) | const |
Definition at line 712 of file DataBrowserModel.cxx.
References m_aColumns, and o3tl::make_unsigned().
void chart::DataBrowserModel::insertComplexCategoryLevel | ( | sal_Int32 | nAfterColumnIndex | ) |
Inserts a new text column for complex categories.
Definition at line 384 of file DataBrowserModel.cxx.
References getCategoryColumnCount(), isCategoriesColumn(), m_apDialogModel, m_xChartDocument, and updateFromModel().
void chart::DataBrowserModel::insertDataPointForAllSeries | ( | sal_Int32 | nAfterIndex | ) |
Definition at line 517 of file DataBrowserModel.cxx.
References m_apDialogModel.
void chart::DataBrowserModel::insertDataSeries | ( | sal_Int32 | nAfterColumnIndex | ) |
Inserts a new data series after the data series to which the data column with index nAfterColumnIndex belongs.
Definition at line 275 of file DataBrowserModel.cxx.
References CHART_UNONAME_NUMFMT, getCategoryColumnCount(), isCategoriesColumn(), m_aColumns, m_aHeaders, m_apDialogModel, m_xChartDocument, o3tl::make_unsigned(), nIndex, and updateFromModel().
bool chart::DataBrowserModel::isCategoriesColumn | ( | sal_Int32 | nColumnIndex | ) | const |
Definition at line 720 of file DataBrowserModel.cxx.
References m_aColumns, and o3tl::make_unsigned().
Referenced by insertComplexCategoryLevel(), insertDataSeries(), and removeDataSeriesOrComplexCategoryLevel().
|
private |
Definition at line 408 of file DataBrowserModel.cxx.
References m_apDialogModel, m_xChartDocument, and updateFromModel().
Referenced by removeDataSeriesOrComplexCategoryLevel().
void chart::DataBrowserModel::removeDataPointForAllSeries | ( | sal_Int32 | nAtIndex | ) |
Definition at line 528 of file DataBrowserModel.cxx.
References m_apDialogModel.
void chart::DataBrowserModel::removeDataSeriesOrComplexCategoryLevel | ( | sal_Int32 | nAtColumnIndex | ) |
Removes a data series to which the data column with index nAtColumnIndex belongs.
Definition at line 424 of file DataBrowserModel.cxx.
References chart::DataSeriesHelper::getAllDataSequences(), getHeaderForSeries(), isCategoriesColumn(), m_aColumns, m_apDialogModel, o3tl::make_unsigned(), removeComplexCategoryLevel(), and updateFromModel().
bool chart::DataBrowserModel::setCellAny | ( | sal_Int32 | nAtColumn, |
sal_Int32 | nAtRow, | ||
const css::uno::Any & | aValue | ||
) |
Definition at line 636 of file DataBrowserModel.cxx.
References m_aColumns, m_apDialogModel, m_xChartDocument, and nIndex.
Referenced by setCellNumber(), and setCellText().
bool chart::DataBrowserModel::setCellNumber | ( | sal_Int32 | nAtColumn, |
sal_Int32 | nAtRow, | ||
double | fValue | ||
) |
returns </sal_True> if the number could successfully be set at the given position
Definition at line 675 of file DataBrowserModel.cxx.
References getCellType(), NUMBER, and setCellAny().
bool chart::DataBrowserModel::setCellText | ( | sal_Int32 | nAtColumn, |
sal_Int32 | nAtRow, | ||
const OUString & | rText | ||
) |
returns </sal_True> if the text could successfully be set at the given position
Definition at line 681 of file DataBrowserModel.cxx.
References getCellType(), setCellAny(), and TEXT.
void chart::DataBrowserModel::swapDataPointForAllSeries | ( | sal_Int32 | nFirstIndex | ) |
Definition at line 505 of file DataBrowserModel.cxx.
References m_apDialogModel.
void chart::DataBrowserModel::swapDataSeries | ( | sal_Int32 | nFirstIndex | ) |
Swaps the series to which the data column with index nFirstIndex belongs with the next series (which starts at an index >= nFirstIndex + 1)
Definition at line 491 of file DataBrowserModel.cxx.
References chart::DialogModel::Down, m_aColumns, m_apDialogModel, o3tl::make_unsigned(), and updateFromModel().
|
private |
Definition at line 745 of file DataBrowserModel.cxx.
References addErrorBarRanges(), chart::ChartModelHelper::getFirstCoordinateSystem(), chart::DataSeriesHelper::getNumberFormatKeyFromAxis(), chart::DataSeriesHelper::getRole(), chart::DialogModel::GetRoleDataLabel(), chart::ChartTypeHelper::getRoleOfSequenceForDataLabelNumberFormatDetection(), chart::ExplicitCategoriesProvider::getSplitCategoriesList(), m_aColumns, m_aHeaders, m_apDialogModel, chart::DataBrowserModel::tDataColumn::m_aUIRoleName, chart::DataBrowserModel::tDataColumn::m_eCellType, chart::DataBrowserModel::tDataColumn::m_nNumberFormatKey, m_xChartDocument, chart::DataBrowserModel::tDataColumn::m_xLabeledDataSequence, NUMBER, TEXTORDATE, chart::StatisticsHelper::usesErrorBarRanges(), and chart::Diagram::tTemplateWithServiceName::xChartTypeTemplate.
Referenced by DataBrowserModel(), insertComplexCategoryLevel(), insertDataSeries(), removeComplexCategoryLevel(), removeDataSeriesOrComplexCategoryLevel(), and swapDataSeries().
|
private |
Definition at line 164 of file DataBrowserModel.hxx.
Referenced by addErrorBarRanges(), getCategoryColumnCount(), getCellAny(), getCellNumber(), getCellText(), getCellType(), getColumnCount(), getDataSeriesByColumn(), getMaxRowCount(), getNumberFormatKey(), getRoleOfColumn(), insertDataSeries(), isCategoriesColumn(), removeDataSeriesOrComplexCategoryLevel(), setCellAny(), swapDataSeries(), and updateFromModel().
|
private |
Definition at line 165 of file DataBrowserModel.hxx.
Referenced by getDataHeaders(), getHeaderForSeries(), insertDataSeries(), and updateFromModel().
|
private |
Definition at line 157 of file DataBrowserModel.hxx.
Referenced by insertComplexCategoryLevel(), insertDataPointForAllSeries(), insertDataSeries(), removeComplexCategoryLevel(), removeDataPointForAllSeries(), removeDataSeriesOrComplexCategoryLevel(), setCellAny(), swapDataPointForAllSeries(), swapDataSeries(), and updateFromModel().
|
private |
Definition at line 156 of file DataBrowserModel.hxx.
Referenced by insertComplexCategoryLevel(), insertDataSeries(), removeComplexCategoryLevel(), setCellAny(), and updateFromModel().