PP_Revision Class Reference

#include <pp_Revision.h>

Inheritance diagram for PP_Revision:

PP_AttrProp

List of all members.

Public Member Functions

 PP_Revision (UT_uint32 Id, PP_RevisionType eType, const gchar *props, const gchar *attrs)
 PP_Revision (UT_uint32 Id, PP_RevisionType eType, const gchar **props, const gchar **attrs)
virtual ~PP_Revision ()
UT_uint32 getId () const
void setId (UT_uint32 iId)
PP_RevisionType getType () const
void setType (PP_RevisionType t)
const gchar * getPropsString ()
const gchar * getAttrsString ()
bool setAttributes (const gchar **attributes)
bool operator== (const PP_Revision &op2) const

Private Member Functions

void _refreshString ()
bool _handleNestedRevAttr ()

Private Attributes

UT_uint32 m_iID
PP_RevisionType m_eType
UT_String m_sXMLProps
UT_String m_sXMLAttrs
bool m_bDirty


Detailed Description

PP_Revision is a class that encapsulates a single revision, holding its id, type and associated properties and attributes. It provides functions for retrieving information and from merging properties

Constructor & Destructor Documentation

PP_Revision::PP_Revision ( UT_uint32  Id,
PP_RevisionType  eType,
const gchar *  props,
const gchar *  attrs 
)

PP_Revision::PP_Revision ( UT_uint32  Id,
PP_RevisionType  eType,
const gchar **  props,
const gchar **  attrs 
)

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


Member Function Documentation

UT_uint32 PP_Revision::getId (  )  const [inline]

void PP_Revision::setId ( UT_uint32  iId  )  [inline]

PP_RevisionType PP_Revision::getType ( void   )  const [inline]

void PP_Revision::setType ( PP_RevisionType  t  )  [inline]

const gchar * PP_Revision::getPropsString (  ) 

converts the internal vector of properties into XML string

References _refreshString(), UT_String::c_str(), gchar, m_bDirty, and m_sXMLProps.

Referenced by PP_RevisionAttr::_refreshString().

const gchar * PP_Revision::getAttrsString (  ) 

converts the internal vector of attributes into XML string

References _refreshString(), UT_String::c_str(), gchar, m_bDirty, and m_sXMLAttrs.

Referenced by PP_RevisionAttr::_refreshString().

bool PP_Revision::setAttributes ( const gchar **  attributes  ) 

Sets attributes taking care of any nested revision attribute (which needs to be parsed and combined with the current AP set.

Reimplemented from PP_AttrProp.

References _handleNestedRevAttr(), and PP_AttrProp::setAttributes().

Referenced by _handleNestedRevAttr(), PP_RevisionAttr::addRevision(), PP_Revision(), and PP_RevisionAttr::pruneForCumulativeResult().

bool PP_Revision::operator== ( const PP_Revision op2  )  const

void PP_Revision::_refreshString (  )  [private]

bool PP_Revision::_handleNestedRevAttr (  )  [private]


Member Data Documentation

Referenced by _refreshString(), and getPropsString().

Referenced by _refreshString(), and getAttrsString().

bool PP_Revision::m_bDirty [private]


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

Generated on Fri Oct 10 00:07:09 2008 for AbiWord by  doxygen 1.5.5