InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPreflightRuleManager.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 // This is the main entry point into the preflight architecture.
24 //
25 //========================================================================================
26 
27 
28 #include "IPMUnknown.h"
29 #include "PackageAndPreflightID.h"
30 
31 #include "IPreflightRuleInfo.h"
32 
34 
47 {
48 public:
49  enum { kDefaultIID = IID_IPREFLIGHTRULEMANAGER };
50 
51 public:
52  // These are called by the PreflightManager.
53  virtual void Startup() = 0;
54  virtual void Shutdown() = 0;
55 
66  virtual bool16 RegisterMissingRuleService (const ClassID& providerClassID, const PreflightRuleID& ruleID = PreflightRuleID ()) = 0;
67 
70  virtual PreflightRuleIDVector GetAllRuleIDs() const = 0;
71 
76  virtual IPreflightRuleService* QueryRuleService(const PreflightRuleID& ruleID) const = 0;
77 
83  virtual IPreflightRuleInfo* CreateRule(PreflightRuleID ruleID, IDataBase* db) const = 0;
84 
92  virtual void GetAllCategories(K2Vector<PMString>& allCategories) const = 0;
93 
104  virtual void GetRulesInCategory(const PMString& category, PreflightRuleIDVector& rules) const = 0;
105 
114  virtual PMString GetRuleCategory(const PreflightRuleID& ruleID) const = 0;
115 
116 };
117 
118