InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISAXLocator.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Lonnie Millett
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 // An InDesign friendly wrapper for CAXELocator. An instance of this class will be passed to
24 // ISaxContentHandler::SetDocumentLocator.
25 //
26 //========================================================================================
27 
28 #ifndef __ISAXLocator_h__
29 #define __ISAXLocator_h__
30 
31 #include "IPMUnknown.h"
32 #include "XMLParserID.h"
33 
34 // Forward declaration
35 struct AXE8_ParserStruct;
36 typedef struct AXE8_ParserStruct *AXE8_Parser;
37 
38 class ISAXServices;
39 
64 class ISAXLocator : public IPMUnknown
65 {
66 public:
67  enum { kDefaultIID = IID_ISAXLOCATOR };
68 
74  virtual void Adopt(const AXE8_Parser parser, ISAXServices* owner) = 0;
75 
88  virtual bool16 GetPublicId(WideString& s) const = 0;
89 
105  virtual bool16 GetSystemId(WideString& s) const = 0;
106 
117  virtual int32 GetLineNumber() const = 0;
118 
130  virtual int32 GetColumnNumber() const = 0;
131 
132  /*
133  The two following functions are intended to be private
134  calls made by the parser callbacks for Shared Expat.
135  */
136  virtual void setPublicID(const WideString& s) = 0;
137  virtual void setSystemID(const WideString& s) = 0;
138 
139 };
140 
141 #endif