LibreOffice Module writerperfect (master) 1
Public Member Functions | Private Attributes | List of all members
writerperfect::exp::XMLImport Class Reference

ODT export feeds this class to make librevenge calls. More...

#include <xmlimp.hxx>

Inheritance diagram for writerperfect::exp::XMLImport:
[legend]
Collaboration diagram for writerperfect::exp::XMLImport:
[legend]

Public Member Functions

 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)
 
rtl::Reference< XMLImportContextCreateContext (std::u16string_view rName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs)
 
librevenge::RVNGTextInterface & GetGenerator () const
 
std::map< OUString, librevenge::RVNGPropertyList > & GetAutomaticTextStyles ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetAutomaticParagraphStyles ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetAutomaticCellStyles ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetAutomaticColumnStyles ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetAutomaticRowStyles ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetAutomaticTableStyles ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetAutomaticGraphicStyles ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetTextStyles ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetParagraphStyles ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetCellStyles ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetColumnStyles ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetRowStyles ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetTableStyles ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetGraphicStyles ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetPageLayouts ()
 
std::map< OUString, librevenge::RVNGPropertyList > & GetMasterStyles ()
 
const librevenge::RVNGPropertyListVector & GetCoverImages () const
 
const librevenge::RVNGPropertyList & GetMetaData () const
 
PopupState FillPopupData (const OUString &rURL, librevenge::RVNGPropertyList &rPropList)
 
const std::vector< FixedLayoutPage > & GetPageMetafiles () const
 
const css::uno::Reference< css::uno::XComponentContext > & GetComponentContext () const
 
bool GetIsInPageSpan () const
 
void HandlePageSpan (const librevenge::RVNGPropertyList &rPropertyList)
 
void SAL_CALL startDocument () override
 
void SAL_CALL endDocument () override
 
void SAL_CALL startElement (const OUString &rName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
 
void SAL_CALL endElement (const OUString &rName) override
 
void SAL_CALL characters (const OUString &rChars) override
 
void SAL_CALL ignorableWhitespace (const OUString &rWhitespaces) override
 
void SAL_CALL processingInstruction (const OUString &rTarget, const OUString &rData) override
 
void SAL_CALL setDocumentLocator (const css::uno::Reference< css::xml::sax::XLocator > &xLocator) override
 

Private Attributes

librevenge::RVNGTextInterface & mrGenerator
 
std::stack< rtl::Reference< XMLImportContext > > maContexts
 
std::map< OUString, librevenge::RVNGPropertyList > maAutomaticTextStyles
 
std::map< OUString, librevenge::RVNGPropertyList > maTextStyles
 
std::map< OUString, librevenge::RVNGPropertyList > maAutomaticParagraphStyles
 
std::map< OUString, librevenge::RVNGPropertyList > maParagraphStyles
 
std::map< OUString, librevenge::RVNGPropertyList > maAutomaticCellStyles
 
std::map< OUString, librevenge::RVNGPropertyList > maCellStyles
 
std::map< OUString, librevenge::RVNGPropertyList > maAutomaticColumnStyles
 
std::map< OUString, librevenge::RVNGPropertyList > maColumnStyles
 
std::map< OUString, librevenge::RVNGPropertyList > maAutomaticRowStyles
 
std::map< OUString, librevenge::RVNGPropertyList > maRowStyles
 
std::map< OUString, librevenge::RVNGPropertyList > maAutomaticTableStyles
 
std::map< OUString, librevenge::RVNGPropertyList > maTableStyles
 
std::map< OUString, librevenge::RVNGPropertyList > maAutomaticGraphicStyles
 
std::map< OUString, librevenge::RVNGPropertyList > maGraphicStyles
 
std::map< OUString, librevenge::RVNGPropertyList > maPageLayouts
 
std::map< OUString, librevenge::RVNGPropertyList > maMasterStyles
 
librevenge::RVNGPropertyListVector maCoverImages
 
librevenge::RVNGPropertyList maMetaData
 Author, date, etc – overwrites what would be from the document out of the box. More...
 
const css::uno::Reference< css::uno::XComponentContext > & mxContext
 
css::uno::Reference< css::uri::XUriReferenceFactory > mxUriReferenceFactory
 
OUString maMediaDir
 
bool mbIsInPageSpan
 
const std::vector< FixedLayoutPage > & mrPageMetafiles
 

Detailed Description

ODT export feeds this class to make librevenge calls.

Definition at line 68 of file xmlimp.hxx.

Constructor & Destructor Documentation

◆ XMLImport()

writerperfect::exp::XMLImport::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 
)

Member Function Documentation

◆ characters()

void writerperfect::exp::XMLImport::characters ( const OUString &  rChars)
override

Definition at line 574 of file xmlimp.cxx.

References maContexts.

◆ CreateContext()

rtl::Reference< XMLImportContext > writerperfect::exp::XMLImport::CreateContext ( std::u16string_view  rName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttribs 
)

Definition at line 454 of file xmlimp.cxx.

References u.

Referenced by writerperfect::exp::XMLImportContext::CreateChildContext(), and startElement().

◆ endDocument()

