All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

ObjectModelerBase Interface CATIOmbUndoRedoEvents

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---ObjectModelerSystem.CATInterfaceEvents
        |
        +---CATIOmbUndoRedoEvents
 

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface CATIOmbUndoRedoEvents

Interface to subscribe to undo redo events management.
Role: This interface, implemented by each V5 document, enables you to be informed when an undo or redo operation occurs in the session.
The methods returns the callback indentifier. Here is an example with the AddCallback global function.

     CATDocument *pDoc = ....
     CATIOmbUndoRedoEvents_var spUndoRedoOnDoc = pDoc ;
     ::AddCallback( this, 
                   pDoc, 
                    spUndoRedoOnDoc->GetUndoRedoNotification(), 
                   (CATSubscriberMethod) &MyClass::MethodOnMyClass); 

 
Where this is an instance of MyClass.


Method Index


o GetBeforeUndoRedoNotification()
Returns notification before undo/redo mechanism.
o GetUndoRedoNotification()
Returns undo/redo notification.

Methods


o GetBeforeUndoRedoNotification
public virtual CATCallbackEvent GetBeforeUndoRedoNotification()= 0
Returns notification before undo/redo mechanism.
Returns:
The callback identifier.
o GetUndoRedoNotification
public virtual CATCallbackEvent GetUndoRedoNotification()= 0
Returns undo/redo notification.
Returns:
The callback identifier.

This object is included in the file: CATIOmbUndoRedoEvents.h
If needed, your Imakefile.mk should include the module: CATObjectModelerBase

Copyright © 2003, Dassault Systèmes. All rights reserved.