2006-04-17 05:13:07 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-04-17 05:13:07 +04:00
|
|
|
|
|
|
|
#ifndef nsSAXLocator_h__
|
|
|
|
#define nsSAXLocator_h__
|
|
|
|
|
|
|
|
#include "nsISAXLocator.h"
|
|
|
|
#include "nsString.h"
|
2012-06-13 08:07:59 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2006-04-17 05:13:07 +04:00
|
|
|
|
|
|
|
#define NS_SAXLOCATOR_CONTRACTID "@mozilla.org/saxparser/locator;1"
|
|
|
|
#define NS_SAXLOCATOR_CID \
|
|
|
|
{/* {c1cd4045-846b-43bb-a95e-745a3d7b40e0}*/ \
|
|
|
|
0xc1cd4045, 0x846b, 0x43bb, \
|
|
|
|
{ 0xa9, 0x5e, 0x74, 0x5a, 0x3d, 0x7b, 0x40, 0xe0} }
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class nsSAXLocator final : public nsISAXLocator
|
2006-04-17 05:13:07 +04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSISAXLOCATOR
|
|
|
|
|
2006-09-13 22:20:05 +04:00
|
|
|
nsSAXLocator(nsString& aPublicId,
|
|
|
|
nsString& aSystemId,
|
2012-08-22 19:56:38 +04:00
|
|
|
int32_t aLineNumber,
|
|
|
|
int32_t aColumnNumber);
|
2006-04-17 05:13:07 +04:00
|
|
|
|
|
|
|
private:
|
2014-06-27 22:41:03 +04:00
|
|
|
~nsSAXLocator() {}
|
|
|
|
|
2006-04-17 05:13:07 +04:00
|
|
|
nsString mPublicId;
|
|
|
|
nsString mSystemId;
|
2012-08-22 19:56:38 +04:00
|
|
|
int32_t mLineNumber;
|
|
|
|
int32_t mColumnNumber;
|
2006-04-17 05:13:07 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //nsSAXLocator_h__
|