void writerperfect::exp::XMLImport::endDocument ( )
override

Definition at line 543 of file xmlimp.cxx.

References mrGenerator.

◆ endElement()

void writerperfect::exp::XMLImport::endElement ( const OUString &  rName)
override

Definition at line 563 of file xmlimp.cxx.

References maContexts.

◆ FillPopupData()

PopupState writerperfect::exp::XMLImport::FillPopupData ( const OUString &  rURL,
librevenge::RVNGPropertyList &  rPropList 
)

◆ GetAutomaticCellStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetAutomaticCellStyles ( )

Definition at line 474 of file xmlimp.cxx.

References maAutomaticCellStyles.

◆ GetAutomaticColumnStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetAutomaticColumnStyles ( )

Definition at line 479 of file xmlimp.cxx.

References maAutomaticColumnStyles.

◆ GetAutomaticGraphicStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetAutomaticGraphicStyles ( )

Definition at line 494 of file xmlimp.cxx.

References maAutomaticGraphicStyles.

◆ GetAutomaticParagraphStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetAutomaticParagraphStyles ( )

Definition at line 469 of file xmlimp.cxx.

References maAutomaticParagraphStyles.

◆ GetAutomaticRowStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetAutomaticRowStyles ( )

Definition at line 484 of file xmlimp.cxx.

References maAutomaticRowStyles.

◆ GetAutomaticTableStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetAutomaticTableStyles ( )

Definition at line 489 of file xmlimp.cxx.

References maAutomaticTableStyles.

◆ GetAutomaticTextStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetAutomaticTextStyles ( )

Definition at line 464 of file xmlimp.cxx.

References maAutomaticTextStyles.

◆ GetCellStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetCellStyles ( )

Definition at line 509 of file xmlimp.cxx.

References maCellStyles.

◆ GetColumnStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetColumnStyles ( )

Definition at line 514 of file xmlimp.cxx.

References maColumnStyles.

◆ GetComponentContext()

const uno::Reference< uno::XComponentContext > & writerperfect::exp::XMLImport::GetComponentContext ( ) const

Definition at line 448 of file xmlimp.cxx.

References mxContext.

◆ GetCoverImages()

const librevenge::RVNGPropertyListVector & writerperfect::exp::XMLImport::GetCoverImages ( ) const

Definition at line 384 of file xmlimp.cxx.

References maCoverImages.

◆ GetGenerator()

librevenge::RVNGTextInterface & writerperfect::exp::XMLImport::GetGenerator ( ) const

◆ GetGraphicStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetGraphicStyles ( )

Definition at line 526 of file xmlimp.cxx.

References maGraphicStyles.

◆ GetIsInPageSpan()

bool writerperfect::exp::XMLImport::GetIsInPageSpan ( ) const
inline

Definition at line 130 of file xmlimp.hxx.

References mbIsInPageSpan.

Referenced by HandlePageSpan().

◆ GetMasterStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetMasterStyles ( )

Definition at line 536 of file xmlimp.cxx.

References maMasterStyles.

Referenced by HandlePageSpan().

◆ GetMetaData()

const librevenge::RVNGPropertyList & writerperfect::exp::XMLImport::GetMetaData ( ) const

Definition at line 389 of file xmlimp.cxx.

References maMetaData.

◆ GetPageLayouts()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetPageLayouts ( )

Definition at line 531 of file xmlimp.cxx.

References maPageLayouts.

Referenced by HandlePageSpan().

◆ GetPageMetafiles()

const std::vector< FixedLayoutPage > & writerperfect::exp::XMLImport::GetPageMetafiles ( ) const

Definition at line 446 of file xmlimp.cxx.

References mrPageMetafiles.

◆ GetParagraphStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetParagraphStyles ( )

Definition at line 504 of file xmlimp.cxx.

References maParagraphStyles.

◆ GetRowStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetRowStyles ( )

Definition at line 519 of file xmlimp.cxx.

References maRowStyles.

◆ GetTableStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetTableStyles ( )

Definition at line 521 of file xmlimp.cxx.

References maTableStyles.

◆ GetTextStyles()

std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetTextStyles ( )

Definition at line 499 of file xmlimp.cxx.

References maTextStyles.

◆ HandlePageSpan()

void writerperfect::exp::XMLImport::HandlePageSpan ( const librevenge::RVNGPropertyList &  rPropertyList)

◆ ignorableWhitespace()

void writerperfect::exp::XMLImport::ignorableWhitespace ( const OUString &  rWhitespaces)
override

Definition at line 580 of file xmlimp.cxx.

◆ processingInstruction()

void writerperfect::exp::XMLImport::processingInstruction ( const OUString &  rTarget,
const OUString &  rData 
)
override

Definition at line 582 of file xmlimp.cxx.

◆ setDocumentLocator()

void writerperfect::exp::XMLImport::setDocumentLocator ( const css::uno::Reference< css::xml::sax::XLocator > &  xLocator)
override

Definition at line 584 of file xmlimp.cxx.

◆ startDocument()

void writerperfect::exp::XMLImport::startDocument ( )
override

