InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IAlignAndDistributeSuite.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Paul Sorrick
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 // Note:
24 //
25 //========================================================================================
26 
27 #ifndef __IAlignAndDistributeSuite__
28 #define __IAlignAndDistributeSuite__
29 
30 #include "IPMUnknown.h"
31 #include "IAlignCmdData.h"
32 #include "IDistributeCmdData.h"
33 #include "UIDRef.h"
34 #include "ShuksanID.h"
35 
40 {
41 public:
42  enum { kDefaultIID = IID_IALIGNANDDISTRIBUTESUITE };
43 
44 
45 // ----- Abilities
46 
51  virtual bool16 CanAlign (AlignType alignHow) const = 0;
52 
59  virtual bool16 CanDistribute (DistributeType distributeHow, const PMReal& spacingValue, UseDistributeValue useValue) const = 0;
60 
63  virtual bool16 CanSetKeyObject() const = 0;
64 
67  virtual bool16 CanCancelKeyObject() const = 0;
68 
71  virtual bool16 CanToggleKeyObject() const = 0;
72 
75  virtual bool16 IsKeyObjectSelected() const = 0;
76 
77 // ----- Manipulators
78 
83  virtual ErrorCode DoAlign (AlignType alignHow) = 0;
84 
92  virtual ErrorCode DoDistribute (DistributeType distributeHow, const PMReal& spacingValue, UseDistributeValue useValue) = 0;
93 
99  virtual ErrorCode DoSetKeyObject(const UIDRef& item = kInvalidUIDRef) = 0;
100 
104  virtual ErrorCode DoCancelKeyObject() = 0;
105 
110  virtual ErrorCode DoToggleKeyObject(const UIDRef& item) = 0;
111 };
112 
113 #endif // __IAlignAndDistributeSuite__