InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IMotionFacade.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 
28 #include "WideString.h"
29 #include "Utils.h"
30 
31 class IMotionPresetMgr;
32 class IMotionPresetData;
33 class ISubject;
34 
35 namespace Facade
36 {
37 
38 class IMotionFacade : public IPMUnknown
39 {
40  public:
41  enum { kDefaultIID = IID_IMOTIONFACADE };
42 
51  virtual ErrorCode ApplyMotionPresetToPageItems (const UIDRef& presetRef, const UIDList& itemList, bool skipTargeting = false, bool doForceCreateNew = false) = 0;
52 
60  virtual ErrorCode NewMotionPreset (IDataBase* iDB, const PMString& newName, const PMString& newDescription, UID& newPresetUID) = 0;
61 
68  virtual ErrorCode DeleteMotionPreset (const UIDRef& presetRef, bool doShowAlert = true) = 0;
69 
80  virtual ErrorCode DuplicateMotionPreset (const UIDRef& presetRef, const PMString& newPresetName, UID& newPresetUID) = 0;
81 
87  virtual ErrorCode SetMotionPresetMotionData (const UIDRef& presetRef, const WideString& newData) = 0;
88 
94  virtual ErrorCode LoadPresetFromFile (const std::vector<IDFile>& sourceFileList, UID& newPresetUID, bool showAlert = true) const = 0;
95 
101  virtual ErrorCode SavePresetToFile (const UIDRef& presetRef, const IDFile& exportFile) const = 0;
102 
108  virtual bool PresetIsEditLocked (const UIDRef& presetRef) const = 0;
109 
114  virtual bool PresetIsDeleteLocked (const UIDRef& presetRef) const = 0;
115 };
116 
117 }; // namespace