InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
XMLDTDValidationError.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Will Lin
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 Patent of Adobe Patent Pending Invention Included Within this File
24 //
25 //========================================================================================
26 
27 #ifndef __XMLDTDValidationError__
28 #define __XMLDTDValidationError__
29 
30 
31 #include "XMLDTDValidateSuggest.h"
32 #include "XMLReference.h"
33 
34 
35 //
36 // Adobe patent application tracking P563, entitled XML DTD Validation With
37 // Suggestion For Fixing Validation Errors, inventors: Lin
38 //
39 
47 {
48  public:
107  XMLDTDValidationError(ErrorCode errCode, const XMLReference& xmlReference, const PMString& attName = PMString());
108 
111 
113  virtual ~XMLDTDValidationError();
114 
115  bool operator==(const XMLDTDValidationError&) const { ASSERT_FAIL("appease K2Vector.Location"); return false; }
116 
119 
123  ErrorCode GetErrorCode(void) const;
124 
129  const XMLReference& GetXMLReference(void) const;
130 
136  const PMString& GetAttributeName(void) const;
137 
143 
148  void AddSuggestion(XMLDTDValidateSuggest *suggestion);
149 
150  private:
151  ErrorCode fErrCode;
152  XMLReference fXMLRef;
153  PMString fAttName;
155 };
156 
157 DECLARE_OBJECT_TYPE(XMLDTDValidationError);
158 
159 
160 #endif // __XMLDTDValidationError__
161