InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SnpGraphicHelper.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
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 __SnpGraphicHelper_H_DEFINED__
25 #define __SnpGraphicHelper_H_DEFINED__
26 
27 
29 class UIDList;
30 class UIDRef;
31 class IImageDataAccess;
60 {
61  public:
65  SnpGraphicHelper(const UIDList& itemList);
66 
70  SnpGraphicHelper(const UIDRef& itemRef);
71 
74  virtual ~SnpGraphicHelper();
75 
76  public:
77 
88  ErrorCode ApplyAttributes();
89 
95  void Reset(const UIDList& itemList);
96 
102  void Reset(const UIDRef& itemRef);
103 
107  void AddStrokeWeight(const PMReal& strokeWeight);
108 
115  virtual UID GetNamedSwatch(const PMString& swatchName, IDataBase* iDataBase);
116 
121  void AddStrokeRendering(const UID& swatchUID);
122 
127  void AddFillRendering(const UID& swatchUID);
128 
133  void AddCornerImplementation(const ClassID& pathCornerClassID);
134 
139  void AddCornerRadius(const PMReal& cornerRadius);
140 
145  void AddLineImplementation(const ClassID& pathStrokerClassID);
146 
151  void AddLineEndEndImplementation(const ClassID& pathEndStrokerClassID);
152 
155  enum JoinType {kJTMiter, kJTRound, kJTBevel};
156 
160  void AddJoinType(const SnpGraphicHelper::JoinType joinType);
161 
164  enum LineCap {kLCButt, kLCRound, kLCSquare};
165 
169  void AddLineCap(const SnpGraphicHelper::LineCap lineCap);
170 
174  void AddDashedValues(const K2Vector<PMReal>& dashAndGapValues);
175 
181 
188 
189 
190 
191  private:
192 
196  void AddAnAttribute(IPMUnknown* attribute);
197 
198  private:
199  UIDList fItemList;
200  InterfacePtr<IApplyMultAttributesCmdData> fIApplyMultAttributesCmdData;
201 
202 };
203 
204 #endif // __SnpGraphicHelper_H_DEFINED__
205 
206 //End, SnpGraphicHelper.h