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
 
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 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 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 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
 

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
 
- Protected Member Functions inherited from SvXMLStylesContext
sal_uInt32 GetStyleCount () const
 
SvXMLStyleContextGetStyle (sal_uInt32 i)
 
const SvXMLStyleContextGetStyle (sal_uInt32 i) const
 
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, const OUString &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 (const OUString &rFamily)
 

Detailed Description

Definition at line 166 of file ximpstyl.hxx.

Constructor & Destructor Documentation

SdXMLStylesContext::SdXMLStylesContext ( SdXMLImport rImport,
bool  bIsAutoStyle 
)

Member Function Documentation

SvXMLStyleContext * SdXMLStylesContext::CreateDefaultStyleStyleChildContext ( XmlStyleFamily  nFamily,
sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overrideprotectedvirtual
SvXMLStyleContext * SdXMLStylesContext::CreateStyleChildContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overrideprotectedvirtual
SvXMLStyleContext * SdXMLStylesContext::CreateStyleStyleChildContext ( XmlStyleFamily  nFamily,
sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overrideprotectedvirtual
void SdXMLStylesContext::endFastElement ( sal_Int32  nElement)
overridevirtual
rtl::Reference< SvXMLImportPropertyMapper > SdXMLStylesContext::GetImportPropertyMapper ( XmlStyleFamily  nFamily) const
overridevirtual
uno::Reference< container::XNameAccess > SdXMLStylesContext::getPageLayouts ( ) const
const SdXMLImport& SdXMLStylesContext::GetSdImport ( ) const
inlineprivate
SdXMLImport& SdXMLStylesContext::GetSdImport ( )
inlineprivate

Definition at line 174 of file ximpstyl.hxx.

References SvXMLImportContext::GetImport().

void SdXMLStylesContext::ImpSetCellStyles ( ) const
private

Definition at line 1076 of file ximpstyl.cxx.

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

Referenced by endFastElement().

void SdXMLStylesContext::ImpSetGraphicStyles ( ) const
private
void SdXMLStylesContext::ImpSetGraphicStyles ( css::uno::Reference< css::container::XNameAccess > const &  xPageStyles,
XmlStyleFamily  nFamily,
const OUString &  rPrefix 
) const
private
void SdXMLStylesContext::SetMasterPageStyles ( SdXMLMasterPageContext const &  rMaster) const

Member Data Documentation

bool SdXMLStylesContext::mbIsAutoStyle
private

Definition at line 169 of file ximpstyl.hxx.

Referenced by endFastElement().

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

Definition at line 170 of file ximpstyl.hxx.

Referenced by CreateStyleChildContext(), and SdXMLStylesContext().

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

Definition at line 171 of file ximpstyl.hxx.

Referenced by SdXMLStylesContext().

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

Definition at line 168 of file ximpstyl.hxx.

Referenced by GetImportPropertyMapper().


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