#include <zoomops.h>
Inheritance diagram for OpZoomTo300:
Public Member Functions | |
OpZoomTo300 () | |
virtual void | Do (OpDescriptor *) |
Calls the base class function to zoom to 300! | |
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 (OpZoomTo300) |
Definition at line 363 of file zoomops.h.
|
Definition at line 1306 of file zoomops.cpp.
|
|
|
|
Calls the base class function to zoom to 300!
Reimplemented from OpZoom. Definition at line 1356 of file zoomops.cpp. 01357 { 01358 // Ok! lets zoom in! 01359 DocView* pDocView = DocView::GetCurrent(); 01360 01361 if(pDocView) 01362 { 01363 const WorkRect ZoomRect = pDocView->GetViewRect(); 01364 ZoomTo( ZoomRect.Centre(), 300 ); 01365 } 01366 else 01367 { 01368 ERROR3IF(pDocView == 0, "No current DocView found!"); 01369 } 01370 }
|
|
Func for determining the usability of this op.
Definition at line 1340 of file zoomops.cpp. 01341 { 01342 OpState State; 01343 return State; 01344 }
|
|
Initialises the OpDragBox base-class drag operation. Loads preferences.
Reimplemented from OpDragBox. Definition at line 1310 of file zoomops.cpp. 01311 { 01312 BOOL ok = RegisterOpDescriptor( 01313 0, 01314 _R(IDS_ZOOMTO300), 01315 CC_RUNTIME_CLASS(OpZoomTo300), 01316 OPTOKEN_ZOOMTO300, 01317 OpZoomTo300::GetState, 01318 0, /* help ID */ 01319 _R(IDBBL_ZOOMTO300),/* bubble ID */ 01320 0 /* bitmap ID */ 01321 ); 01322 01323 return ok; 01324 }
|