23#include <com/sun/star/style/DropCapFormat.hpp>
42 const Reference< xml::sax::XFastAttributeList >& xAttrList )
44 DropCapFormat aFormat;
45 bool bWholeWord =
false;
50 switch( aIter.getToken() )
55 aFormat.Lines = nTmp < 2 ? 0 : static_cast<sal_Int8>(nTmp);
67 aFormat.Count =
static_cast<sal_Int8>(nTmp);
72 if (
GetImport().GetMM100UnitConverter().convertMeasureToCore(
73 nTmp, aIter.toView(), 0 ))
75 aFormat.Distance =
static_cast<sal_uInt16
>(nTmp);
88 if( aFormat.Lines > 1 && aFormat.Count < 1 )
97 SvXMLImport& rImport, sal_Int32 nElement,
98 const Reference< xml::sax::XFastAttributeList > & xAttrList,
100 sal_Int32 nWholeWordIdx,
101 ::std::vector< XMLPropertyState > &rProps ) :
103 aWholeWordProp( nWholeWordIdx )
SvXMLImport & GetImport()
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 ...
::std::vector< XMLPropertyState > & rProperties
void ProcessAttrs(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
XMLTextDropCapImportContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, const XMLPropertyState &rProp, sal_Int32 nWholeWOrdIdx, ::std::vector< XMLPropertyState > &rProps)
virtual ~XMLTextDropCapImportContext() override
XMLPropertyState aWholeWordProp
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 ...
static bool convertNumber(sal_Int32 &rValue, std::u16string_view aString, sal_Int32 nMin=SAL_MIN_INT32, sal_Int32 nMax=SAL_MAX_INT32)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Handling of tokens in XML:
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
compare eToken to the string
Smart struct to transport an Any with an index to the appropriate property-name.
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)