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

#include <ximpstyl.hxx>

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

Public Member Functions

 SdXMLStylesContext (SdXMLImport &rImport, bool bIsAutoStyle)
 
virtual void SAL_CALL endFastElement (sal_Int32 nElement) override
 endFastElement is called before a context will be destructed, but after an elements context has been parsed. More...
 
virtual rtl::Reference< SvXMLImportPropertyMapperGetImportPropertyMapper (XmlStyleFamily nFamily) const override
 
void SetMasterPageStyles (SdXMLMasterPageContext const &rMaster) const
 
css::uno::Reference< css::container::XNameAccess > getPageLayouts () const
 
- Public Member Functions inherited from SvXMLStylesContext
 SvXMLStylesContext (SvXMLImport &rImport, bool bAutomatic=false)
 
virtual ~SvXMLStylesContext () override
 
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
 
void AddStyle (SvXMLStyleContext &rNew)
 
const SvXMLStyleContextFindStyleChildContext (XmlStyleFamily nFamily, const OUString &rName, bool bCreateIndex=false) const
 
virtual rtl::Reference< SvXMLImportPropertyMapperGetImportPropertyMapper (XmlStyleFamily nFamily) const
 
virtual css::uno::Reference< css::container::XNameContainer > GetStylesContainer (XmlStyleFamily nFamily) const
 
virtual OUString GetServiceName (XmlStyleFamily nFamily) const
 
css::uno::Reference< css::style::XAutoStyleFamily > GetAutoStyles (XmlStyleFamily nFamily) const
 
void CopyAutoStylesToDoc ()
 
void CopyStylesToDoc (bool bOverwrite, bool bFinish=true)
 
void FinishStyles (bool bOverwrite)
 
void dispose ()
 
bool IsAutomaticStyle () const
 
- Public Member Functions inherited from SvXMLImportContext
 SvXMLImportContext (SvXMLImport &rImport)
 A contexts constructor does anything that is required if an element starts. More...
 
virtual ~SvXMLImportContext ()
 A contexts destructor does anything that is required if an element ends. More...
 
