29 #include <oox/token/namespaces.hxx>
30 #include <oox/token/tokens.hxx>
48 , mrTextCharacterProperties( rTextCharacterProperties )
88 if ( nVisualTokenAmount > 0 )
111 if( aElementToken != A_TOKEN(
lang) )
114 switch( aElementToken )
120 case A_TOKEN( noFill ):
121 case A_TOKEN( solidFill ):
122 case A_TOKEN( gradFill ):
123 case A_TOKEN( pattFill ):
126 case A_TOKEN( effectDag ):
127 case A_TOKEN( effectLst ):
129 case A_TOKEN( highlight ):
131 case W_TOKEN( highlight ):
135 case A_TOKEN( uLnTx ):
143 case A_TOKEN( uFillTx ):
146 case A_TOKEN( uFill ):
150 case A_TOKEN( latin ):
163 case A_TOKEN( hlinkClick ):
164 case A_TOKEN( hlinkMouseOver ):
166 case W_TOKEN( rFonts ):
195 auto attrib = rAttribs.
getString(W_TOKEN(val), OUString());
196 if (attrib ==
"single" || attrib ==
"words")
198 else if (attrib ==
"wavyHeavy")
200 else if (attrib ==
"wavyDouble")
202 else if (attrib ==
"wave")
204 else if (attrib ==
"thick")
206 else if (attrib ==
"dottedHeavy")
208 else if (attrib ==
"dotted")
210 else if (attrib ==
"dashDotDotHeavy")
212 else if (attrib ==
"dotDotDash")
214 else if (attrib ==
"dashDotHeavy")
216 else if (attrib ==
"dotDash")
218 else if (attrib ==
"double")
220 else if (attrib ==
"dashLongHeavy")
222 else if (attrib ==
"dashLong")
224 else if (attrib ==
"dashedHeavy")
226 else if (attrib ==
"dash")
228 else if (attrib ==
"none")
231 if (colorAttrib.has())
239 case W_TOKEN( spacing ):
241 auto attrib = rAttribs.
getInteger(W_TOKEN( val ), 0);
253 case W_TOKEN( strike ):
254 if (rAttribs.
getBool(W_TOKEN(val),
true))
257 case W_TOKEN( dstrike ):
258 if (rAttribs.
getBool(W_TOKEN(val),
true))
261 case W_TOKEN(
color ):
276 case W_TOKEN( szCs ):
278 case W_TOKEN( caps ):
280 if( rAttribs.
getBool(W_TOKEN( val ),
true) )
286 case W_TOKEN( smallCaps ):
288 if( rAttribs.
getBool(W_TOKEN( val ),
true) )
294 case W_TOKEN(vertAlign):
298 sal_Int32 nVal = rAttribs.
getToken(W_TOKEN(val), 0);
299 if (nVal == XML_superscript)
301 else if (nVal == XML_subscript)
308 case OOX_TOKEN(w14, glow):
309 case OOX_TOKEN(w14, shadow):
311 case OOX_TOKEN(w14, textOutline):
312 case OOX_TOKEN(w14, textFill):
313 case OOX_TOKEN(w14, scene3d):
314 case OOX_TOKEN(w14, props3d):
315 case OOX_TOKEN(w14, ligatures):
316 case OOX_TOKEN(w14, numForm):
317 case OOX_TOKEN(w14, numSpacing):
318 case OOX_TOKEN(w14, stylisticSets):
319 case OOX_TOKEN(w14, cntxtAlts):
325 SAL_WARN(
"oox",
"TextCharacterPropertiesContext::onCreateContext: unhandled element: " << getBaseToken(aElementToken));
OptValue< LineProperties > moTextOutlineProperties
OptValue< bool > moUnderlineFillFollowText
OptValue< bool > moUnderlineLineFollowText
OptValue< sal_Int32 > moBaseline
OptValue< bool > getBool(sal_Int32 nAttrToken) const
Returns the boolean value of the specified attribute.
OptValue< OUString > moLang
OptValue< sal_Int32 > getInteger(sal_Int32 nAttrToken) const
Returns the 32-bit signed integer value of the specified attribute (decimal).
bool mbHasVisualRunProperties
Set if there was a property set that alters run visually during import.
OptValue< sal_Int32 > moFillType
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
OptValue< OUString > getString(sal_Int32 nAttrToken) const
Returns the string value of the specified attribute.
PropertyMap maHyperlinkPropertyMap
oox::drawingml::Color getHighlightColor(sal_Int32 nAttrToken) const
Returns the Color object of highlight of the text.
TextCharacterProperties & mrTextCharacterProperties
std::vector< css::beans::PropertyValue > maTextEffectsProperties
void set(const Type &rValue)
FillProperties maFillProperties
bool hasAttribute(sal_Int32 nAttrToken) const
Returns true, if the specified attribute is present.
virtual ::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
OptValue< sal_Int32 > moSpacing
OptValue< sal_Int32 > moCaseMap
OptValue< sal_Int32 > moUnderline
Context handler for elements that contain a color value element (a:scrgbClr, a:srgbClr, a:hslClr, a:sysClr, a:schemeClr, a:prstClr).
OptValue< bool > moItalic
TextFont maLatinThemeFont
void setAttributes(const AttributeList &rAttribs)
Sets attributes from the passed attribute list.
Provides access to attribute values of an element.
OptValue< sal_Int32 > moHeight
exports com.sun.star. reflection
OptValue< sal_Int32 > getIntegerHex(sal_Int32 nAttrToken) const
Returns the 32-bit signed integer value of the specified attribute (hexadecimal). ...
void setSrgbClr(sal_Int32 nRgb)
Sets an RGB value (hexadecimal RRGGBB) from the a:srgbClr element.
exports com.sun.star. lang
TextFont maComplexThemeFont
Context handler for elements that contain a fill property element (a:noFill, a:solidFill, a:gradFill, a:pattFill, a:blipFill, a:grpFill).
const css::uno::Reference< css::xml::sax::XFastAttributeList > & getFastAttributeList() const
Returns the wrapped com.sun.star.xml.sax.XFastAttributeList object.
TextCharacterPropertiesContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttribs, TextCharacterProperties &rTextCharacterProperties)
OptValue< sal_Int32 > moStrikeout
::oox::core::ContextHandlerRef createFillContext(::oox::core::ContextHandler2Helper const &rParent, sal_Int32 nElement, const ::oox::AttributeList &rAttribs, FillProperties &rFillProps)
#define SAL_WARN(area, stream)
Color maFillColor
Fill type (OOXML token).
Helper class that provides a context stack.
virtual ~TextCharacterPropertiesContext() override
OptValue< sal_Int32 > getToken(sal_Int32 nAttrToken) const
Returns the token identifier of the value of the specified attribute.
TextFont maAsianThemeFont