LibreOffice Module shell (master) 1
Public Member Functions | Private Attributes | List of all members
CAutoStyleTag Class Reference

Implements the ITag interface for building a Style-Locale list. More...

#include <autostyletag.hxx>

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

Public Member Functions

 CAutoStyleTag ()
 
 CAutoStyleTag (const XmlTagAttributes_t &attributes)
 
virtual void startTag () override
 
virtual void endTag () override
 
virtual void addCharacters (const std::wstring &characters) override
 
virtual void addAttributes (const XmlTagAttributes_t &attributes) override
 
virtual std::wstring getTagContent () override
 
virtual ::std::wstring getTagAttribute (::std::wstring const &) override
 
void setStyle (::std::wstring const &Style)
 
void setLocale (const LocaleSet_t &Locale)
 
void clearStyleLocalePair ()
 
StyleLocalePair_t getStyleLocalePair () const
 
bool isFull () const
 
- Public Member Functions inherited from ITag
virtual ~ITag ()
 
virtual void startTag ()=0
 
virtual void endTag ()=0
 
virtual void addCharacters (const std::wstring &characters)=0
 
virtual void addAttributes (const XmlTagAttributes_t &attributes)=0
 
virtual ::std::wstring getTagContent ()=0
 
virtual ::std::wstring getTagAttribute (::std::wstring const &attrname)=0
 

Private Attributes

StyleLocalePair_t m_CurrentStyleLocalePair
 

Detailed Description

Implements the ITag interface for building a Style-Locale list.

Usage sample:

LocaleSet_t locale = meta_info_accessor.getDefaultLocale(); CContentReader content( m_szFileName, locale ); CStyleMap map = content.getStyleMap();

Definition at line 37 of file autostyletag.hxx.

Constructor & Destructor Documentation

◆ CAutoStyleTag() [1/2]

CAutoStyleTag::CAutoStyleTag ( )
inline

Definition at line 40 of file autostyletag.hxx.

◆ CAutoStyleTag() [2/2]

CAutoStyleTag::CAutoStyleTag ( const XmlTagAttributes_t attributes)
explicit

Definition at line 24 of file autostyletag.cxx.

References addAttributes().

Member Function Documentation

◆ addAttributes()

void CAutoStyleTag::addAttributes ( const XmlTagAttributes_t attributes)
overridevirtual

◆ addCharacters()

void CAutoStyleTag::addCharacters ( const std::wstring &  characters)
overridevirtual

Implements ITag.

Definition at line 38 of file autostyletag.cxx.

◆ clearStyleLocalePair()

void CAutoStyleTag::clearStyleLocalePair ( )

Definition at line 85 of file autostyletag.cxx.

References EMPTY_STYLELOCALE_PAIR, and m_CurrentStyleLocalePair.

Referenced by addAttributes().

◆ endTag()

void CAutoStyleTag::endTag ( )
overridevirtual

Implements ITag.

Definition at line 34 of file autostyletag.cxx.

◆ getStyleLocalePair()

StyleLocalePair_t CAutoStyleTag::getStyleLocalePair ( ) const
inline

Definition at line 53 of file autostyletag.hxx.

References m_CurrentStyleLocalePair.

◆ getTagAttribute()

virtual ::std::wstring CAutoStyleTag::getTagAttribute ( ::std::wstring const &  )
inlineoverridevirtual

Implements ITag.

Definition at line 48 of file autostyletag.hxx.

◆ getTagContent()

virtual std::wstring CAutoStyleTag::getTagContent ( )
inlineoverridevirtual

Implements ITag.

Definition at line 47 of file autostyletag.hxx.

References EMPTY_STRING.

◆ isFull()

bool CAutoStyleTag::isFull ( ) const
inline

Definition at line 54 of file autostyletag.hxx.

References EMPTY_LOCALE, EMPTY_STRING, and m_CurrentStyleLocalePair.

◆ setLocale()

void CAutoStyleTag::setLocale ( const LocaleSet_t Locale)

Definition at line 80 of file autostyletag.cxx.

References Locale, and m_CurrentStyleLocalePair.

Referenced by addAttributes().

◆ setStyle()

void CAutoStyleTag::setStyle ( ::std::wstring const &  Style)

Definition at line 75 of file autostyletag.cxx.

References m_CurrentStyleLocalePair, and Style.

Referenced by addAttributes().

◆ startTag()

void CAutoStyleTag::startTag ( )
overridevirtual

Implements ITag.

Definition at line 30 of file autostyletag.cxx.

Member Data Documentation

◆ m_CurrentStyleLocalePair

StyleLocalePair_t CAutoStyleTag::m_CurrentStyleLocalePair
private

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