20#ifndef INCLUDED_OOX_DRAWINGML_SHAPEPROPERTYMAP_HXX
21#define INCLUDED_OOX_DRAWINGML_SHAPEPROPERTYMAP_HXX
23#include <com/sun/star/uno/Any.hxx>
27#include <rtl/ustring.hxx>
31namespace oox {
class ModelObjectHelper; }
95 bool bNamedLineMarker,
bool bNamedLineDash,
96 bool bNamedFillGradient,
bool bNamedFillBitmap,
bool bNamedFillHatch);
100 return mrPropertyIds[ePropId] >= 0;
104 return mrPropertyIds[ePropId];
119 bool hasNamedLineMarkerInTable(
const OUString& rMarkerName )
const;
122 bool setAnyProperty(
ShapeProperty ePropId,
const css::uno::Any& rValue );
125 template<
typename Type>
128 return setAnyProperty(ePropId, css::uno::Any(rValue));
132 return setAnyProperty(ePropId, css::uno::Any(rValue));
140 bool setLineMarker( sal_Int32 nPropId,
const css::uno::Any& rValue );
142 bool setLineDash( sal_Int32 nPropId,
const css::uno::Any& rValue );
144 bool setFillGradient( sal_Int32 nPropId,
const css::uno::Any& rValue );
146 bool setGradientTrans( sal_Int32 nPropId,
const css::uno::Any& rValue );
148 bool setFillBitmap( sal_Int32 nPropId,
const css::uno::Any& rValue );
150 bool setFillBitmapName(
const css::uno::Any& rValue );
152 bool setFillHatch( sal_Int32 nPropId,
const css::uno::Any& rValue );
Contains tables for named drawing objects for a document model.
A helper that maps property identifiers to property values.
bool setAnyProperty(sal_Int32 nPropId, const css::uno::Any &rValue)
Sets the specified property to the passed value.
bool setProperty(sal_Int32 nPropId, Type &&rValue)
Sets the specified property to the passed value.
bool setProperty(ShapeProperty ePropId, const ::Color &rValue)
bool setProperty(ShapeProperty ePropId, const Type &rValue)
Sets the specified shape property to the passed value.
ModelObjectHelper & mrModelObjHelper
ShapePropertyInfo maShapePropInfo
const css::uno::Any & operator[](ShapeProperty ePropId) const =delete
css::uno::Any & operator[](ShapeProperty ePropId)=delete
enum SAL_DLLPUBLIC_RTTI FillStyle
ShapeProperty
Enumeration for various properties related to drawing shape formatting.
@ LineStart
Explicit line start marker or name of a line marker stored in a global container.
@ FillBitmap
Explicit fill bitmap or name of a fill bitmap stored in a global container.
@ FillBitmapRectanglePoint
@ FillGradient
Explicit fill gradient or name of a fill gradient stored in a global container.
@ FillHatch
Explicit fill hatch or name of a fill hatch stored in a global container.
@ LineDash
Explicit line dash or name of a line dash stored in a global container.
o3tl::enumarray< ShapeProperty, sal_Int32 > ShapePropertyIds
bool mbNamedFillBitmap
True = use named fill gradient instead of explicit fill gradient.
bool has(ShapeProperty ePropId) const
sal_Int32 operator[](ShapeProperty ePropId) const
bool mbNamedFillHatch
True = use named fill bitmap instead of explicit fill bitmap.
const ShapePropertyIds & mrPropertyIds
bool mbNamedLineDash
True = use named line marker instead of explicit line marker.
static ShapePropertyInfo DEFAULT
True = use named fill hatch instead of explicit fill hatch.
bool mbNamedFillGradient
True = use named line dash instead of explicit line dash.