InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IViewObjectChanges Class Referenceabstract

#include <IViewObjectChanges.h>

Inheritance diagram for IViewObjectChanges:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IVIEWOBJECTCHANGES }
 

Public Member Functions

virtual void SetTargetDB (IDataBase *viewTarget)=0
 
virtual void SetDirty (IControllingUnknown *boss, IPMUnknown *obj, ImplementationID prop, bool16 allowModification=true)=0
 
virtual void ResetAll ()=0
 
virtual IDataBaseGetTargetDB () const =0
 
virtual void SetBusy (bool busy)=0
 
virtual bool IsBusy () const =0
 
virtual void ResetOneToSnapshot (ImplementationID prop, SnapshotID snapshotID)=0
 
virtual SnapshotID SnapshotOneIfNecessary (ImplementationID prop)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

IViewObjectChanges plays a similar role for snapshot view interfaces that IPMPersist plays for persistent interfaces.

Add kViewObjectChangesImpl to the class definition of any boss that has one or more snapshot view interfaces.

This interface holds a reference to the database that the view interfaces pertaining to this boss target. Multiple view interfaces located on the same boss target the same database at any point in time.

Use the SetTargetDB function to set the target database of the view interfaces located on this boss. This target can be changed multiple times through the lifetime of the boss. Use GetTargetDB to identify the target database at any point in time.

See Also
CViewInterface

Member Function Documentation

virtual IDataBase* IViewObjectChanges::GetTargetDB () const
pure virtual

Use GetTargetDB to identify the target database at any point in time.

Returns
IDataBase*
virtual bool IViewObjectChanges::IsBusy () const
pure virtual

For internal use only

virtual void IViewObjectChanges::ResetAll ()
pure virtual

For internal use only

virtual void IViewObjectChanges::ResetOneToSnapshot (ImplementationID prop,
SnapshotID snapshotID 
)
pure virtual

For internal use only

virtual void IViewObjectChanges::SetBusy (bool busy)
pure virtual

For internal use only

virtual void IViewObjectChanges::SetDirty (IControllingUnknownboss,
IPMUnknownobj,
ImplementationID prop,
bool16 allowModification = true 
)
pure virtual

For internal use only

Parameters
boss
obj
prop
allowModification
virtual void IViewObjectChanges::SetTargetDB (IDataBaseviewTarget)
pure virtual

Use the SetTargetDB function to set the target database of the view interfaces located on this boss.

Parameters
viewTarget
virtual SnapshotID IViewObjectChanges::SnapshotOneIfNecessary (ImplementationID prop)
pure virtual

For internal use only