24#include <oox/token/namespaces.hxx>
25#include <oox/token/tokens.hxx>
38, mrLineProperties( rLineProperties )
40 mrLineProperties.moLineWidth = rAttribs.getInteger( XML_w );
41 mrLineProperties.moLineCompound = rAttribs.getToken( XML_cmpd );
42 mrLineProperties.moLineCap = rAttribs.getToken( XML_cap );
54 case A_TOKEN( noFill ):
55 case A_TOKEN( solidFill ):
56 case A_TOKEN( gradFill ):
57 case A_TOKEN( pattFill ):
62 case A_TOKEN( prstDash ):
65 case A_TOKEN( custDash ):
78 if (
aStr.endsWith(
"%") )
83 nDash =
aStr.toInt32();
95 if (
aStr.endsWith(
"%") )
100 nSp =
aStr.toInt32();
115 case A_TOKEN(
round ):
116 case A_TOKEN(
bevel ):
117 case A_TOKEN(
miter ):
121 case A_TOKEN( headEnd ):
122 case A_TOKEN( tailEnd ):
124 bool bTailEnd = nElement == A_TOKEN( tailEnd );
Provides access to attribute values of an element.
OUString getStringDefaulted(sal_Int32 nAttrToken) const
Returns the string value of the specified attribute, returns an empty string if attribute not present...
std::optional< sal_Int32 > getInteger(sal_Int32 nAttrToken) const
Returns the 32-bit signed integer value of the specified attribute (decimal).
std::optional< sal_Int32 > getToken(sal_Int32 nAttrToken) const
Returns the token identifier of the value of the specified attribute.
::oox::core::ContextHandlerRef createFillContext(::oox::core::ContextHandler2Helper const &rParent, sal_Int32 nElement, const ::oox::AttributeList &rAttribs, FillProperties &rFillProps)
LinePropertiesContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttributes, LineProperties &rLineProperties) noexcept
virtual ::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
LineProperties & mrLineProperties
virtual ~LinePropertiesContext() override
std::optional< sal_Int32 > moArrowLength
std::optional< sal_Int32 > moArrowType
std::optional< sal_Int32 > moArrowWidth
FillProperties maLineFill
End line arrow style.
LineArrowProperties maStartArrow
std::optional< sal_Int32 > moLineJoint
Line cap (OOXML token).
LineArrowProperties maEndArrow
Start line arrow style.
std::optional< sal_Int32 > moPresetDash
Line width (EMUs).
DashStopVector maCustomDash
Line fill (solid, gradient, ...).