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

Public Member Functions

 BscTADocResponder (IPMUnknown *boss)
 
virtual ~BscTADocResponder ()
 
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

From SDK sample; Implements a responder, IResponder based on CResponder, that adds this plug-in's text attribute into the root style and defaults if it is not already present when a document is opened or a new document is created.

If this plug-in is around when the application starts without any defaults then this plug-ins text attribute, kBscTAAttrBoss, is added to the root style and to text defaults on the session workspace. However, if the plug-in is added after defaults are already initialised, then kBscTAAttrBoss won't be in the root style or text defaults. This responder checks and fixes the document's root style and defaults if necessary.

Constructor & Destructor Documentation

BscTADocResponder::BscTADocResponder (IPMUnknownboss)

Constructor.

Parameters
bossobject this object is aggregated on.
virtual BscTADocResponder::~BscTADocResponder ()
inlinevirtual

Destructor.

Member Function Documentation

void BscTADocResponder::Respond (ISignalMgrsignalMgr)
virtual

Responds to new and open document signals.

Parameters
signalMgrprovides information about the signal.

Reimplemented from CResponder.