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

#include <xmlstyle.hxx>

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

Public Member Functions

 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
 

Static Public Member Functions

static XmlStyleFamily GetFamily (std::u16string_view rFamily)
 

Protected Member Functions

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

 SvXMLStylesContext (SvXMLStylesContext const &)=delete
 
SvXMLStylesContextoperator= (SvXMLStylesContext const &)=delete
 

Private Attributes

std::unique_ptr< SvXMLStylesContext_ImplmpImpl
 
css::uno::Reference< css::container::XNameContainer > mxParaStyles
 
css::uno::Reference< css::container::XNameContainer > mxTextStyles
 
css::uno::Reference< css::style::XAutoStyleFamily > mxParaAutoStyles
 
css::uno::Reference< css::style::XAutoStyleFamily > mxTextAutoStyles
 
rtl::Reference< SvXMLImportPropertyMappermxParaImpPropMapper
 
rtl::Reference< SvXMLImportPropertyMappermxTextImpPropMapper
 
rtl::Reference< SvXMLImportPropertyMappermxShapeImpPropMapper
 
rtl::Reference< SvXMLImportPropertyMappermxChartImpPropMapper
 
rtl::Reference< SvXMLImportPropertyMappermxPageImpPropMapper
 

Detailed Description

Definition at line 123 of file xmlstyle.hxx.

Constructor & Destructor Documentation

◆ SvXMLStylesContext() [1/2]

SvXMLStylesContext::SvXMLStylesContext ( SvXMLStylesContext const &  )
privatedelete

◆ SvXMLStylesContext() [2/2]

SvXMLStylesContext::SvXMLStylesContext ( SvXMLImport rImport,
bool  bAutomatic = false 
)

Definition at line 698 of file xmlstyle.cxx.

◆ ~SvXMLStylesContext()

SvXMLStylesContext::~SvXMLStylesContext ( )
overridevirtual

Definition at line 704 of file xmlstyle.cxx.

Member Function Documentation

◆ AddStyle()

void SvXMLStylesContext::AddStyle ( SvXMLStyleContext rNew)

Definition at line 723 of file xmlstyle.cxx.

References mpImpl.

Referenced by SvXMLImport::SetAutoStyles().

◆ CopyAutoStylesToDoc()

void SvXMLStylesContext::CopyAutoStylesToDoc ( )

◆ CopyStylesToDoc()

void SvXMLStylesContext::CopyStylesToDoc ( bool  bOverwrite,
bool  bFinish = true 
)

◆ CreateDefaultStyleStyleChildContext()

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

◆ createFastChildContext()

css::uno::Reference< css::xml::sax::XFastContextHandler > SvXMLStylesContext::createFastChildContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  AttrList 
)
overridevirtual

Reimplemented from SvXMLImportContext.

Definition at line 708 of file xmlstyle.cxx.

References CreateStyleChildContext(), SvXMLStyleContext::IsTransient(), and mpImpl.

◆ CreateStyleChildContext()

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

◆ CreateStyleStyleChildContext()

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

◆ dispose()

void SvXMLStylesContext::dispose ( void  )

Definition at line 728 of file xmlstyle.cxx.

References mpImpl.

◆ FindStyleChildContext()

const SvXMLStyleContext * SvXMLStylesContext::FindStyleChildContext ( XmlStyleFamily  nFamily,
const OUString &  rName,
bool  bCreateIndex = false 
) const

◆ FinishStyles()

void SvXMLStylesContext::FinishStyles ( bool  bOverwrite)

◆ GetAutoStyles()

Reference< XAutoStyleFamily > SvXMLStylesContext::GetAutoStyles ( XmlStyleFamily  nFamily) const

◆ GetFamily()

XmlStyleFamily SvXMLStylesContext::GetFamily ( std::u16string_view  rFamily)
static

◆ GetImportPropertyMapper()

rtl::Reference< SvXMLImportPropertyMapper > SvXMLStylesContext::GetImportPropertyMapper ( XmlStyleFamily  nFamily) const
virtual

