20 #ifndef INCLUDED_SVX_SDASITM_HXX
21 #define INCLUDED_SVX_SDASITM_HXX
25 #include <com/sun/star/beans/PropertyValue.hpp>
26 #include <com/sun/star/uno/Sequence.hxx>
27 #include <rtl/ustring.hxx>
29 #include <unordered_map>
49 css::uno::Sequence< css::beans::PropertyValue >
aPropSeq;
55 mutable size_t aHash = 0xdeadbeef;
57 void SetPropSeq(
const css::uno::Sequence< css::beans::PropertyValue >& rPropSeq );
58 inline void UpdateHash()
const;
59 inline void InvalidateHash();
74 virtual bool IsSortable()
const override {
return true; }
78 OUString &rText,
const IntlWrapper&)
const override;
85 css::uno::Any* GetPropertyValueByName(
const OUString& rPropName );
86 const css::uno::Any* GetPropertyValueByName(
const OUString& rPropName )
const;
87 css::uno::Any* GetPropertyValueByName(
const OUString& rPropName,
const OUString& rPropName2 );
88 const css::uno::Any* GetPropertyValueByName(
const OUString& rPropName,
const OUString& rPropName2 )
const;
91 void SetPropertyValue(
const OUString& rSequenceName,
const css::beans::PropertyValue& rPropVal );
93 void ClearPropertyValue(
const OUString& rPropertyName );
105 hash = hash * 37 + r1.first.hashCode();
106 hash = hash * 37 + r1.second.hashCode();
std::unordered_map< PropertyPair, sal_Int32, PropertyPairHash > PropertyPairHashMap
virtual bool operator==(const SfxPoolItem &) const =0
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const =0
SfxPoolItem & operator=(const SfxPoolItem &)=delete
SdrOnOffItem makeSdrTextWordWrapItem(bool bAuto)
PropertyPairHashMap aPropPairHashMap
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
constexpr TypedWhichId< SdrOnOffItem > SDRATTR_TEXT_WORDWRAP(SDRATTR_MISC_FIRST+24)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId)
std::pair< const OUString, const OUString > PropertyPair
std::unordered_map< OUString, sal_Int32 > PropertyHashMap
css::uno::Sequence< css::beans::PropertyValue > aPropSeq
virtual bool operator<(const SfxPoolItem &) const
PropertyHashMap aPropHashMap
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
void SetPropertyValue(SwPaM &rPaM, const SfxItemPropertySet &rPropSet, const OUString &rPropertyName, const css::uno::Any &rValue, const SetAttrMode nAttrMode=SetAttrMode::DEFAULT)
#define SVXCORE_DLLPUBLIC
virtual bool IsSortable() const override
size_t operator()(const SdrCustomShapeGeometryItem::PropertyPair &) const