![]() | InDesign SDK 20.5 |
#include <ISAXLocator.h>

Public Types | |
| enum | { kDefaultIID = IID_ISAXLOCATOR } |
Public Member Functions | |
| virtual void | Adopt (const AXE8_Parser parser, ISAXServices *owner)=0 |
| virtual bool16 | GetPublicId (WideString &s) const =0 |
| virtual bool16 | GetSystemId (WideString &s) const =0 |
| virtual int32 | GetLineNumber () const =0 |
| virtual int32 | GetColumnNumber () const =0 |
| virtual void | setPublicID (const WideString &s)=0 |
| virtual void | setSystemID (const WideString &s)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Interface for associating a SAX event with a document location.
If a SAX parser provides location information to the SAX application, it does so by implementing this interface and passing an instance to the application using the ISAXContentHandler's SetDocumentLocator method. The application can use the object to obtain the location of any other document handler event in the XML source document.
Note that the results returned by the object will be valid only during the scope of each content handler method: the application will receive unpredictable results if it attempts to use the locator at any other time.
The locator object is provided before reporting any other document events (
| pure virtual |
Adopt an instance of a CAXELocator class provided by the parser. This is not intended to by used by clients.
| pure virtual |
Column number where the current document event ends.
Note that this is the column number of the first character after the text associated with the document event. The first column in a line is position 1.
| pure virtual |
Line number where the current document event ends
Note that this is the line position of the first character after the text associated with the document event.
| pure virtual |
Public identifier for the current document event
| s | Set to the public identifier or left unchanged if kFalse is returned. |
| pure virtual |
System identifier for the current document event
If the system identifier is a URL, the parser must resolve it fully before passing it to the application.
| s | Set to the system identifier or left unchanged if kFalse is returned. |