InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IMotionPresetUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: SusanCL
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
18 //
19 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
20 // with the terms of the Adobe license agreement accompanying it. If you have received
21 // this file from a source other than Adobe, then your use, modification, or
22 // distribution of it requires the prior written permission of Adobe.
23 //
24 //========================================================================================
25 
26 #include "DynamicDocumentsID.h"
27 #include "InstStrokeFillID.h"
28 
29 #include "WideString.h"
30 #include "Utils.h"
31 #include "PMPathPoint.h"
32 
33 class IMotionPresetMgr;
34 class IMotionPresetData;
35 class IAnimationCore;
36 class ISubject;
37 class IScriptRequestData;
38 class IScript;
39 class GraphicsData;
40 
41 const PMReal kMotionPathLineWeight = 1.0;
42 const PMReal kMotionPathDotsWeight = 1.5;
43 const ClassID kMotionPathArrowHeadBoss = kBarbedArrowHeadBoss;
44 const ClassID kMotionPathCircleBoss = kCircleSolidArrowHeadBoss;
45 
47 {
48  public:
49  enum { kDefaultIID = IID_IMOTIONPRESETUTILS };
50 
55  virtual IMotionPresetMgr* QueryMotionPresetManager (IDataBase* iDB = nil) const = 0;
56 
62  virtual ErrorCode CopyMotionPresetData (const IMotionPresetData* iSrcPreset, IMotionPresetData* iDstPreset) const = 0;
63 
69  virtual IMotionPresetData* QueryPageItemPresetData (const UIDRef& pageItemRef, int32 whichAnimation) = 0;
70 
76  virtual IPMUnknown* QueryPageItemAnimationData (const UIDRef& pageItemRef) = 0;
77 
82  virtual UID GetPageItemAnimationPresetUID (const UIDRef& pageItemRef) const = 0;
83 
88  virtual IAnimationCore* CreateAnimationCore (const UIDRef& presetRef = UIDRef::gNull) = 0;
89 
98  virtual ErrorCode SetMotionPresetSettings (const UIDRef& presetRef, bool doSetName, const PMString& newName,
99  bool doSetDescription, const PMString& newDescription) = 0;
100 
107  virtual ErrorCode ConstructMotionXMLDataFromMotionData (const WideString& rawString, boost::shared_ptr<uint8>& xmlBuffer, size_t& size) = 0;
108 
114  virtual ErrorCode ValidatePresetName (IMotionPresetMgr* iPresetMgr, const PMString& presetName) const = 0;
115 
120  virtual ISubject* QueryPresetWorkspaceSubject (IDataBase* iDB) const = 0;
121 
127  virtual IMotionPresetMgr* QueryMotionPresetManagerFromScript (const IScriptRequestData* data, IScript* script) const = 0;
128 
138  virtual void GetMotionPathPoints(const UIDRef& pageItemRef, PMPathPointList& motionPath, PMPathPointList& easingPath) = 0;
139 
147  virtual PMMatrix FlashToInnerMatrix(const UIDRef& pageItemRef) = 0;
148 
153  virtual void DrawMotionPaths(GraphicsData* gd, const UIDRef& pageItemRef) = 0;
154 
160  virtual void CreateMotionPath(GraphicsData* gd, const PMPathPointList& motionPath) = 0;
161 
167  virtual void CreateEasingPath(GraphicsData* gd, const PMPathPointList& easingPath) = 0;
168 
176  virtual bool GetPresetGroupName(const PMString& presetName, PMString& presetGroupName) = 0;
177 };