21#include <com/sun/star/beans/XPropertySet.hpp>
30#include <rtl/ustring.hxx>
36using ::com::sun::star::beans::XPropertySet;
37using ::com::sun::star::uno::Reference;
38using ::com::sun::star::uno::Any;
43 Reference<XPropertySet> & rPropSet,
46, m_UseStyles(eUseStyles)
49, rIndexPropertySet(rPropSet)
59 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
102 const css::uno::Reference<css::xml::sax::XFastAttributeList>& xAttrList)
122 if (!styleName.isEmpty())
124 OUString
const convertedStyleName(
GetImport().GetStyleDisplayName(
126 rIndexPropertySet->setPropertyValue(
"CreateFromParagraphStyle", css::uno::Any(convertedStyleName));
This class deliberately does not support XWeak, to improve performance when loading large documents.
SvXMLImport & GetImport()
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) 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 ...
css::uno::Reference< css::beans::XPropertySet > & rIndexPropertySet
tab stops relative to margin or indent?
bool bRelativeTabs
chapter-wise or document index?
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual ~XMLIndexSourceBaseContext() override
XMLIndexSourceBaseContext(SvXMLImport &rImport, css::uno::Reference< css::beans::XPropertySet > &rPropSet, UseStyles eUseStyles)
virtual void ProcessAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &aIter)
Import <test:index-source-styles> elements and their children.
Import index title templates.
static bool convertBool(bool &rBool, std::u16string_view rString)
sal_Int32 getToken() const
std::string_view toView() const
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Handling of tokens in XML:
@ XML_RELATIVE_TAB_STOP_POSITION
@ XML_INDEX_SOURCE_STYLES
@ XML_INDEX_TITLE_TEMPLATE
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
compare eToken to the string
OUString GetIndexSourceStyleName(css::uno::Reference< css::xml::sax::XFastAttributeList > const &xAttrList)
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)