OpZoomTo200 Class Reference

This op has been written so that we can use the NumPad Plus key to fire off a zoom in operation. We can`t use the zoom op directly as the hotkey code calls the Do() function instead of the DoWithParam(). What this class does is basically call the ZoomOps DoWithParam() from it`s Do() function. More...

#include <zoomops.h>

Inheritance diagram for OpZoomTo200:

OpZoom OpCentredDragBox OpDragBox Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 OpZoomTo200 ()
virtual void Do (OpDescriptor *)
 Calls the base class function to zoom to 200!

Static Public Member Functions

static BOOL Init ()
 Initialises the OpDragBox base-class drag operation. Loads preferences.
static OpState GetState (String_256 *Description, OpDescriptor *)
 Func for determining the usability of this op.

Private Member Functions

 CC_DECLARE_DYNCREATE (OpZoomTo200)

Detailed Description

This op has been written so that we can use the NumPad Plus key to fire off a zoom in operation. We can`t use the zoom op directly as the hotkey code calls the Do() function instead of the DoWithParam(). What this class does is basically call the ZoomOps DoWithParam() from it`s Do() function.

Author:
Luke_Hart (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/09/06

Definition at line 337 of file zoomops.h.


Constructor & Destructor Documentation

OpZoomTo200::OpZoomTo200  ) 
 

Definition at line 1239 of file zoomops.cpp.

01240 {
01241 }


Member Function Documentation

OpZoomTo200::CC_DECLARE_DYNCREATE OpZoomTo200   )  [private]
 

void OpZoomTo200::Do OpDescriptor pOpDesc  )  [virtual]
 

Calls the base class function to zoom to 200!

Author:
Luke_Hart (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/09/06
Parameters:
pointer to the OpZoomDescriptor being invoked [INPUTS]

Reimplemented from OpZoom.

Definition at line 1288 of file zoomops.cpp.

01289 {
01290     // Ok! lets zoom in!
01291     DocView* pDocView = DocView::GetCurrent();
01292 
01293     if(pDocView)
01294     {
01295         const WorkRect ZoomRect = pDocView->GetViewRect();
01296         ZoomTo( ZoomRect.Centre(), 200 );
01297     }
01298     else
01299     {
01300         ERROR3IF(pDocView == 0, "No current DocView found!");
01301     }
01302 }

OpState OpZoomTo200::GetState String_256 Description,
OpDescriptor
[static]
 

Func for determining the usability of this op.

Author:
Luke_Hart (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/09/06
Parameters:
Description = ptr to place description of why this op can't happen [INPUTS] pOpDesc = ptr to the Op Desc associated with this op
- [OUTPUTS]
Returns:
An OpState object
See also:
-

Definition at line 1272 of file zoomops.cpp.

01273 {
01274     OpState State;
01275     return State;
01276 }

BOOL OpZoomTo200::Init void   )  [static]
 

Initialises the OpDragBox base-class drag operation. Loads preferences.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
24/4/95
Returns:
TRUE if successful, FALSE if otherwise.

Reimplemented from OpDragBox.

Definition at line 1243 of file zoomops.cpp.

01244 {
01245     BOOL ok = RegisterOpDescriptor(
01246                                     0, 
01247                                     _R(IDS_ZOOMTO200),
01248                                     CC_RUNTIME_CLASS(OpZoomTo200), 
01249                                     OPTOKEN_ZOOMTO200,
01250                                     OpZoomTo200::GetState,
01251                                     0,                  /* help ID */
01252                                     _R(IDBBL_ZOOMTO200),/* bubble ID */
01253                                     0                   /* bitmap ID */
01254                                     );
01255     return ok;
01256 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:59:15 2007 for Camelot by  doxygen 1.4.4