Abstract class. More...
#include <ODi_ListLevelStyle.h>
Public Member Functions | |
ODi_ListLevelStyle (const char *pStateName, ODi_ElementStack &rElementStack) | |
Constructor. | |
virtual | ~ODi_ListLevelStyle () |
virtual void | startElement (const gchar *pName, const gchar **ppAtts, ODi_ListenerStateAction &rAction) |
virtual void | endElement (const gchar *pName, ODi_ListenerStateAction &rAction) |
virtual void | charData (const gchar *, int) |
UT_uint32 | getLevelNumber () const |
void | setAbiListID (UT_uint32 abiListID) |
const std::string * | getAbiListID () const |
void | setAbiListParentID (const std::string &rAbiListParentID) |
bool | isVisible (void) const |
void | setAbiListParentID (const gchar *pParentID) |
const std::string * | getTextStyleName () const |
void | setTextStyle (const ODi_Style_Style *pTextStyle) |
const std::string * | getAbiListParentID () const |
void | getAbiProperties (std::string &rProps, const ODi_Style_Style *pStyle=NULL) const |
The AbiWord properties of the list depends on some properties already defined by the AbiWord paragraph style. | |
void | defineAbiList (PD_Document *pDocument) |
Defines a <l> tag on the AbiWord document corresponding to this list level style. | |
virtual void | buildAbiPropsString () |
const std::string * | getMinLabelDistance () const |
Protected Attributes | |
std::string | m_level |
UT_uint32 | m_levelNumber |
std::string | m_abiListID |
std::string | m_abiListParentID |
std::string | m_abiListType |
std::string | m_abiListStartValue |
std::string | m_abiListListDelim |
std::string | m_abiListListDecimal |
std::string | m_abiProperties |
std::string | m_spaceBefore |
std::string | m_minLabelWidth |
std::string | m_minLabelDistance |
std::string | m_textIndent |
std::string | m_marginLeft |
std::string | m_textStyleName |
const ODi_Style_Style * | m_pTextStyle |
Abstract class.
ODi_ListLevelStyle::ODi_ListLevelStyle | ( | const char * | pStateName, | |
ODi_ElementStack & | rElementStack | |||
) |
Constructor.
virtual ODi_ListLevelStyle::~ODi_ListLevelStyle | ( | ) | [inline, virtual] |
void ODi_ListLevelStyle::buildAbiPropsString | ( | ) | [virtual] |
Reimplemented in ODi_Bullet_ListLevelStyle, and ODi_Numbered_ListLevelStyle.
References m_abiProperties.
virtual void ODi_ListLevelStyle::charData | ( | const gchar * | , | |
int | ||||
) | [inline, virtual] |
Implements ODi_ListenerState.
void ODi_ListLevelStyle::defineAbiList | ( | PD_Document * | pDocument | ) |
Defines a <l> tag on the AbiWord document corresponding to this list level style.
References PD_Document::appendList(), m_abiListID, m_abiListListDecimal, m_abiListListDelim, m_abiListParentID, m_abiListStartValue, and m_abiListType.
void ODi_ListLevelStyle::endElement | ( | const gchar * | pName, | |
ODi_ListenerStateAction & | rAction | |||
) | [virtual] |
Implements ODi_ListenerState.
References m_textStyleName, ODi_ListenerStateAction::popState(), and xxx_UT_DEBUGMSG.
const std::string* ODi_ListLevelStyle::getAbiListID | ( | ) | const [inline] |
References m_abiListID.
Referenced by ODi_TextContent_ListenerState::_startParagraphElement().
const std::string* ODi_ListLevelStyle::getAbiListParentID | ( | ) | const [inline] |
References m_abiListParentID.
Referenced by ODi_TextContent_ListenerState::_startParagraphElement().
void ODi_ListLevelStyle::getAbiProperties | ( | std::string & | rProps, | |
const ODi_Style_Style * | pStyle = NULL | |||
) | const |
The AbiWord properties of the list depends on some properties already defined by the AbiWord paragraph style.
rProps | Will have the properties string appended. | |
pStyle | Pointer to the paragraph style used on this list paragraph. |
References gchar, ODi_Style_Style::getFamily(), ODi_Style_Style::getListStyleName(), ODi_Style_Style::getMarginLeft(), ODi_Style_Style::getParent(), ODi_Style_Style::getTextIndent(), m_abiProperties, m_marginLeft, m_minLabelWidth, m_spaceBefore, m_textIndent, and UT_convertToDimension().
Referenced by ODi_TextContent_ListenerState::_startParagraphElement().
UT_uint32 ODi_ListLevelStyle::getLevelNumber | ( | ) | const [inline] |
References m_levelNumber.
const std::string* ODi_ListLevelStyle::getMinLabelDistance | ( | ) | const [inline] |
References m_minLabelDistance.
const std::string* ODi_ListLevelStyle::getTextStyleName | ( | ) | const [inline] |
References m_textStyleName.
Referenced by ODi_Office_Styles::_linkListStyles().
bool ODi_ListLevelStyle::isVisible | ( | void | ) | const |
References m_abiListListDelim.
Referenced by ODi_TextContent_ListenerState::startElement().
void ODi_ListLevelStyle::setAbiListID | ( | UT_uint32 | abiListID | ) |
References gchar, and m_abiListID.
void ODi_ListLevelStyle::setAbiListParentID | ( | const gchar * | pParentID | ) | [inline] |
References m_abiListParentID.
void ODi_ListLevelStyle::setAbiListParentID | ( | const std::string & | rAbiListParentID | ) | [inline] |
References m_abiListParentID.
void ODi_ListLevelStyle::setTextStyle | ( | const ODi_Style_Style * | pTextStyle | ) | [inline] |
References m_pTextStyle.
Referenced by ODi_Office_Styles::_linkListStyles().
void ODi_ListLevelStyle::startElement | ( | const gchar * | pName, | |
const gchar ** | ppAtts, | |||
ODi_ListenerStateAction & | rAction | |||
) | [virtual] |
Implements ODi_ListenerState.
Reimplemented in ODi_Bullet_ListLevelStyle, and ODi_Numbered_ListLevelStyle.
References gchar, m_abiListListDelim, m_level, m_levelNumber, m_marginLeft, m_minLabelDistance, m_minLabelWidth, m_spaceBefore, m_textIndent, m_textStyleName, UT_DEBUGMSG, UT_getAttribute(), and xxx_UT_DEBUGMSG.
std::string ODi_ListLevelStyle::m_abiListID [protected] |
Referenced by defineAbiList(), getAbiListID(), and setAbiListID().
std::string ODi_ListLevelStyle::m_abiListListDecimal [protected] |
std::string ODi_ListLevelStyle::m_abiListListDelim [protected] |
std::string ODi_ListLevelStyle::m_abiListParentID [protected] |
Referenced by defineAbiList(), getAbiListParentID(), and setAbiListParentID().
std::string ODi_ListLevelStyle::m_abiListStartValue [protected] |
std::string ODi_ListLevelStyle::m_abiListType [protected] |
std::string ODi_ListLevelStyle::m_abiProperties [protected] |
std::string ODi_ListLevelStyle::m_level [protected] |
Referenced by startElement().
UT_uint32 ODi_ListLevelStyle::m_levelNumber [protected] |
Referenced by getLevelNumber(), and startElement().
std::string ODi_ListLevelStyle::m_marginLeft [protected] |
Referenced by getAbiProperties(), and startElement().
std::string ODi_ListLevelStyle::m_minLabelDistance [protected] |
Referenced by getMinLabelDistance(), and startElement().
std::string ODi_ListLevelStyle::m_minLabelWidth [protected] |
Referenced by getAbiProperties(), and startElement().
const ODi_Style_Style* ODi_ListLevelStyle::m_pTextStyle [protected] |
Referenced by ODi_Numbered_ListLevelStyle::buildAbiPropsString(), and setTextStyle().
std::string ODi_ListLevelStyle::m_spaceBefore [protected] |
Referenced by getAbiProperties(), and startElement().
std::string ODi_ListLevelStyle::m_textIndent [protected] |
Referenced by getAbiProperties(), and startElement().
std::string ODi_ListLevelStyle::m_textStyleName [protected] |
Referenced by endElement(), getTextStyleName(), and startElement().