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

#include <CharacterPropertyItemConverter.hxx>

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

Public Member Functions

 CharacterPropertyItemConverter (const css::uno::Reference< css::beans::XPropertySet > &rPropertySet, SfxItemPool &rItemPool)
 
 CharacterPropertyItemConverter (const css::uno::Reference< css::beans::XPropertySet > &rPropertySet, SfxItemPool &rItemPool, const css::awt::Size *pRefSize, OUString aRefSizePropertyName, const css::uno::Reference< css::beans::XPropertySet > &rRefSizePropSet=css::uno::Reference< css::beans::XPropertySet >())
 
virtual ~CharacterPropertyItemConverter () 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...
 

Private 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...
 
const css::uno::Reference< css::beans::XPropertySet > & GetRefSizePropertySet () const
 

Private Attributes

OUString m_aRefSizePropertyName
 
css::uno::Reference< css::beans::XPropertySetm_xRefSizePropSet
 
std::optional< css::awt::Size > m_pRefSize
 

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

Detailed Description

Definition at line 28 of file CharacterPropertyItemConverter.hxx.

Constructor & Destructor Documentation

◆ CharacterPropertyItemConverter() [1/2]

chart::wrapper::CharacterPropertyItemConverter::CharacterPropertyItemConverter ( const css::uno::Reference< css::beans::XPropertySet > &  rPropertySet,
SfxItemPool rItemPool 
)

◆ CharacterPropertyItemConverter() [2/2]

chart::wrapper::CharacterPropertyItemConverter::CharacterPropertyItemConverter ( const css::uno::Reference< css::beans::XPropertySet > &  rPropertySet,
SfxItemPool rItemPool,
const css::awt::Size *  pRefSize,
OUString  aRefSizePropertyName,
const css::uno::Reference< css::beans::XPropertySet > &  rRefSizePropSet = css::uno::Reference< css::beans::XPropertySet >() 
)

◆ ~CharacterPropertyItemConverter()

chart::wrapper::CharacterPropertyItemConverter::~CharacterPropertyItemConverter ( )
overridevirtual

Definition at line 88 of file CharacterPropertyItemConverter.cxx.

Member Function Documentation

◆ ApplySpecialItem()

bool chart::wrapper::CharacterPropertyItemConverter::ApplySpecialItem ( sal_uInt16  nWhichId,
const SfxItemSet rItemSet 
)
overrideprivatevirtual

◆ FillSpecialItem()

void chart::wrapper::CharacterPropertyItemConverter::FillSpecialItem ( sal_uInt16  nWhichId,
SfxItemSet rOutItemSet 
) const
overrideprivatevirtual

◆ GetItemProperty()

bool chart::wrapper::CharacterPropertyItemConverter::GetItemProperty ( tWhichIdType  nWhichId,
tPropertyNameWithMemberId rOutProperty 
) const
overrideprivatevirtual

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 96 of file CharacterPropertyItemConverter.cxx.

◆ GetRefSizePropertySet()

const uno::Reference< beans::XPropertySet > & chart::wrapper::CharacterPropertyItemConverter::GetRefSizePropertySet ( ) const
private

Definition at line 550 of file CharacterPropertyItemConverter.cxx.

◆ GetWhichPairs()

const WhichRangesContainer & chart::wrapper::CharacterPropertyItemConverter::GetWhichPairs ( ) const
overrideprivatevirtual

implement this method to provide an array of which-ranges

Implements chart::wrapper::ItemConverter.

Definition at line 91 of file CharacterPropertyItemConverter.cxx.

References nCharacterPropertyWhichPairs.

Member Data Documentation

◆ m_aRefSizePropertyName

OUString chart::wrapper::CharacterPropertyItemConverter::m_aRefSizePropertyName
private

Definition at line 52 of file CharacterPropertyItemConverter.hxx.

◆ m_pRefSize

std::optional<css::awt::Size> chart::wrapper::CharacterPropertyItemConverter::m_pRefSize
private

Definition at line 54 of file CharacterPropertyItemConverter.hxx.

◆ m_xRefSizePropSet

css::uno::Reference<css::beans::XPropertySet> chart::wrapper::CharacterPropertyItemConverter::m_xRefSizePropSet
private

Definition at line 53 of file CharacterPropertyItemConverter.hxx.


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