76 css::uno::Reference< css::beans::XPropertySet > xPropertySet ,
166 virtual void _disposing(
const css::lang::EventObject& rSource )
override;
174 void resetPropertySet(
const css::uno::Reference< css::beans::XPropertySet > & xPropSet );
This class serves for conversion between properties of an XPropertySet and SfxItems in SfxItemSets.
virtual const WhichRangesContainer & GetWhichPairs() const =0
implement this method to provide an array of which-ranges
void resetPropertySet(const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
sets a new property set, that you get with GetPropertySet().
virtual void FillItemSet(SfxItemSet &rOutItemSet) const
applies all properties that can be mapped to items into the given item set.
css::uno::Reference< css::beans::XPropertySetInfo > m_xPropertySetInfo
virtual bool ApplySpecialItem(sal_uInt16 nWhichId, const SfxItemSet &rItemSet)
for items that can not be mapped directly to a property.
std::pair< tPropertyNameType, tMemberIdType > tPropertyNameWithMemberId
static void InvalidateUnequalItems(SfxItemSet &rDestSet, const SfxItemSet &rSourceSet)
Invalidates all items in rDestSet, that are set (state SfxItemState::SET) in both item sets (rDestSet...
OUString tPropertyNameType
css::uno::Reference< css::beans::XPropertySet > m_xPropertySet
SfxItemPool & GetItemPool() const
Returns the pool.
virtual void _disposing(const css::lang::EventObject &rSource) override
SfxItemPool & m_rItemPool
virtual bool GetItemProperty(tWhichIdType nWhichId, tPropertyNameWithMemberId &rOutProperty) const =0
implement this method to return a Property object for a given which id.
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().
virtual bool ApplyItemSet(const SfxItemSet &rItemSet)
applies all properties that are results of a conversion from all items in rItemSet to the internal XP...
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.
virtual void FillSpecialItem(sal_uInt16 nWhichId, SfxItemSet &rOutItemSet) const
for items that can not be mapped directly to a property.
SfxItemSet CreateEmptyItemSet() const
creates an empty item set using the given pool or a common pool if empty (see GetItemPool) and allowi...
virtual ~ItemConverter() override
class SAL_NO_VTABLE XPropertySet