LibreOffice Module chart2 (master) 1
|
#include <CharacterPropertyItemConverter.hxx>
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 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... | |
const css::uno::Reference< css::beans::XPropertySet > & | GetRefSizePropertySet () const |
Private Attributes | |
OUString | m_aRefSizePropertyName |
css::uno::Reference< css::beans::XPropertySet > | m_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, 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... | |
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 |
Definition at line 28 of file CharacterPropertyItemConverter.hxx.
chart::wrapper::CharacterPropertyItemConverter::CharacterPropertyItemConverter | ( | const css::uno::Reference< css::beans::XPropertySet > & | rPropertySet, |
SfxItemPool & | rItemPool | ||
) |
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 >() |
||
) |
|
overridevirtual |
Definition at line 88 of file CharacterPropertyItemConverter.cxx.
|
overrideprivatevirtual |
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
css::uno::Exception |
Reimplemented from chart::wrapper::ItemConverter.
Definition at line 307 of file CharacterPropertyItemConverter.cxx.
References DBG_UNHANDLED_EXCEPTION, EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_CHAR_ITALIC(), EE_CHAR_ITALIC_CJK(), EE_CHAR_ITALIC_CTL(), EE_CHAR_OVERLINE(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), EE_CHAR_WEIGHT_CJK(), EE_CHAR_WEIGHT_CTL(), SfxItemSet::Get(), getPropertyValue(), MID_FONT_CHAR_SET, MID_FONT_FAMILY, MID_FONT_FAMILY_NAME, MID_FONT_PITCH, MID_FONT_STYLE_NAME, MID_FONTHEIGHT, MID_POSTURE, MID_TL_COLOR, MID_TL_HASCOLOR, MID_TL_STYLE, MID_WEIGHT, SvxFontHeightItem::QueryValue(), SvxFontItem::QueryValue(), SvxPostureItem::QueryValue(), SvxTextLineItem::QueryValue(), and SvxWeightItem::QueryValue().
|
overrideprivatevirtual |
for items that can not be mapped directly to a property.
This method is called from FillItemSet(), if GetItemProperty() returns false.
The default implementation does nothing except showing an assertion
css::uno::Exception |
Reimplemented from chart::wrapper::ItemConverter.
Definition at line 108 of file CharacterPropertyItemConverter.cxx.
References DBG_UNHANDLED_EXCEPTION, SfxItemSet::DisableItem(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_CHAR_ITALIC(), EE_CHAR_ITALIC_CJK(), EE_CHAR_ITALIC_CTL(), EE_CHAR_OVERLINE(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), EE_CHAR_WEIGHT_CJK(), EE_CHAR_WEIGHT_CTL(), EE_PARA_FORBIDDENRULES(), EE_PARA_HANGINGPUNCTUATION(), getPropertyValue(), uno::Any::hasValue(), ITALIC_NONE, LINESTYLE_NONE, MID_FONT_CHAR_SET, MID_FONT_FAMILY, MID_FONT_FAMILY_NAME, MID_FONT_PITCH, MID_FONT_STYLE_NAME, MID_FONTHEIGHT, MID_POSTURE, MID_TL_COLOR, MID_TL_HASCOLOR, MID_TL_STYLE, MID_WEIGHT, SfxItemSet::Put(), SvxFontHeightItem::PutValue(), SvxFontItem::PutValue(), SvxPostureItem::PutValue(), SvxTextLineItem::PutValue(), SvxWeightItem::PutValue(), and WEIGHT_NORMAL.
|
overrideprivatevirtual |
implement this method to return a Property object for a given which id.
rOutProperty | If true is returned, this contains the property name and the corresponding Member-Id. |
Implements chart::wrapper::ItemConverter.
Definition at line 96 of file CharacterPropertyItemConverter.cxx.
|
private |
Definition at line 550 of file CharacterPropertyItemConverter.cxx.
|
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.
|
private |
Definition at line 52 of file CharacterPropertyItemConverter.hxx.
|
private |
Definition at line 54 of file CharacterPropertyItemConverter.hxx.
|
private |
Definition at line 53 of file CharacterPropertyItemConverter.hxx.