29#include <oox/token/namespaces.hxx>
30#include <oox/token/tokens.hxx>
44 ContextHandler2Helper
const & rParent,
48, mrTextCharacterProperties( rTextCharacterProperties )
88 if ( nVisualTokenAmount > 0 )
111 if( aElementToken != A_TOKEN(lang) )
114 switch( aElementToken )
122 case A_TOKEN( noFill ):
123 case A_TOKEN( solidFill ):
124 case A_TOKEN( gradFill ):
125 case A_TOKEN( pattFill ):
126 case A_TOKEN( blipFill ):
129 case A_TOKEN( effectDag ):
130 case A_TOKEN( effectLst ):
132 case A_TOKEN( highlight ):
134 case W_TOKEN( highlight ):
138 case A_TOKEN( uLnTx ):
146 case A_TOKEN( uFillTx ):
149 case A_TOKEN( uFill ):
153 case A_TOKEN( latin ):
166 case A_TOKEN( hlinkClick ):
167 case A_TOKEN( hlinkMouseOver ):
169 case W_TOKEN( rFonts ):
199 if (attrib ==
"single" || attrib ==
"words")
201 else if (attrib ==
"wavyHeavy")
203 else if (attrib ==
"wavyDouble")
205 else if (attrib ==
"wave")
207 else if (attrib ==
"thick")
209 else if (attrib ==
"dottedHeavy")
211 else if (attrib ==
"dotted")
213 else if (attrib ==
"dashDotDotHeavy")
215 else if (attrib ==
"dotDotDash")
217 else if (attrib ==
"dashDotHeavy")
219 else if (attrib ==
"dotDash")
221 else if (attrib ==
"double")
223 else if (attrib ==
"dashLongHeavy")
225 else if (attrib ==
"dashLong")
227 else if (attrib ==
"dashedHeavy")
229 else if (attrib ==
"dash")
231 else if (attrib ==
"none")
234 if (colorAttrib.has_value())
242 case W_TOKEN( spacing ):
244 auto attrib = rAttribs.
getInteger(W_TOKEN( val ), 0);
256 case W_TOKEN( strike ):
257 if (rAttribs.
getBool(W_TOKEN(val),
true))
260 case W_TOKEN( dstrike ):
261 if (rAttribs.
getBool(W_TOKEN(val),
true))
264 case W_TOKEN(
color ):
265 if (rAttribs.
getInteger(W_TOKEN(val)).has_value())
272 if (rAttribs.
getInteger(W_TOKEN(val)).has_value())
274 sal_Int32 nVal = rAttribs.
getInteger(W_TOKEN(val), 0);
279 case W_TOKEN( szCs ):
281 case W_TOKEN( caps ):
283 if( rAttribs.
getBool(W_TOKEN( val ),
true) )
289 case W_TOKEN( smallCaps ):
291 if( rAttribs.
getBool(W_TOKEN( val ),
true) )
297 case W_TOKEN(vertAlign):
301 sal_Int32 nVal = rAttribs.
getToken(W_TOKEN(val), 0);
302 if (nVal == XML_superscript)
304 else if (nVal == XML_subscript)
311 case OOX_TOKEN(w14, glow):
312 case OOX_TOKEN(w14, shadow):
313 case OOX_TOKEN(w14, reflection):
314 case OOX_TOKEN(w14, textOutline):
315 case OOX_TOKEN(w14, textFill):
316 case OOX_TOKEN(w14, scene3d):
317 case OOX_TOKEN(w14, props3d):
318 case OOX_TOKEN(w14, ligatures):
319 case OOX_TOKEN(w14, numForm):
320 case OOX_TOKEN(w14, numSpacing):
321 case OOX_TOKEN(w14, stylisticSets):
322 case OOX_TOKEN(w14, cntxtAlts):
328 SAL_WARN(
"oox",
"TextCharacterPropertiesContext::onCreateContext: unhandled element: " << getBaseToken(aElementToken));
Provides access to attribute values of an element.
oox::drawingml::Color getHighlightColor(sal_Int32 nAttrToken) const
Returns the Color object of highlight of the text.
OUString getStringDefaulted(sal_Int32 nAttrToken) const
Returns the string value of the specified attribute, returns an empty string if attribute not present...
bool hasAttribute(sal_Int32 nAttrToken) const
Returns true, if the specified attribute is present.
std::optional< sal_Int32 > getIntegerHex(sal_Int32 nAttrToken) const
Returns the 32-bit signed integer value of the specified attribute (hexadecimal).
std::optional< sal_Int32 > getInteger(sal_Int32 nAttrToken) const
Returns the 32-bit signed integer value of the specified attribute (decimal).
const css::uno::Reference< css::xml::sax::XFastAttributeList > & getFastAttributeList() const
Returns the wrapped com.sun.star.xml.sax.XFastAttributeList object.
std::optional< OUString > getString(sal_Int32 nAttrToken) const
Returns the string value of the specified attribute.
std::optional< bool > getBool(sal_Int32 nAttrToken) const
Returns the boolean value of the specified attribute.
std::optional< sal_Int32 > getToken(sal_Int32 nAttrToken) const
Returns the token identifier of the value of the specified attribute.
Context handler for elements that contain a color value element (a:scrgbClr, a:srgbClr,...
void setSrgbClr(sal_Int32 nRgb)
Sets an RGB value (hexadecimal RRGGBB) from the a:srgbClr element.
::oox::core::ContextHandlerRef createFillContext(::oox::core::ContextHandler2Helper const &rParent, sal_Int32 nElement, const ::oox::AttributeList &rAttribs, FillProperties &rFillProps, model::FillStyle *pFillStyle)
Context handler for elements that contain a fill property element (a:noFill, a:solidFill,...
TextCharacterPropertiesContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttribs, TextCharacterProperties &rTextCharacterProperties)
virtual ~TextCharacterPropertiesContext() override
TextCharacterProperties & mrTextCharacterProperties
virtual ::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
void setAttributes(const AttributeList &rAttribs)
Sets attributes from the passed attribute list.
const std::vector< sal_Int32 > & getFastAttributeTokens() const
#define SAL_WARN(area, stream)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Color maFillColor
Fill type (OOXML token).
std::optional< sal_Int32 > moFillType
TextFont maAsianThemeFont
std::optional< sal_Int32 > moCaseMap
TextFont maLatinThemeFont
std::optional< OUString > moLang
std::optional< bool > moUnderlineFillFollowText
PropertyMap maHyperlinkPropertyMap
std::optional< bool > moUnderlineLineFollowText
std::optional< bool > moItalic
std::vector< css::beans::PropertyValue > maTextEffectsProperties
std::optional< sal_Int32 > moStrikeout
bool mbHasVisualRunProperties
Set if there was a property set that alters run visually during import.
std::optional< sal_Int32 > moBaseline
std::optional< sal_Int32 > moUnderline
TextFont maComplexThemeFont
std::optional< sal_Int32 > moHeight
FillProperties maFillProperties
std::optional< bool > moBold
std::optional< LineProperties > moTextOutlineProperties
std::optional< sal_Int32 > moSpacing