namespace ConversionHelper
{ /** Returns two values contained in rValue separated by cSep.
*/
OOX_DLLPUBLIC bool separatePair(
std::u16string_view& orValue1, std::u16string_view& orValue2,
std::u16string_view rValue, sal_Unicode cSep );
/** Returns the boolean value from the passed string of a VML attribute. Supportedvalues:'f','t','false','true'.Falseforanythingelse.
*/
OOX_DLLPUBLIC bool decodeBool( std::u16string_view rValue );
/** Converts the passed VML percentage measure string to a normalized floating-pointvalue.
/** Converts the passed VML rotation value to degrees. SeeDffPropertyReader::Fix16ToAngle():inVML,positiverotation anglesareclockwise,wehavethemascounter-clockwise. Additionally,VMLtypeis0..360,ouris0..36000.
/** The stroke arrow model structure contains all properties for a line end arrow. */ struct StrokeArrowModel
{
std::optional< sal_Int32 > moArrowType;
std::optional< sal_Int32 > moArrowWidth;
std::optional< sal_Int32 > moArrowLength;
/** The stroke model structure contains all shape border properties. */ struct StrokeModel
{
std::optional< bool > moStroked; ///< Shape border line on/off.
StrokeArrowModel maStartArrow; ///< Start line arrow style.
StrokeArrowModel maEndArrow; ///< End line arrow style.
std::optional< OUString > moColor; ///< Solid line color.
std::optional< double > moOpacity; ///< Solid line color opacity.
std::optional< OUString > moWeight; ///< Line width.
std::optional< OUString > moDashStyle; ///< Line dash (predefined or manually).
std::optional< sal_Int32 > moLineStyle; ///< Line style (single, double, ...).
std::optional< sal_Int32 > moEndCap; ///< Type of line end cap.
std::optional< sal_Int32 > moJoinStyle; ///< Type of line join.
void assignUsed( const StrokeModel& rSource );
/** Writes the properties to the passed property map. */ void pushToPropMap(
::oox::drawingml::ShapePropertyMap& rPropMap, const GraphicHelper& rGraphicHelper ) const;
};
/** The fill model structure contains all shape fill properties. */ struct OOX_DLLPUBLIC FillModel
{
std::optional< bool > moFilled; ///< Shape fill on/off.
std::optional< OUString > moColor; ///< Solid fill color.
std::optional< double > moOpacity; ///< Solid fill color opacity.
std::optional< OUString > moColor2; ///< End color of gradient.
std::optional< double > moOpacity2; ///< End color opacity of gradient.
std::optional< sal_Int32 > moType; ///< Fill type.
std::optional< sal_Int32 > moAngle; ///< Gradient rotation angle.
std::optional< double > moFocus; ///< Linear gradient focus of second color.
std::optional< DoublePair > moFocusPos; ///< Rectangular gradient focus position of second color.
std::optional< DoublePair > moFocusSize; ///< Rectangular gradient focus size of second color.
std::optional< OUString > moBitmapPath; ///< Path to fill bitmap fragment.
std::optional< bool > moRotate; ///< True = rotate gradient/bitmap with shape.
void assignUsed( const FillModel& rSource );
/** Writes the properties to the passed property map. */ void pushToPropMap(
::oox::drawingml::ShapePropertyMap& rPropMap, const GraphicHelper& rGraphicHelper ) const;
};
/** The shadow model structure contains all shape shadow properties. */ struct OOX_DLLPUBLIC ShadowModel
{ bool mbHasShadow; ///< Is a v:shadow element seen?
std::optional<bool> moShadowOn; ///< Is the element turned on?
std::optional<OUString> moColor; ///< Specifies the color of the shadow.
std::optional<OUString> moOffset; ///< Specifies the shadow's offset from the shape's location.
std::optional<double> moOpacity; ///< Specifies the opacity of the shadow.
ShadowModel();
/** Writes the properties to the passed property map. */ void pushToPropMap(oox::drawingml::ShapePropertyMap& rPropMap, const GraphicHelper& rGraphicHelper) const;
};
/** The shadow model structure contains all shape textpath properties. */ struct TextpathModel
{
std::optional<OUString> moString; ///< Specifies the string of the textpath.
std::optional<OUString> moStyle; ///< Specifies the style of the textpath.
std::optional<bool> moTrim; ///< Specifies whether extra space is removed above and below the text
TextpathModel();
/** Writes the properties to the passed property map. */ void pushToPropMap(oox::drawingml::ShapePropertyMap& rPropMap, const css::uno::Reference<css::drawing::XShape>& xShape, const GraphicHelper& rGraphicHelper) const;
};
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.