LibreOffice Module svx (master) 1
|
#include <sdasitm.hxx>
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 | |
SdrCustomShapeGeometryItem & | operator= (SdrCustomShapeGeometryItem const &)=delete |
SdrCustomShapeGeometryItem & | operator= (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 SdrCustomShapeGeometryItem * | Clone (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 |
virtual bool | operator== (const SfxPoolItem &) const=0 |
bool | operator!= (const SfxPoolItem &rItem) const |
virtual bool | operator< (const SfxPoolItem &) const |
virtual bool | IsSortable () const |
virtual bool | HasLookup () const |
virtual lookup_iterator | Lookup (lookup_iterator, lookup_iterator end) const |
virtual bool | GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const |
virtual void | ScaleMetrics (tools::Long lMult, tools::Long lDiv) |
virtual bool | HasMetrics () const |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) |
virtual SfxPoolItem * | Clone (SfxItemPool *pPool=nullptr) const=0 |
std::unique_ptr< SfxPoolItem > | CloneSetWhich (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, PropertyPairHash > | PropertyPairHashMap |
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 | m_aPropHashMap |
PropertyPairHashMap | m_aPropPairHashMap |
css::uno::Sequence< css::beans::PropertyValue > | m_aPropSeq |
HashState | m_aHashState = HashState::Unknown |
size_t | m_aHash = 0xdeadbeef |
Additional Inherited Members | |
Protected Member Functions inherited from SfxPoolItem | |
SfxPoolItem (sal_uInt16 nWhich=0) | |
SfxPoolItem (const SfxPoolItem &rCopy) | |
Definition at line 33 of file sdasitm.hxx.
|
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.
|
private |
Definition at line 43 of file sdasitm.hxx.
|
private |
Enumerator | |
---|---|
Unknown | |
Valid | |
Unusable |
Definition at line 53 of file sdasitm.hxx.
SdrCustomShapeGeometryItem::SdrCustomShapeGeometryItem | ( | ) |
Definition at line 32 of file customshapeitem.cxx.
Referenced by Clone().
SdrCustomShapeGeometryItem::SdrCustomShapeGeometryItem | ( | const css::uno::Sequence< css::beans::PropertyValue > & | ) |
|
overridevirtual |
Definition at line 220 of file customshapeitem.cxx.
|
default |
|
default |
void SdrCustomShapeGeometryItem::ClearPropertyValue | ( | const OUString & | rPropertyName | ) |
Definition at line 183 of file customshapeitem.cxx.
References InvalidateHash(), m_aPropHashMap, m_aPropPairHashMap, m_aPropSeq, nIndex, nLength, and o3tl::tryAccess().
Referenced by svx::GetGeometryForCustomShape().
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 293 of file customshapeitem.cxx.
References m_aPropSeq, and SdrCustomShapeGeometryItem().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 278 of file customshapeitem.cxx.
css::uno::Any * SdrCustomShapeGeometryItem::GetPropertyValueByName | ( | const OUString & | rPropName | ) |
Definition at line 42 of file customshapeitem.cxx.
References m_aPropHashMap, and m_aPropSeq.
Referenced by svx::checkForFontWork(), svx::checkForSelectedCustomShapes(), EnhancedCustomShape3d::Create3DObject(), EnhancedCustomShape2d::CreateSubPath(), EnhancedCustomShape2d::EnhancedCustomShape2d(), SdrTextObj::GetCameraZRotation(), SdrObjCustomShape::GetCustomShapeName(), SdrObjCustomShape::GetExtraTextRotation(), getExtrusionColorState(), getExtrusionDepthState(), getExtrusionDirectionState(), getExtrusionLightingDirectionState(), getExtrusionLightingIntensityState(), getExtrusionProjectionState(), getExtrusionSurfaceState(), GetFontWorkOutline(), svx::GetGeometryForCustomShape(), GetPropertyValueByName(), ImpGetCustomShapeType(), impl_execute(), svx::impl_execute(), InitializeFontWorkData(), SdrObjCustomShape::IsDefaultGeometry(), SdrObjCustomShape::IsMirroredX(), SdrObjCustomShape::IsMirroredY(), SdrObjCustomShape::IsTextPath(), SdrObjCustomShape::MergeDefaultAttributes(), SetFontWorkShapeTypeState(), EnhancedCustomShape2d::SetHandleControllerPosition(), SetPropertyValue(), and SdrObjCustomShape::UseNoFillStyle().
const css::uno::Any * SdrCustomShapeGeometryItem::GetPropertyValueByName | ( | const OUString & | rPropName | ) | const |
Definition at line 51 of file customshapeitem.cxx.
References m_aPropHashMap, and m_aPropSeq.
css::uno::Any * SdrCustomShapeGeometryItem::GetPropertyValueByName | ( | const OUString & | rPropName, |
const OUString & | rPropName2 | ||
) |
Definition at line 60 of file customshapeitem.cxx.
References GetPropertyValueByName(), m_aPropPairHashMap, and o3tl::tryAccess().
const css::uno::Any * SdrCustomShapeGeometryItem::GetPropertyValueByName | ( | const OUString & | rPropName, |
const OUString & | rPropName2 | ||
) | const |
Definition at line 78 of file customshapeitem.cxx.
References GetPropertyValueByName(), m_aPropPairHashMap, and o3tl::tryAccess().
|
inlineprivate |
Definition at line 273 of file customshapeitem.cxx.
References m_aHashState.
Referenced by ClearPropertyValue(), SetPropertyValue(), and SetPropSeq().
|
inlineoverridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 74 of file sdasitm.hxx.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 242 of file customshapeitem.cxx.
References comphelper::anyLess(), m_aHash, m_aHashState, m_aPropSeq, and UpdateHash().
|
delete |
|
delete |
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 224 of file customshapeitem.cxx.
References m_aHash, m_aHashState, m_aPropSeq, and UpdateHash().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 304 of file customshapeitem.cxx.
References SetPropSeq().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 298 of file customshapeitem.cxx.
References m_aPropSeq.
void SdrCustomShapeGeometryItem::SetPropertyValue | ( | const css::beans::PropertyValue & | rPropVal | ) |
Definition at line 96 of file customshapeitem.cxx.
References GetPropertyValueByName(), i, InvalidateHash(), m_aPropHashMap, m_aPropPairHashMap, m_aPropSeq, nIndex, and o3tl::tryAccess().
Referenced by svx::GetGeometryForCustomShape(), impl_execute(), svx::impl_execute(), SdrObjCustomShape::MergeDefaultAttributes(), SdrObjCustomShape::RestoreGeoData(), EnhancedCustomShape2d::SetHandleControllerPosition(), SdrObjCustomShape::SetMirroredX(), and SdrObjCustomShape::SetMirroredY().
void SdrCustomShapeGeometryItem::SetPropertyValue | ( | const OUString & | rSequenceName, |
const css::beans::PropertyValue & | rPropVal | ||
) |
Definition at line 134 of file customshapeitem.cxx.
References aSeq, GetPropertyValueByName(), InvalidateHash(), m_aPropHashMap, m_aPropPairHashMap, m_aPropSeq, nCount, nIndex, and o3tl::tryAccess().
|
private |
Definition at line 314 of file customshapeitem.cxx.
References i, InvalidateHash(), m_aPropHashMap, m_aPropPairHashMap, m_aPropSeq, and o3tl::tryAccess().
Referenced by PutValue().
|
inlineprivate |
Definition at line 259 of file customshapeitem.cxx.
References comphelper::anyToHash(), m_aHash, m_aHashState, and m_aPropSeq.
Referenced by operator<(), and operator==().
|
mutableprivate |
Definition at line 55 of file sdasitm.hxx.
Referenced by operator<(), operator==(), and UpdateHash().
|
mutableprivate |
Definition at line 54 of file sdasitm.hxx.
Referenced by InvalidateHash(), operator<(), operator==(), and UpdateHash().
|
private |
Definition at line 46 of file sdasitm.hxx.
Referenced by ClearPropertyValue(), GetPropertyValueByName(), SetPropertyValue(), and SetPropSeq().
|
private |
Definition at line 47 of file sdasitm.hxx.
Referenced by ClearPropertyValue(), GetPropertyValueByName(), SetPropertyValue(), and SetPropSeq().
|
private |
Definition at line 49 of file sdasitm.hxx.
Referenced by ClearPropertyValue(), Clone(), GetPropertyValueByName(), operator<(), operator==(), QueryValue(), SetPropertyValue(), SetPropSeq(), and UpdateHash().