LibreOffice Module xmloff (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
XMLFontStylesContext Class Referencefinal

#include <XMLFontStylesContext.hxx>

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

Public Member Functions

 XMLFontStylesContext (SvXMLImport &rImport, rtl_TextEncoding eDfltEnc)
 
 ~XMLFontStylesContext () override
 
const SvXMLTokenMapGetFontStyleAttrTokenMap () const
 
bool FillProperties (const OUString &rName,::std::vector< XMLPropertyState > &rProps, sal_Int32 nFamilyNameIdx, sal_Int32 nStyleNameIdx, sal_Int32 nFamilyIdx, sal_Int32 nPitchIdx, sal_Int32 nCharsetIdx) const
 
rtl_TextEncoding GetDfltCharset () const
 
XMLFontFamilyNamePropHdlGetFamilyNameHdl () const
 
XMLFontFamilyPropHdlGetFamilyHdl () const
 
XMLFontPitchPropHdlGetPitchHdl () const
 
XMLFontEncodingPropHdlGetEncodingHdl () 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 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
 

Private Member Functions

virtual SvXMLStyleContextCreateStyleChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
 

Private Attributes

std::unique_ptr< XMLFontFamilyNamePropHdlpFamilyNameHdl
 
std::unique_ptr< XMLFontFamilyPropHdlpFamilyHdl
 
std::unique_ptr< XMLFontPitchPropHdlpPitchHdl
 
std::unique_ptr< XMLFontEncodingPropHdlpEncHdl
 
std::unique_ptr< SvXMLTokenMappFontStyleAttrTokenMap
 
rtl_TextEncoding eDfltEncoding
 

Additional Inherited Members

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

Detailed Description

Definition at line 37 of file XMLFontStylesContext.hxx.

Constructor & Destructor Documentation

XMLFontStylesContext::XMLFontStylesContext ( SvXMLImport rImport,
rtl_TextEncoding  eDfltEnc 
)

Definition at line 359 of file XMLFontStylesContext.cxx.

XMLFontStylesContext::~XMLFontStylesContext ( )
override

Definition at line 371 of file XMLFontStylesContext.cxx.

Member Function Documentation

SvXMLStyleContext * XMLFontStylesContext::CreateStyleChildContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overrideprivatevirtual
bool XMLFontStylesContext::FillProperties ( const OUString &  rName,
::std::vector< XMLPropertyState > &  rProps,
sal_Int32  nFamilyNameIdx,
sal_Int32  nStyleNameIdx,
sal_Int32  nFamilyIdx,
sal_Int32  nPitchIdx,
sal_Int32  nCharsetIdx 
) const
rtl_TextEncoding XMLFontStylesContext::GetDfltCharset ( ) const
inline
XMLFontEncodingPropHdl& XMLFontStylesContext::GetEncodingHdl ( ) const
inline

Definition at line 76 of file XMLFontStylesContext.hxx.

Referenced by XMLFontStyleContextFontFace::SetAttribute().

XMLFontFamilyPropHdl& XMLFontStylesContext::GetFamilyHdl ( ) const
inline

Definition at line 74 of file XMLFontStylesContext.hxx.

Referenced by XMLFontStyleContextFontFace::SetAttribute().

XMLFontFamilyNamePropHdl& XMLFontStylesContext::GetFamilyNameHdl ( ) const
inline

Definition at line 73 of file XMLFontStylesContext.hxx.

Referenced by XMLFontStyleContextFontFace::SetAttribute().

const SvXMLTokenMap& XMLFontStylesContext::GetFontStyleAttrTokenMap ( ) const
inline

Definition at line 58 of file XMLFontStylesContext.hxx.

Referenced by XMLFontStyleContextFontFace::SetAttribute().

XMLFontPitchPropHdl& XMLFontStylesContext::GetPitchHdl ( ) const
inline

Definition at line 75 of file XMLFontStylesContext.hxx.

Referenced by XMLFontStyleContextFontFace::SetAttribute().

Member Data Documentation

rtl_TextEncoding XMLFontStylesContext::eDfltEncoding
private

Definition at line 46 of file XMLFontStylesContext.hxx.

std::unique_ptr<XMLFontEncodingPropHdl> XMLFontStylesContext::pEncHdl
private

Definition at line 42 of file XMLFontStylesContext.hxx.

std::unique_ptr<XMLFontFamilyPropHdl> XMLFontStylesContext::pFamilyHdl
private

Definition at line 40 of file XMLFontStylesContext.hxx.

std::unique_ptr<XMLFontFamilyNamePropHdl> XMLFontStylesContext::pFamilyNameHdl
private

Definition at line 39 of file XMLFontStylesContext.hxx.

std::unique_ptr<SvXMLTokenMap> XMLFontStylesContext::pFontStyleAttrTokenMap
private

Definition at line 44 of file XMLFontStylesContext.hxx.

std::unique_ptr<XMLFontPitchPropHdl> XMLFontStylesContext::pPitchHdl
private

Definition at line 41 of file XMLFontStylesContext.hxx.


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