InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISpreadDynamicContentMgr.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: SusanCL
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 __ISpreadDynamicContentMgr__
25 #define __ISpreadDynamicContentMgr__
26 
27 #include "DynamicDocumentsID.h"
28 #include "IPMUnknown.h"
29 #include "AnimationTypes.h"
30 #include "vector"
31 
40 {
41 public:
42 
43  enum { kDefaultIID = IID_ISPREADDYNAMICCONTENTMGR };
44 
59  };
60 
64  virtual uint32 GetNumTargets() const = 0;
65 
72  virtual bool CanAddTarget (UID pageItemUID) = 0;
73 
78  virtual bool AddTarget (UID pageItemUID) = 0;
79 
84  virtual bool RemoveTarget (UID pageItemUID) = 0;
85 
91  virtual int32 FindTarget (UID pageItemUID) const = 0;
92 
97  virtual UID GetNthTarget (uint32 index) const = 0;
98 
104  virtual DynamicContentType GetNthTargetType (uint32 index) const = 0;
105 
110  virtual bool NthTargetIsAnimated (uint32 index) const = 0;
111 
117  virtual bool GetNthTargetName (uint32 index, PMString& name) const = 0;
118 
123  virtual void GetItemsByTargetType (const DynamicContentType& targetType, std::vector<UID>& itemList) const = 0;
124 
131  virtual uint32 GetNumButtons () const = 0;
132 
137  virtual bool AddButton (UID buttonUID) = 0;
138 
141  virtual bool RemoveButton (UID buttonUID) = 0;
142 
147  virtual int32 FindButton (UID buttonUID) const = 0;
148 
153  virtual UID GetNthButton (uint32 index) const = 0;
154 
158  virtual void GetButtons (std::vector<UID>& buttonList) const = 0;
159 
163  virtual void GetUnassignedTargets (std::vector<UID>& targetList) const = 0;
164 };
165 
166 #endif // __ISpreadDynamicContentMgr__