16#include <librevenge/librevenge.h>
18#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
34class XComponentContext;
38class XUriReferenceFactory;
44class XMLImportContext;
68class XMLImport :
public cppu::WeakImplHelper<css::xml::sax::XDocumentHandler>
91 const css::uno::Reference<css::uno::XComponentContext>&
mxContext;
98 XMLImport(
const css::uno::Reference<css::uno::XComponentContext>& xContext,
99 librevenge::RVNGTextInterface& rGenerator,
const OUString& rURL,
100 const css::uno::Sequence<css::beans::PropertyValue>& rDescriptor,
101 const std::vector<FixedLayoutPage>& rPageMetafiles);
105 const css::uno::Reference<css::xml::sax::XAttributeList>& xAttribs);
115 std::map<OUString, librevenge::RVNGPropertyList>&
GetTextStyles();
117 std::map<OUString, librevenge::RVNGPropertyList>&
GetCellStyles();
119 std::map<OUString, librevenge::RVNGPropertyList>&
GetRowStyles();
120 std::map<OUString, librevenge::RVNGPropertyList>&
GetTableStyles();
122 std::map<OUString, librevenge::RVNGPropertyList>&
GetPageLayouts();
125 const librevenge::RVNGPropertyList&
GetMetaData()
const;
131 void HandlePageSpan(
const librevenge::RVNGPropertyList& rPropertyList);
138 const css::uno::Reference<css::xml::sax::XAttributeList>& xAttribs)
override;
139 void SAL_CALL
endElement(
const OUString& rName)
override;
140 void SAL_CALL
characters(
const OUString& rChars)
override;
144 setDocumentLocator(
const css::uno::Reference<css::xml::sax::XLocator>& xLocator)
override;
ODT export feeds this class to make librevenge calls.
void SAL_CALL endDocument() override
std::map< OUString, librevenge::RVNGPropertyList > maAutomaticGraphicStyles
const css::uno::Reference< css::uno::XComponentContext > & mxContext
std::map< OUString, librevenge::RVNGPropertyList > maParagraphStyles
void HandlePageSpan(const librevenge::RVNGPropertyList &rPropertyList)
XMLImport(const css::uno::Reference< css::uno::XComponentContext > &xContext, librevenge::RVNGTextInterface &rGenerator, const OUString &rURL, const css::uno::Sequence< css::beans::PropertyValue > &rDescriptor, const std::vector< FixedLayoutPage > &rPageMetafiles)
std::map< OUString, librevenge::RVNGPropertyList > & GetParagraphStyles()
std::map< OUString, librevenge::RVNGPropertyList > maRowStyles
std::map< OUString, librevenge::RVNGPropertyList > maTextStyles
std::map< OUString, librevenge::RVNGPropertyList > maAutomaticRowStyles
std::map< OUString, librevenge::RVNGPropertyList > & GetPageLayouts()
void SAL_CALL startElement(const OUString &rName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
css::uno::Reference< css::uri::XUriReferenceFactory > mxUriReferenceFactory
std::map< OUString, librevenge::RVNGPropertyList > & GetTextStyles()
std::map< OUString, librevenge::RVNGPropertyList > & GetCellStyles()
rtl::Reference< XMLImportContext > CreateContext(std::u16string_view rName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs)
std::map< OUString, librevenge::RVNGPropertyList > & GetColumnStyles()
std::map< OUString, librevenge::RVNGPropertyList > & GetAutomaticRowStyles()
std::map< OUString, librevenge::RVNGPropertyList > maCellStyles
const librevenge::RVNGPropertyList & GetMetaData() const
std::map< OUString, librevenge::RVNGPropertyList > & GetAutomaticTableStyles()
std::map< OUString, librevenge::RVNGPropertyList > & GetAutomaticParagraphStyles()
std::map< OUString, librevenge::RVNGPropertyList > maColumnStyles
std::map< OUString, librevenge::RVNGPropertyList > & GetTableStyles()
std::map< OUString, librevenge::RVNGPropertyList > & GetAutomaticColumnStyles()
const css::uno::Reference< css::uno::XComponentContext > & GetComponentContext() const
const std::vector< FixedLayoutPage > & GetPageMetafiles() const
const std::vector< FixedLayoutPage > & mrPageMetafiles
void SAL_CALL ignorableWhitespace(const OUString &rWhitespaces) override
std::map< OUString, librevenge::RVNGPropertyList > maAutomaticColumnStyles
std::map< OUString, librevenge::RVNGPropertyList > & GetGraphicStyles()
librevenge::RVNGPropertyList maMetaData
Author, date, etc – overwrites what would be from the document out of the box.
void SAL_CALL startDocument() override
std::map< OUString, librevenge::RVNGPropertyList > maAutomaticParagraphStyles
std::map< OUString, librevenge::RVNGPropertyList > & GetMasterStyles()
void SAL_CALL setDocumentLocator(const css::uno::Reference< css::xml::sax::XLocator > &xLocator) override
std::map< OUString, librevenge::RVNGPropertyList > & GetRowStyles()
std::map< OUString, librevenge::RVNGPropertyList > maAutomaticCellStyles
std::map< OUString, librevenge::RVNGPropertyList > & GetAutomaticCellStyles()
librevenge::RVNGTextInterface & mrGenerator
bool GetIsInPageSpan() const
std::map< OUString, librevenge::RVNGPropertyList > maTableStyles
std::map< OUString, librevenge::RVNGPropertyList > & GetAutomaticTextStyles()
PopupState FillPopupData(const OUString &rURL, librevenge::RVNGPropertyList &rPropList)
std::map< OUString, librevenge::RVNGPropertyList > & GetAutomaticGraphicStyles()
std::map< OUString, librevenge::RVNGPropertyList > maAutomaticTextStyles
std::map< OUString, librevenge::RVNGPropertyList > maPageLayouts
void SAL_CALL processingInstruction(const OUString &rTarget, const OUString &rData) override
std::map< OUString, librevenge::RVNGPropertyList > maMasterStyles
void SAL_CALL characters(const OUString &rChars) override
void SAL_CALL endElement(const OUString &rName) override
std::map< OUString, librevenge::RVNGPropertyList > maGraphicStyles
std::stack< rtl::Reference< XMLImportContext > > maContexts
librevenge::RVNGPropertyListVector maCoverImages
std::map< OUString, librevenge::RVNGPropertyList > maAutomaticTableStyles
const librevenge::RVNGPropertyListVector & GetCoverImages() const
librevenge::RVNGTextInterface & GetGenerator() const
PopupState
States describing the result of a link -> popup conversion.
@ Consumed
The relative link was converted to a popup.
@ NotConsumed
The absolute link was not handled.
Contains info about a fixed-layout page.
std::vector< OUString > aChapterNames
css::uno::Sequence< sal_Int8 > aMetafile