![]() | InDesign SDK 20.5 |

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) | |
| IChangeManager * | GetChangeManager () 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 |
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.
| GTTxtEdtStoryObserver::GTTxtEdtStoryObserver | ( | IPMUnknown * | boss | ) |
Constructor.
| boss | interface ptr from boss object on which interface is aggregated. |
| inline |
Destructor.
| virtual |
Attaches the observer to the story.
Reimplemented from CObserver.
| virtual |
Detaches the observer from the story/
Reimplemented from CObserver.
| virtual |
All text edits are tracked through update. Updates the snapshot interface with the value of the current text edit story and index.
| theChange | IN the change. |
| theSubject | IN the story that was being updated. |
| protocol | IN the channel the update signal is sent on. |
| changedBy | IN the agent that caused the update to be invoked. |
Implements IObserver.