Public Member Functions | Protected Attributes

ODi_ListLevelStyle Class Reference

Abstract class. More...

#include <ODi_ListLevelStyle.h>

Inheritance diagram for ODi_ListLevelStyle:
ODi_ListenerState ODi_Bullet_ListLevelStyle ODi_Numbered_ListLevelStyle

List of all members.

Public Member Functions

 ODi_ListLevelStyle (const char *pStateName, ODi_ElementStack &rElementStack)
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_Stylem_pTextStyle

Detailed Description

Abstract class.

Constructor & Destructor Documentation

ODi_ListLevelStyle::ODi_ListLevelStyle ( const char *  pStateName,
ODi_ElementStack rElementStack 


virtual ODi_ListLevelStyle::~ODi_ListLevelStyle (  )  [inline, virtual]

Member Function Documentation

void ODi_ListLevelStyle::buildAbiPropsString (  )  [virtual]
virtual void ODi_ListLevelStyle::charData ( const gchar *  ,
) [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(), gchar, m_abiListID, m_abiListListDecimal, m_abiListListDelim, m_abiListParentID, m_abiListStartValue, and m_abiListType.

void ODi_ListLevelStyle::endElement ( const gchar *  pName,
ODi_ListenerStateAction rAction 
) [virtual]
const std::string* ODi_ListLevelStyle::getAbiListID (  )  const [inline]
const std::string* ODi_ListLevelStyle::getAbiListParentID (  )  const [inline]
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]
bool ODi_ListLevelStyle::isVisible ( void   )  const
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]
void ODi_ListLevelStyle::startElement ( const gchar *  pName,
const gchar **  ppAtts,
ODi_ListenerStateAction rAction 
) [virtual]

Member Data Documentation

std::string ODi_ListLevelStyle::m_abiListID [protected]
std::string ODi_ListLevelStyle::m_level [protected]

Referenced by startElement().

std::string ODi_ListLevelStyle::m_marginLeft [protected]

Referenced by getAbiProperties(), and startElement().

std::string ODi_ListLevelStyle::m_minLabelWidth [protected]

Referenced by getAbiProperties(), and startElement().

std::string ODi_ListLevelStyle::m_spaceBefore [protected]

Referenced by getAbiProperties(), and startElement().

std::string ODi_ListLevelStyle::m_textIndent [protected]

Referenced by getAbiProperties(), and startElement().

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