InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPreflightProfileManager.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 // Manages a list of profiles at the application or document level.
24 //
25 //========================================================================================
26 
27 
28 #include "IPMUnknown.h"
29 #include "IPreflightProfile.h"
30 #include "PackageAndPreflightID.h"
31 
39 {
40 public:
41  enum { kDefaultIID = IID_IPREFLIGHTPROFILEMANAGER };
42 
43 public:
47  virtual int32 GetProfileCount() const = 0;
48 
53  virtual IPreflightProfile* QueryNthProfile(int32 n) const = 0;
54 
59  virtual UID GetNthProfileUID(int32 n) const = 0;
60 
64  virtual void GetAllProfiles(UIDList* theList) const = 0;
65 
70  virtual int32 FindProfile(UID profileUID) const = 0;
71 
76  virtual int32 FindProfile(const IPreflightProfile* iProfile) const = 0;
77 
82  virtual int32 FindProfile(const PMString& profileName) const = 0;
83 
90  virtual void InsertProfile(IPreflightProfile* iProfile, int32 beforeIndex = -1) = 0;
91 
98  virtual void InsertCopyOfProfile(IPreflightProfile* iProfile, int32 beforeIndex = -1) = 0;
99 
106  virtual void RemoveNthProfile(int32 n, bool deleteIt = kTrue) = 0;
107 
113  virtual void RemoveAllProfiles(bool deleteThem = kTrue) = 0;
114 
123  virtual PMString GetUniqueProfileName(const PMString& name) const = 0;
124 
127  virtual void Startup() = 0;
128 };
129