23#include <com/sun/star/beans/XPropertySet.hpp>
24#include <com/sun/star/container/XIndexReplace.hpp>
32#include <com/sun/star/uno/Sequence.hxx>
33#include <rtl/ustring.hxx>
38using ::com::sun::star::beans::XPropertySet;
39using ::com::sun::star::uno::Reference;
40using ::com::sun::star::uno::Sequence;
41using ::com::sun::star::uno::Any;
42using ::com::sun::star::container::XIndexReplace;
47 SvXMLImport& rImport, Reference<XPropertySet> & rPropSet)
49 , rTOCPropertySet(rPropSet)
60 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
69 nTmp, aIter.toView(), 1,
70 GetImport().GetTextImport()->GetChapterNumbering()->
89 Sequence<OUString> aStyleNamesSequence(
nCount);
90 auto aStyleNamesSequenceRange = asNonConstRange(aStyleNamesSequence);
93 aStyleNamesSequenceRange[
i] =
GetImport().GetStyleDisplayName(
100 Reference<XIndexReplace> xIndexReplace;
101 aAny >>= xIndexReplace;
110 css::uno::Reference<css::xml::sax::XFastAttributeList>
const& xAttrList)
116 return rIter.toString();
126 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
133 if (!styleName.isEmpty())
This class deliberately does not support XWeak, to improve performance when loading large documents.
SvXMLImport & GetImport()
SvXMLImportContext(SvXMLImport &rImport)
A contexts constructor does anything that is required if an element starts.
::std::vector< OUString > aStyleNames
style names for this level
virtual ~XMLIndexTOCStylesContext() override
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 ...
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
XMLIndexTOCStylesContext(SvXMLImport &rImport, css::uno::Reference< css::beans::XPropertySet > &rPropSet)
sal_Int32 nOutlineLevel
outline level
css::uno::Reference< css::beans::XPropertySet > & rTOCPropertySet
XPropertySet of the index.
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
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:
OUString GetIndexSourceStyleName(css::uno::Reference< css::xml::sax::XFastAttributeList > const &xAttrList)
#define XML_ELEMENT(prefix, name)