InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IOpenLayoutCmdData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Burbidge
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 
24 #ifndef __IOpenLayoutCmdData__
25 #define __IOpenLayoutCmdData__
26 
27 #include "IPMUnknown.h"
28 #include "DocumentID.h"
29 #include "ILayoutControlData.h"
30 #include "IDocumentPresentation.h"
31 #include "LayoutUIID.h"
32 
33 class PMString;
34 class PMPoint;
35 class PaletteRef;
36 
42 public:
43  enum { kDefaultIID = IID_IOPENLAYOUTCMDDATA };
44 
48  virtual void SetPreferredBounds(const GSysRect& bBox) = 0;
49 
53  virtual const GSysRect& GetPreferredBounds() const = 0;
54 
62  virtual void SetPerspective_(
63  PMReal xScaleFactor,
64  PMReal yScaleFactor,
65  PMPoint scrollOffset,
67 
74  virtual void GetPerspective_(PMReal& xScaleFactor, PMReal& yScaleFactor, PMPoint& scrollOffset, ILayoutControlData::FitSetting& fit) const = 0;
75 
81  virtual void SetParentingPreferenceForCreation(IDocumentPresentation::CreationParentingPrefs parentingPrefs = IDocumentPresentation::kDefaultParentingPref, const IDocumentPresentation* relativeTo = nil, const PaletteRef* parentGroup = nil) = 0;
82 
88  virtual IDocumentPresentation::CreationParentingPrefs GetParentingPreferenceForCreation(const IDocumentPresentation** relativeTo = nil, const PaletteRef** parentGroup = nil) const = 0;
89 
94  virtual void SetCommandResult(IDocumentPresentation*) = 0;
95 
96 
100  virtual IDocumentPresentation* GetResultingPresentation() const = 0;
101 };
102 
103 
104 #endif