LibreOffice Module chart2 (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
chart::wrapper::StatisticsItemConverter Class Referencefinal

#include <StatisticsItemConverter.hxx>

Inheritance diagram for chart::wrapper::StatisticsItemConverter:
[legend]
Collaboration diagram for chart::wrapper::StatisticsItemConverter:
[legend]

Public Member Functions

 StatisticsItemConverter (rtl::Reference<::chart::ChartModel > xChartModel, const css::uno::Reference< css::beans::XPropertySet > &rPropertySet, SfxItemPool &rItemPool)
 
virtual ~StatisticsItemConverter () override
 
- Public Member Functions inherited from chart::wrapper::ItemConverter
 ItemConverter (css::uno::Reference< css::beans::XPropertySet > xPropertySet, SfxItemPool &rItemPool)
 Construct an item converter that uses the given property set for reading/writing converted items. More...
 
virtual ~ItemConverter () override
 
virtual void FillItemSet (SfxItemSet &rOutItemSet) const
 applies all properties that can be mapped to items into the given item set. More...
 
virtual bool ApplyItemSet (const SfxItemSet &rItemSet)
 applies all properties that are results of a conversion from all items in rItemSet to the internal XPropertySet. More...
 
SfxItemSet CreateEmptyItemSet () const
 creates an empty item set using the given pool or a common pool if empty (see GetItemPool) and allowing all items given in the ranges returned by GetWhichPairs. More...
 

Protected Member Functions

virtual const WhichRangesContainer & GetWhichPairs () const override
 implement this method to provide an array of which-ranges More...
 
virtual bool GetItemProperty (tWhichIdType nWhichId, tPropertyNameWithMemberId &rOutProperty) const override
 implement this method to return a Property object for a given which id. More...
 
virtual void FillSpecialItem (sal_uInt16 nWhichId, SfxItemSet &rOutItemSet) const override
 for items that can not be mapped directly to a property. More...
 
virtual bool ApplySpecialItem (sal_uInt16 nWhichId, const SfxItemSet &rItemSet) override
 for items that can not be mapped directly to a property. More...
 
- Protected Member Functions inherited from chart::wrapper::ItemConverter
virtual const WhichRangesContainer & GetWhichPairs () const =0
 implement this method to provide an array of which-ranges More...
 
virtual bool GetItemProperty (tWhichIdType nWhichId, tPropertyNameWithMemberId &rOutProperty) const =0
 implement this method to return a Property object for a given which id. More...
 
virtual void FillSpecialItem (sal_uInt16 nWhichId, SfxItemSet &rOutItemSet) const
 for items that can not be mapped directly to a property. More...
 
virtual bool ApplySpecialItem (sal_uInt16 nWhichId, const SfxItemSet &rItemSet)
 for items that can not be mapped directly to a property. More...
 
SfxItemPool & GetItemPool () const
 Returns the pool. More...
 
const css::uno::Reference< css::beans::XPropertySet > & GetPropertySet () const
 Returns the XPropertySet that was given in the CTOR and is used to apply items in ApplyItemSet(). More...
 
virtual void _disposing (const css::lang::EventObject &rSource) override
 
void resetPropertySet (const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 sets a new property set, that you get with GetPropertySet(). More...
 
- Protected Member Functions inherited from utl::OEventListenerAdapter
 OEventListenerAdapter ()
 
virtual ~OEventListenerAdapter ()
 
void startComponentListening (const css::uno::Reference< css::lang::XComponent > &_rxComp)
 
void stopComponentListening (const css::uno::Reference< css::lang::XComponent > &_rxComp)
 
void stopAllComponentListening ()
 
virtual void _disposing (const css::lang::EventObject &_rSource)=0
 

Private Attributes

rtl::Reference<::chart::ChartModel > m_xModel
 

Additional Inherited Members

- Public Types inherited from chart::wrapper::ItemConverter
typedef sal_uInt16 tWhichIdType
 
typedef OUString tPropertyNameType
 
typedef sal_uInt8 tMemberIdType
 
typedef std::pair< tPropertyNameType, tMemberIdType > tPropertyNameWithMemberId
 
- Static Public Member Functions inherited from chart::wrapper::ItemConverter
static void InvalidateUnequalItems (SfxItemSet &rDestSet, const SfxItemSet &rSourceSet)
 Invalidates all items in rDestSet, that are set (state SfxItemState::SET) in both item sets (rDestSet and rSourceSet) and have differing content. More...
 

Detailed Description

Definition at line 30 of file StatisticsItemConverter.hxx.

Constructor & Destructor Documentation

◆ StatisticsItemConverter()

chart::wrapper::StatisticsItemConverter::StatisticsItemConverter ( rtl::Reference<::chart::ChartModel >  xChartModel,
const css::uno::Reference< css::beans::XPropertySet > &  rPropertySet,
SfxItemPool &  rItemPool 
)

Definition at line 212 of file StatisticsItemConverter.cxx.

References m_xModel, and xModel.

◆ ~StatisticsItemConverter()

chart::wrapper::StatisticsItemConverter::~StatisticsItemConverter ( )
overridevirtual

Definition at line 221 of file StatisticsItemConverter.cxx.

Member Function Documentation

◆ ApplySpecialItem()

bool chart::wrapper::StatisticsItemConverter::ApplySpecialItem ( sal_uInt16  nWhichId,
const SfxItemSet &  rItemSet 
)
overrideprotectedvirtual

for items that can not be mapped directly to a property.

This method is called from ApplyItemSet(), if GetItemProperty() returns false.

The default implementation returns just false and shows an assertion

Returns
true if the item changed a property, false otherwise.
Exceptions
css::uno::Exception

Reimplemented from chart::wrapper::ItemConverter.

Definition at line 238 of file StatisticsItemConverter.cxx.

References chart::RegressionCurveHelper::addMeanValueLine(), chart::RegressionCurveHelper::changeRegressionCurveType(), CHART_UNONAME_ERRORBAR_X, CHART_UNONAME_ERRORBAR_Y, SfxItemSet::Get(), chart::StatisticsHelper::getErrorDataSequenceFromDataSource(), chart::wrapper::ItemConverter::GetPropertySet(), chart::RegressionCurveHelper::getRegressionType(), CntUnencodedStringItem::GetValue(), GetValue, chart::RegressionCurveHelper::hasMeanValueLine(), m_xModel, chart::RegressionCurveHelper::removeMeanValueLine(), chart::wrapper::ItemConverter::resetPropertySet(), SCHATTR_REGRESSION_CURVE_NAME(), SCHATTR_REGRESSION_DEGREE(), SCHATTR_REGRESSION_EXTRAPOLATE_BACKWARD(), SCHATTR_REGRESSION_EXTRAPOLATE_FORWARD(), SCHATTR_REGRESSION_INTERCEPT_VALUE(), SCHATTR_REGRESSION_MOVING_TYPE(), SCHATTR_REGRESSION_PERIOD(), SCHATTR_REGRESSION_SET_INTERCEPT(), SCHATTR_REGRESSION_SHOW_COEFF(), SCHATTR_REGRESSION_SHOW_EQUATION(), SCHATTR_REGRESSION_TYPE(), SCHATTR_REGRESSION_XNAME(), SCHATTR_REGRESSION_YNAME(), SCHATTR_STAT_AVERAGE(), SCHATTR_STAT_BIGERROR(), SCHATTR_STAT_CONSTMINUS(), SCHATTR_STAT_CONSTPLUS(), SCHATTR_STAT_ERRORBAR_TYPE(), SCHATTR_STAT_INDICATE(), SCHATTR_STAT_KIND_ERROR(), SCHATTR_STAT_PERCENT(), SCHATTR_STAT_RANGE_NEG(), SCHATTR_STAT_RANGE_POS(), and chart::StatisticsHelper::setErrorDataSequence().

◆ FillSpecialItem()

void chart::wrapper::StatisticsItemConverter::FillSpecialItem ( sal_uInt16  nWhichId,
SfxItemSet &  rOutItemSet 
) const
overrideprotectedvirtual

◆ GetItemProperty()

bool chart::wrapper::StatisticsItemConverter::GetItemProperty ( tWhichIdType  nWhichId,
tPropertyNameWithMemberId &  rOutProperty 
) const
overrideprotectedvirtual

implement this method to return a Property object for a given which id.

Parameters
rOutPropertyIf true is returned, this contains the property name and the corresponding Member-Id.
Returns
true, if the item can be mapped to a property.

Implements chart::wrapper::ItemConverter.

Definition at line 231 of file StatisticsItemConverter.cxx.

◆ GetWhichPairs()

const WhichRangesContainer & chart::wrapper::StatisticsItemConverter::GetWhichPairs ( ) const
overrideprotectedvirtual

implement this method to provide an array of which-ranges

Implements chart::wrapper::ItemConverter.

Definition at line 225 of file StatisticsItemConverter.cxx.

References nStatWhichPairs.

Member Data Documentation

◆ m_xModel

rtl::Reference<::chart::ChartModel> chart::wrapper::StatisticsItemConverter::m_xModel
private

Definition at line 47 of file StatisticsItemConverter.hxx.

Referenced by ApplySpecialItem().


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