OpZoomOut Class Reference

This op has been written so that we can use the NumPad Minus key to fire off a zoom out 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 OpZoomOut:

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

Public Member Functions

 OpZoomOut ()
virtual void Do (OpDescriptor *)
 Calls the base class function to zoom Out!

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

Detailed Description

This op has been written so that we can use the NumPad Minus key to fire off a zoom out 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 285 of file zoomops.h.


Constructor & Destructor Documentation

OpZoomOut::OpZoomOut  ) 
 

Definition at line 1510 of file zoomops.cpp.

01511 {
01512 }


Member Function Documentation

OpZoomOut::CC_DECLARE_DYNCREATE OpZoomOut   )  [private]
 

void OpZoomOut::Do OpDescriptor pOpDesc  )  [virtual]
 

Calls the base class function to zoom Out!

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

01560 {
01561     // Ok! lets zoom Out!
01562     DocView* pDocView = DocView::GetCurrent();
01563 
01564     if(pDocView)
01565     {
01566         const WorkRect ZoomRect = pDocView->GetViewRect();
01567         ZoomOut(ZoomRect.Centre());
01568     }
01569     else
01570     {
01571         ERROR3IF(pDocView == 0, "No current DocView found!");
01572     }
01573 }

OpState OpZoomOut::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 1543 of file zoomops.cpp.

01544 {
01545     OpState State;
01546     return State;
01547 }

BOOL OpZoomOut::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 1514 of file zoomops.cpp.

01515 {
01516     BOOL ok = RegisterOpDescriptor(
01517                                     0, 
01518                                     _R(IDS_ZOOMOUT),
01519                                     CC_RUNTIME_CLASS(OpZoomOut), 
01520                                     OPTOKEN_ZOOMOUT,
01521                                     OpZoomOut::GetState,
01522                                     0,  /* help ID */
01523                                     0,  /* bubble ID */
01524                                     0   /* bitmap ID */
01525                                     );
01526     return ok;
01527 }


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