Abstract class. More...
#include <ODe_ListLevelStyle.h>
Public Member Functions | |
virtual | ~ODe_ListLevelStyle () |
virtual void | fetchAttributesFromAbiBlock (const PP_AttrProp &rAP) |
virtual bool | write (GsfOutput *pODT, const UT_UTF8String &rSpacesOffset) const =0 |
const UT_UTF8String & | getAbiListID () const |
const UT_UTF8String & | getFontName () const |
Static Public Member Functions | |
static void | calculateListMargins (const PP_AttrProp &rAP, UT_UTF8String &textIndent, UT_UTF8String &spaceBefore, UT_UTF8String &minLabelWidth, UT_UTF8String &marginLeft) |
Protected Member Functions | |
void | _writeTextProperties (GsfOutput *pODT, const UT_UTF8String &rSpacesOffset) const |
void | _writeListLevelProperties (GsfOutput *pODT, const UT_UTF8String &rSpacesOffset) const |
Protected Attributes | |
UT_UTF8String | m_AbiListId |
UT_UTF8String | m_level |
UT_UTF8String | m_fontName |
UT_UTF8String | m_textIndent |
UT_UTF8String | m_spaceBefore |
UT_UTF8String | m_minLabelWidth |
UT_UTF8String | m_marginLeft |
Abstract class.
Represents a <text:list-level-style-*> element
virtual ODe_ListLevelStyle::~ODe_ListLevelStyle | ( | ) | [inline, virtual] |
void ODe_ListLevelStyle::_writeListLevelProperties | ( | GsfOutput * | pODT, | |
const UT_UTF8String & | rSpacesOffset | |||
) | const [protected] |
void ODe_ListLevelStyle::_writeTextProperties | ( | GsfOutput * | pODT, | |
const UT_UTF8String & | rSpacesOffset | |||
) | const [protected] |
References UT_UTF8String::empty(), m_fontName, ODe_writeUTF8String(), UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by ODe_Numbered_ListLevelStyle::write(), and ODe_Bullet_ListLevelStyle::write().
void ODe_ListLevelStyle::calculateListMargins | ( | const PP_AttrProp & | rAP, | |
UT_UTF8String & | textIndent, | |||
UT_UTF8String & | spaceBefore, | |||
UT_UTF8String & | minLabelWidth, | |||
UT_UTF8String & | marginLeft | |||
) | [static] |
References DIM_CM, gchar, PP_AttrProp::getProperty(), UT_convertToDimension(), UT_dimensionName(), and UT_UTF8String_sprintf().
Referenced by ODe_Style_Style::fetchAttributesFromAbiBlock(), and fetchAttributesFromAbiBlock().
void ODe_ListLevelStyle::fetchAttributesFromAbiBlock | ( | const PP_AttrProp & | rAP | ) | [virtual] |
Reimplemented in ODe_Bullet_ListLevelStyle, and ODe_Numbered_ListLevelStyle.
References calculateListMargins(), gchar, PP_AttrProp::getAttribute(), m_AbiListId, m_level, m_marginLeft, m_minLabelWidth, m_spaceBefore, m_textIndent, and UT_ASSERT.
Referenced by ODe_Style_List::setLevelStyle().
const UT_UTF8String& ODe_ListLevelStyle::getAbiListID | ( | ) | const [inline] |
References m_AbiListId.
Referenced by ODe_Text_Listener::_openODListItem().
const UT_UTF8String& ODe_ListLevelStyle::getFontName | ( | ) | const [inline] |
References m_fontName.
virtual bool ODe_ListLevelStyle::write | ( | GsfOutput * | pODT, | |
const UT_UTF8String & | rSpacesOffset | |||
) | const [pure virtual] |
Implemented in ODe_Bullet_ListLevelStyle, and ODe_Numbered_ListLevelStyle.
UT_UTF8String ODe_ListLevelStyle::m_AbiListId [protected] |
Referenced by fetchAttributesFromAbiBlock(), and getAbiListID().
UT_UTF8String ODe_ListLevelStyle::m_fontName [protected] |
Referenced by _writeTextProperties(), ODe_Bullet_ListLevelStyle::fetchAttributesFromAbiBlock(), and getFontName().
UT_UTF8String ODe_ListLevelStyle::m_level [protected] |
UT_UTF8String ODe_ListLevelStyle::m_marginLeft [protected] |
Referenced by _writeListLevelProperties(), and fetchAttributesFromAbiBlock().
UT_UTF8String ODe_ListLevelStyle::m_minLabelWidth [protected] |
Referenced by _writeListLevelProperties(), and fetchAttributesFromAbiBlock().
UT_UTF8String ODe_ListLevelStyle::m_spaceBefore [protected] |
Referenced by _writeListLevelProperties(), and fetchAttributesFromAbiBlock().
UT_UTF8String ODe_ListLevelStyle::m_textIndent [protected] |
Referenced by _writeListLevelProperties(), and fetchAttributesFromAbiBlock().