InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PrnSelDrawHandler Class Reference
Inheritance diagram for PrnSelDrawHandler:
CPMUnknown< IDrwEvtHandler >IDrwEvtHandlerIPMUnknown

Public Member Functions

 PrnSelDrawHandler (IPMUnknown *boss)
 
virtual ~PrnSelDrawHandler ()
 
virtual void Register (IDrwEvtDispatcher *eventDispatcher)
 
virtual void UnRegister (IDrwEvtDispatcher *eventDispatcher)
 
virtual bool16 HandleDrawEvent (ClassID eventID, void *eventData)
 
- Public Member Functions inherited from CPMUnknown< IDrwEvtHandler >
IPMUnknownQueryInterface (PMIID interfaceID) const
 
void AddRef () const
 
void Release () const
 
void PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue)
 
void PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue)
 
 CPMUnknown (const CPMUnknown &)=delete
 
CPMUnknownoperator= (const CPMUnknown &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from CPMUnknown< IDrwEvtHandler >
 CPMUnknown (IPMUnknown *boss)
 
- Protected Attributes inherited from CPMUnknown< IDrwEvtHandler >
HelperInterface fHelperInterface
 

Detailed Description

Implements the code necessary to process draw events. Register()/UnRegister() allows install/uninstall into the draw event dispatcher. HandleEvent() is called when the event registered for happens.

PrnSelDrawHandler implements IDrwEvtHandler.

Constructor & Destructor Documentation

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

Constructor.

Parameters
bossinterface ptr from boss object on which this interface is aggregated.
virtual PrnSelDrawHandler::~PrnSelDrawHandler ()
inlinevirtual

Destructor.

Member Function Documentation

bool16 PrnSelDrawHandler::HandleDrawEvent (ClassID eventID,
void * eventData 
)
virtual

If event handled here, return kTrue and the item should not be drawn. Else event not handled here, return kFalse and continue drawing item.

Parameters
eventID(in) specifies ID of the specific event.
eventData(in) specifies pointer to the draw event data. In this case, we are being passed a UIDRef of the spread to be printed.

Implements IDrwEvtHandler.

void PrnSelDrawHandler::Register (IDrwEvtDispatchereventDispatcher)
virtual

Called so handler can register for particular draw events using the RegisterHandler() method in IDrwEvtDispatcher.

Parameters
eventDispatcher(in) specifies active draw event dispatcher.

Implements IDrwEvtHandler.

void PrnSelDrawHandler::UnRegister (IDrwEvtDispatchereventDispatcher)
virtual

Called so handler can unregister for particular draw events using the UnRegisterHandler() method in IDrwEvtDispatcher. Not actually necessary since all handlers get unregistered automatically at quit time, but it is good form.

Parameters
eventDispatcher(in) specifies active draw event dispatcher.

Implements IDrwEvtHandler.