LibreOffice Module xmloff (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
SdXMLImport Class Reference

#include <sdxmlimp_impl.hxx>

Inheritance diagram for SdXMLImport:
[legend]
Collaboration diagram for SdXMLImport:
[legend]

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
 
SvXMLImportContextCreateMetaContext (const sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
 
SvXMLStylesContextCreateStylesContext ()
 
SvXMLStylesContextCreateAutoStylesContext ()
 
SvXMLImportContextCreateMasterStylesContext ()
 
SvXMLImportContextCreateFontDeclsContext ()
 
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 SvXMLImportContextCreateFastContext (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< SdXMLMasterStylesContextmxMasterStylesContext
 
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"
 

Detailed Description

Definition at line 48 of file sdxmlimp_impl.hxx.

Constructor & Destructor Documentation

◆ SdXMLImport()

SdXMLImport::SdXMLImport ( const css::uno::Reference< css::uno::XComponentContext > &  xContext,
OUString const &  implementationName,
bool  bIsDraw,
SvXMLImportFlags  nImportFlags 
)

Member Function Documentation

◆ AddDateTimeDecl()

void SdXMLImport::AddDateTimeDecl ( const OUString &  rName,
const OUString &  rText,
bool  bFixed,
const OUString &  rDateTimeFormat 
)

◆ AddFooterDecl()

void SdXMLImport::AddFooterDecl ( const OUString &  rName,
const OUString &  rText 
)

Definition at line 616 of file sdxmlimp.cxx.

References maFooterDeclsMap.

Referenced by SdXMLHeaderFooterDeclContext::endFastElement().

◆ AddHeaderDecl()

void SdXMLImport::AddHeaderDecl ( const OUString &  rName,
const OUString &  rText 
)

Definition at line 610 of file sdxmlimp.cxx.

References maHeaderDeclsMap.

Referenced by SdXMLHeaderFooterDeclContext::endFastElement().

◆ CreateAutoStylesContext()

SvXMLStylesContext * SdXMLImport::CreateAutoStylesContext ( )

Definition at line 469 of file sdxmlimp.cxx.

◆ CreateFastContext()

SvXMLImportContext * SdXMLImport::CreateFastContext ( sal_Int32  nElement,
const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList > &  xAttrList 
)
overrideprotectedvirtual

◆ CreateFontDeclsContext()

SvXMLImportContext * SdXMLImport::CreateFontDeclsContext ( )

Definition at line 487 of file sdxmlimp.cxx.

◆ CreateMasterStylesContext()

SvXMLImportContext * SdXMLImport::CreateMasterStylesContext ( )

Definition at line 480 of file sdxmlimp.cxx.

References mxMasterStylesContext.

◆ CreateMetaContext()

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().

◆ CreateStylesContext()

SvXMLStylesContext * SdXMLImport::CreateStylesContext ( )

Definition at line 458 of file sdxmlimp.cxx.

Referenced by CreateFastContext().

◆ GetDateTimeDecl()

OUString SdXMLImport::GetDateTimeDecl ( const OUString &  rName,
bool &  rbFixed,
OUString &  rDateTimeFormat 
)

◆ GetFooterDecl()

OUString SdXMLImport::GetFooterDecl ( const OUString &  rName) const

Definition at line 644 of file sdxmlimp.cxx.

References maFooterDeclsMap.

◆ GetHeaderDecl()

OUString SdXMLImport::GetHeaderDecl ( const OUString &  rName) const

Definition at line 634 of file sdxmlimp.cxx.

References maHeaderDeclsMap.

◆ GetLocalDocStyleFamilies()

const css::uno::Reference< css::container::XNameAccess > & SdXMLImport::GetLocalDocStyleFamilies ( ) const
inline

Definition at line 105 of file sdxmlimp_impl.hxx.

References mxDocStyleFamilies.

Referenced by SdXMLStylesContext::SetMasterPageStyles().

◆ GetLocalDrawPages()

const css::uno::Reference< css::container::XIndexAccess > & SdXMLImport::GetLocalDrawPages ( ) const
inline

Definition at line 107 of file sdxmlimp_impl.hxx.

References mxDocDrawPages.

◆ GetLocalMasterPages()

const css::uno::Reference< css::container::XIndexAccess > & SdXMLImport::GetLocalMasterPages ( ) const
inline

Definition at line 106 of file sdxmlimp_impl.hxx.

References mxDocMasterPages.

◆ GetNewMasterPageCount()

sal_Int32 SdXMLImport::GetNewMasterPageCount ( ) const
inline

Definition at line 111 of file sdxmlimp_impl.hxx.

References mnNewMasterPageCount.

Referenced by SdXMLMasterStylesContext::createFastChildContext().

◆ GetNewPageCount()

sal_Int32 SdXMLImport::GetNewPageCount ( ) const
inline

Definition at line 109 of file sdxmlimp_impl.hxx.

References mnNewPageCount.

◆ getPageLayouts()

const css::uno::Reference< css::container::XNameAccess > & SdXMLImport::getPageLayouts ( ) const
inline

Definition at line 114 of file sdxmlimp_impl.hxx.

References mxPageLayouts.

◆ IncrementNewMasterPageCount()

void SdXMLImport::IncrementNewMasterPageCount ( )
inline

Definition at line 112 of file sdxmlimp_impl.hxx.

References mnNewMasterPageCount.

Referenced by SdXMLMasterStylesContext::createFastChildContext().

◆ IncrementNewPageCount()

void SdXMLImport::IncrementNewPageCount ( )
inline

Definition at line 110 of file sdxmlimp_impl.hxx.

References mnNewPageCount.

Referenced by SdXMLBodyContext::createFastChildContext().

◆ initialize()

void SAL_CALL SdXMLImport::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

Definition at line 374 of file sdxmlimp.cxx.

References aArguments, gsPageLayouts, gsPreview, mbLoadDoc, mbPreview, mxPageLayouts, and u.

◆ IsDraw()

bool SdXMLImport::IsDraw ( ) const
inline

Definition at line 116 of file sdxmlimp_impl.hxx.

References mbIsDraw.

◆ IsImpress()

bool SdXMLImport::IsImpress ( ) const
inline

Definition at line 117 of file sdxmlimp_impl.hxx.

References mbIsDraw.

◆ IsPreview()

bool SdXMLImport::IsPreview ( ) const
inline

Definition at line 122 of file sdxmlimp_impl.hxx.

References mbPreview.

◆ NotifyContainsEmbeddedFont()

void SdXMLImport::NotifyContainsEmbeddedFont ( )
overridevirtual

Definition at line 667 of file sdxmlimp.cxx.

◆ SetConfigurationSettings()

void SdXMLImport::SetConfigurationSettings ( const css::uno::Sequence< css::beans::PropertyValue > &  aConfigProps)
overridevirtual

Definition at line 538 of file sdxmlimp.cxx.

References pValues, and SAL_INFO.

◆ SetStatistics()

void SdXMLImport::SetStatistics ( const css::uno::Sequence< css::beans::NamedValue > &  i_rStats)
overridevirtual

Definition at line 581 of file sdxmlimp.cxx.

References nCount, s_stats, and SAL_WARN.

◆ setTargetDocument()

void SAL_CALL SdXMLImport::setTargetDocument ( const css::uno::Reference< css::lang::XComponent > &  xDoc)
overridevirtual

◆ SetViewSettings()

void SdXMLImport::SetViewSettings ( const css::uno::Sequence< css::beans::PropertyValue > &  aViewProps)
overridevirtual

Definition at line 495 of file sdxmlimp.cxx.

References uno::Any::Value.

Member Data Documentation

◆ gsPageLayouts

constexpr OUStringLiteral SdXMLImport::gsPageLayouts = u"PageLayouts"
staticconstexprprivate

Definition at line 65 of file sdxmlimp_impl.hxx.

Referenced by initialize().

◆ gsPreview

constexpr OUStringLiteral SdXMLImport::gsPreview = u"Preview"
staticconstexprprivate

Definition at line 66 of file sdxmlimp_impl.hxx.

Referenced by initialize().

◆ maDateTimeDeclsMap

DateTimeDeclMap SdXMLImport::maDateTimeDeclsMap
private

Definition at line 70 of file sdxmlimp_impl.hxx.

Referenced by AddDateTimeDecl(), and GetDateTimeDecl().

◆ maFooterDeclsMap

HeaderFooterDeclMap SdXMLImport::maFooterDeclsMap
private

Definition at line 69 of file sdxmlimp_impl.hxx.

Referenced by AddFooterDecl(), and GetFooterDecl().

◆ maHeaderDeclsMap

HeaderFooterDeclMap SdXMLImport::maHeaderDeclsMap
private

Definition at line 68 of file sdxmlimp_impl.hxx.

Referenced by AddHeaderDecl(), and GetHeaderDecl().

◆ mbIsDraw

bool SdXMLImport::mbIsDraw
private

Definition at line 61 of file sdxmlimp_impl.hxx.

Referenced by IsDraw(), IsImpress(), and setTargetDocument().

◆ mbLoadDoc

bool SdXMLImport::mbLoadDoc
private

◆ mbPreview

bool SdXMLImport::mbPreview
private

Definition at line 63 of file sdxmlimp_impl.hxx.

Referenced by initialize(), and IsPreview().

◆ mnNewMasterPageCount

sal_Int32 SdXMLImport::mnNewMasterPageCount
private

Definition at line 59 of file sdxmlimp_impl.hxx.

Referenced by GetNewMasterPageCount(), and IncrementNewMasterPageCount().

◆ mnNewPageCount

sal_Int32 SdXMLImport::mnNewPageCount
private

Definition at line 58 of file sdxmlimp_impl.hxx.

Referenced by GetNewPageCount(), and IncrementNewPageCount().

◆ mxDocDrawPages

css::uno::Reference< css::container::XIndexAccess > SdXMLImport::mxDocDrawPages
private

Definition at line 52 of file sdxmlimp_impl.hxx.

Referenced by GetLocalDrawPages(), and setTargetDocument().

◆ mxDocMasterPages

css::uno::Reference< css::container::XIndexAccess > SdXMLImport::mxDocMasterPages
private

Definition at line 51 of file sdxmlimp_impl.hxx.

Referenced by GetLocalMasterPages(), and setTargetDocument().

◆ mxDocStyleFamilies

css::uno::Reference< css::container::XNameAccess > SdXMLImport::mxDocStyleFamilies
private

Definition at line 50 of file sdxmlimp_impl.hxx.

Referenced by GetLocalDocStyleFamilies(), and setTargetDocument().

◆ mxMasterStylesContext

rtl::Reference<SdXMLMasterStylesContext> SdXMLImport::mxMasterStylesContext
private

Definition at line 56 of file sdxmlimp_impl.hxx.

Referenced by CreateMasterStylesContext().

◆ mxPageLayouts

css::uno::Reference< css::container::XNameAccess > SdXMLImport::mxPageLayouts
private

Definition at line 53 of file sdxmlimp_impl.hxx.

Referenced by getPageLayouts(), and initialize().


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