InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPageItemAdornmentList.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: jargast
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 __IPageItemAdornmentList__
25 #define __IPageItemAdornmentList__
26 
27 #include "IPMUnknown.h"
28 #include "IAdornmentShape.h"
29 #include "IAdornmentHandleShape.h"
30 #include "GenericID.h"
31 
42 {
43 public:
46  {
51  };
52 
53 public:
57  virtual void AddAdornment( IPMUnknown* pAdorn ) = 0;
58 
62  virtual IPMUnknown* GetNextAdornment() = 0;
63 
67  virtual int32 GetNumberOfAdornments() = 0;
68 
73  virtual bool32 HasAdornment(ClassID classID) = 0;
74 };
75 
76 
81 {
82 
83 public:
84  enum { kDefaultIID = IID_IPAGEITEMADORNMENTLIST };
85 
86  //
87  // First there are the shape adornments
88  //
89 
94  virtual void AddAdornment(ClassID, bool16 = kTrue) = 0;
95 
100  virtual void RemoveAdornment( ClassID, bool16 = kTrue ) = 0;
101 
102  //Points somewhere on the list before the first node with these
103  //AdornmentDrawOrder bits.
104  //virtual void ResetIterator( IAdornmentShape::AdornmentDrawOrder ) = 0;
105 
106  // Returns the next adornment matching the flags specified in the
107  // above call to ResetIterator, nil if it runs out of matches
108  // deprecated, use QueryIterator.
109  //virtual IAdornmentShape* QueryNextAdornment() = 0;
110 
114  virtual int32 GetNumberOfAdornments() = 0; // pass flags
115 
121  virtual bool HasAdornment (ClassID, IAdornmentShape::AdornmentDrawOrder order = IAdornmentShape::kAllAdornmentFlags) = 0;
122 
128 
129  //
130  // Next we have the handle adornments
131  //
132 
137  virtual void AddHandleAdornment(ClassID, bool16 = kTrue) = 0;
138 
143  virtual void RemoveHandleAdornment( ClassID, bool16 = kTrue ) = 0;
144 
145  //Points somewhere on the list before the first node with these
146  //AdornmentDrawOrder bits.
147  //virtual void ResetHandleIterator( IAdornmentHandleShape::AdornmentDrawOrder ) = 0;
148 
149  // Returns the next adornment matching the flags specified in the
150  // above call to ResetIterator, nil if it runs out of matches
151  //virtual IAdornmentHandleShape* QueryNextHandleAdornment() = 0;
152 
156  virtual int32 GetNumberOfHandleAdornments() = 0; // pass flags
157 
166  virtual IAdornmentIterator* CreateIterator( IAdornmentShape::AdornmentDrawOrder order, bool32 addUniqueOnly = kFalse ) = 0;
167 
173 };
174 
175 #endif