Aspose::Words::Revision Class Reference

Represents a revision (tracked change) in a document node or style. Use Aspose::Words::Revision::get_RevisionType to check the type of this revision. More...

#include "Aspose.Words.Cpp/Model/Revisions/Revision.h"

Inherits System::Object.

Public Member Functions

System::String get_Author ()
 Gets or sets the author of this revision. Can not be empty string or null. More...
 
void set_Author (System::String value)
 Setter for Aspose::Words::Revision::get_Author. More...
 
System::DateTime get_DateTime ()
 Gets or sets the date/time of this revision. More...
 
void set_DateTime (System::DateTime value)
 Setter for Aspose::Words::Revision::get_DateTime. More...
 
Aspose::Words::RevisionType get_RevisionType () const
 Gets the type of this revision. More...
 
System::SharedPtr< Aspose::Words::Nodeget_ParentNode ()
 Gets the immediate parent node (owner) of this revision. This property will work for any revision type other than Aspose::Words::RevisionType::StyleDefinitionChange. More...
 
System::SharedPtr< Aspose::Words::Styleget_ParentStyle ()
 Gets the immediate parent style (owner) of this revision. This property will work for only for the Aspose::Words::RevisionType::StyleDefinitionChange revision type. More...
 
System::SharedPtr< Aspose::Words::RevisionGroupget_Group ()
 Gets the revision group. Returns null if the revision does not belong to any group. More...
 
void Accept ()
 Accepts this revision. More...
 
void Reject ()
 Reject this revision. More...
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () ASPOSE_CONST
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Detailed Description

Represents a revision (tracked change) in a document node or style. Use Aspose::Words::Revision::get_RevisionType to check the type of this revision.

Member Function Documentation

◆ Accept()

void Aspose::Words::Revision::Accept ( )

Accepts this revision.

◆ get_Author()

System::String Aspose::Words::Revision::get_Author ( )

Gets or sets the author of this revision. Can not be empty string or null.

◆ get_DateTime()

System::DateTime Aspose::Words::Revision::get_DateTime ( )

Gets or sets the date/time of this revision.

◆ get_Group()

System::SharedPtr<Aspose::Words::RevisionGroup> Aspose::Words::Revision::get_Group ( )

Gets the revision group. Returns null if the revision does not belong to any group.

Revision has no group if revision type is RevisionType.StyleDefinitionChange or if the revision is not longer exist in document context (accepted/rejected).

◆ get_ParentNode()

System::SharedPtr<Aspose::Words::Node> Aspose::Words::Revision::get_ParentNode ( )

Gets the immediate parent node (owner) of this revision. This property will work for any revision type other than Aspose::Words::RevisionType::StyleDefinitionChange.

If this revision relates to change of Style formatting, use Aspose::Words::Revision::get_ParentStyle instead.

◆ get_ParentStyle()

System::SharedPtr<Aspose::Words::Style> Aspose::Words::Revision::get_ParentStyle ( )

Gets the immediate parent style (owner) of this revision. This property will work for only for the Aspose::Words::RevisionType::StyleDefinitionChange revision type.

If this revision relates to changes on document nodes, use Aspose::Words::Revision::get_ParentNode instead.

◆ get_RevisionType()

Aspose::Words::RevisionType Aspose::Words::Revision::get_RevisionType ( ) const

Gets the type of this revision.

◆ Reject()

void Aspose::Words::Revision::Reject ( )

Reject this revision.

◆ set_Author()

void Aspose::Words::Revision::set_Author ( System::String  value)

◆ set_DateTime()

void Aspose::Words::Revision::set_DateTime ( System::DateTime  value)