LibreOffice Module svx (master)  1
Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
SdrCustomShapeGeometryItem Class Referencefinal

#include <sdasitm.hxx>

Inheritance diagram for SdrCustomShapeGeometryItem:
[legend]
Collaboration diagram for SdrCustomShapeGeometryItem:
[legend]

Classes

struct  PropertyPairHash
 

Public Types

typedef std::pair< const OUString, const OUString > PropertyPair
 
- Public Types inherited from SfxPoolItem
typedef std::vector< SfxPoolItem * >::const_iterator lookup_iterator
 

Public Member Functions

 SdrCustomShapeGeometryItem ()
 
 SdrCustomShapeGeometryItem (const css::uno::Sequence< css::beans::PropertyValue > &)
 
virtual ~SdrCustomShapeGeometryItem () override
 
 SdrCustomShapeGeometryItem (SdrCustomShapeGeometryItem const &)=default
 
 SdrCustomShapeGeometryItem (SdrCustomShapeGeometryItem &&)=default
 
SdrCustomShapeGeometryItemoperator= (SdrCustomShapeGeometryItem const &)=delete
 
SdrCustomShapeGeometryItemoperator= (SdrCustomShapeGeometryItem &&)=delete
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual bool operator< (const SfxPoolItem &) const override
 
virtual bool IsSortable () const override
 
virtual bool GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &) const override
 
virtual SdrCustomShapeGeometryItemClone (SfxItemPool *pPool=nullptr) const override
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override
 
css::uno::Any * GetPropertyValueByName (const OUString &rPropName)
 
const css::uno::Any * GetPropertyValueByName (const OUString &rPropName) const
 
css::uno::Any * GetPropertyValueByName (const OUString &rPropName, const OUString &rPropName2)
 
const css::uno::Any * GetPropertyValueByName (const OUString &rPropName, const OUString &rPropName2) const
 
void SetPropertyValue (const css::beans::PropertyValue &rPropVal)
 
void SetPropertyValue (const OUString &rSequenceName, const css::beans::PropertyValue &rPropVal)
 
void ClearPropertyValue (const OUString &rPropertyName)
 
- Public Member Functions inherited from SfxPoolItem
void AddRef (sal_uInt32 n=1) const
 
virtual ~SfxPoolItem ()
 
void SetWhich (sal_uInt16 nId)
 
sal_uInt16 Which () const
 
T & StaticWhichCast (TypedWhichId< T > nId)
 
const T & StaticWhichCast (TypedWhichId< T > nId) const
 
T * DynamicWhichCast (TypedWhichId< T > nId)
 
const T * DynamicWhichCast (TypedWhichId< T > nId) const
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool HasLookup () const
 
virtual lookup_iterator Lookup (lookup_iterator, lookup_iterator end) const
 
virtual void ScaleMetrics (tools::Long lMult, tools::Long lDiv)
 
virtual bool HasMetrics () const
 
std::unique_ptr< SfxPoolItemCloneSetWhich (sal_uInt16 nNewWhich) const
 
std::unique_ptr< T > CloneSetWhich (TypedWhichId< T > nId) const
 
sal_uInt32 GetRefCount () const
 
SfxItemKind GetKind () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
virtual boost::property_tree::ptree dumpAsJSON () const
 
virtual bool IsVoidItem () const
 

Private Types

enum  HashState {
  Unknown,
  Valid,
  Unusable
}
 
typedef std::unordered_map< PropertyPair, sal_Int32, PropertyPairHashPropertyPairHashMap
 
typedef std::unordered_map< OUString, sal_Int32 > PropertyHashMap
 

Private Member Functions

void SetPropSeq (const css::uno::Sequence< css::beans::PropertyValue > &rPropSeq)
 
void UpdateHash () const
 
void InvalidateHash ()
 

Private Attributes

PropertyHashMap aPropHashMap
 
PropertyPairHashMap aPropPairHashMap
 
css::uno::Sequence< css::beans::PropertyValue > aPropSeq
 
HashState aHashState = HashState::Unknown
 
size_t aHash = 0xdeadbeef
 

Additional Inherited Members

- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 

Detailed Description

Definition at line 33 of file sdasitm.hxx.

Member Typedef Documentation

typedef std::unordered_map<OUString, sal_Int32> SdrCustomShapeGeometryItem::PropertyHashMap
private

Definition at line 44 of file sdasitm.hxx.

typedef std::pair< const OUString, const OUString > SdrCustomShapeGeometryItem::PropertyPair

Definition at line 36 of file sdasitm.hxx.

typedef std::unordered_map<PropertyPair, sal_Int32, PropertyPairHash> SdrCustomShapeGeometryItem::PropertyPairHashMap
private

Definition at line 43 of file sdasitm.hxx.

Member Enumeration Documentation

Enumerator
Unknown 
Valid 
Unusable 

Definition at line 53 of file sdasitm.hxx.

Constructor & Destructor Documentation

SdrCustomShapeGeometryItem::SdrCustomShapeGeometryItem ( )

Definition at line 33 of file customshapeitem.cxx.

Referenced by Clone().

