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

Public Member Functions

 TableCellObserver (IPMUnknown *boss)
 
virtual ~TableCellObserver ()
 
virtual void Update (const ClassID &theChange, ISubject *theSubject, const PMIID &protocol, void *changedBy)
 
virtual void AutoAttach ()
 
virtual void AutoDetach ()
 
- Public Member Functions inherited from CObserver
 CObserver (IPMUnknown *boss, PMIID interfaceID=IID_IOBSERVER)
 
IChangeManagerGetChangeManager () const
 
virtual void SetAttachIID (PMIID iid)
 
virtual PMIID GetAttachIID () const
 
virtual void SetEnabled (bool16 state)
 
virtual bool16 IsEnabled () const
 
virtual void LazyUpdate (ISubject *theSubject, const PMIID &protocol, const LazyNotificationData *data)
 

Additional Inherited Members

- Public Types inherited from IObserver
enum  { kDefaultIID = IID_IOBSERVER }
 
- Protected Attributes inherited from CObserver
bool16 fDetachSubjectsOnDelete
 
PMIID fAttachIID
 
const UIDRef fThisRef
 
bool16 fEnabled
 

Detailed Description

This implementation handles updating of the scroll bars and updates the table cell widget (kTableCellWidgetBoss).

Constructor & Destructor Documentation

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

Constructor.

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

Destructor.

Member Function Documentation

void TableCellObserver::AutoAttach (void )
virtual

Called by the application to allow the observer to attach to the subjects to be observed. AutoAttach is only called for registered observers of widgets. When AutoAttach is called from the app, we attach ourselves to scrollbars.

Reimplemented from CObserver.

void TableCellObserver::AutoDetach (void )
virtual

Called by the application to allow the observer to detach from the subjects being observed. AutoDetach is only called for registered observers of widgets. When AutoDetach is called from the app, we detach ourselves to scrollbars.

Reimplemented from CObserver.

void TableCellObserver::Update (const ClassIDtheChange,
ISubjecttheSubject,
const PMIIDprotocol,
void * changedBy 
)
virtual

Respond to a change in an observed subject. Called by the host when the observed object changes. Called for all registered observers, and is the method through which changes are broadcast. Our observer is attached to two scrollbar widget.

Parameters
theChangetheChange represents the change to an object, often this is a command id.
theSubjecttheSubject is the subject that changed.
protocolprotocol is the interface of the subject's boss that changed.
changedBychangedBy is used to pass additional data about the change, often this is a pointer to the command that caused the change.

Implements IObserver.