InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IINXErrorHandler.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Gang Xiao
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 __IINXErrorHandler_h__
25 #define __IINXErrorHandler_h__
26 
27 #include "IPMUnknown.h"
28 #include "IDOMElement.h"
29 
30 class IScript;
31 class IScriptRequestData;
32 class ScriptReturnData;
33 
40 {
41 public:
42  enum { kDefaultIID = IID_IINXERRORHANDLER };
43 
44 public:
45  typedef enum
46  {
47  kINXContinue = 0,
48  kINXCancel
49  } INXErrorStatus;
50 
54  virtual void ResetINXErrorStatus() = 0;
55 
61  virtual IINXErrorHandler::INXErrorStatus GetINXErrorStatus() const = 0;
62 
68  virtual void BeginExport(const IPMStream * stream, const IDOMElement::ElementList &roots) = 0;
69 
73  virtual void EndExport() = 0;
74 
79  virtual void BeginImport(const IPMStream *stream) = 0;
80 
84  virtual void EndImport() = 0;
85 
91  virtual void UnknownElement(const ScriptID & parent, const WideString & elem) = 0;
92 
98  virtual void UnknownProperty(const ScriptID & parent, const WideString & prop) = 0;
99 
104  virtual void UnresolvedReference(const WideString & selfID) = 0;
105 
111  virtual void ParserError(ErrorCode err, const PMString & errorStr) = 0;
112 
124  virtual void ScriptingError(const IScript * script, const IScriptRequestData * scriptRequestData, const ScriptReturnData & returnData ) = 0;
125 };
126 
127 #endif // __IINXErrorHandler_h__