SdrCustomShapeGeometryItem::SdrCustomShapeGeometryItem ( const css::uno::Sequence< css::beans::PropertyValue > &  )
SdrCustomShapeGeometryItem::~SdrCustomShapeGeometryItem ( )
overridevirtual

Definition at line 221 of file customshapeitem.cxx.

SdrCustomShapeGeometryItem::SdrCustomShapeGeometryItem ( SdrCustomShapeGeometryItem const &  )
default
SdrCustomShapeGeometryItem::SdrCustomShapeGeometryItem ( SdrCustomShapeGeometryItem &&  )
default

Member Function Documentation

void SdrCustomShapeGeometryItem::ClearPropertyValue ( const OUString &  rPropertyName)
SdrCustomShapeGeometryItem * SdrCustomShapeGeometryItem::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 294 of file customshapeitem.cxx.

References aPropSeq, and SdrCustomShapeGeometryItem().

bool SdrCustomShapeGeometryItem::GetPresentation ( SfxItemPresentation  ePresentation,
MapUnit  eCoreMetric,
MapUnit  ePresentationMetric,
OUString &  rText,
const IntlWrapper  
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 279 of file customshapeitem.cxx.

css::uno::Any * SdrCustomShapeGeometryItem::GetPropertyValueByName ( const OUString &  rPropName)
const css::uno::Any * SdrCustomShapeGeometryItem::GetPropertyValueByName ( const OUString &  rPropName) const

Definition at line 52 of file customshapeitem.cxx.

References aPropHashMap, and aPropSeq.

css::uno::Any * SdrCustomShapeGeometryItem::GetPropertyValueByName ( const OUString &  rPropName,
const OUString &  rPropName2 
)

Definition at line 61 of file customshapeitem.cxx.

References aPropPairHashMap, GetPropertyValueByName(), and o3tl::tryAccess().

const css::uno::Any * SdrCustomShapeGeometryItem::GetPropertyValueByName ( const OUString &  rPropName,
const OUString &  rPropName2 
) const

Definition at line 79 of file customshapeitem.cxx.

References aPropPairHashMap, GetPropertyValueByName(), and o3tl::tryAccess().

void SdrCustomShapeGeometryItem::InvalidateHash ( )
inlineprivate

Definition at line 274 of file customshapeitem.cxx.

References aHashState.

Referenced by ClearPropertyValue(), SetPropertyValue(), and SetPropSeq().

virtual bool SdrCustomShapeGeometryItem::IsSortable ( ) const
inlineoverridevirtual

Reimplemented from SfxPoolItem.

Definition at line 74 of file sdasitm.hxx.

bool SdrCustomShapeGeometryItem::operator< ( const SfxPoolItem rCmp) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 243 of file customshapeitem.cxx.

References aHash, aHashState, comphelper::anyLess(), aPropSeq, and UpdateHash().

SdrCustomShapeGeometryItem& SdrCustomShapeGeometryItem::operator= ( SdrCustomShapeGeometryItem const &  )
delete
SdrCustomShapeGeometryItem& SdrCustomShapeGeometryItem::operator= ( SdrCustomShapeGeometryItem &&  )
delete
bool SdrCustomShapeGeometryItem::operator== ( const SfxPoolItem rCmp) const
overridevirtual

Implements SfxPoolItem.

Definition at line 225 of file customshapeitem.cxx.

References aHash, aHashState, aPropSeq, and UpdateHash().

bool SdrCustomShapeGeometryItem::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 305 of file customshapeitem.cxx.

References SetPropSeq().

bool SdrCustomShapeGeometryItem::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 299 of file customshapeitem.cxx.

References aPropSeq.

void SdrCustomShapeGeometryItem::SetPropertyValue ( const css::beans::PropertyValue &  rPropVal)
void SdrCustomShapeGeometryItem::SetPropertyValue ( const OUString &  rSequenceName,
const css::beans::PropertyValue &  rPropVal 
)
void SdrCustomShapeGeometryItem::SetPropSeq ( const css::uno::Sequence< css::beans::PropertyValue > &  rPropSeq)
private

Definition at line 315 of file customshapeitem.cxx.

References aPropHashMap, aPropPairHashMap, aPropSeq, i, InvalidateHash(), and o3tl::tryAccess().

Referenced by PutValue().

void SdrCustomShapeGeometryItem::UpdateHash ( ) const
inlineprivate

Definition at line 260 of file customshapeitem.cxx.

References aHash, aHashState, comphelper::anyToHash(), and aPropSeq.

Referenced by operator<(), and operator==().

Member Data Documentation

size_t SdrCustomShapeGeometryItem::aHash = 0xdeadbeef
mutableprivate

Definition at line 55 of file sdasitm.hxx.

Referenced by operator<(), operator==(), and UpdateHash().

HashState SdrCustomShapeGeometryItem::aHashState = HashState::Unknown
mutableprivate

Definition at line 54 of file sdasitm.hxx.

Referenced by InvalidateHash(), operator<(), operator==(), and UpdateHash().

PropertyHashMap SdrCustomShapeGeometryItem::aPropHashMap
private
PropertyPairHashMap SdrCustomShapeGeometryItem::aPropPairHashMap
private
css::uno::Sequence< css::beans::PropertyValue > SdrCustomShapeGeometryItem::aPropSeq
private

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