23#include <com/sun/star/text/ChapterFormat.hpp>
40using ::com::sun::star::beans::PropertyValue;
41using ::com::sun::star::uno::Reference;
42using ::com::sun::star::uno::Sequence;
50 (bT ? OUString(
"TokenEntryNumber")
51 : OUString(
"TokenChapterInfo")),
53 nChapterInfo(ChapterFormat::NAME_NUMBER),
54 bChapterInfoOK(false),
57 bOutlineLevelOK(false)
79 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
84 switch(aIter.getToken())
133 bool bConvert(
false );
136 sal_Int32 nBuild( 0 );
137 const bool bBuildIdFound =
GetImport().getBuildIds( nUPD, nBuild );
138 if (
GetImport().IsTextDocInOOoFileFormat() ||
140 ( nUPD== 680 || nUPD == 645 || nUPD == 641 ) ) )
163 css::uno::Sequence<css::beans::PropertyValue> & rValues)
169 auto pValues = rValues.getArray();
const PropertyValue * pValues
const SvXMLEnumMapEntry< sal_uInt16 > aChapterDisplayMap[]
SvXMLImport & GetImport()
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...
XMLIndexChapterInfoEntryContext(SvXMLImport &rImport, XMLIndexTemplateContext &rTemplate, bool bTOC)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
process parameters
virtual void FillPropertyValues(css::uno::Sequence< css::beans::PropertyValue > &rValues) override
fill property values for this template entry
virtual ~XMLIndexChapterInfoEntryContext() override
Import index entry templates.
virtual void FillPropertyValues(css::uno::Sequence< css::beans::PropertyValue > &rValues)
fill property values for this template entry
OUString m_sCharStyleName
Import index entry templates.
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:
@ XML_PLAIN_NUMBER_AND_NAME
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)