24#include <oox/token/namespaces.hxx>
25#include <oox/token/tokens.hxx>
39 , mpLineStyle(pLineStyle)
40 , mrLineProperties(rLineProperties)
42 mrLineProperties.moLineWidth = rAttribs.getInteger( XML_w );
43 mrLineProperties.moLineCompound = rAttribs.getToken( XML_cmpd );
44 mrLineProperties.moLineCap = rAttribs.getToken( XML_cap );
48 mpLineStyle->mnWidth = rAttribs.getInteger(XML_w, 0);
89 case A_TOKEN( noFill ):
90 case A_TOKEN( solidFill ):
91 case A_TOKEN( gradFill ):
92 case A_TOKEN( pattFill ):
104 case A_TOKEN( prstDash ):
130 case A_TOKEN( custDash ):
141 sal_Int32 nDashLength = 0;
143 if (
aStr.endsWith(
"%") )
148 nDashLength =
aStr.toInt32();
155 nDashLength = rAttribs.
getInteger( XML_d, 0 );
158 sal_Int32 nSpaceLength = 0;
160 if (
aStr.endsWith(
"%") )
165 nSpaceLength =
aStr.toInt32();
168 nSpaceLength *= 1000;
172 nSpaceLength = rAttribs.
getInteger( XML_sp, 0 );
185 case A_TOKEN(
round ):
186 case A_TOKEN(
bevel ):
187 case A_TOKEN(
miter ):
189 sal_Int32
nToken = getBaseToken(nElement);
204 sal_Int32 nMiterLimit = rAttribs.
getInteger(XML_lim, 0);
211 case A_TOKEN( headEnd ):
212 case A_TOKEN( tailEnd ):
214 bool bTailEnd = nElement == A_TOKEN( tailEnd );
254 if (nElement == A_TOKEN(tailEnd))
260 else if (nElement == A_TOKEN(headEnd))
FillStyle maLineFillStyle
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, model::FillStyle *pFillStyle)
virtual ::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
LinePropertiesContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttributes, LineProperties &rLineProperties, model::LineStyle *pLineStyle=nullptr) noexcept
LineProperties & mrLineProperties
model::LineStyle * mpLineStyle
virtual ~LinePropertiesContext() override
std::vector< DashStop > maCustomList
PresetDashType mePresetType
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, ...).