42 SvXMLImport& rImport, sal_Int32 nElement,
43 const uno::Reference<xml::sax::XFastAttributeList>& xAttrList,
const XMLPropertyState& rProp,
44 std::vector<XMLPropertyState>& rProps)
46 , mnRootElement(nElement)
50 switch (aIter.getToken())
63 const OUString aValue = aIter.toString();
64 if (aValue ==
u"theme")
76css::uno::Reference<css::xml::sax::XFastContextHandler>
78 sal_Int32 nElement,
const css::uno::Reference<css::xml::sax::XFastAttributeList>& xAttrList)
83 sal_Int16 nTransformationValue = 0;
86 switch (aIter.getToken())
90 const OUString aValue = aIter.toString();
91 if (aValue ==
u"tint")
93 else if (aValue ==
u"shade")
95 else if (aValue ==
u"lumoff")
97 else if (aValue ==
u"lummod")
105 nTransformationValue =
static_cast<sal_Int16
>(
nValue);
SvXMLEnumMapEntry< sal_Int16 > const pXML_ThemeColor_Enum[]
static bool convertEnum(EnumT &rEnum, std::u16string_view rValue, const SvXMLEnumMapEntry< EnumT > *pMap)
convert string to enum using given enum map, if the enum is not found in the map, this method will re...
css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
XMLComplexColorContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, const XMLPropertyState &rProp, std::vector< XMLPropertyState > &rProps)
model::ComplexColor maComplexColor
void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
void SetInsert(bool bIns)
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
void setSchemeColor(ThemeColorType eType)
void setType(ColorType eType)
void addTransformation(Transformation const &rTransform)
ThemeColorType getSchemeType() const
static bool convertNumber(sal_Int32 &rValue, std::u16string_view aString, sal_Int32 nMin=SAL_MIN_INT32, sal_Int32 nMax=SAL_MAX_INT32)
uno::Reference< util::XComplexColor > createXComplexColor(model::ComplexColor const &rColor)
constexpr ThemeColorType convertToThemeColorType(sal_Int32 nIndex)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Handling of tokens in XML:
Smart struct to transport an Any with an index to the appropriate property-name.
#define XMLOFF_WARN_UNKNOWN_ELEMENT(area, token)
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)