Definition at line 541 of file xmlimp.cxx.

References mrGenerator.

◆ startElement()

void writerperfect::exp::XMLImport::startElement ( const OUString &  rName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttribs 
)
override

Definition at line 545 of file xmlimp.cxx.

References CreateContext(), and maContexts.

Member Data Documentation

◆ maAutomaticCellStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maAutomaticCellStyles
private

Definition at line 76 of file xmlimp.hxx.

Referenced by GetAutomaticCellStyles().

◆ maAutomaticColumnStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maAutomaticColumnStyles
private

Definition at line 78 of file xmlimp.hxx.

Referenced by GetAutomaticColumnStyles().

◆ maAutomaticGraphicStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maAutomaticGraphicStyles
private

Definition at line 84 of file xmlimp.hxx.

Referenced by GetAutomaticGraphicStyles().

◆ maAutomaticParagraphStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maAutomaticParagraphStyles
private

Definition at line 74 of file xmlimp.hxx.

Referenced by GetAutomaticParagraphStyles().

◆ maAutomaticRowStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maAutomaticRowStyles
private

Definition at line 80 of file xmlimp.hxx.

Referenced by GetAutomaticRowStyles().

◆ maAutomaticTableStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maAutomaticTableStyles
private

Definition at line 82 of file xmlimp.hxx.

Referenced by GetAutomaticTableStyles().

◆ maAutomaticTextStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maAutomaticTextStyles
private

Definition at line 72 of file xmlimp.hxx.

Referenced by GetAutomaticTextStyles().

◆ maCellStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maCellStyles
private

Definition at line 77 of file xmlimp.hxx.

Referenced by GetCellStyles().

◆ maColumnStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maColumnStyles
private

Definition at line 79 of file xmlimp.hxx.

Referenced by GetColumnStyles().

◆ maContexts

std::stack<rtl::Reference<XMLImportContext> > writerperfect::exp::XMLImport::maContexts
private

Definition at line 71 of file xmlimp.hxx.

Referenced by characters(), endElement(), and startElement().

◆ maCoverImages

librevenge::RVNGPropertyListVector writerperfect::exp::XMLImport::maCoverImages
private

Definition at line 88 of file xmlimp.hxx.

Referenced by GetCoverImages(), and XMLImport().

◆ maGraphicStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maGraphicStyles
private

Definition at line 85 of file xmlimp.hxx.

Referenced by GetGraphicStyles().

◆ maMasterStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maMasterStyles
private

Definition at line 87 of file xmlimp.hxx.

Referenced by GetMasterStyles().

◆ maMediaDir

OUString writerperfect::exp::XMLImport::maMediaDir
private

Definition at line 93 of file xmlimp.hxx.

Referenced by FillPopupData(), and XMLImport().

◆ maMetaData

librevenge::RVNGPropertyList writerperfect::exp::XMLImport::maMetaData
private

Author, date, etc – overwrites what would be from the document out of the box.

Definition at line 90 of file xmlimp.hxx.

Referenced by GetMetaData(), and XMLImport().

◆ maPageLayouts

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maPageLayouts
private

Definition at line 86 of file xmlimp.hxx.

Referenced by GetPageLayouts().

◆ maParagraphStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maParagraphStyles
private

Definition at line 75 of file xmlimp.hxx.

Referenced by GetParagraphStyles().

◆ maRowStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maRowStyles
private

Definition at line 81 of file xmlimp.hxx.

Referenced by GetRowStyles().

◆ maTableStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maTableStyles
private

Definition at line 83 of file xmlimp.hxx.

Referenced by GetTableStyles().

◆ maTextStyles

std::map<OUString, librevenge::RVNGPropertyList> writerperfect::exp::XMLImport::maTextStyles
private

Definition at line 73 of file xmlimp.hxx.

Referenced by GetTextStyles().

◆ mbIsInPageSpan

bool writerperfect::exp::XMLImport::mbIsInPageSpan
private

Definition at line 94 of file xmlimp.hxx.

Referenced by GetIsInPageSpan(), and HandlePageSpan().

◆ mrGenerator

librevenge::RVNGTextInterface& writerperfect::exp::XMLImport::mrGenerator
private

Definition at line 70 of file xmlimp.hxx.

Referenced by endDocument(), GetGenerator(), and startDocument().

◆ mrPageMetafiles

const std::vector<FixedLayoutPage>& writerperfect::exp::XMLImport::mrPageMetafiles
private

Definition at line 95 of file xmlimp.hxx.

Referenced by GetPageMetafiles().

◆ mxContext

const css::uno::Reference<css::uno::XComponentContext>& writerperfect::exp::XMLImport::mxContext
private

Definition at line 91 of file xmlimp.hxx.

Referenced by GetComponentContext(), and XMLImport().

◆ mxUriReferenceFactory

css::uno::Reference<css::uri::XUriReferenceFactory> writerperfect::exp::XMLImport::mxUriReferenceFactory
private

Definition at line 92 of file xmlimp.hxx.

Referenced by FillPopupData(), and XMLImport().


The documentation for this class was generated from the following files: