22#include <rtl/ustring.hxx>
32#include <com/sun/star/frame/XModel.hpp>
33#include <com/sun/star/xml/sax/XAttributeList.hpp>
34#include <com/sun/star/text/XTextContent.hpp>
35#include <com/sun/star/beans/XPropertySet.hpp>
36#include <com/sun/star/lang/XMultiServiceFactory.hpp>
37#include <com/sun/star/text/XFootnote.hpp>
51, mbListContextPushed(false)
58 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
67 bool bIsEndnote =
false;
78 Reference<XInterface> xIfc =
xFactory->createInstance(
80 OUString(
"com.sun.star.text.Endnote") :
81 OUString(
"com.sun.star.text.Footnote") );
84 Reference<XTextContent> xTextContent(xIfc, UNO_QUERY);
93 Reference<XPropertySet> xPropertySet(xTextContent, UNO_QUERY);
94 Any aAny =xPropertySet->getPropertyValue(
"ReferenceId");
106 Reference<XText> xText(xTextContent, UNO_QUERY);
115 Reference<XFootnote> xNote(xTextContent, UNO_QUERY);
136 sal_Int32 nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
This class deliberately does not support XWeak, to improve performance when loading large documents.
SvXMLImport & GetImport()
import foot- and endnote body elements (<text:footnote-body>)
void InsertFootnoteID(const OUString &sXMLId, sal_Int16 nAPIId)
insert new footnote ID.
void InsertTextContent(css::uno::Reference< css::text::XTextContent > const &xContent)
css::uno::Reference< css::text::XTextCursor > & GetCursor()
void PopListContext()
pop the list context stack
void PushListContext()
push a list context on the list context stack
void SetCursor(const css::uno::Reference< css::text::XTextCursor > &rCursor)
Reference< XSingleServiceFactory > xFactory
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
#define XMLOFF_WARN_UNKNOWN_ELEMENT(area, token)
#define XML_ELEMENT(prefix, name)