|
LibreOffice Module shell (master) 1
|
Implements the ITag interface for building a Style-Locale list. More...
#include <autostyletag.hxx>
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 |
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.
|
inline |
Definition at line 40 of file autostyletag.hxx.
|
explicit |
Definition at line 24 of file autostyletag.cxx.
References addAttributes().
|
overridevirtual |
Implements ITag.
Definition at line 42 of file autostyletag.cxx.
References clearStyleLocalePair(), CONTENT_STYLE_PROPERTIES_COUNTRY, CONTENT_STYLE_PROPERTIES_COUNTRYASIAN, CONTENT_STYLE_PROPERTIES_LANGUAGE, CONTENT_STYLE_PROPERTIES_LANGUAGEASIAN, CONTENT_STYLE_STYLE_NAME, EMPTY_STYLELOCALE_PAIR, m_CurrentStyleLocalePair, setLocale(), and setStyle().
Referenced by CAutoStyleTag().
|
overridevirtual |
Implements ITag.
Definition at line 38 of file autostyletag.cxx.
| void CAutoStyleTag::clearStyleLocalePair | ( | ) |
Definition at line 85 of file autostyletag.cxx.
References EMPTY_STYLELOCALE_PAIR, and m_CurrentStyleLocalePair.
Referenced by addAttributes().
|
overridevirtual |
Implements ITag.
Definition at line 34 of file autostyletag.cxx.
|
inline |
Definition at line 53 of file autostyletag.hxx.
References m_CurrentStyleLocalePair.
|
inlineoverridevirtual |
Implements ITag.
Definition at line 48 of file autostyletag.hxx.
|
inlineoverridevirtual |
|
inline |
Definition at line 54 of file autostyletag.hxx.
References EMPTY_LOCALE, EMPTY_STRING, and m_CurrentStyleLocalePair.
| void CAutoStyleTag::setLocale | ( | const LocaleSet_t & | Locale | ) |
Definition at line 80 of file autostyletag.cxx.
References Locale, and m_CurrentStyleLocalePair.
Referenced by addAttributes().
| void CAutoStyleTag::setStyle | ( | ::std::wstring const & | Style | ) |
Definition at line 75 of file autostyletag.cxx.
References m_CurrentStyleLocalePair, and Style.
Referenced by addAttributes().
|
overridevirtual |
Implements ITag.
Definition at line 30 of file autostyletag.cxx.
|
private |
Definition at line 61 of file autostyletag.hxx.
Referenced by addAttributes(), clearStyleLocalePair(), getStyleLocalePair(), isFull(), setLocale(), and setStyle().