#include <zoomops.h>
Inheritance diagram for OpZoomOut:
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) |
Definition at line 285 of file zoomops.h.
|
Definition at line 1510 of file zoomops.cpp.
|
|
|
|
Calls the base class function to zoom Out!
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 }
|
|
Func for determining the usability of this op.
Definition at line 1543 of file zoomops.cpp. 01544 { 01545 OpState State; 01546 return State; 01547 }
|
|
Initialises the OpDragBox base-class drag operation. Loads preferences.
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 }
|