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

#include <DialogModel.hxx>

Collaboration diagram for chart::DialogModel:
[legend]

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< tSeriesWithChartTypeByNamegetAllDataSeriesWithLabel () const
 
void moveSeries (const rtl::Reference< DataSeries > &xSeries, MoveDirection eDirection)
 
rtl::Reference< ::chart::DataSeriesinsertSeriesAfter (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 DialogModelTimeBasedInfogetTimeBasedInfo () 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::ChartTypeTemplatem_xTemplate
 
std::shared_ptr< RangeSelectionHelperm_spRangeSelectionHelper
 
TimerTriggeredControllerLock m_aTimerTriggeredControllerLock
 
DialogModelTimeBasedInfo maTimeBasedInfo
 

Detailed Description

Definition at line 64 of file DialogModel.hxx.

Member Typedef Documentation

◆ tRolesWithRanges

typedef std::map< OUString, OUString > chart::DialogModel::tRolesWithRanges

Definition at line 77 of file DialogModel.hxx.

◆ tSeriesWithChartTypeByName

Definition at line 74 of file DialogModel.hxx.

Member Enumeration Documentation

◆ MoveDirection

Enumerator
Down 
Up 

Definition at line 102 of file DialogModel.hxx.

Constructor & Destructor Documentation

◆ DialogModel()

chart::DialogModel::DialogModel ( rtl::Reference<::chart::ChartModel >  xChartDocument)
explicit

Definition at line 346 of file DialogModel.cxx.

◆ ~DialogModel()

chart::DialogModel::~DialogModel ( )

Member Function Documentation

◆ allArgumentsForRectRangeDetected()

bool chart::DialogModel::allArgumentsForRectRangeDetected ( ) const

◆ applyInterpretedData()

void chart::DialogModel::applyInterpretedData ( const InterpretedData rNewData,
const std::vector< rtl::Reference< ::chart::DataSeries > > &  rSeriesToReUse 
)
private

◆ ConvertRoleFromInternalToUI()

OUString chart::DialogModel::ConvertRoleFromInternalToUI ( const OUString &  rRoleString)
static

Definition at line 745 of file DialogModel.cxx.

Referenced by chart::DataSourceTabPage::InsertRoleLBEntry().

◆ countSeries()

sal_Int32 chart::DialogModel::countSeries ( ) const
private

Definition at line 836 of file DialogModel.cxx.

References getAllDataSeriesContainers().

Referenced by insertSeriesAfter().

◆ deleteSeries()

void chart::DialogModel::deleteSeries ( const rtl::Reference< ::chart::DataSeries > &  xSeries,
const rtl::Reference< ::chart::ChartType > &  xChartType 
)

◆ detectArguments()

void chart::DialogModel::detectArguments ( OUString &  rOutRangeString,
bool &  rOutUseColumns,
bool &  rOutFirstCellAsLabel,
bool &  rOutHasCategories 
) const

◆ getAllDataSeriesContainers()

std::vector< rtl::Reference< ChartType > > chart::DialogModel::getAllDataSeriesContainers ( ) const

◆ getAllDataSeriesWithLabel()

std::vector< DialogModel::tSeriesWithChartTypeByName > chart::DialogModel::getAllDataSeriesWithLabel ( ) const

◆ getCategories()

uno::Reference< chart2::data::XLabeledDataSequence > chart::DialogModel::getCategories ( ) const

◆ getCategoriesRange()

OUString chart::DialogModel::getCategoriesRange ( ) const

◆ getChartModel()

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().

◆ getDataProvider()

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().

◆ getModel()

ChartModel & chart::DialogModel::getModel ( ) const

Definition at line 842 of file DialogModel.cxx.

References m_xChartDocument.

Referenced by ~DialogModel().

◆ getRangeSelectionHelper()

std::shared_ptr< RangeSelectionHelper > const & chart::DialogModel::getRangeSelectionHelper ( ) const

◆ GetRoleDataLabel()

OUString chart::DialogModel::GetRoleDataLabel ( )
static

Definition at line 750 of file DialogModel.cxx.

References chart::SchResId().

Referenced by chart::DataBrowserModel::updateFromModel().

◆ GetRoleIndexForSorting()

sal_Int32 chart::DialogModel::GetRoleIndexForSorting ( const OUString &  rInternalRoleString)
static

◆ getRolesWithRanges()

DialogModel::tRolesWithRanges chart::DialogModel::getRolesWithRanges ( const css::uno::Reference< css::chart2::XDataSeries > &  xSeries,
const OUString &  aRoleOfSequenceForLabel,
const rtl::Reference< ::chart::ChartType > &  xChartType 
)
static

Definition at line 492 of file DialogModel.cxx.

References aSeq, and DBG_UNHANDLED_EXCEPTION.

Referenced by chart::DataSourceTabPage::fillRoleListBox().

◆ getTimeBasedInfo()

const DialogModelTimeBasedInfo & chart::DialogModel::getTimeBasedInfo ( ) const
inline

Definition at line 140 of file DialogModel.hxx.

References maTimeBasedInfo.

Referenced by chart::DataSourceTabPage::updateModelFromControl().

◆ insertSeriesAfter()

rtl::Reference<::chart::DataSeries > chart::DialogModel::insertSeriesAfter ( const css::uno::Reference< css::chart2::XDataSeries > &  xSeries,
const rtl::Reference< ::chart::ChartType > &  xChartType,
bool  bCreateDataCachedSequences = false 
)

◆ isCategoryDiagram()

bool chart::DialogModel::isCategoryDiagram ( ) const

Definition at line 653 of file DialogModel.cxx.

References m_xChartDocument.

Referenced by chart::DataSourceTabPage::updateControlState().

◆ moveSeries()

void chart::DialogModel::moveSeries ( const rtl::Reference< DataSeries > &  xSeries,
MoveDirection  eDirection 
)

◆ setCategories()

void chart::DialogModel::setCategories ( const css::uno::Reference< css::chart2::data::XLabeledDataSequence > &  xCategories)

◆ setData()

void chart::DialogModel::setData ( const css::uno::Sequence< css::beans::PropertyValue > &  rArguments)

◆ setTemplate()

void chart::DialogModel::setTemplate ( const rtl::Reference< ::chart::ChartTypeTemplate > &  xTemplate)

◆ setTimeBasedRange()

void chart::DialogModel::setTimeBasedRange ( bool  bTimeBased,
sal_Int32  nStart,
sal_Int32  nEnd 
) const

◆ startControllerLockTimer()

void chart::DialogModel::startControllerLockTimer ( )

Member Data Documentation

◆ m_aTimerTriggeredControllerLock

TimerTriggeredControllerLock chart::DialogModel::m_aTimerTriggeredControllerLock
private

◆ m_spRangeSelectionHelper

std::shared_ptr< RangeSelectionHelper > chart::DialogModel::m_spRangeSelectionHelper
mutableprivate

Definition at line 160 of file DialogModel.hxx.

Referenced by getRangeSelectionHelper().

◆ m_xChartDocument

rtl::Reference<::chart::ChartModel> chart::DialogModel::m_xChartDocument
private

◆ m_xTemplate

rtl::Reference< ::chart::ChartTypeTemplate > chart::DialogModel::m_xTemplate
private

Definition at line 157 of file DialogModel.hxx.

Referenced by applyInterpretedData(), insertSeriesAfter(), setData(), and setTemplate().

◆ maTimeBasedInfo

DialogModelTimeBasedInfo chart::DialogModel::maTimeBasedInfo
mutableprivate

Definition at line 171 of file DialogModel.hxx.

Referenced by getTimeBasedInfo(), setTimeBasedRange(), and ~DialogModel().


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