#include <zoomops.h>
Inheritance diagram for OpZoomTo100:
Public Member Functions | |
OpZoomTo100 () | |
virtual void | Do (OpDescriptor *) |
Calls the base class function to zoom to 100! | |
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 (OpZoomTo100) |
Definition at line 311 of file zoomops.h.
|
Definition at line 1172 of file zoomops.cpp.
|
|
|
|
Calls the base class function to zoom to 100!
Reimplemented from OpZoom. Definition at line 1221 of file zoomops.cpp. 01222 { 01223 // Ok! lets zoom in! 01224 DocView* pDocView = DocView::GetCurrent(); 01225 01226 if(pDocView) 01227 { 01228 const WorkRect ZoomRect = pDocView->GetViewRect(); 01229 ZoomTo( ZoomRect.Centre(), 100 ); 01230 } 01231 else 01232 { 01233 ERROR3IF(pDocView == 0, "No current DocView found!"); 01234 } 01235 }
|
|
Func for determining the usability of this op.
Definition at line 1205 of file zoomops.cpp. 01206 { 01207 OpState State; 01208 return State; 01209 }
|
|
Initialises the OpDragBox base-class drag operation. Loads preferences.
Reimplemented from OpDragBox. Definition at line 1176 of file zoomops.cpp. 01177 { 01178 BOOL ok = RegisterOpDescriptor( 01179 0, 01180 _R(IDS_ZOOMTO100), 01181 CC_RUNTIME_CLASS(OpZoomTo100), 01182 OPTOKEN_ZOOMTO100, 01183 OpZoomTo100::GetState, 01184 0, /* help ID */ 01185 _R(IDBBL_ZOOMTO100),/* bubble ID */ 01186 0 /* bitmap ID */ 01187 ); 01188 return ok; 01189 }
|