LibreOffice Module oox (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
oox::drawingml::ShapePropertyMap Class Reference

#include <shapepropertymap.hxx>

Inheritance diagram for oox::drawingml::ShapePropertyMap:
[legend]
Collaboration diagram for oox::drawingml::ShapePropertyMap:
[legend]

Public Member Functions

 ShapePropertyMap (ModelObjectHelper &rModelObjHelper, const ShapePropertyInfo &rShapePropInfo=ShapePropertyInfo::DEFAULT)
 
bool supportsProperty (ShapeProperty ePropId) const
 Returns true, if the specified property is supported. More...
 
bool hasNamedLineMarkerInTable (const OUString &rMarkerName) const
 Returns true, if named line markers are supported, and the specified line marker has already been inserted into the marker table. More...
 
bool setAnyProperty (ShapeProperty ePropId, const css::uno::Any &rValue)
 Sets the specified shape property to the passed value. More...
 
template<typename Type >
bool setProperty (ShapeProperty ePropId, const Type &rValue)
 Sets the specified shape property to the passed value. More...
 
bool setProperty (ShapeProperty ePropId, const ::Color &rValue)
 
bool setAnyProperty (sal_Int32 nPropId, const css::uno::Any &rValue)
 Sets the specified property to the passed value. More...
 
template<typename Type >
bool setProperty (sal_Int32 nPropId, Type &&rValue)
 Sets the specified property to the passed value. More...
 
bool setProperty (sal_Int32, const css::uno::Any &)=delete
 setAnyProperty should be used More...
 
- Public Member Functions inherited from oox::PropertyMap
 PropertyMap ()
 
bool hasProperty (sal_Int32 nPropId) const
 Returns true, if the map contains a property with the passed identifier. More...
 
bool setAnyProperty (sal_Int32 nPropId, const css::uno::Any &rValue)
 Sets the specified property to the passed value. More...
 
template<typename Type >
bool setProperty (sal_Int32 nPropId, Type &&rValue)
 Sets the specified property to the passed value. More...
 
bool setProperty (sal_Int32, const css::uno::Any &)=delete
 setAnyProperty should be used More...
 
css::uno::Any getProperty (sal_Int32 nPropId)
 
void erase (sal_Int32 nPropId)
 
bool empty () const
 
void assignUsed (const PropertyMap &rPropMap)
 Inserts all properties contained in the passed property map. More...
 
void assignAll (const PropertyMap &rPropMap)
 Inserts all properties contained in the passed property map. More...
 
css::uno::Sequence< css::beans::PropertyValue > makePropertyValueSequence () const
 Returns a sequence of property values, filled with all contained properties. More...
 
void fillSequences (css::uno::Sequence< OUString > &rNames, css::uno::Sequence< css::uno::Any > &rValues) const
 Fills the passed sequences of names and anys with all contained properties. More...
 
void fillPropertyNameMap (PropertyNameMap &rMap) const
 
css::uno::Reference< css::beans::XPropertySetmakePropertySet () const
 Creates a property set supporting the XPropertySet interface and inserts all properties. More...
 

Private Member Functions

bool setLineMarker (sal_Int32 nPropId, const css::uno::Any &rValue)
 Sets an explicit line marker, or creates a named line marker. More...
 
bool setLineDash (sal_Int32 nPropId, const css::uno::Any &rValue)
 Sets an explicit line dash, or creates a named line dash. More...
 
bool setFillGradient (sal_Int32 nPropId, const css::uno::Any &rValue)
 Sets an explicit fill gradient, or creates a named fill gradient. More...
 
bool setGradientTrans (sal_Int32 nPropId, const css::uno::Any &rValue)
 Creates a named transparency gradient. More...
 
bool setFillBitmap (sal_Int32 nPropId, const css::uno::Any &rValue)
 Sets an explicit fill bitmap, or creates a named fill bitmap. More...
 
bool setFillBitmapName (const css::uno::Any &rValue)
 Sets an explicit fill bitmap and pushes the name to FillBitmapName. More...
 
bool setFillHatch (sal_Int32 nPropId, const css::uno::Any &rValue)
 Sets an explicit fill hatch, or creates a named fill hatch. More...
 
css::uno::Any & operator[] (ShapeProperty ePropId)=delete
 
const css::uno::Any & operator[] (ShapeProperty ePropId) const =delete
 

Private Attributes

ModelObjectHelpermrModelObjHelper
 
ShapePropertyInfo maShapePropInfo
 

Additional Inherited Members

- Static Public Member Functions inherited from oox::PropertyMap
static const OUString & getPropertyName (sal_Int32 nPropId)
 Returns the name of the passed property identifier. More...
 
static sal_Int32 getPropertyId (std::u16string_view sPropName)
 Returns the property identifier of the passed name. More...
 
static void dump (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 
static void dumpCode (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 
static void dumpData (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 

Detailed Description

Definition at line 108 of file shapepropertymap.hxx.

Constructor & Destructor Documentation

◆ ShapePropertyMap()

oox::drawingml::ShapePropertyMap::ShapePropertyMap ( ModelObjectHelper rModelObjHelper,
const ShapePropertyInfo rShapePropInfo = ShapePropertyInfo::DEFAULT 
)
explicit

Definition at line 72 of file shapepropertymap.cxx.

Member Function Documentation

◆ hasNamedLineMarkerInTable()

bool oox::drawingml::ShapePropertyMap::hasNamedLineMarkerInTable ( const OUString &  rMarkerName) const

Returns true, if named line markers are supported, and the specified line marker has already been inserted into the marker table.

Definition at line 83 of file shapepropertymap.cxx.

References oox::ModelObjectHelper::hasLineMarker(), maShapePropInfo, oox::drawingml::ShapePropertyInfo::mbNamedLineMarker, and mrModelObjHelper.

◆ operator[]() [1/2]

const css::uno::Any & oox::drawingml::ShapePropertyMap::operator[] ( ShapeProperty  ePropId) const
privatedelete

◆ operator[]() [2/2]

css::uno::Any & oox::drawingml::ShapePropertyMap::operator[] ( ShapeProperty  ePropId)
privatedelete

◆ setAnyProperty() [1/2]

bool oox::PropertyMap::setAnyProperty ( sal_Int32  nPropId,
const css::uno::Any &  rValue 
)

Sets the specified property to the passed value.

Does nothing, if the identifier is invalid.

Definition at line 67 of file propertymap.cxx.

References aName, Any, aSeq, oox::PropertyMap::fillPropertyNameMap(), getPropertyValue(), Name, Property, and setPropertyValue().

◆ setAnyProperty() [2/2]

bool oox::drawingml::ShapePropertyMap::setAnyProperty ( ShapeProperty  ePropId,
const css::uno::Any &  rValue 
)

◆ setFillBitmap()

bool oox::drawingml::ShapePropertyMap::setFillBitmap ( sal_Int32  nPropId,
const css::uno::Any &  rValue 
)
private

Sets an explicit fill bitmap, or creates a named fill bitmap.

Definition at line 216 of file shapepropertymap.cxx.

References oox::ModelObjectHelper::insertFillBitmapXGraphic(), maShapePropInfo, oox::drawingml::ShapePropertyInfo::mbNamedFillBitmap, mrModelObjHelper, setAnyProperty(), and setProperty().

Referenced by setAnyProperty().

◆ setFillBitmapName()

bool oox::drawingml::ShapePropertyMap::setFillBitmapName ( const css::uno::Any &  rValue)
private

Sets an explicit fill bitmap and pushes the name to FillBitmapName.

Definition at line 235 of file shapepropertymap.cxx.

References oox::ModelObjectHelper::insertFillBitmapXGraphic(), mrModelObjHelper, PROP_FillBitmapName, and setProperty().

Referenced by setAnyProperty().

◆ setFillGradient()

bool oox::drawingml::ShapePropertyMap::setFillGradient ( sal_Int32  nPropId,
const css::uno::Any &  rValue 
)
private

Sets an explicit fill gradient, or creates a named fill gradient.

Definition at line 162 of file shapepropertymap.cxx.

References oox::ModelObjectHelper::insertFillGradient(), maShapePropInfo, oox::drawingml::ShapePropertyInfo::mbNamedFillGradient, mrModelObjHelper, setAnyProperty(), and setProperty().

Referenced by setAnyProperty().

◆ setFillHatch()

bool oox::drawingml::ShapePropertyMap::setFillHatch ( sal_Int32  nPropId,
const css::uno::Any &  rValue 
)
private

Sets an explicit fill hatch, or creates a named fill hatch.

Definition at line 183 of file shapepropertymap.cxx.

References oox::ModelObjectHelper::insertFillHatch(), maShapePropInfo, oox::drawingml::ShapePropertyInfo::mbNamedFillHatch, mrModelObjHelper, setAnyProperty(), and setProperty().

Referenced by setAnyProperty().

◆ setGradientTrans()

bool oox::drawingml::ShapePropertyMap::setGradientTrans ( sal_Int32  nPropId,
const css::uno::Any &  rValue 
)
private

Creates a named transparency gradient.

Definition at line 199 of file shapepropertymap.cxx.

References oox::ModelObjectHelper::insertTransGrandient(), mrModelObjHelper, and setProperty().

Referenced by setAnyProperty().

◆ setLineDash()

bool oox::drawingml::ShapePropertyMap::setLineDash ( sal_Int32  nPropId,
const css::uno::Any &  rValue 
)
private

◆ setLineMarker()

bool oox::drawingml::ShapePropertyMap::setLineMarker ( sal_Int32  nPropId,
const css::uno::Any &  rValue 
)
private

Sets an explicit line marker, or creates a named line marker.

Definition at line 129 of file shapepropertymap.cxx.

References oox::ModelObjectHelper::insertLineMarker(), maShapePropInfo, oox::drawingml::ShapePropertyInfo::mbNamedLineMarker, mrModelObjHelper, setAnyProperty(), and setProperty().

Referenced by setAnyProperty().

◆ setProperty() [1/4]

template<typename Type >
bool oox::PropertyMap::setProperty ( sal_Int32  nPropId,
Type &&  rValue 
)
inline

Sets the specified property to the passed value.

Does nothing, if the identifier is invalid.

Definition at line 72 of file propertymap.hxx.

◆ setProperty() [2/4]

bool oox::PropertyMap::setProperty ( sal_Int32  ,
const css::uno::Any &   
)
delete

setAnyProperty should be used

◆ setProperty() [3/4]

bool oox::drawingml::ShapePropertyMap::setProperty ( ShapeProperty  ePropId,
const ::Color rValue 
)
inline

Definition at line 130 of file shapepropertymap.hxx.

◆ setProperty() [4/4]

template<typename Type >
bool oox::drawingml::ShapePropertyMap::setProperty ( ShapeProperty  ePropId,
const Type rValue 
)
inline

◆ supportsProperty()

bool oox::drawingml::ShapePropertyMap::supportsProperty ( ShapeProperty  ePropId) const

Returns true, if the specified property is supported.

Definition at line 78 of file shapepropertymap.cxx.

References oox::drawingml::ShapePropertyInfo::has(), and maShapePropInfo.

Referenced by oox::drawingml::FillProperties::pushToPropMap().

Member Data Documentation

◆ maShapePropInfo

ShapePropertyInfo oox::drawingml::ShapePropertyMap::maShapePropInfo
private

◆ mrModelObjHelper

ModelObjectHelper& oox::drawingml::ShapePropertyMap::mrModelObjHelper
private

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