|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 #ifndef nsSAXLocator_h__ |
|
7 #define nsSAXLocator_h__ |
|
8 |
|
9 #include "nsISAXLocator.h" |
|
10 #include "nsString.h" |
|
11 #include "mozilla/Attributes.h" |
|
12 |
|
13 #define NS_SAXLOCATOR_CONTRACTID "@mozilla.org/saxparser/locator;1" |
|
14 #define NS_SAXLOCATOR_CID \ |
|
15 {/* {c1cd4045-846b-43bb-a95e-745a3d7b40e0}*/ \ |
|
16 0xc1cd4045, 0x846b, 0x43bb, \ |
|
17 { 0xa9, 0x5e, 0x74, 0x5a, 0x3d, 0x7b, 0x40, 0xe0} } |
|
18 |
|
19 class nsSAXLocator MOZ_FINAL : public nsISAXLocator |
|
20 { |
|
21 public: |
|
22 NS_DECL_ISUPPORTS |
|
23 NS_DECL_NSISAXLOCATOR |
|
24 |
|
25 nsSAXLocator(nsString& aPublicId, |
|
26 nsString& aSystemId, |
|
27 int32_t aLineNumber, |
|
28 int32_t aColumnNumber); |
|
29 |
|
30 private: |
|
31 nsString mPublicId; |
|
32 nsString mSystemId; |
|
33 int32_t mLineNumber; |
|
34 int32_t mColumnNumber; |
|
35 }; |
|
36 |
|
37 #endif //nsSAXLocator_h__ |