dsDocumentEvent_id_e Enumeration Send Feedback
See Also 
Types of document events.

Syntax

Visual Basic 
Public Enum dsDocumentEvent_id_e 
   Inherits System.Enum
C# 
public enum dsDocumentEvent_id_e : System.Enum 
JavaScript 
dsDocumentEvent_id_e : String
COM native C++ 
enum dsDocumentEvent_id_e
C++ 
enum dsDocumentEvent_id_e

Members

MemberDescription
dsDocument_ActiveSheetChangeNotify_id15 = ActiveSheetChangeNotify
dsDocument_CommandOptionBoolChangeNotify_id11 = CommandOptionBoolChangeNotify
dsDocument_CommandOptionDoubleChangeNotify_id16 = CommandOptionDoubleChangeNotify
dsDocument_CommandOptionInt16ChangeNotify_id9 = CommandOptionInt16ChangeNotify
dsDocument_CommandOptionInt32ChangeNotify_id10 = CommandOptionInt32ChangeNotify
dsDocument_CommandOptionInt8ChangeNotify_id8 = CommandOptionInt8ChangeNotify
dsDocument_CommandOptionPoint2DChangeNotify_id13 = CommandOptionPoint2DChangeNotify
dsDocument_CommandOptionPoint3DChangeNotify_id14 = CommandOptionPoint3DChangeNotify
dsDocument_CommandOptionStringChangeNotify_id12 = CommandOptionStringChangeNotify
dsDocument_DestroyNotify_id1 = DestroyNotify
dsDocument_DestroyPreNotify_id17 = DestroyPreNotify
dsDocument_FileSavePostNotify_id3 = Obsolete
dsDocument_FileSavePostNotify2_id18 = FileSavePostNotify2
dsDocument_FileSavePreNotify_id2 = FileSavePreNotify
dsDocument_ModifyNotify_id4 = ModifyNotify
dsDocument_ObjectAppendNotify_id7 = ObjectAppendNotify
dsDocument_ObjectEraseNotify_id6 = ObjectEraseNotify
dsDocument_ObjectModifyNotify_id5 = ObjectModfiyNotify

Remarks

To receive notifications, a DLL application must register for the notifications by object type. This registration must be done for each instance of a particular object.

For example, the file:

BEGIN_SINK_MAP(CDsAddinDocument)
    SINK_ENTRY_EX( IDC_DSAPPLICATIONEVENT, DIID__IDocumentEvents, dsDocument_DestroyNotify_id, OnDestroyNotify )
    SINK_ENTRY_EX( IDC_DSAPPLICATIONEVENT, DIID__IDocumentEvents, dsDocument_FileSavePostNotify_id, OnFileSavePostNotify )
    SINK_ENTRY_EX( IDC_DSAPPLICATIONEVENT, DIID__IDocumentEvents, dsDocument_ModifyNotify_id, OnModifyNotify )
END_SINK_MAP()

 

DsAddinDocument(dsDocument_c *dsDoc) : m_dsDoc(dsDoc) {

RegisterDocumentDestroyNotifyHook(m_dsDoc);

RegisterDocumentFileSavePostNotifyHook(m_dsDoc);

RegisterDocumentModifyNotifyHook(m_dsDoc);

}

~DsAddinDocument() {

UnRegisterDocumentDestroyNotifyHook(m_dsDoc);

UnRegisterDocumentFileSavePostNotifyHook(m_dsDoc);

UnRegisterDocumentModifyNotifyHook(m_dsDoc);

}

See Also