LibreOffice Module writerperfect (master) 1
|
ODT export feeds this class to make librevenge calls. More...
#include <xmlimp.hxx>
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< XMLImportContext > | CreateContext (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 |
ODT export feeds this class to make librevenge calls.
Definition at line 68 of file xmlimp.hxx.
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 | ||
) |
Definition at line 345 of file xmlimp.cxx.
References aMimeType, SvMemoryStream::GetData(), SvMemoryStream::GetSize(), maCoverImages, maMediaDir, maMetaData, mxContext, mxContext, mxUriReferenceFactory, and SvStream::WriteStream().
|
override |
Definition at line 574 of file xmlimp.cxx.
References maContexts.
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().
|
override |
Definition at line 543 of file xmlimp.cxx.
References mrGenerator.
|
override |
Definition at line 563 of file xmlimp.cxx.
References maContexts.
PopupState writerperfect::exp::XMLImport::FillPopupData | ( | const OUString & | rURL, |
librevenge::RVNGPropertyList & | rPropList | ||
) |
Definition at line 401 of file xmlimp.cxx.
References aMimeType, writerperfect::exp::Consumed, DBG_UNHANDLED_EXCEPTION, SvMemoryStream::GetData(), INetURLObject::GetFileExtension(), SvMemoryStream::GetSize(), writerperfect::exp::Ignore, maMediaDir, mxUriReferenceFactory, writerperfect::exp::NotConsumed, and SvStream::WriteStream().
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetAutomaticCellStyles | ( | ) |
Definition at line 474 of file xmlimp.cxx.
References maAutomaticCellStyles.
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetAutomaticColumnStyles | ( | ) |
Definition at line 479 of file xmlimp.cxx.
References maAutomaticColumnStyles.
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetAutomaticGraphicStyles | ( | ) |
Definition at line 494 of file xmlimp.cxx.
References maAutomaticGraphicStyles.
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetAutomaticParagraphStyles | ( | ) |
Definition at line 469 of file xmlimp.cxx.
References maAutomaticParagraphStyles.
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetAutomaticRowStyles | ( | ) |
Definition at line 484 of file xmlimp.cxx.
References maAutomaticRowStyles.
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetAutomaticTableStyles | ( | ) |
Definition at line 489 of file xmlimp.cxx.
References maAutomaticTableStyles.
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetAutomaticTextStyles | ( | ) |
Definition at line 464 of file xmlimp.cxx.
References maAutomaticTextStyles.
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetCellStyles | ( | ) |
Definition at line 509 of file xmlimp.cxx.
References maCellStyles.
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetColumnStyles | ( | ) |
Definition at line 514 of file xmlimp.cxx.
References maColumnStyles.
const uno::Reference< uno::XComponentContext > & writerperfect::exp::XMLImport::GetComponentContext | ( | ) | const |
Definition at line 448 of file xmlimp.cxx.
References mxContext.
const librevenge::RVNGPropertyListVector & writerperfect::exp::XMLImport::GetCoverImages | ( | ) | const |
Definition at line 384 of file xmlimp.cxx.
References maCoverImages.
librevenge::RVNGTextInterface & writerperfect::exp::XMLImport::GetGenerator | ( | ) | const |
Definition at line 462 of file xmlimp.cxx.
References mrGenerator.
Referenced by writerperfect::exp::XMLParaContext::characters(), writerperfect::exp::XMLTableContext::CreateChildContext(), writerperfect::exp::XMLParaContext::endElement(), writerperfect::exp::XMLMetaDocumentContext::endElement(), writerperfect::exp::XMLSectionContext::endElement(), writerperfect::exp::XMLTableContext::endElement(), writerperfect::exp::XMLBodyContentContext::endElement(), writerperfect::exp::XMLTextFrameContext::endElement(), HandlePageSpan(), writerperfect::exp::XMLParaContext::startElement(), writerperfect::exp::XMLSectionContext::startElement(), and writerperfect::exp::XMLTextFrameContext::startElement().
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetGraphicStyles | ( | ) |
Definition at line 526 of file xmlimp.cxx.
References maGraphicStyles.
|
inline |
Definition at line 130 of file xmlimp.hxx.
References mbIsInPageSpan.
Referenced by HandlePageSpan().
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetMasterStyles | ( | ) |
Definition at line 536 of file xmlimp.cxx.
References maMasterStyles.
Referenced by HandlePageSpan().
const librevenge::RVNGPropertyList & writerperfect::exp::XMLImport::GetMetaData | ( | ) | const |
Definition at line 389 of file xmlimp.cxx.
References maMetaData.
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetPageLayouts | ( | ) |
Definition at line 531 of file xmlimp.cxx.
References maPageLayouts.
Referenced by HandlePageSpan().
const std::vector< FixedLayoutPage > & writerperfect::exp::XMLImport::GetPageMetafiles | ( | ) | const |
Definition at line 446 of file xmlimp.cxx.
References mrPageMetafiles.
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetParagraphStyles | ( | ) |
Definition at line 504 of file xmlimp.cxx.
References maParagraphStyles.
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetRowStyles | ( | ) |
Definition at line 519 of file xmlimp.cxx.
References maRowStyles.
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetTableStyles | ( | ) |
Definition at line 521 of file xmlimp.cxx.
References maTableStyles.
std::map< OUString, librevenge::RVNGPropertyList > & writerperfect::exp::XMLImport::GetTextStyles | ( | ) |
Definition at line 499 of file xmlimp.cxx.
References maTextStyles.
void writerperfect::exp::XMLImport::HandlePageSpan | ( | const librevenge::RVNGPropertyList & | rPropertyList | ) |
Definition at line 586 of file xmlimp.cxx.
References GetGenerator(), GetIsInPageSpan(), GetMasterStyles(), GetPageLayouts(), and mbIsInPageSpan.
Referenced by writerperfect::exp::XMLParaContext::startElement(), and writerperfect::exp::XMLTableContext::startElement().
|
override |
Definition at line 580 of file xmlimp.cxx.
|
override |
Definition at line 582 of file xmlimp.cxx.
|
override |
Definition at line 584 of file xmlimp.cxx.
|
override |
Definition at line 541 of file xmlimp.cxx.
References mrGenerator.
|
override |
Definition at line 545 of file xmlimp.cxx.
References CreateContext(), and maContexts.
|
private |
Definition at line 76 of file xmlimp.hxx.
Referenced by GetAutomaticCellStyles().
|
private |
Definition at line 78 of file xmlimp.hxx.
Referenced by GetAutomaticColumnStyles().
|
private |
Definition at line 84 of file xmlimp.hxx.
Referenced by GetAutomaticGraphicStyles().
|
private |
Definition at line 74 of file xmlimp.hxx.
Referenced by GetAutomaticParagraphStyles().
|
private |
Definition at line 80 of file xmlimp.hxx.
Referenced by GetAutomaticRowStyles().
|
private |
Definition at line 82 of file xmlimp.hxx.
Referenced by GetAutomaticTableStyles().
|
private |
Definition at line 72 of file xmlimp.hxx.
Referenced by GetAutomaticTextStyles().
|
private |
Definition at line 77 of file xmlimp.hxx.
Referenced by GetCellStyles().
|
private |
Definition at line 79 of file xmlimp.hxx.
Referenced by GetColumnStyles().
|
private |
Definition at line 71 of file xmlimp.hxx.
Referenced by characters(), endElement(), and startElement().
|
private |
Definition at line 88 of file xmlimp.hxx.
Referenced by GetCoverImages(), and XMLImport().
|
private |
Definition at line 85 of file xmlimp.hxx.
Referenced by GetGraphicStyles().
|
private |
Definition at line 87 of file xmlimp.hxx.
Referenced by GetMasterStyles().
|
private |
Definition at line 93 of file xmlimp.hxx.
Referenced by FillPopupData(), and XMLImport().
|
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().
|
private |
Definition at line 86 of file xmlimp.hxx.
Referenced by GetPageLayouts().
|
private |
Definition at line 75 of file xmlimp.hxx.
Referenced by GetParagraphStyles().
|
private |
Definition at line 81 of file xmlimp.hxx.
Referenced by GetRowStyles().
|
private |
Definition at line 83 of file xmlimp.hxx.
Referenced by GetTableStyles().
|
private |
Definition at line 73 of file xmlimp.hxx.
Referenced by GetTextStyles().
|
private |
Definition at line 94 of file xmlimp.hxx.
Referenced by GetIsInPageSpan(), and HandlePageSpan().
|
private |
Definition at line 70 of file xmlimp.hxx.
Referenced by endDocument(), GetGenerator(), and startDocument().
|
private |
Definition at line 95 of file xmlimp.hxx.
Referenced by GetPageMetafiles().
|
private |
Definition at line 91 of file xmlimp.hxx.
Referenced by GetComponentContext(), and XMLImport().
|
private |
Definition at line 92 of file xmlimp.hxx.
Referenced by FillPopupData(), and XMLImport().