virtual void SAL_CALL startFastElement (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL endFastElement (sal_Int32 Element) override
 endFastElement is called before a context will be destructed, but after an elements context has been parsed. More...
 
virtual void SAL_CALL endUnknownElement (const OUString &Namespace, const OUString &Name) override
 
virtual css::uno::Reference< XFastContextHandler > SAL_CALL createFastChildContext (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createUnknownChildContext (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL characters (const OUString &aChars) override
 This method is called for all characters that are contained in the current element. More...
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) final override
 
virtual void SAL_CALL acquire () noexcept final override
 
virtual void SAL_CALL release () noexcept final override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () final override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () final override
 

Protected Member Functions

virtual SvXMLStyleContextCreateStyleChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
 
virtual SvXMLStyleContextCreateStyleStyleChildContext (XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
 
virtual SvXMLStyleContextCreateDefaultStyleStyleChildContext (XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
 
virtual SvXMLStyleContextCreateStyleChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
 
virtual SvXMLStyleContextCreateStyleStyleChildContext (XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
 
virtual SvXMLStyleContextCreateDefaultStyleStyleChildContext (XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
 
- Protected Member Functions inherited from SvXMLStylesContext
sal_uInt32 GetStyleCount () const
 
SvXMLStyleContextGetStyle (sal_uInt32 i)
 
const SvXMLStyleContextGetStyle (sal_uInt32 i) const
 
virtual SvXMLStyleContextCreateStyleChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
 
virtual SvXMLStyleContextCreateStyleStyleChildContext (XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
 
virtual SvXMLStyleContextCreateDefaultStyleStyleChildContext (XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
 
virtual bool InsertStyleFamily (XmlStyleFamily nFamily) const
 
- Protected Member Functions inherited from SvXMLImportContext
SvXMLImportGetImport ()
 
const SvXMLImportGetImport () const
 

Private Member Functions

const SdXMLImportGetSdImport () const
 
SdXMLImportGetSdImport ()
 
void ImpSetGraphicStyles () const
 
void ImpSetCellStyles () const
 
void ImpSetGraphicStyles (css::uno::Reference< css::container::XNameAccess > const &xPageStyles, XmlStyleFamily nFamily, std::u16string_view rPrefix) const
 

Private Attributes

rtl::Reference< SvXMLImportPropertyMapperxPresImpPropMapper
 
bool mbIsAutoStyle
 
std::unique_ptr< SvXMLNumFmtHelpermpNumFmtHelper
 
std::unique_ptr< SvNumberFormattermpNumFormatter
 

Additional Inherited Members

- Static Public Member Functions inherited from SvXMLStylesContext
static XmlStyleFamily GetFamily (std::u16string_view rFamily)
 

Detailed Description

Definition at line 165 of file ximpstyl.hxx.

Constructor & Destructor Documentation

◆ SdXMLStylesContext()

SdXMLStylesContext::SdXMLStylesContext ( SdXMLImport rImport,
bool  bIsAutoStyle 
)

Definition at line 850 of file ximpstyl.cxx.

References LANGUAGE_SYSTEM, mpNumFmtHelper, and mpNumFormatter.

Member Function Documentation

◆ CreateDefaultStyleStyleChildContext() [1/2]

SvXMLStyleContext * SvXMLStylesContext::CreateDefaultStyleStyleChildContext ( XmlStyleFamily  nFamily,
sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
protectedvirtual

Reimplemented from SvXMLStylesContext.

Definition at line 159 of file xmlstyle.cxx.

References aName, GetName(), and sName.

◆ CreateDefaultStyleStyleChildContext() [2/2]

SvXMLStyleContext * SdXMLStylesContext::CreateDefaultStyleStyleChildContext ( XmlStyleFamily  nFamily,
sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overrideprotectedvirtual

◆ CreateStyleChildContext() [1/2]

SvXMLStyleContext * SvXMLStylesContext::CreateStyleChildContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
protectedvirtual

Reimplemented from SvXMLStylesContext.

Definition at line 151 of file xmlstyle.cxx.

◆ CreateStyleChildContext() [2/2]

SvXMLStyleContext * SdXMLStylesContext::CreateStyleChildContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overrideprotectedvirtual

◆ CreateStyleStyleChildContext() [1/2]

SvXMLStyleContext * SvXMLStylesContext::CreateStyleStyleChildContext ( XmlStyleFamily  nFamily,
sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
protectedvirtual

Reimplemented from SvXMLStylesContext.

Definition at line 155 of file xmlstyle.cxx.

◆ CreateStyleStyleChildContext() [2/2]

SvXMLStyleContext * SdXMLStylesContext::CreateStyleStyleChildContext ( XmlStyleFamily  nFamily,
sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overrideprotectedvirtual

◆ endFastElement()

void SdXMLStylesContext::endFastElement ( sal_Int32  Element)
overridevirtual

endFastElement is called before a context will be destructed, but after an elements context has been parsed.

It may be used for actions that require virtual methods. The default is to do nothing.

Reimplemented from SvXMLImportContext.

Definition at line 996 of file ximpstyl.cxx.

References a, SvXMLStylesContext::FindStyleChildContext(), SvXMLStylesContext::FinishStyles(), SvXMLStyleContext::GetFamily(), SvXMLImportContext::GetImport(), getPageLayouts(), SvXMLStyleContext::GetParentName(), GetSdImport(), SvXMLStylesContext::GetStyle(), SvXMLStylesContext::GetStyleCount(), ImpSetCellStyles(), ImpSetGraphicStyles(), and mbIsAutoStyle.

◆ GetImportPropertyMapper()

rtl::Reference< SvXMLImportPropertyMapper > SdXMLStylesContext::GetImportPropertyMapper ( XmlStyleFamily  nFamily) const
overridevirtual

◆ getPageLayouts()

uno::Reference< container::XNameAccess > SdXMLStylesContext::getPageLayouts ( ) const

◆ GetSdImport() [1/2]

SdXMLImport & SdXMLStylesContext::GetSdImport ( )
inlineprivate

Definition at line 173 of file ximpstyl.hxx.

References SvXMLImportContext::GetImport().

◆ GetSdImport() [2/2]

const SdXMLImport & SdXMLStylesContext::GetSdImport ( ) const
inlineprivate

◆ ImpSetCellStyles()

void SdXMLStylesContext::ImpSetCellStyles ( ) const
private

Definition at line 1096 of file ximpstyl.cxx.

References GetSdImport(), ImpSetGraphicStyles(), TABLE_CELL, TOOLS_WARN_EXCEPTION, and u.

Referenced by endFastElement().

◆ ImpSetGraphicStyles() [1/2]

void SdXMLStylesContext::ImpSetGraphicStyles ( ) const
private

◆ ImpSetGraphicStyles() [2/2]

void SdXMLStylesContext::ImpSetGraphicStyles ( css::uno::Reference< css::container::XNameAccess > const &  xPageStyles,
XmlStyleFamily  nFamily,
std::u16string_view  rPrefix 
) const
private

◆ SetMasterPageStyles()

void SdXMLStylesContext::SetMasterPageStyles ( SdXMLMasterPageContext const &  rMaster) const

Member Data Documentation

◆ mbIsAutoStyle

bool SdXMLStylesContext::mbIsAutoStyle
private

Definition at line 168 of file ximpstyl.hxx.

Referenced by endFastElement().

◆ mpNumFmtHelper

std::unique_ptr<SvXMLNumFmtHelper> SdXMLStylesContext::mpNumFmtHelper
private

Definition at line 169 of file ximpstyl.hxx.

Referenced by CreateStyleChildContext(), and SdXMLStylesContext().

◆ mpNumFormatter

std::unique_ptr<SvNumberFormatter> SdXMLStylesContext::mpNumFormatter
private

Definition at line 170 of file ximpstyl.hxx.

Referenced by SdXMLStylesContext().

◆ xPresImpPropMapper

rtl::Reference< SvXMLImportPropertyMapper > SdXMLStylesContext::xPresImpPropMapper
private

Definition at line 167 of file ximpstyl.hxx.

Referenced by GetImportPropertyMapper().


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