OpZoomIn 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 OpZoomIn:

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

Public Member Functions

 OpZoomIn ()
virtual void Do (OpDescriptor *)
 Calls the base class function to zoom in!

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 (OpZoomIn)

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:
Mark_Howitt (Xara Group Ltd) <camelotdev@xara.com>
Date:
19/11/00

Definition at line 259 of file zoomops.h.


Constructor & Destructor Documentation

OpZoomIn::OpZoomIn  ) 
 

Definition at line 1443 of file zoomops.cpp.

01444 {
01445 }


Member Function Documentation

OpZoomIn::CC_DECLARE_DYNCREATE OpZoomIn   )  [private]
 

void OpZoomIn::Do OpDescriptor pOpDesc  )  [virtual]
 

Calls the base class function to zoom in!

Author:
Mark_Howitt (Xara Group Ltd) <camelotdev@xara.com>
Date:
19/11/00
Parameters:
pointer to the OpZoomDescriptor being invoked [INPUTS]

Reimplemented from OpZoom.

Definition at line 1492 of file zoomops.cpp.

01493 {
01494     // Ok! lets zoom in!
01495     DocView* pDocView = DocView::GetCurrent();
01496 
01497     if(pDocView)
01498     {
01499         const WorkRect ZoomRect = pDocView->GetViewRect();
01500         ZoomIn(ZoomRect.Centre());
01501     }
01502     else
01503     {
01504         ERROR3IF(pDocView == 0, "No current DocView found!");
01505     }
01506 }

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

Func for determining the usability of this op.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/3/97
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 1476 of file zoomops.cpp.

01477 {
01478     OpState State;
01479     return State;
01480 }

BOOL OpZoomIn::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 1447 of file zoomops.cpp.

01448 {
01449     BOOL ok = RegisterOpDescriptor(
01450                                     0, 
01451                                     _R(IDS_ZOOMIN),
01452                                     CC_RUNTIME_CLASS(OpZoomIn), 
01453                                     OPTOKEN_ZOOMIN,
01454                                     OpZoomIn::GetState,
01455                                     0,  /* help ID */
01456                                     0,  /* bubble ID */
01457                                     0   /* bitmap ID */
01458                                     );
01459     return ok;
01460 }


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