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

#include <RegressionCurveItemConverter.hxx>

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

Public Member Functions

 RegressionCurveItemConverter (const css::uno::Reference< css::beans::XPropertySet > &rPropertySet, rtl::Reference< ::chart::DataSeries > xRegCurveCnt, SfxItemPool &rItemPool, SdrModel &rDrawModel, const css::uno::Reference< css::lang::XMultiServiceFactory > &xNamedPropertyContainerFactory)
 
virtual ~RegressionCurveItemConverter () override
 
virtual void FillItemSet (SfxItemSet &rOutItemSet) const override
 applies all properties that can be mapped to items into the given item set. More...
 
virtual bool ApplyItemSet (const SfxItemSet &rItemSet) override
 applies all properties that are results of a conversion from all items in rItemSet to the internal XPropertySet. More...
 
- 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 WhichRangesContainerGetWhichPairs () 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 WhichRangesContainerGetWhichPairs () 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...
 
SfxItemPoolGetItemPool () 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

std::shared_ptr< ItemConverterm_spGraphicConverter
 
rtl::Reference< ::chart::DataSeriesm_xCurveContainer
 

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, tMemberIdTypetPropertyNameWithMemberId
 
- 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 32 of file RegressionCurveItemConverter.hxx.

Constructor & Destructor Documentation

◆ RegressionCurveItemConverter()

chart::wrapper::RegressionCurveItemConverter::RegressionCurveItemConverter ( const css::uno::Reference< css::beans::XPropertySet > &  rPropertySet,
rtl::Reference< ::chart::DataSeries xRegCurveCnt,
SfxItemPool rItemPool,
SdrModel rDrawModel,
const css::uno::Reference< css::lang::XMultiServiceFactory > &  xNamedPropertyContainerFactory 
)

◆ ~RegressionCurveItemConverter()

chart::wrapper::RegressionCurveItemConverter::~RegressionCurveItemConverter ( )
overridevirtual

Definition at line 103 of file RegressionCurveItemConverter.cxx.

Member Function Documentation

◆ ApplyItemSet()

bool chart::wrapper::RegressionCurveItemConverter::ApplyItemSet ( const SfxItemSet rItemSet)
overridevirtual

applies all properties that are results of a conversion from all items in rItemSet to the internal XPropertySet.

Call this method after a dialog was closed with OK

Returns
true, if any properties have been changed, false otherwise.

Reimplemented from chart::wrapper::ItemConverter.

Definition at line 114 of file RegressionCurveItemConverter.cxx.

References chart::wrapper::ItemConverter::ApplyItemSet(), and m_spGraphicConverter.

Referenced by chart::ChartController::executeDispatch_InsertTrendline().

◆ ApplySpecialItem()

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

◆ FillItemSet()

void chart::wrapper::RegressionCurveItemConverter::FillItemSet ( SfxItemSet rOutItemSet) const
overridevirtual

applies all properties that can be mapped to items into the given item set.

Call this method before opening a dialog.

Parameters
rOutItemSetthe SfxItemSet is filled with all items that are a result of a conversion from a property of the internal XPropertySet.

Reimplemented from chart::wrapper::ItemConverter.

Definition at line 106 of file RegressionCurveItemConverter.cxx.

References chart::wrapper::ItemConverter::FillItemSet(), and m_spGraphicConverter.

Referenced by chart::ChartController::executeDispatch_InsertTrendline().

◆ FillSpecialItem()

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

◆ GetItemProperty()

bool chart::wrapper::RegressionCurveItemConverter::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 128 of file RegressionCurveItemConverter.cxx.

◆ GetWhichPairs()

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

implement this method to provide an array of which-ranges

Implements chart::wrapper::ItemConverter.

Definition at line 122 of file RegressionCurveItemConverter.cxx.

References nRegressionCurveWhichPairs.

Member Data Documentation

◆ m_spGraphicConverter

std::shared_ptr< ItemConverter > chart::wrapper::RegressionCurveItemConverter::m_spGraphicConverter
private

Definition at line 54 of file RegressionCurveItemConverter.hxx.

Referenced by ApplyItemSet(), and FillItemSet().

◆ m_xCurveContainer

rtl::Reference< ::chart::DataSeries > chart::wrapper::RegressionCurveItemConverter::m_xCurveContainer
private

Definition at line 55 of file RegressionCurveItemConverter.hxx.

Referenced by ApplySpecialItem().


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