Public Member Functions | Private Member Functions | Private Attributes

PP_Revision Class Reference

#include <pp_Revision.h>

Inheritance diagram for PP_Revision:

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 PP_PropertyVector &props, const PP_PropertyVector &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
const gchar * getAttrsString () const
bool setAttributes (const std::vector< std::string > &attributes)
bool operator== (const PP_Revision &op2) const
std::string toString () const
bool onlyContainsAbiwordChangeTrackingMarkup () const

Private Member Functions

void _refreshString () const
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 PP_PropertyVector props,
const PP_PropertyVector attrs 
virtual PP_Revision::~PP_Revision (  )  [inline, virtual]

Member Function Documentation

const gchar * PP_Revision::getAttrsString (  )  const
const gchar * PP_Revision::getPropsString (  )  const

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::addRevision(), PP_RevisionAttr::mergeAll(), and toString().

bool PP_Revision::onlyContainsAbiwordChangeTrackingMarkup (  )  const
bool PP_Revision::setAttributes ( const std::vector< std::string > &  attributes  ) 
void PP_Revision::setId ( UT_uint32  iId  )  [inline]
void PP_Revision::setType ( PP_RevisionType  t  )  [inline]

Member Data Documentation

bool PP_Revision::m_bDirty [mutable, private]
UT_String PP_Revision::m_sXMLAttrs [mutable, private]

Referenced by _refreshString(), and getAttrsString().

UT_String PP_Revision::m_sXMLProps [mutable, private]

Referenced by _refreshString(), and getPropsString().

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