OpZoomFitDrawingDescriptor Class Reference

OpDescriptor for the zoom tool's "Fit to drawing" button. More...

#include <zoomops.h>

Inheritance diagram for OpZoomFitDrawingDescriptor:

OpZoomDescriptor OpDescriptor MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 OpZoomFitDrawingDescriptor ()
 Constructs an OpDescriptor for the "Zoom to drawing" button.

Protected Member Functions

virtual DocRect GetRect (Spread *pSpread)
 Provides the rectangle that OpZoomDescriptor::HandleButtonMsg will zoom in on.

Detailed Description

OpDescriptor for the zoom tool's "Fit to drawing" button.

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

Definition at line 469 of file zoomops.h.


Constructor & Destructor Documentation

OpZoomFitDrawingDescriptor::OpZoomFitDrawingDescriptor  ) 
 

Constructs an OpDescriptor for the "Zoom to drawing" button.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/5/94
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
class OpZoomDescriptor

Definition at line 2101 of file zoomops.cpp.

02102   : OpZoomDescriptor(OPTOKEN_ZOOMDRAWING, _R(IDS_ZOOMDRAWINGSTATUSTEXT),
02103                      0, _R(IDBBL_FIT_TO_DRAWING))
02104 {
02105     // Empty.
02106 }


Member Function Documentation

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

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

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/5/94
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 2126 of file zoomops.cpp.

02127 {
02128     return pSpread->GetPageVisibleBounds();
02129 }


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