LibreOffice Module xmloff (master) 1
|
#include <sdxmlimp_impl.hxx>
Public Member Functions | |
SdXMLImport (const css::uno::Reference< css::uno::XComponentContext > &xContext, OUString const &implementationName, bool bIsDraw, SvXMLImportFlags nImportFlags) | |
virtual void SAL_CALL | setTargetDocument (const css::uno::Reference< css::lang::XComponent > &xDoc) override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual void | SetViewSettings (const css::uno::Sequence< css::beans::PropertyValue > &aViewProps) override |
virtual void | SetConfigurationSettings (const css::uno::Sequence< css::beans::PropertyValue > &aConfigProps) override |
SvXMLImportContext * | CreateMetaContext (const sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) |
SvXMLStylesContext * | CreateStylesContext () |
SvXMLStylesContext * | CreateAutoStylesContext () |
SvXMLImportContext * | CreateMasterStylesContext () |
SvXMLImportContext * | CreateFontDeclsContext () |
const css::uno::Reference< css::container::XNameAccess > & | GetLocalDocStyleFamilies () const |
const css::uno::Reference< css::container::XIndexAccess > & | GetLocalMasterPages () const |
const css::uno::Reference< css::container::XIndexAccess > & | GetLocalDrawPages () const |
sal_Int32 | GetNewPageCount () const |
void | IncrementNewPageCount () |
sal_Int32 | GetNewMasterPageCount () const |
void | IncrementNewMasterPageCount () |
const css::uno::Reference< css::container::XNameAccess > & | getPageLayouts () const |
bool | IsDraw () const |
bool | IsImpress () const |
virtual void | SetStatistics (const css::uno::Sequence< css::beans::NamedValue > &i_rStats) override |
bool | IsPreview () const |
void | AddHeaderDecl (const OUString &rName, const OUString &rText) |
void | AddFooterDecl (const OUString &rName, const OUString &rText) |
void | AddDateTimeDecl (const OUString &rName, const OUString &rText, bool bFixed, const OUString &rDateTimeFormat) |
OUString | GetHeaderDecl (const OUString &rName) const |
OUString | GetFooterDecl (const OUString &rName) const |
OUString | GetDateTimeDecl (const OUString &rName, bool &rbFixed, OUString &rDateTimeFormat) |
virtual void | NotifyContainsEmbeddedFont () override |
Protected Member Functions | |
virtual SvXMLImportContext * | CreateFastContext (sal_Int32 nElement, const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList > &xAttrList) override |
Private Attributes | |
css::uno::Reference< css::container::XNameAccess > | mxDocStyleFamilies |
css::uno::Reference< css::container::XIndexAccess > | mxDocMasterPages |
css::uno::Reference< css::container::XIndexAccess > | mxDocDrawPages |
css::uno::Reference< css::container::XNameAccess > | mxPageLayouts |
rtl::Reference< SdXMLMasterStylesContext > | mxMasterStylesContext |
sal_Int32 | mnNewPageCount |
sal_Int32 | mnNewMasterPageCount |
bool | mbIsDraw |
bool | mbLoadDoc |
bool | mbPreview |
HeaderFooterDeclMap | maHeaderDeclsMap |
HeaderFooterDeclMap | maFooterDeclsMap |
DateTimeDeclMap | maDateTimeDeclsMap |
Static Private Attributes | |
static constexpr OUStringLiteral | gsPageLayouts = u"PageLayouts" |
static constexpr OUStringLiteral | gsPreview = u"Preview" |
Definition at line 48 of file sdxmlimp_impl.hxx.
SdXMLImport::SdXMLImport | ( | const css::uno::Reference< css::uno::XComponentContext > & | xContext, |
OUString const & | implementationName, | ||
bool | bIsDraw, | ||
SvXMLImportFlags | nImportFlags | ||
) |
Definition at line 297 of file sdxmlimp.cxx.
References xmloff::token::GetXMLToken(), implementationName, xmloff::token::XML_N_PRESENTATION, XML_NAMESPACE_PRESENTATION, XML_NAMESPACE_SMIL, xmloff::token::XML_NP_PRESENTATION, and xmloff::token::XML_NP_SMIL.
void SdXMLImport::AddDateTimeDecl | ( | const OUString & | rName, |
const OUString & | rText, | ||
bool | bFixed, | ||
const OUString & | rDateTimeFormat | ||
) |
Definition at line 622 of file sdxmlimp.cxx.
References maDateTimeDeclsMap, DateTimeDeclContextImpl::maStrDateTimeFormat, DateTimeDeclContextImpl::maStrText, and DateTimeDeclContextImpl::mbFixed.
Referenced by SdXMLHeaderFooterDeclContext::endFastElement().
void SdXMLImport::AddFooterDecl | ( | const OUString & | rName, |
const OUString & | rText | ||
) |
Definition at line 616 of file sdxmlimp.cxx.
References maFooterDeclsMap.
Referenced by SdXMLHeaderFooterDeclContext::endFastElement().
void SdXMLImport::AddHeaderDecl | ( | const OUString & | rName, |
const OUString & | rText | ||
) |
Definition at line 610 of file sdxmlimp.cxx.
References maHeaderDeclsMap.
Referenced by SdXMLHeaderFooterDeclContext::endFastElement().
SvXMLStylesContext * SdXMLImport::CreateAutoStylesContext | ( | ) |
Definition at line 469 of file sdxmlimp.cxx.
|
overrideprotectedvirtual |
Definition at line 409 of file sdxmlimp.cxx.
References CreateMetaContext(), CreateStylesContext(), mbLoadDoc, OFFICE, xmloff::token::XML_DOCUMENT, xmloff::token::XML_DOCUMENT_CONTENT, xmloff::token::XML_DOCUMENT_META, xmloff::token::XML_DOCUMENT_SETTINGS, xmloff::token::XML_DOCUMENT_STYLES, XML_ELEMENT, and xmloff::token::XML_STYLES.
SvXMLImportContext * SdXMLImport::CreateFontDeclsContext | ( | ) |
Definition at line 487 of file sdxmlimp.cxx.
SvXMLImportContext * SdXMLImport::CreateMasterStylesContext | ( | ) |
Definition at line 480 of file sdxmlimp.cxx.
References mxMasterStylesContext.
SvXMLImportContext * SdXMLImport::CreateMetaContext | ( | const sal_Int32 | nElement, |
const css::uno::Reference< css::xml::sax::XFastAttributeList > & | xAttrList | ||
) |
Definition at line 441 of file sdxmlimp.cxx.
References mbLoadDoc, and META.
Referenced by CreateFastContext().
SvXMLStylesContext * SdXMLImport::CreateStylesContext | ( | ) |
Definition at line 458 of file sdxmlimp.cxx.
Referenced by CreateFastContext().
OUString SdXMLImport::GetDateTimeDecl | ( | const OUString & | rName, |
bool & | rbFixed, | ||
OUString & | rDateTimeFormat | ||
) |
Definition at line 654 of file sdxmlimp.cxx.
References maDateTimeDeclsMap, DateTimeDeclContextImpl::maStrDateTimeFormat, DateTimeDeclContextImpl::maStrText, and DateTimeDeclContextImpl::mbFixed.
OUString SdXMLImport::GetFooterDecl | ( | const OUString & | rName | ) | const |
Definition at line 644 of file sdxmlimp.cxx.
References maFooterDeclsMap.
OUString SdXMLImport::GetHeaderDecl | ( | const OUString & | rName | ) | const |
Definition at line 634 of file sdxmlimp.cxx.
References maHeaderDeclsMap.
|
inline |
Definition at line 105 of file sdxmlimp_impl.hxx.
References mxDocStyleFamilies.
Referenced by SdXMLStylesContext::SetMasterPageStyles().
|
inline |
Definition at line 107 of file sdxmlimp_impl.hxx.
References mxDocDrawPages.
|
inline |
Definition at line 106 of file sdxmlimp_impl.hxx.
References mxDocMasterPages.
|
inline |
Definition at line 111 of file sdxmlimp_impl.hxx.
References mnNewMasterPageCount.
Referenced by SdXMLMasterStylesContext::createFastChildContext().
|
inline |
Definition at line 109 of file sdxmlimp_impl.hxx.
References mnNewPageCount.
|
inline |
Definition at line 114 of file sdxmlimp_impl.hxx.
References mxPageLayouts.
|
inline |
Definition at line 112 of file sdxmlimp_impl.hxx.
References mnNewMasterPageCount.
Referenced by SdXMLMasterStylesContext::createFastChildContext().
|
inline |
Definition at line 110 of file sdxmlimp_impl.hxx.
References mnNewPageCount.
Referenced by SdXMLBodyContext::createFastChildContext().
|
overridevirtual |
Definition at line 374 of file sdxmlimp.cxx.
References aArguments, gsPageLayouts, gsPreview, mbLoadDoc, mbPreview, mxPageLayouts, and u.
|
inline |
Definition at line 116 of file sdxmlimp_impl.hxx.
References mbIsDraw.
|
inline |
Definition at line 117 of file sdxmlimp_impl.hxx.
References mbIsDraw.
|
inline |
Definition at line 122 of file sdxmlimp_impl.hxx.
References mbPreview.
|
overridevirtual |
Definition at line 667 of file sdxmlimp.cxx.
|
overridevirtual |
Definition at line 538 of file sdxmlimp.cxx.
|
overridevirtual |
Definition at line 581 of file sdxmlimp.cxx.
|
overridevirtual |
Definition at line 321 of file sdxmlimp.cxx.
References comphelper::findValue(), mbIsDraw, mbLoadDoc, mxDocDrawPages, mxDocMasterPages, and mxDocStyleFamilies.
|
overridevirtual |
Definition at line 495 of file sdxmlimp.cxx.
References uno::Any::Value.
|
staticconstexprprivate |
Definition at line 65 of file sdxmlimp_impl.hxx.
Referenced by initialize().
|
staticconstexprprivate |
Definition at line 66 of file sdxmlimp_impl.hxx.
Referenced by initialize().
|
private |
Definition at line 70 of file sdxmlimp_impl.hxx.
Referenced by AddDateTimeDecl(), and GetDateTimeDecl().
|
private |
Definition at line 69 of file sdxmlimp_impl.hxx.
Referenced by AddFooterDecl(), and GetFooterDecl().
|
private |
Definition at line 68 of file sdxmlimp_impl.hxx.
Referenced by AddHeaderDecl(), and GetHeaderDecl().
|
private |
Definition at line 61 of file sdxmlimp_impl.hxx.
Referenced by IsDraw(), IsImpress(), and setTargetDocument().
|
private |
Definition at line 62 of file sdxmlimp_impl.hxx.
Referenced by CreateFastContext(), CreateMetaContext(), initialize(), and setTargetDocument().
|
private |
Definition at line 63 of file sdxmlimp_impl.hxx.
Referenced by initialize(), and IsPreview().
|
private |
Definition at line 59 of file sdxmlimp_impl.hxx.
Referenced by GetNewMasterPageCount(), and IncrementNewMasterPageCount().
|
private |
Definition at line 58 of file sdxmlimp_impl.hxx.
Referenced by GetNewPageCount(), and IncrementNewPageCount().
|
private |
Definition at line 52 of file sdxmlimp_impl.hxx.
Referenced by GetLocalDrawPages(), and setTargetDocument().
|
private |
Definition at line 51 of file sdxmlimp_impl.hxx.
Referenced by GetLocalMasterPages(), and setTargetDocument().
|
private |
Definition at line 50 of file sdxmlimp_impl.hxx.
Referenced by GetLocalDocStyleFamilies(), and setTargetDocument().
|
private |
Definition at line 56 of file sdxmlimp_impl.hxx.
Referenced by CreateMasterStylesContext().
|
private |
Definition at line 53 of file sdxmlimp_impl.hxx.
Referenced by getPageLayouts(), and initialize().