InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PstLstDocResponder Class Reference
Inheritance diagram for PstLstDocResponder:
CResponderIResponderIPMUnknown

Public Member Functions

 PstLstDocResponder (IPMUnknown *boss)
 
virtual void Respond (ISignalMgr *signalMgr)
 
- Public Member Functions inherited from CResponder
 CResponder (IPMUnknown *boss)
 
virtual ServiceID GetResponderService ()
 
virtual void SignalFailed (ISignalMgr *signalMgr)
 

Additional Inherited Members

- Public Types inherited from IResponder
enum  { kDefaultIID = IID_IRESPONDER }
 

Detailed Description

Handles signals related to document file actions. The file action signals it receives are dictated by the PstLstDocServiceProvider class.

PstLstDocResponder implements IResponder based on the partial implementation CResponder.

We are interested in knowing when a documnet is opened or closed. When these events happen, we have to attach/detach a document observer which will get notified when a document's hierarchy is changed. This allows us to purge the custom data associated with the page item. In PstLstDocServiceProvider, we registered our interests in kAfterNewDocSignalResponderService, kDuringOpenDocSignalResponderService, and kBeforeCloseDocSignalResponderService, that will allow us being notified when these event occurs. In that case we will attach/detach the document observer accordingly.

Constructor & Destructor Documentation

Binds the C implementation class onto its ImplementationID making the C code callable by the application * PstLstDocResponder::PstLstDocResponder (IPMUnknownboss)

Constructor.

Parameters
bossinterface ptr from boss object on which this interface is aggregated.

Member Function Documentation

void PstLstDocResponder::Respond (ISignalMgrsignalMgr)
virtual

Respond() handles the file action signals when they are dispatched by the signal manager. This implementation simply creates alerts to display each signal.

Parameters
signalMgrPointer back to the signal manager to get additional information about the signal.

Reimplemented from CResponder.