InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IMotionPresetMgr.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 __IMotionPresetMgr__
25 #define __IMotionPresetMgr__
26 
27 #include "DynamicDocumentsID.h"
28 #include "IPMUnknown.h"
29 
30 class IMotionPresetData;
31 
36 {
37 public:
38 
39  enum { kDefaultIID = IID_IMOTIONPRESETMANAGER };
40 
44  virtual int32 GetNumPresets() const = 0;
45 
51  virtual ErrorCode GetNthPresetName (int32 index, PMString& pName) const = 0;
52 
58  virtual ErrorCode GetNthPresetDescription (int32 index, PMString *pDesc) const = 0;
59 
66  virtual UID GetNthPresetUID (int32 index) const = 0;
67 
72  virtual bool IsDefaultPreset (int32 index) const = 0;
73 
78  virtual bool CanEditNthPreset (int32 index) const = 0;
79 
84  virtual bool CanDeleteNthPreset (int32 index) const = 0;
85 
90  virtual IMotionPresetData* QueryNthPreset (int32 index) const = 0;
91 
98  virtual int32 FindPreset (const PMString& pName, bool casesensitive = true) const = 0;
99 
104  virtual int32 FindPreset (UID presetUID) const = 0;
105 
112  virtual ErrorCode InsertPreset (IPMUnknown* iMotionPreset, int32 atPosition = -1) = 0;
113 
120  virtual ErrorCode RemoveNthPreset(int32 index, bool deleteUID = true) = 0;
121 
134  virtual PMString GetUniquePresetName(PMString& baseName, const PMString& appendString = PMString (), bool casesensitive = true) const = 0;
135 
138  virtual ErrorCode SyncMotionPresetFileList () = 0;
139 
140 };
141 
142 #endif // __IMotionPresetMgr__
143