InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SDKRuleTable.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: InDesign Developer Technologies
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 // An array giving the details of the native rules. We need at least the boss and the
24 // rule ID in this table because we need a lookup capability. And might as well throw
25 // in the description since it's all kinda parallel.
26 //
27 // In addition to here you need the following for each rule:
28 //
29 //========================================================================================
30 
31 
32 #include "IPreflightRuleData.h"
33 #include "PreflightRuleID.h"
34 
35 typedef struct
36 {
37  ClassID fBossID;
38  const char* fStringID;
39  const char* fDesc;
41 
42 static const char* const kSDKFontRuleID = "ADBE_SDK_Font_Rule";
43 static const char* const kSDKBlackOverprintRuleID = "ADBE_SDK_BlackOverprint_Rule";
44 
45 static const PreflightRuleInfo kSDKRules[] =
46 {
47  { kPreflightDisallowFontRuleBoss, kSDKFontRuleID, kSDKFontRuleDescriptionKey},
48  { kPreflightBlackOverprintRuleBoss, kSDKBlackOverprintRuleID, kSDKBlackOverprintRuleDescKey}
49 };
50 
51 const int32 kNumSDKRules = sizeof(kSDKRules) / sizeof(*kSDKRules);
52