23 #include <com/sun/star/text/ChapterFormat.hpp>
40 using ::com::sun::star::beans::PropertyValue;
41 using ::com::sun::star::uno::Reference;
42 using ::com::sun::star::uno::Sequence;
43 using ::com::sun::star::xml::sax::XAttributeList;
51 (bT ? OUString(
"TokenEntryNumber")
52 : OUString(
"TokenChapterInfo")),
54 nChapterInfo(ChapterFormat::NAME_NUMBER),
55 bChapterInfoOK(
false),
58 bOutlineLevelOK(
false)
80 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
85 switch(aIter.getToken())
134 bool bConvert(
false );
137 sal_Int32 nBuild( 0 );
139 if (
GetImport().IsTextDocInOOoFileFormat() ||
141 ( nUPD== 680 || nUPD == 645 || nUPD == 641 ) ) )
164 css::uno::Sequence<css::beans::PropertyValue> & rValues)
170 auto pValues = rValues.getArray();
175 pValues[nIndex].Name =
"ChapterFormat";
181 pValues[nIndex].Name =
"ChapterLevel";
XMLIndexChapterInfoEntryContext(SvXMLImport &rImport, XMLIndexTemplateContext &rTemplate, bool bTOC)
virtual void FillPropertyValues(css::uno::Sequence< css::beans::PropertyValue > &rValues)
fill property values for this template entry
SvXMLImport & GetImport()
Import index entry templates.
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
#define XMLOFF_WARN_UNKNOWN(area, rIter)
virtual void FillPropertyValues(css::uno::Sequence< css::beans::PropertyValue > &rValues) override
fill property values for this template entry
bool getBuildIds(sal_Int32 &rUPD, sal_Int32 &rBuild) const
returns the upd and build id (f.e.
virtual ~XMLIndexChapterInfoEntryContext() override
OUString m_sCharStyleName
Import index entry templates.
const PropertyValue * pValues
Handling of tokens in XML:
#define XML_ELEMENT(prefix, name)
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...
const SvXMLEnumMapEntry< sal_uInt16 > aChapterDisplayMap[]
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
process parameters
bool m_bDetectedRangeSegmentation false
static bool convertNumber(sal_Int32 &rValue, std::u16string_view aString, sal_Int32 nMin=SAL_MIN_INT32, sal_Int32 nMax=SAL_MAX_INT32)