Represents a <text:list-style> element. More...
#include <ODi_Style_List.h>
Public Member Functions | |
ODi_Style_List (ODi_ElementStack &rElementStack) | |
virtual | ~ODi_Style_List () |
Destructor. | |
void | startElement (const gchar *pName, const gchar **ppAtts, ODi_ListenerStateAction &rAction) |
void | endElement (const gchar *pName, ODi_ListenerStateAction &rAction) |
void | charData (const gchar *, int) |
void | defineAbiList (PD_Document *pDocument) |
void | redefine (PD_Document *pDocument, UT_uint32 iLevel) |
ODi_ListLevelStyle * | getLevelStyle (UT_uint32 level) const |
UT_sint32 | getLevelCount () const |
void | buildAbiPropertiesString () const |
Private Attributes | |
std::string | m_name |
std::string | m_displayName |
std::vector< ODi_ListLevelStyle * > | m_levelStyles |
bool | m_bListStyle |
Represents a <text:list-style> element.
ODi_Style_List::ODi_Style_List | ( | ODi_ElementStack & | rElementStack | ) | [inline] |
ODi_Style_List::~ODi_Style_List | ( | ) | [virtual] |
Destructor.
References m_levelStyles, and UT_std_delete_all().
void ODi_Style_List::buildAbiPropertiesString | ( | ) | const |
References m_levelStyles.
void ODi_Style_List::charData | ( | const gchar * | , | |
int | ||||
) | [inline, virtual] |
Implements ODi_ListenerState.
void ODi_Style_List::defineAbiList | ( | PD_Document * | pDocument | ) |
References PD_Document::getUID(), UT_UniqueId::List, and m_levelStyles.
void ODi_Style_List::endElement | ( | const gchar * | pName, | |
ODi_ListenerStateAction & | rAction | |||
) | [virtual] |
Implements ODi_ListenerState.
References m_bListStyle, and ODi_ListenerStateAction::popState().
UT_sint32 ODi_Style_List::getLevelCount | ( | ) | const [inline] |
References m_levelStyles.
Referenced by ODi_Office_Styles::_linkListStyles().
ODi_ListLevelStyle* ODi_Style_List::getLevelStyle | ( | UT_uint32 | level | ) | const [inline] |
void ODi_Style_List::redefine | ( | PD_Document * | pDocument, | |
UT_uint32 | iLevel | |||
) |
Each sublist in abiword needs it own unique identifier. When we drop back a level we have to redefine the ID's of the child levels This method gets called when this happens
References PD_Document::getUID(), UT_UniqueId::List, and m_levelStyles.
Referenced by ODi_TextContent_ListenerState::_startParagraphElement().
void ODi_Style_List::startElement | ( | const gchar * | pName, | |
const gchar ** | ppAtts, | |||
ODi_ListenerStateAction & | rAction | |||
) | [virtual] |
Implements ODi_ListenerState.
References gchar, m_bListStyle, m_levelStyles, m_name, ODi_ListenerState::m_rElementStack, ODi_ListenerStateAction::pushState(), UT_ASSERT, UT_getAttribute(), and xxx_UT_DEBUGMSG.
bool ODi_Style_List::m_bListStyle [private] |
Referenced by endElement(), and startElement().
std::string ODi_Style_List::m_displayName [private] |
std::vector<ODi_ListLevelStyle*> ODi_Style_List::m_levelStyles [private] |
Referenced by buildAbiPropertiesString(), defineAbiList(), getLevelCount(), getLevelStyle(), redefine(), startElement(), and ~ODi_Style_List().
std::string ODi_Style_List::m_name [private] |
Referenced by startElement().