◆ GetServiceName()

OUString SvXMLStylesContext::GetServiceName ( XmlStyleFamily  nFamily) const
virtual

◆ GetStyle() [1/2]

SvXMLStyleContext * SvXMLStylesContext::GetStyle ( sal_uInt32  i)
protected

◆ GetStyle() [2/2]

const SvXMLStyleContext * SvXMLStylesContext::GetStyle ( sal_uInt32  i) const
protected

Definition at line 307 of file xmlstyle.cxx.

References i, and mpImpl.

◆ GetStyleCount()

sal_uInt32 SvXMLStylesContext::GetStyleCount ( ) const
protected

◆ GetStylesContainer()

Reference< XNameContainer > SvXMLStylesContext::GetStylesContainer ( XmlStyleFamily  nFamily) const
virtual

◆ InsertStyleFamily()

bool SvXMLStylesContext::InsertStyleFamily ( XmlStyleFamily  nFamily) const
protectedvirtual

Reimplemented in XMLTextMasterStylesContext.

Definition at line 456 of file xmlstyle.cxx.

Referenced by CopyStylesToDoc(), and FinishStyles().

◆ IsAutomaticStyle()

bool SvXMLStylesContext::IsAutomaticStyle ( ) const

Definition at line 312 of file xmlstyle.cxx.

References mpImpl.

Referenced by XMLPropStyleContext::CreateAndInsert(), and XMLTextStyleContext::FillPropertySet().

◆ operator=()

SvXMLStylesContext & SvXMLStylesContext::operator= ( SvXMLStylesContext const &  )
privatedelete

References dispose().

Member Data Documentation

◆ mpImpl

std::unique_ptr<SvXMLStylesContext_Impl> SvXMLStylesContext::mpImpl
private

◆ mxChartImpPropMapper

rtl::Reference< SvXMLImportPropertyMapper > SvXMLStylesContext::mxChartImpPropMapper
mutableprivate

Definition at line 139 of file xmlstyle.hxx.

Referenced by GetImportPropertyMapper().

◆ mxPageImpPropMapper

rtl::Reference< SvXMLImportPropertyMapper > SvXMLStylesContext::mxPageImpPropMapper
mutableprivate

Definition at line 140 of file xmlstyle.hxx.

Referenced by GetImportPropertyMapper().

◆ mxParaAutoStyles

css::uno::Reference< css::style::XAutoStyleFamily > SvXMLStylesContext::mxParaAutoStyles
private

Definition at line 132 of file xmlstyle.hxx.

Referenced by GetAutoStyles().

◆ mxParaImpPropMapper

rtl::Reference< SvXMLImportPropertyMapper > SvXMLStylesContext::mxParaImpPropMapper
private

Definition at line 136 of file xmlstyle.hxx.

Referenced by GetImportPropertyMapper().

◆ mxParaStyles

css::uno::Reference< css::container::XNameContainer > SvXMLStylesContext::mxParaStyles
private

Definition at line 128 of file xmlstyle.hxx.

Referenced by GetStylesContainer().

◆ mxShapeImpPropMapper

rtl::Reference< SvXMLImportPropertyMapper > SvXMLStylesContext::mxShapeImpPropMapper
private

Definition at line 138 of file xmlstyle.hxx.

Referenced by GetImportPropertyMapper().

◆ mxTextAutoStyles

css::uno::Reference< css::style::XAutoStyleFamily > SvXMLStylesContext::mxTextAutoStyles
private

Definition at line 134 of file xmlstyle.hxx.

Referenced by GetAutoStyles().

◆ mxTextImpPropMapper

rtl::Reference< SvXMLImportPropertyMapper > SvXMLStylesContext::mxTextImpPropMapper
private

Definition at line 137 of file xmlstyle.hxx.

Referenced by GetImportPropertyMapper().

◆ mxTextStyles

css::uno::Reference< css::container::XNameContainer > SvXMLStylesContext::mxTextStyles
private

Definition at line 130 of file xmlstyle.hxx.

Referenced by GetStylesContainer().


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