![]() | InDesign SDK 20.5 |
#include <VOSObject.h>

Public Member Functions | |
| VOS_Object & | operator= (const VOS_Object &rhs)=delete |
| virtual int32 | VirtualLength () const =0 |
| virtual VOS_Object * | Duplicate () const =0 |
| virtual VOS_Object * | Divide (int32 atOffset)=0 |
| virtual bool16 | JoinWith (VOS_Object *next)=0 |
| virtual void | ReadWrite (IPMStream *s, ImplementationID prop)=0 |
| virtual void | Release () |
| virtual void | AddRef () |
| virtual void | SetDiskPage (IVOSDiskPage *block) |
| IVOSDiskPage * | GrabDiskPage () |
| IDataBase * | GetDataBase () const |
| void | InsertObj (VOS_Object *newone) |
| void | AppendObj (VOS_Object *newone) |
| void | AdjustObjectLength (int32 delta) |
| void | PreDirty (bool8 dbModified=kTrue) |
| bool16 | IsDirty () const |
| int32 | VirtualKey () const |
Snapshot routines | |
All snapshot routines are used by database snapshot for undo and SHOULD NOT be called directly. | |
| SnapshotID | GetSnapshotID () const |
| void | SetSnapshot (scoped_snapshotdataref &snapshot) |
| bool16 | IsSnapshotUptodate () const |
| void | SetSnapshotNotuptodate () |
Static Public Member Functions | |
| static void | InsertSavedData (VOS_Cursor &cursor, VOS_SavedData *datalist) |
Protected Member Functions | |
| VOS_Object (const VOS_Object ©) | |
VOS_Object is the basic object used to implement text model strands. Most Text Model strands are implemented as a list of VOSDiskPages, each containing an array of VOS_Object subclasses. A VOS_Cursor, returned from IVOSCache::Locate(), points to a VOS_Object. NOTE: This is a base class and is not derived from IPMUnknown.
| virtual |
Increment the object's ref count.
| inline |
Inform the containing object that an object in the container has changed its length.
| delta | is the adjustment to the length. Doesn't apply the delta to the object, just the container. |
| inline |
Append the object after the current object.
| newone | is the object to append. |
| pure virtual |
Splits the object in 2 and returns the bottom portion of the object.
| atOffset | is the split point, 0 < atOffset < VirtualLength(). |
Implemented in VOS_RedlineObject.
| pure virtual |
Create a copy of the object. It is not placed in the data structures, only copied.
Implemented in VOS_RedlineObject.
| inline |
Get the relevant database.
| inline |
Get without AddRef'ing the containing disk page.
| inline |
Insert the object into the container in front of this object.
| newone | is the object to insert. |
| static |
Insert the data contained in VOS_SavedData at the position specified by the cursor.
| cursor | is the location to insert at. |
| datalist | is the data to insert. |
| bool16 VOS_Object::IsDirty | ( | ) | const |
Is the object dirty?
| pure virtual |
Called during Write(), allows two adjacent objects that have become identical to combine.
| next | is the object that occurs next in the data structure. |
Implemented in VOS_RedlineObject.
| void VOS_Object::PreDirty | ( | bool8 | dbModified = kTrue | ) |
Mark the object dirty.
| pure virtual |
The object needs to read or write itself to disk.
| s | is the IPMStream. |
| prop | is the implementationID of the object. |
Implemented in VOS_RedlineObject.
| virtual |
Decrement the object's ref count, may delete itself when the refcount falls below 1.
| virtual |
PRIVATE: Used to set the object's pointer back to its container.
| block | is the containing disk page. |
| inline |
The VirtualKey is the absolute position of this object in a TextModel.
| pure virtual |
How many characters does this object represent?
Implemented in VOS_RedlineObject.