InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
FeatureSets.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Chris Parrish
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 #ifndef __FeatureSets__
25 #define __FeatureSets__
26 
27 //------
28 //Feature set ID's
29 // We define feature set ID's as three values, two bytes and a word in a long
30 // with the first value starting at 0x0100.
31 // The first byte is the product feature set, the second byte is the language feature set
32 // and the second word is the locale id (UI language).
33 // Locale ID's should all be defined below kFSBase and all feature sets above it,
34 // so we can quickly evaluate whether an ID belongs to a feature set
35 // or a locale.
36 
37 #define kFSBaseID 0x00FF
38 
39  // language in low byte
40 #define kRomanLanguageFS 0x0000
41 #define kJapaneseLanguageFS 0x0001
42 #define kINXCoreFS 0x0002
43 #define kRightToLeftLanguageFS 0x0003
44 #define kAllLanguagesFS 0x00fe
45 
46  // product in high byte
47 #define kInDesignProductFS 0x0100
48 #define kInCopyProductFS 0x0200
49 #define kInDesignServerProductFS 0x0400
50 #define kAllProductsFS 0xff00
51 
52  // new wild cards
53 #define kInDesignAllLanguagesFS (kInDesignProductFS | kAllLanguagesFS)
54 #define kInCopyAllLanguagesFS (kInCopyProductFS | kAllLanguagesFS)
55 #define kInDesignServerAllLanguagesFS (kInDesignServerProductFS | kAllLanguagesFS)
56 #define kAllProductsRomanFS (kAllProductsFS | kRomanLanguageFS)
57 #define kAllProductsJapaneseFS (kAllProductsFS | kJapaneseLanguageFS)
58 #define kAllProductsRightToLeftFS (kAllProductsFS | kRightToLeftLanguageFS)
59 
60  // compatibility wild cards
61 #define kInDesignRomanFS (kInDesignProductFS | kRomanLanguageFS)
62 #define kInDesignJapaneseFS (kInDesignProductFS | kJapaneseLanguageFS)
63 #define kInCopyRomanFS (kInCopyProductFS | kRomanLanguageFS)
64 #define kInCopyJapaneseFS (kInCopyProductFS | kJapaneseLanguageFS)
65 #define kInDesignServerRomanFS (kInDesignServerProductFS | kRomanLanguageFS)
66 #define kInDesignServerJapaneseFS (kInDesignServerProductFS | kJapaneseLanguageFS)
67 #define kInDesignR2LFS (kInDesignProductFS | kRightToLeftLanguageFS)
68 #define kInCopyR2LFS (kInCopyProductFS | kRightToLeftLanguageFS)
69 #define kInDesignServerR2LFS (kInDesignServerProductFS | kRightToLeftLanguageFS)
70 
71 #define kWildFS (kAllProductsFS | kAllLanguagesFS)
72 
73 
74 #endif // __FeatureSets__
75