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 void SAL_CALL startFastElement (sal_Int32, const css::uno::Reference< css::xml::sax::XFastAttributeList > &) 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
bool IsPrefixFilledIn () const
 
sal_uInt16 GetPrefix () const
 
const OUString & GetLocalName () const
 
 SvXMLImportContext (SvXMLImport &rImport, sal_uInt16 nPrfx, const OUString &rLName)
 A contexts constructor does anything that is required if an element starts. More...
 
 SvXMLImportContext (SvXMLImport &rImport)
 
virtual ~SvXMLImportContext ()
 A contexts destructor does anything that is required if an element ends. More...
 
virtual SvXMLImportContextRef CreateChildContext (sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList)
 Create a children element context. More...
 
virtual void StartElement (const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList)
 StartElement is called after a context has been constructed and before an elements context is parsed. More...
 
virtual void EndElement ()
 EndElement is called before a context will be destructed, but after an elements context has been parsed. More...
 
virtual void Characters (const OUString &rChars)
 This method is called for all characters that are contained in the current element. More...
 
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
 
virtual void SAL_CALL endUnknownElement (const OUString &Namespace, const OUString &Name) 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
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) final override
 
virtual void SAL_CALL acquire () final override throw ()
 
virtual void SAL_CALL release () final override throw ()
 
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 (const OUString &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 142 of file xmlstyle.hxx.

Constructor & Destructor Documentation

SvXMLStylesContext::SvXMLStylesContext ( SvXMLStylesContext const &  )
privatedelete
SvXMLStylesContext::SvXMLStylesContext ( SvXMLImport rImport,
bool  bAutomatic = false 
)

Definition at line 708 of file xmlstyle.cxx.

SvXMLStylesContext::~SvXMLStylesContext ( )
overridevirtual

Definition at line 714 of file xmlstyle.cxx.

Member Function Documentation

void SvXMLStylesContext::AddStyle ( SvXMLStyleContext rNew)

Definition at line 733 of file xmlstyle.cxx.

References mpImpl.

Referenced by SvXMLImport::SetAutoStyles().

void SvXMLStylesContext::CopyAutoStylesToDoc ( )
void SvXMLStylesContext::CopyStylesToDoc ( bool  bOverwrite,
bool  bFinish = true 
)
SvXMLStyleContext * SvXMLStylesContext::CreateDefaultStyleStyleChildContext ( XmlStyleFamily  nFamily,
sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
protectedvirtual
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 718 of file xmlstyle.cxx.

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

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

Definition at line 738 of file xmlstyle.cxx.

References mpImpl.

const SvXMLStyleContext * SvXMLStylesContext::FindStyleChildContext ( XmlStyleFamily  nFamily,
const OUString &  rName,
bool  bCreateIndex = false 
) const
void SvXMLStylesContext::FinishStyles ( bool  bOverwrite)
Reference< XAutoStyleFamily > SvXMLStylesContext::GetAutoStyles ( XmlStyleFamily  nFamily) const
XmlStyleFamily SvXMLStylesContext::GetFamily ( const OUString &  rFamily)
static
rtl::Reference< SvXMLImportPropertyMapper > SvXMLStylesContext::GetImportPropertyMapper ( XmlStyleFamily  nFamily) const
virtual
OUString SvXMLStylesContext::GetServiceName ( XmlStyleFamily  nFamily) const
virtual
SvXMLStyleContext * SvXMLStylesContext::GetStyle ( sal_uInt32  i)
protected
const SvXMLStyleContext * SvXMLStylesContext::GetStyle ( sal_uInt32  i) const
protected

Definition at line 321 of file xmlstyle.cxx.

References mpImpl.

sal_uInt32 SvXMLStylesContext::GetStyleCount ( ) const
protected
Reference< XNameContainer > SvXMLStylesContext::GetStylesContainer ( XmlStyleFamily  nFamily) const
virtual
bool SvXMLStylesContext::InsertStyleFamily ( XmlStyleFamily  nFamily) const
protectedvirtual

Reimplemented in XMLTextMasterStylesContext.

Definition at line 468 of file xmlstyle.cxx.

Referenced by CopyStylesToDoc(), and FinishStyles().

bool SvXMLStylesContext::IsAutomaticStyle ( ) const

Definition at line 326 of file xmlstyle.cxx.

References mpImpl.

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

SvXMLStylesContext& SvXMLStylesContext::operator= ( SvXMLStylesContext const &  )
privatedelete
virtual void SAL_CALL SvXMLStylesContext::startFastElement ( sal_Int32  ,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &   
)
inlineoverridevirtual

Reimplemented from SvXMLImportContext.

Definition at line 191 of file xmlstyle.hxx.

Member Data Documentation

std::unique_ptr<SvXMLStylesContext_Impl> SvXMLStylesContext::mpImpl
private
rtl::Reference< SvXMLImportPropertyMapper > SvXMLStylesContext::mxChartImpPropMapper
mutableprivate

Definition at line 158 of file xmlstyle.hxx.

Referenced by GetImportPropertyMapper().

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

Definition at line 159 of file xmlstyle.hxx.

Referenced by GetImportPropertyMapper().

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

Definition at line 151 of file xmlstyle.hxx.

Referenced by GetAutoStyles().

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

Definition at line 155 of file xmlstyle.hxx.

Referenced by GetImportPropertyMapper().

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

Definition at line 147 of file xmlstyle.hxx.

Referenced by GetStylesContainer().

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

Definition at line 157 of file xmlstyle.hxx.

Referenced by GetImportPropertyMapper().

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

Definition at line 153 of file xmlstyle.hxx.

Referenced by GetAutoStyles().

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

Definition at line 156 of file xmlstyle.hxx.

Referenced by GetImportPropertyMapper().

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

Definition at line 149 of file xmlstyle.hxx.

Referenced by GetStylesContainer().


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