DocViewMsg Class Reference

This message is sent when a DocView is about to be destroyed or has just been created/loaded. It contains a pointer to the appropriate view object (pDocView), and a state indicating if the view is being destroyed or is being created etc. (State). Both members are public. See the file DOCVIEW.H for more information. More...

#include <docvmsg.h>

Inheritance diagram for DocViewMsg:

Msg CCObject SimpleCCObject List of all members.

Public Types

enum  DocViewState {
  BORN, NEWANDSTABLE, SCALECHANGED, SELCHANGED,
  KILLED, SELABOUTTOCHANGE
}

Public Member Functions

 DocViewMsg (DocView *pview, DocViewState state)
 DocViewMsg (DocView *pThisOldDocView, DocView *pThisNewDocView, DocViewState state)

Public Attributes

DocViewpDocView
DocViewpOldDocView
DocViewpNewDocView
DocViewState State

Detailed Description

This message is sent when a DocView is about to be destroyed or has just been created/loaded. It contains a pointer to the appropriate view object (pDocView), and a state indicating if the view is being destroyed or is being created etc. (State). Both members are public. See the file DOCVIEW.H for more information.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
6/5/1994

Definition at line 127 of file docvmsg.h.


Member Enumeration Documentation

enum DocViewMsg::DocViewState
 

Enumerator:
BORN 
NEWANDSTABLE 
SCALECHANGED 
SELCHANGED 
KILLED 
SELABOUTTOCHANGE 

Definition at line 133 of file docvmsg.h.

00134     {
00135         BORN,           // sent when a view is first constructed
00136         NEWANDSTABLE,   // sent out when a new docview is stable
00137         SCALECHANGED,   // DocView scale factor changed
00138         SELCHANGED,     // New style (22/7/94) selection changing message
00139                         // as described in the docstate.doc document
00140                         // Combines the SELECTED and UNSELECTED messages into one
00141                         // message, with pOldDocView being the one that is being unselected
00142                         // and pNewDocView being the one selected.
00143                         // NOTE!!!! pOldDocView and/or pNewDocView can be NULL!!!!!
00144         KILLED,         // sent when a view is destroyed
00145         SELABOUTTOCHANGE    // This message is broadcast around just before the selected document
00146                             // is changed (ie, it will be closly followed by a SELCHANGED message.
00147                             // When this message is sent, nothing has actually been changed yet.
00148     };


Constructor & Destructor Documentation

DocViewMsg::DocViewMsg DocView pview,
DocViewState  state
[inline]
 

Definition at line 157 of file docvmsg.h.

00158       : pDocView(pview), pOldDocView(0), pNewDocView(0), State(state) { /* empty */ };

DocViewMsg::DocViewMsg DocView pThisOldDocView,
DocView pThisNewDocView,
DocViewState  state
[inline]
 

Definition at line 160 of file docvmsg.h.

00161       : pDocView(0), pOldDocView(pThisOldDocView), pNewDocView(pThisNewDocView), State(state)  { /* empty */ }


Member Data Documentation

DocView* DocViewMsg::pDocView
 

Definition at line 150 of file docvmsg.h.

DocView* DocViewMsg::pNewDocView
 

Definition at line 153 of file docvmsg.h.

DocView* DocViewMsg::pOldDocView
 

Definition at line 152 of file docvmsg.h.

DocViewState DocViewMsg::State
 

Definition at line 155 of file docvmsg.h.


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