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

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

Public Member Functions

 OpZoomTo400 ()
virtual void Do (OpDescriptor *)
 Calls the base class function to zoom to 400!

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

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 389 of file zoomops.h.


Constructor & Destructor Documentation

OpZoomTo400::OpZoomTo400  ) 
 

Definition at line 1374 of file zoomops.cpp.

01375 {
01376 }


Member Function Documentation

OpZoomTo400::CC_DECLARE_DYNCREATE OpZoomTo400   )  [private]
 

void OpZoomTo400::Do OpDescriptor pOpDesc  )  [virtual]
 

Calls the base class function to zoom to 400!

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 1424 of file zoomops.cpp.

01425 {
01426     // Ok! lets zoom in!
01427     DocView* pDocView = DocView::GetCurrent();
01428 
01429     if(pDocView)
01430     {
01431         const WorkRect ZoomRect = pDocView->GetViewRect();
01432         ZoomTo( ZoomRect.Centre(), 400 );
01433     }
01434     else
01435     {
01436         ERROR3IF(pDocView == 0, "No current DocView found!");
01437     }
01438 }

OpState OpZoomTo400::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 1408 of file zoomops.cpp.

01409 {
01410     OpState State;
01411     return State;
01412 }

BOOL OpZoomTo400::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 1378 of file zoomops.cpp.

01379 {
01380     BOOL ok = RegisterOpDescriptor(
01381                                     0, 
01382                                     _R(IDS_ZOOMTO400),
01383                                     CC_RUNTIME_CLASS(OpZoomTo400), 
01384                                     OPTOKEN_ZOOMTO400,
01385                                     OpZoomTo400::GetState,
01386                                     0,                  /* help ID */
01387                                     _R(IDBBL_ZOOMTO400),/* bubble ID */
01388                                     0                   /* bitmap ID */
01389                                     );
01390 
01391     return ok;
01392 }


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