#include <zoomops.h>
Inheritance diagram for OpZoomTo200:
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) |
Definition at line 337 of file zoomops.h.
|
Definition at line 1239 of file zoomops.cpp.
|
|
|
|
Calls the base class function to zoom to 200!
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 }
|
|
Func for determining the usability of this op.
Definition at line 1272 of file zoomops.cpp. 01273 { 01274 OpState State; 01275 return State; 01276 }
|
|
Initialises the OpDragBox base-class drag operation. Loads preferences.
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 }
|