InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RsrcSpec.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Burbidge
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 __RsrcSpec_h__
25 #define __RsrcSpec_h__
26 
27 #include "PMLocaleId.h"
28 
38 class RsrcSpec
39 {
40 public:
43  fLocaleId(k_enUS),
44  fPluginID(kInvalidPlugin),
45  fType(0x34343434),
46  fIndexOrID(0),
47  fByID(kTrue)
48  {
49  }
51  RsrcSpec(const RsrcType& type, const RsrcID& indexOrID, bool16 byID = kTrue) :
52  fLocaleId(k_enUS),
53  fPluginID(kInvalidPlugin),
54  fType(type),
55  fIndexOrID(indexOrID),
56  fByID(byID)
57  {
58  }
59 
61  RsrcSpec(PluginID pluginID, const RsrcType& type, const RsrcID& indexOrID, bool16 byID = kTrue) :
62  fLocaleId(k_enUS),
63  fPluginID(pluginID),
64  fType(type),
65  fIndexOrID(indexOrID),
66  fByID(byID)
67  {
68  }
69 
71  RsrcSpec(const PMLocaleId& localeId, PluginID pluginID, const RsrcType& type, const RsrcID& indexOrID, bool16 byID = kTrue) :
72  fLocaleId(localeId),
73  fPluginID(pluginID),
74  fType(type),
75  fIndexOrID(indexOrID),
76  fByID(byID)
77  {
78  }
79 
81  PMLocaleId GetLocaleID() const { return fLocaleId; }
83  PluginID GetPluginID() const { return fPluginID; }
85  RsrcType GetType() const { return fType; }
87  RsrcID GetIndexOrID() const { return fIndexOrID; }
89  bool16 GetByID() const { return fByID; }
90 
91 private:
92  PMLocaleId fLocaleId;
93  PluginID fPluginID;
94  RsrcType fType;
95  RsrcID fIndexOrID;
96  bool16 fByID;
97 };
98 
99 #endif // __RsrcSpec_h__