InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPreflightProfileUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Matt Phillips
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 
25 #include "IPMUnknown.h"
26 #include "PackageAndPreflightID.h"
27 #include "IPreflightObject.h"
28 #include "IPreflightRuleInfo.h"
29 #include "Utils.h"
30 
32 {
33 public:
34  enum { kDefaultIID = IID_IPREFLIGHTPROFILEUTILS };
35 
36 public:
51  (
52  const IPreflightProfile* iSrcProfile,
53  IDataBase* destDB
54  ) const = 0;
55 
58  typedef enum
59  {
60  kChangedNothing = 0,
61  kChangedName = (1L<<0),
62  kChangedDescription = (1L<<1),
63  kChangedRules = (1L<<2)
65 
77  virtual void CopyProfileData
78  (
79  const IPreflightProfile* iSrcProfile,
80  IPreflightProfile* iDstProfile,
81  bool copyNamesOnly = kFalse,
82  ProfileChangeFlags* pChanges = nil
83  ) const = 0;
84 
90  virtual IPreflightProfile* CreateEmptyProfile(IDataBase* db) const = 0;
91 
97  virtual IPreflightProfile* CreatePopulatedProfile(IDataBase* db) const = 0;
98 
109  virtual void DestroyProfile(const UIDRef& profileRef) const = 0;
110 
117  virtual ErrorCode ExportProfileAsINX (const IPreflightProfile* iProfile, const IDFile& exportFile) const = 0;
118 
124  virtual IPreflightProfile* ImportProfileFromINX (const IDFile& sourceFile) const = 0;
125 };
126 
127 
128