#include <zoomops.h>
Inheritance diagram for OpZoomTo400:
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) |
Definition at line 389 of file zoomops.h.
|
Definition at line 1374 of file zoomops.cpp.
|
|
|
|
Calls the base class function to zoom to 400!
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 }
|
|
Func for determining the usability of this op.
Definition at line 1408 of file zoomops.cpp. 01409 { 01410 OpState State; 01411 return State; 01412 }
|
|
Initialises the OpDragBox base-class drag operation. Loads preferences.
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 }
|