InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CResourceShell.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Lance Bushore
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 __CResourceShell_h__
25 #define __CResourceShell_h__
26 
27 #include "RsrcSpec.h"
28 #include "PMLocaleId.h"
29 
30 
31 
37 {
38 public:
39 
44  static SysHandle GetResource(const RsrcSpec& spec);
45 
51  static int16 CountResourcesLI(const PMLocaleId& locale,RsrcType resType);
52 
57  static int16 CountResourcesLI(const RsrcSpec& spec);
58 
63  static SysHandle GetResourceLI(const RsrcSpec& spec);
64 
67  typedef bool16 (*EnumResource)(IPMStream *s, void *enumData);
68 
77  static void EnumerateResourcesLI(const PMLocaleId& locale, const PluginID& pluginID, RsrcType resType, EnumResource func, void *enumData,bool16 resourceAlreadyOpened = kFalse);
78 
85  static void EnumerateResources(const PluginID& pluginID, RsrcType resType, EnumResource func, void *enumData);
86 
87 private:
88  static SysHandle GetIndResourceLI(const RsrcSpec& spec);
89  static void PrivateEnumerateResourcesLI(const PMLocaleId& locale,const PluginID& pluginID, RsrcType resType, EnumResource func, void *enumData);
90 
91 };
92 
93 
94 #endif // __CResourceShell_h__