#include <zoomops.h>
Inheritance diagram for OpZoomFitRectDescriptor:
Public Member Functions | |
OpZoomFitRectDescriptor () | |
Constructs an OpDescriptor for zooming to a specified rect. | |
void | SetZoomRect (const DocRect &rect) |
Sets the rectangle that the op will zoom to. | |
Protected Member Functions | |
virtual DocRect | GetRect (Spread *pSpread) |
Provides the rectangle that OpZoomDescriptor::HandleButtonMsg will zoom in on. | |
Private Attributes | |
DocRect | TheRect |
Definition at line 508 of file zoomops.h.
|
Constructs an OpDescriptor for zooming to a specified rect.
Definition at line 2261 of file zoomops.cpp. 02262 : OpZoomDescriptor(OPTOKEN_ZOOMRECT, 0, 0, 0), 02263 TheRect(0, 0, 0, 0) 02264 { 02265 // Empty. 02266 }
|
|
Provides the rectangle that OpZoomDescriptor::HandleButtonMsg will zoom in on.
Reimplemented from OpZoomDescriptor. Definition at line 2302 of file zoomops.cpp. 02303 { 02304 DocRect t = TheRect; 02305 // Convert the value from spread coordinates to document coords 02306 pSpread->SpreadCoordToDocCoord(&t); 02307 02308 return t; 02309 //return TheRect; 02310 }
|
|
Sets the rectangle that the op will zoom to.
Definition at line 2281 of file zoomops.cpp. 02282 { 02283 TheRect = rect; 02284 }
|
|
|