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)
 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 UT_UTF8StringgetAbiListID () const
void setAbiListParentID (const UT_UTF8String &rAbiListParentID)
bool isVisible (void) const
void setAbiListParentID (const gchar *pParentID)
const UT_UTF8StringgetTextStyleName () const
void setTextStyle (const ODi_Style_Style *pTextStyle)
const UT_UTF8StringgetAbiListParentID () const
void getAbiProperties (UT_UTF8String &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 UT_UTF8StringgetMinLabelDistance () const

Protected Attributes

UT_UTF8String m_level
UT_uint32 m_levelNumber
UT_UTF8String m_abiListID
UT_UTF8String m_abiListParentID
UT_UTF8String m_abiListType
UT_UTF8String m_abiListStartValue
UT_UTF8String m_abiListListDelim
UT_UTF8String m_abiListListDecimal
UT_UTF8String m_abiProperties
UT_UTF8String m_spaceBefore
UT_UTF8String m_minLabelWidth
UT_UTF8String m_minLabelDistance
UT_UTF8String m_textIndent
UT_UTF8String m_marginLeft
UT_UTF8String m_textStyleName
const ODi_Style_Stylem_pTextStyle

Detailed Description

Abstract class.


Constructor & Destructor Documentation

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

Constructor.

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

Member Function Documentation

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

void ODi_ListLevelStyle::endElement ( const gchar *  pName,
ODi_ListenerStateAction rAction 
) [virtual]
const UT_UTF8String* ODi_ListLevelStyle::getAbiListID (  )  const [inline]
const UT_UTF8String* ODi_ListLevelStyle::getAbiListParentID (  )  const [inline]
void ODi_ListLevelStyle::getAbiProperties ( UT_UTF8String 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.

Parameters:
rProps Will have the properties string appended.
pStyle Pointer to the paragraph style used on this list paragraph.

References UT_UTF8String::append(), UT_UTF8String::empty(), 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, UT_convertToDimension(), and UT_UTF8String::utf8_str().

Referenced by ODi_TextContent_ListenerState::_startParagraphElement().

UT_uint32 ODi_ListLevelStyle::getLevelNumber (  )  const [inline]

References m_levelNumber.

const UT_UTF8String* ODi_ListLevelStyle::getMinLabelDistance (  )  const [inline]

References m_minLabelDistance.

const UT_UTF8String* ODi_ListLevelStyle::getTextStyleName (  )  const [inline]
bool ODi_ListLevelStyle::isVisible ( void   )  const
void ODi_ListLevelStyle::setAbiListID ( UT_uint32  abiListID  ) 
void ODi_ListLevelStyle::setAbiListParentID ( const gchar *  pParentID  )  [inline]
void ODi_ListLevelStyle::setAbiListParentID ( const UT_UTF8String 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


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