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

Public Member Functions

 GTTxtEdtStoryObserver (IPMUnknown *boss)
 
 ~GTTxtEdtStoryObserver ()
 
virtual void AutoAttach ()
 
virtual void AutoDetach ()
 
virtual void Update (const ClassID &theChange, ISubject *theSubject, const PMIID &protocol, void *changedBy)
 
- 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

Implements the IObserver interface using the CObserver helper class and listens along the IID_ITEXTMODEL protocol for changes in model. Handles AutoAttach, AutoDetach, and Update messages.

Constructor & Destructor Documentation

GTTxtEdtStoryObserver::GTTxtEdtStoryObserver (IPMUnknownboss)

Constructor.

Parameters
bossinterface ptr from boss object on which interface is aggregated.
GTTxtEdtStoryObserver::~GTTxtEdtStoryObserver ()
inline

Destructor.

Member Function Documentation

void GTTxtEdtStoryObserver::AutoAttach (void )
virtual

Attaches the observer to the story.

Reimplemented from CObserver.

void GTTxtEdtStoryObserver::AutoDetach (void )
virtual

Detaches the observer from the story/

Reimplemented from CObserver.

void GTTxtEdtStoryObserver::Update (const ClassIDtheChange,
ISubjecttheSubject,
const PMIIDprotocol,
void * changedBy 
)
virtual
All text edits are tracked through update. Updates the snapshot interface with the value of the current text edit story and index.

Parameters
theChangeIN the change.
theSubjectIN the story that was being updated.
protocolIN the channel the update signal is sent on.
changedByIN the agent that caused the update to be invoked.

Implements IObserver.