InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CErrorStringService.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jonathan W. Brown
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 // ADOBE CONFIDENTIAL
24 //
25 //========================================================================================
26 
27 #ifndef __CERRORSTRINGSERVICE__
28 #define __CERRORSTRINGSERVICE__
29 
30 #include "CPMUnknown.h"
31 #include "IErrorStringService.h"
32 
37 class CErrorStringService : public CPMUnknown<IErrorStringService>
38 {
40 
41 public:
42  CErrorStringService( IPMUnknown* boss, PluginID pluginPrefix, RsrcID errorStringTableRsrcID ) ;
44 
45  virtual bool16 HasUserErrorString( ErrorCode errCode, IPMUnknown* errInfo ) const ;
46  virtual PMString GetUserErrorString( ErrorCode errCode, IPMUnknown* errInfo ) const ;
47 
48 #if 0
49 
50  virtual bool16 HasUserErrorDescription( ErrorCode errCode, IPMUnknown* errInfo ) const ;
52  virtual PMString GetUserErrorDescription( ErrorCode errCode, IPMUnknown* errInfo ) const ;
53 #endif
54 
55 protected:
56  PluginID fPluginID ;
57  RsrcID fErrorStringTableRsrcID ;
58 } ;
59 
60 #endif