![]() | InDesign SDK 20.5 |

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 } |
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.
| Binds the C implementation class onto its ImplementationID making the C code callable by the application * PstLstDocResponder::PstLstDocResponder | ( | IPMUnknown * | boss | ) |
Constructor.
| boss | interface ptr from boss object on which this interface is aggregated. |
| virtual |
Respond() handles the file action signals when they are dispatched by the signal manager. This implementation simply creates alerts to display each signal.
| signalMgr | Pointer back to the signal manager to get additional information about the signal. |
Reimplemented from CResponder.