OpZoomFitRectDescriptor Class Reference

OpDescriptor used to zoom to a specific rectangle. More...

#include <zoomops.h>

Inheritance diagram for OpZoomFitRectDescriptor:

OpZoomDescriptor OpDescriptor MessageHandler ListItem CCObject SimpleCCObject List of all members.

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

Detailed Description

OpDescriptor used to zoom to a specific rectangle.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/5/93

Definition at line 508 of file zoomops.h.


Constructor & Destructor Documentation

OpZoomFitRectDescriptor::OpZoomFitRectDescriptor  ) 
 

Constructs an OpDescriptor for zooming to a specified rect.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/9/96
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
class OpZoomDescriptor

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 }


Member Function Documentation

DocRect OpZoomFitRectDescriptor::GetRect Spread pSpread  )  [protected, virtual]
 

Provides the rectangle that OpZoomDescriptor::HandleButtonMsg will zoom in on.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/9/96
Parameters:
pSpread pointer to a spread [INPUTS]
- [OUTPUTS]
Returns:
The "bounds" of the drawing on the given spread, ignoring invisible layers.

Errors: -

See also:
OpZoomDescriptor::HandleButtonMsg; OpZoomFitSpreadDescriptor::AdjustRect; Spread::GetPageVisibleBounds

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 }

void OpZoomFitRectDescriptor::SetZoomRect const DocRect rect  ) 
 

Sets the rectangle that the op will zoom to.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/9/96
Parameters:
pRect [INPUTS]
- [OUTPUTS]
Returns:
Errors: -

Definition at line 2281 of file zoomops.cpp.

02282 {
02283     TheRect = rect;
02284 }


Member Data Documentation

DocRect OpZoomFitRectDescriptor::TheRect [private]
 

Definition at line 518 of file zoomops.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:59:13 2007 for Camelot by  doxygen 1.4.4