DocChangingMsg Class Reference

This message is sent when something about a document changes. This includes: MonoOn BORN (pChangingDoc) - When a doc has been created ABOUTTODIE (pChangingDoc) - When a doc is starting to be destructed KILLED (pChangingDoc) - When a doc has been destructed. More...

#include <docmsgs.h>

Inheritance diagram for DocChangingMsg:

Msg CCObject SimpleCCObject List of all members.

Public Types

enum  DocState {
  BORN, SELCHANGED, ABOUTTODIE, KILLED,
  TITLECHANGED, BORNANDSTABLE
}

Public Member Functions

 DocChangingMsg (Document *pdoc, DocState state)
 DocChangingMsg (Document *pThisOldDoc, Document *pThisNewDoc, DocState state)

Public Attributes

DocumentpChangingDoc
DocumentpOldDoc
DocumentpNewDoc
DocState State

Detailed Description

This message is sent when something about a document changes. This includes: MonoOn BORN (pChangingDoc) - When a doc has been created ABOUTTODIE (pChangingDoc) - When a doc is starting to be destructed KILLED (pChangingDoc) - When a doc has been destructed.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
8/4/1994
TITLECHANGED (pChangingDoc) - When the document title text has changed

SELCHANGED (pOldDoc,pNewDoc)- When SelectedDoc has changed MonoOff

Documentation: docs.doc

Definition at line 133 of file docmsgs.h.


Member Enumeration Documentation

enum DocChangingMsg::DocState
 

Enumerator:
BORN 
SELCHANGED 
ABOUTTODIE 
KILLED 
TITLECHANGED 
BORNANDSTABLE 

Definition at line 139 of file docmsgs.h.

00140     {
00141         BORN,                       // sent when a document has just been constructed
00142         SELCHANGED,                 // New style (22/7/94) selection changing message
00143                                     // as described in the docstate.doc document,
00144                                     // pOldDoc being the one that is being unselected
00145                                     // and pNewDoc being the one selected.
00146                                     // NOTE!!!! pOldDoc and/or pNewDoc can be NULL!!!!!
00147 
00148         ABOUTTODIE,                 // sent just before a document is destroyed
00149         KILLED,                     // sent after a document has been destroyed
00150 
00151         TITLECHANGED,               // sent if the doc's title text has been changed
00152         BORNANDSTABLE               // sent as the last part of a document creation process
00153                                     // at present it is sent as the last part of a new
00154                                     // document or open document process. This means that
00155                                     // the document is loaded, selected, everything is set up
00156                                     // and ready, so now is the time to update details on the
00157                                     // document such as those displayed in the options dialog
00158     };


Constructor & Destructor Documentation

DocChangingMsg::DocChangingMsg Document pdoc,
DocState  state
[inline]
 

Definition at line 170 of file docmsgs.h.

00171       : pChangingDoc(pdoc), pOldDoc(NULL), pNewDoc(NULL), State(state) { /* empty */ }

DocChangingMsg::DocChangingMsg Document pThisOldDoc,
Document pThisNewDoc,
DocState  state
[inline]
 

Definition at line 173 of file docmsgs.h.

00174       : pChangingDoc(NULL), pOldDoc(pThisOldDoc), pNewDoc(pThisNewDoc), State(state) { /* empty */ }


Member Data Documentation

Document* DocChangingMsg::pChangingDoc
 

Definition at line 160 of file docmsgs.h.

Document* DocChangingMsg::pNewDoc
 

Definition at line 164 of file docmsgs.h.

Document* DocChangingMsg::pOldDoc
 

Definition at line 163 of file docmsgs.h.

DocState DocChangingMsg::State
 

Definition at line 166 of file docmsgs.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 03:53:40 2007 for Camelot by  doxygen 1.4.4