LibreOffice Module oox (master) 1
|
#include <shapepropertymap.hxx>
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::XPropertySet > | makePropertySet () 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 | |
ModelObjectHelper & | mrModelObjHelper |
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) |
Definition at line 108 of file shapepropertymap.hxx.
|
explicit |
Definition at line 72 of file shapepropertymap.cxx.
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.
|
privatedelete |
|
privatedelete |
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().
bool oox::drawingml::ShapePropertyMap::setAnyProperty | ( | ShapeProperty | ePropId, |
const css::uno::Any & | rValue | ||
) |
Sets the specified shape property to the passed value.
Definition at line 88 of file shapepropertymap.cxx.
References oox::drawingml::FillBitmap, oox::drawingml::FillBitmapName, oox::drawingml::FillGradient, oox::drawingml::FillHatch, oox::drawingml::GradientTransparency, oox::drawingml::LineDash, oox::drawingml::LineEnd, oox::drawingml::LineStart, maShapePropInfo, setAnyProperty(), setFillBitmap(), setFillBitmapName(), setFillGradient(), setFillHatch(), setGradientTrans(), setLineDash(), and setLineMarker().
Referenced by oox::vml::ShapeBase::convertShapeProperties(), oox::drawingml::Shape::createAndInsert(), setAnyProperty(), setFillBitmap(), setFillGradient(), setFillHatch(), setLineDash(), and setLineMarker().
|
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().
|
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().
|
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().
|
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().
|
private |
Creates a named transparency gradient.
Definition at line 199 of file shapepropertymap.cxx.
References oox::ModelObjectHelper::insertTransGrandient(), mrModelObjHelper, and setProperty().
Referenced by setAnyProperty().
|
private |
Sets an explicit line dash, or creates a named line dash.
Definition at line 146 of file shapepropertymap.cxx.
References oox::ModelObjectHelper::insertLineDash(), oox::drawingml::LineDash, maShapePropInfo, oox::drawingml::ShapePropertyInfo::mbNamedLineDash, mrModelObjHelper, setAnyProperty(), and setProperty().
Referenced by setAnyProperty().
|
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().
|
inline |
Sets the specified property to the passed value.
Does nothing, if the identifier is invalid.
Definition at line 72 of file propertymap.hxx.
|
delete |
setAnyProperty should be used
|
inline |
Definition at line 130 of file shapepropertymap.hxx.
|
inline |
Sets the specified shape property to the passed value.
Definition at line 126 of file shapepropertymap.hxx.
Referenced by oox::vml::ShapeBase::convertShapeProperties(), oox::drawingml::Shape::createAndInsert(), oox::drawingml::LineProperties::pushToPropMap(), oox::drawingml::FillProperties::pushToPropMap(), setFillBitmap(), setFillBitmapName(), setFillGradient(), setFillHatch(), setGradientTrans(), setLineDash(), and setLineMarker().
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().
|
private |
Definition at line 160 of file shapepropertymap.hxx.
Referenced by hasNamedLineMarkerInTable(), setAnyProperty(), setFillBitmap(), setFillGradient(), setFillHatch(), setLineDash(), setLineMarker(), and supportsProperty().
|
private |
Definition at line 159 of file shapepropertymap.hxx.
Referenced by hasNamedLineMarkerInTable(), setFillBitmap(), setFillBitmapName(), setFillGradient(), setFillHatch(), setGradientTrans(), setLineDash(), and setLineMarker().