Ifyou*insert*idsintothislist,thenupdatespnCommonPropIds,spnLinearPropIds andspnFilledPropIdsofoox/source/drawingml/chart/objectformatter.cxxif thenewlyinsertedenumisinsidetherangetheycover
*/ enumclass ShapeProperty
{
LineStyle,
LineWidth,
LineColor,
LineTransparency,
LineDash, ///< Explicit line dash or name of a line dash stored in a global container.
LineCap,
LineJoint,
LineStart, ///< Explicit line start marker or name of a line marker stored in a global container.
LineStartWidth,
LineStartCenter,
LineEnd, ///< Explicit line end marker or name of a line marker stored in a global container.
LineEndWidth,
LineEndCenter,
FillStyle,
FillColor,
FillTransparency,
GradientTransparency,
FillGradient, ///< Explicit fill gradient or name of a fill gradient stored in a global container.
FillBitmap, ///< Explicit fill bitmap or name of a fill bitmap stored in a global container.
FillBitmapMode,
FillBitmapSizeX,
FillBitmapSizeY,
FillBitmapOffsetX,
FillBitmapOffsetY,
FillBitmapRectanglePoint,
FillHatch, ///< Explicit fill hatch or name of a fill hatch stored in a global container.
FillBackground,
FillUseSlideBackground,
FillBitmapName,
ShadowXDistance,
ShadowSizeX,
ShadowSizeY,
LAST = ShadowSizeY
};
struct OOX_DLLPUBLIC ShapePropertyInfo
{ const ShapePropertyIds& mrPropertyIds; bool mbNamedLineMarker; /// True = use named line marker instead of explicit line marker. bool mbNamedLineDash; /// True = use named line dash instead of explicit line dash. bool mbNamedFillGradient; /// True = use named fill gradient instead of explicit fill gradient. bool mbNamedFillBitmap; /// True = use named fill bitmap instead of explicit fill bitmap. bool mbNamedFillHatch; /// True = use named fill hatch instead of explicit fill hatch.
static ShapePropertyInfo DEFAULT; /// Default property info (used as default parameter of other methods).
class OOX_DLLPUBLIC ShapePropertyMap : public PropertyMap
{ public: explicit ShapePropertyMap(ModelObjectHelper& rModelObjHelper, const ShapePropertyInfo& rShapePropInfo = ShapePropertyInfo::DEFAULT );
/** Returns true, if the specified property is supported. */ bool supportsProperty( ShapeProperty ePropId ) const;
/** Returns true, if named line markers are supported, and the specified
line marker has already been inserted into the marker table. */ bool hasNamedLineMarkerInTable( const OUString& rMarkerName ) const;
/** Sets the specified shape property to the passed value. */ bool setAnyProperty( ShapeProperty ePropId, const css::uno::Any& rValue );
using PropertyMap::setAnyProperty; using PropertyMap::setProperty;
private: /** Sets an explicit line marker, or creates a named line marker. */ bool setLineMarker( sal_Int32 nPropId, const css::uno::Any& rValue ); /** Sets an explicit line dash, or creates a named line dash. */ bool setLineDash( sal_Int32 nPropId, const css::uno::Any& rValue ); /** Sets an explicit fill gradient, or creates a named fill gradient. */ bool setFillGradient( sal_Int32 nPropId, const css::uno::Any& rValue ); /** Creates a named transparency gradient. */ bool setGradientTrans( sal_Int32 nPropId, const css::uno::Any& rValue ); /** Sets an explicit fill bitmap, or creates a named fill bitmap. */ bool setFillBitmap( sal_Int32 nPropId, const css::uno::Any& rValue ); /** Sets an explicit fill bitmap and pushes the name to FillBitmapName */ bool setFillBitmapName( const css::uno::Any& rValue ); /** Sets an explicit fill hatch, or creates a named fill hatch. */ bool setFillHatch( sal_Int32 nPropId, const css::uno::Any& rValue );
// not implemented, to prevent implicit conversion from enum to int
css::uno::Any& operator[]( ShapeProperty ePropId ) = delete; const css::uno::Any& operator[]( ShapeProperty ePropId ) const = delete;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.