LibreOffice Module chart2 (master) 1
|
#include <DialogModel.hxx>
Public Types | |
enum class | MoveDirection { Down , Up } |
typedef std::pair< OUString, std::pair< rtl::Reference< ::chart::DataSeries >, rtl::Reference< ::chart::ChartType > > > | tSeriesWithChartTypeByName |
typedef std::map< OUString, OUString > | tRolesWithRanges |
Public Member Functions | |
DialogModel (rtl::Reference<::chart::ChartModel > xChartDocument) | |
~DialogModel () | |
void | setTemplate (const rtl::Reference< ::chart::ChartTypeTemplate > &xTemplate) |
std::shared_ptr< RangeSelectionHelper > const & | getRangeSelectionHelper () const |
const rtl::Reference<::chart::ChartModel > & | getChartModel () const |
css::uno::Reference< css::chart2::data::XDataProvider > | getDataProvider () const |
std::vector< rtl::Reference< ::chart::ChartType > > | getAllDataSeriesContainers () const |
std::vector< tSeriesWithChartTypeByName > | getAllDataSeriesWithLabel () const |
void | moveSeries (const rtl::Reference< DataSeries > &xSeries, MoveDirection eDirection) |
rtl::Reference< ::chart::DataSeries > | insertSeriesAfter (const css::uno::Reference< css::chart2::XDataSeries > &xSeries, const rtl::Reference< ::chart::ChartType > &xChartType, bool bCreateDataCachedSequences=false) |
void | deleteSeries (const rtl::Reference< ::chart::DataSeries > &xSeries, const rtl::Reference< ::chart::ChartType > &xChartType) |
css::uno::Reference< css::chart2::data::XLabeledDataSequence > | getCategories () const |
void | setCategories (const css::uno::Reference< css::chart2::data::XLabeledDataSequence > &xCategories) |
OUString | getCategoriesRange () const |
bool | isCategoryDiagram () const |
void | detectArguments (OUString &rOutRangeString, bool &rOutUseColumns, bool &rOutFirstCellAsLabel, bool &rOutHasCategories) const |
bool | allArgumentsForRectRangeDetected () const |
void | setData (const css::uno::Sequence< css::beans::PropertyValue > &rArguments) |
void | setTimeBasedRange (bool bTimeBased, sal_Int32 nStart, sal_Int32 nEnd) const |
const DialogModelTimeBasedInfo & | getTimeBasedInfo () const |
void | startControllerLockTimer () |
ChartModel & | getModel () const |
Static Public Member Functions | |
static tRolesWithRanges | getRolesWithRanges (const css::uno::Reference< css::chart2::XDataSeries > &xSeries, const OUString &aRoleOfSequenceForLabel, const rtl::Reference< ::chart::ChartType > &xChartType) |
static OUString | ConvertRoleFromInternalToUI (const OUString &rRoleString) |
static OUString | GetRoleDataLabel () |
static sal_Int32 | GetRoleIndexForSorting (const OUString &rInternalRoleString) |
Private Member Functions | |
void | applyInterpretedData (const InterpretedData &rNewData, const std::vector< rtl::Reference< ::chart::DataSeries > > &rSeriesToReUse) |
sal_Int32 | countSeries () const |
Private Attributes | |
rtl::Reference<::chart::ChartModel > | m_xChartDocument |
rtl::Reference< ::chart::ChartTypeTemplate > | m_xTemplate |
std::shared_ptr< RangeSelectionHelper > | m_spRangeSelectionHelper |
TimerTriggeredControllerLock | m_aTimerTriggeredControllerLock |
DialogModelTimeBasedInfo | maTimeBasedInfo |
Definition at line 64 of file DialogModel.hxx.
typedef std::map< OUString, OUString > chart::DialogModel::tRolesWithRanges |
Definition at line 77 of file DialogModel.hxx.
typedef std::pair< OUString, std::pair< rtl::Reference< ::chart::DataSeries >, rtl::Reference< ::chart::ChartType > > > chart::DialogModel::tSeriesWithChartTypeByName |
Definition at line 74 of file DialogModel.hxx.
|
strong |
Enumerator | |
---|---|
Down | |
Up |
Definition at line 102 of file DialogModel.hxx.
|
explicit |
Definition at line 346 of file DialogModel.cxx.
chart::DialogModel::~DialogModel | ( | ) |
Definition at line 353 of file DialogModel.cxx.
References chart::DialogModelTimeBasedInfo::bTimeBased, getModel(), maTimeBasedInfo, chart::DialogModelTimeBasedInfo::nEnd, and chart::DialogModelTimeBasedInfo::nStart.
bool chart::DialogModel::allArgumentsForRectRangeDetected | ( | ) | const |
Definition at line 685 of file DialogModel.cxx.
References chart::DataSourceHelper::allArgumentsForRectRangeDetected(), and m_xChartDocument.
Referenced by chart::RangeChooserTabPage::initControlsFromModel().
|
private |
Definition at line 768 of file DialogModel.cxx.
References chart::InterpretedData::Categories, DBG_UNHANDLED_EXCEPTION, getAllDataSeriesContainers(), m_aTimerTriggeredControllerLock, m_xChartDocument, m_xTemplate, chart::InterpretedData::Series, setCategories(), and chart::TimerTriggeredControllerLock::startTimer().
Referenced by setData().
|
static |
Definition at line 745 of file DialogModel.cxx.
Referenced by chart::DataSourceTabPage::InsertRoleLBEntry().
|
private |
Definition at line 836 of file DialogModel.cxx.
References getAllDataSeriesContainers().
Referenced by insertSeriesAfter().
void chart::DialogModel::deleteSeries | ( | const rtl::Reference< ::chart::DataSeries > & | xSeries, |
const rtl::Reference< ::chart::ChartType > & | xChartType | ||
) |
Definition at line 583 of file DialogModel.cxx.
References chart::DataSeriesHelper::deleteSeries(), m_aTimerTriggeredControllerLock, m_xChartDocument, and chart::TimerTriggeredControllerLock::startTimer().
void chart::DialogModel::detectArguments | ( | OUString & | rOutRangeString, |
bool & | rOutUseColumns, | ||
bool & | rOutFirstCellAsLabel, | ||
bool & | rOutHasCategories | ||
) | const |
Definition at line 661 of file DialogModel.cxx.
References DBG_UNHANDLED_EXCEPTION, chart::DataSourceHelper::detectRangeSegmentation(), and m_xChartDocument.
Referenced by chart::RangeChooserTabPage::initControlsFromModel().
std::vector< rtl::Reference< ChartType > > chart::DialogModel::getAllDataSeriesContainers | ( | ) | const |
Definition at line 391 of file DialogModel.cxx.
References DBG_UNHANDLED_EXCEPTION, and m_xChartDocument.
Referenced by applyInterpretedData(), countSeries(), and getAllDataSeriesWithLabel().
std::vector< DialogModel::tSeriesWithChartTypeByName > chart::DialogModel::getAllDataSeriesWithLabel | ( | ) | const |
Definition at line 421 of file DialogModel.cxx.
References aSeq, DBG_UNHANDLED_EXCEPTION, and getAllDataSeriesContainers().
Referenced by chart::DataSourceTabPage::fillSeriesListBox().
uno::Reference< chart2::data::XLabeledDataSequence > chart::DialogModel::getCategories | ( | ) | const |
Definition at line 593 of file DialogModel.cxx.
References DBG_UNHANDLED_EXCEPTION, and m_xChartDocument.
Referenced by getCategoriesRange(), and chart::DataSourceTabPage::updateModelFromControl().
OUString chart::DialogModel::getCategoriesRange | ( | ) | const |
Definition at line 633 of file DialogModel.cxx.
References getCategories(), and TOOLS_WARN_EXCEPTION.
Referenced by chart::DataSourceTabPage::updateControlsFromDialogModel().
const rtl::Reference<::chart::ChartModel > & chart::DialogModel::getChartModel | ( | ) | const |
Definition at line 377 of file DialogModel.cxx.
References m_xChartDocument.
Referenced by chart::DataSourceTabPage::updateModelFromControl().
Reference< data::XDataProvider > chart::DialogModel::getDataProvider | ( | ) | const |
Definition at line 382 of file DialogModel.cxx.
References m_xChartDocument.
Referenced by setData(), and chart::DataSourceTabPage::updateModelFromControl().
ChartModel & chart::DialogModel::getModel | ( | ) | const |
Definition at line 842 of file DialogModel.cxx.
References m_xChartDocument.
Referenced by ~DialogModel().
std::shared_ptr< RangeSelectionHelper > const & chart::DialogModel::getRangeSelectionHelper | ( | ) | const |
Definition at line 368 of file DialogModel.cxx.
References m_spRangeSelectionHelper, and m_xChartDocument.
Referenced by chart::DataSourceTabPage::disposingRangeSelection(), chart::RangeChooserTabPage::disposingRangeSelection(), chart::DataSourceTabPage::isRangeFieldContentValid(), chart::RangeChooserTabPage::isValid(), chart::DataSourceTabPage::listeningFinished(), chart::RangeChooserTabPage::listeningFinished(), and chart::DataSourceTabPage::updateControlState().
|
static |
Definition at line 750 of file DialogModel.cxx.
References chart::SchResId().
Referenced by chart::DataBrowserModel::updateFromModel().
|
static |
Definition at line 755 of file DialogModel.cxx.
Referenced by chart::DataBrowserModel::implColumnLess::operator()().
|
static |
Definition at line 492 of file DialogModel.cxx.
References aSeq, and DBG_UNHANDLED_EXCEPTION.
Referenced by chart::DataSourceTabPage::fillRoleListBox().
|
inline |
Definition at line 140 of file DialogModel.hxx.
References maTimeBasedInfo.
Referenced by chart::DataSourceTabPage::updateModelFromControl().
rtl::Reference<::chart::DataSeries > chart::DialogModel::insertSeriesAfter | ( | const css::uno::Reference< css::chart2::XDataSeries > & | xSeries, |
const rtl::Reference< ::chart::ChartType > & | xChartType, | ||
bool | bCreateDataCachedSequences = false |
||
) |
Definition at line 537 of file DialogModel.cxx.
References countSeries(), DBG_UNHANDLED_EXCEPTION, m_aTimerTriggeredControllerLock, m_xChartDocument, m_xTemplate, and chart::TimerTriggeredControllerLock::startTimer().
bool chart::DialogModel::isCategoryDiagram | ( | ) | const |
Definition at line 653 of file DialogModel.cxx.
References m_xChartDocument.
Referenced by chart::DataSourceTabPage::updateControlState().
void chart::DialogModel::moveSeries | ( | const rtl::Reference< DataSeries > & | xSeries, |
MoveDirection | eDirection | ||
) |
Definition at line 526 of file DialogModel.cxx.
References Down, m_aTimerTriggeredControllerLock, m_xChartDocument, and chart::TimerTriggeredControllerLock::startTimer().
void chart::DialogModel::setCategories | ( | const css::uno::Reference< css::chart2::data::XLabeledDataSequence > & | xCategories | ) |
Definition at line 612 of file DialogModel.cxx.
References chart::ChartTypeHelper::getAxisType(), and m_xChartDocument.
Referenced by applyInterpretedData(), and chart::DataSourceTabPage::updateModelFromControl().
void chart::DialogModel::setData | ( | const css::uno::Sequence< css::beans::PropertyValue > & | rArguments | ) |
Definition at line 695 of file DialogModel.cxx.
References applyInterpretedData(), DBG_UNHANDLED_EXCEPTION, getDataProvider(), m_aTimerTriggeredControllerLock, m_xChartDocument, m_xTemplate, and chart::TimerTriggeredControllerLock::startTimer().
Referenced by chart::RangeChooserTabPage::changeDialogModelAccordingToControls().
void chart::DialogModel::setTemplate | ( | const rtl::Reference< ::chart::ChartTypeTemplate > & | xTemplate | ) |
Definition at line 361 of file DialogModel.cxx.
References m_xTemplate.
Referenced by chart::RangeChooserTabPage::changeDialogModelAccordingToControls().
void chart::DialogModel::setTimeBasedRange | ( | bool | bTimeBased, |
sal_Int32 | nStart, | ||
sal_Int32 | nEnd | ||
) | const |
Definition at line 738 of file DialogModel.cxx.
References chart::DialogModelTimeBasedInfo::bTimeBased, maTimeBasedInfo, chart::DialogModelTimeBasedInfo::nEnd, and chart::DialogModelTimeBasedInfo::nStart.
Referenced by chart::RangeChooserTabPage::changeDialogModelAccordingToControls(), and chart::DataSourceTabPage::updateModelFromControl().
void chart::DialogModel::startControllerLockTimer | ( | ) |
Definition at line 690 of file DialogModel.cxx.
References m_aTimerTriggeredControllerLock, and chart::TimerTriggeredControllerLock::startTimer().
Referenced by chart::DataSourceTabPage::listeningFinished(), and chart::RangeChooserTabPage::listeningFinished().
|
private |
Definition at line 162 of file DialogModel.hxx.
Referenced by applyInterpretedData(), deleteSeries(), insertSeriesAfter(), moveSeries(), setData(), and startControllerLockTimer().
|
mutableprivate |
Definition at line 160 of file DialogModel.hxx.
Referenced by getRangeSelectionHelper().
|
private |
Definition at line 155 of file DialogModel.hxx.
Referenced by allArgumentsForRectRangeDetected(), applyInterpretedData(), deleteSeries(), detectArguments(), getAllDataSeriesContainers(), getCategories(), getChartModel(), getDataProvider(), getModel(), getRangeSelectionHelper(), insertSeriesAfter(), isCategoryDiagram(), moveSeries(), setCategories(), and setData().
|
private |
Definition at line 157 of file DialogModel.hxx.
Referenced by applyInterpretedData(), insertSeriesAfter(), setData(), and setTemplate().
|
mutableprivate |
Definition at line 171 of file DialogModel.hxx.
Referenced by getTimeBasedInfo(), setTimeBasedRange(), and ~DialogModel().