InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPreflightProfileRules.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 
28 #include "IPreflightRuleInfo.h"
29 
35 {
36 public:
37  enum { kDefaultIID = IID_IPREFLIGHTPROFILERULES };
38 
39 public:
43  virtual int32 GetRuleCount() const = 0;
44 
49  virtual IPreflightRuleInfo* QueryNthRule(int32 n) const = 0;
50 
55  virtual IPreflightRuleInfo* QueryRuleByID(const PreflightRuleID& ruleID) const = 0;
56 
61  virtual int32 Location(const IPreflightRuleInfo* iRule) const = 0;
62 
67  virtual int32 Location(const PreflightRuleID& ruleID) const = 0;
68 
76  virtual void AddRule(IPreflightRuleInfo* iRule) = 0;
77 
85  virtual void RemoveNthRule(uint32 n, bool deleteIt = kTrue) = 0;
86 
93  virtual void RemoveAllRules(bool deleteThem = kTrue) = 0;
94 
101  virtual void CopyFrom(const IPreflightProfileRules* iSrc) = 0;
102 
110  virtual bool IsEqual(const IPreflightProfileRules* iOther) const = 0;
111 
116  virtual void UpdateAllRulesData() = 0;
117 };
118