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)
 
- 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 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)
 
- Protected Attributes inherited from oox::PropertyMap
std::map< sal_Int32, css::uno::Any > maProperties
 

Detailed Description

Definition at line 107 of file shapepropertymap.hxx.

Constructor & Destructor Documentation

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

Definition at line 71 of file shapepropertymap.cxx.

Member Function Documentation

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 82 of file shapepropertymap.cxx.

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

css::uno::Any& oox::drawingml::ShapePropertyMap::operator[] ( ShapeProperty  ePropId)
privatedelete
const css::uno::Any& oox::drawingml::ShapePropertyMap::operator[] ( ShapeProperty  ePropId) const
privatedelete
bool oox::drawingml::ShapePropertyMap::setAnyProperty ( ShapeProperty  ePropId,
const css::uno::Any &  rValue 
)
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 205 of file shapepropertymap.cxx.

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

Referenced by setAnyProperty().

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 224 of file shapepropertymap.cxx.

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

Referenced by setAnyProperty().

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 161 of file shapepropertymap.cxx.

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

Referenced by setAnyProperty().

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 177 of file shapepropertymap.cxx.

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

Referenced by setAnyProperty().

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

Creates a named transparency gradient.

Definition at line 193 of file shapepropertymap.cxx.

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

Referenced by setAnyProperty().

bool oox::drawingml::ShapePropertyMap::setLineDash ( sal_Int32  nPropId,
const css::uno::Any &  rValue 
)
private
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 128 of file shapepropertymap.cxx.

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

Referenced by setAnyProperty().

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

Definition at line 129 of file shapepropertymap.hxx.

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

Returns true, if the specified property is supported.

Definition at line 77 of file shapepropertymap.cxx.

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

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

Member Data Documentation

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

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