InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IZoomCmdData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: robin briggs
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //
23 // Data interface for ZoomToCmd
24 //
25 //========================================================================================
26 
27 #ifndef __IZoomCmdData__
28 #define __IZoomCmdData__
29 
30 #include "widgetid.h"
31 
32 class IControlView;
33 class PMPoint;
34 
35 const double kMaxZoom = 40.0;
36 const double kMinZoom = 0.05;
37 const double kDragOutMaxZoom = 40.0;
38 const double kDragOutMinZoom = 0.05;
39 
40 class IZoomCmdData : public IPMUnknown
41 {
42 public:
43  enum { kDefaultIID = IID_IZOOMCMDDATA };
44 
45  typedef enum { kZoomVisibleSpread_True, kZoomVisibleSpread_False } ZoomVisibleType;
46  virtual void Set(IControlView *view, PMReal scaleFactor, const PMPoint& centerPoint,
47  bool16 zoomToPoint = kTrue, ZoomVisibleType visible = kZoomVisibleSpread_False) = 0;
48  virtual void Set(IControlView *view, PMReal scaleFactor) = 0;
49 
50  virtual IControlView *GetControlView() const = 0;
51  virtual PMReal GetScaleFactor() const = 0;
52  virtual PMPoint GetCenterPoint() const = 0;
53  virtual bool16 GetZoomToPointFlag() const = 0;
54  virtual ZoomVisibleType GetZoomToCurrentVisibleSpread() const = 0;
55 };
56 
57 #endif // __IZoomCmdData__