michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsSAXLocator_h__ michael@0: #define nsSAXLocator_h__ michael@0: michael@0: #include "nsISAXLocator.h" michael@0: #include "nsString.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: #define NS_SAXLOCATOR_CONTRACTID "@mozilla.org/saxparser/locator;1" michael@0: #define NS_SAXLOCATOR_CID \ michael@0: {/* {c1cd4045-846b-43bb-a95e-745a3d7b40e0}*/ \ michael@0: 0xc1cd4045, 0x846b, 0x43bb, \ michael@0: { 0xa9, 0x5e, 0x74, 0x5a, 0x3d, 0x7b, 0x40, 0xe0} } michael@0: michael@0: class nsSAXLocator MOZ_FINAL : public nsISAXLocator michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSISAXLOCATOR michael@0: michael@0: nsSAXLocator(nsString& aPublicId, michael@0: nsString& aSystemId, michael@0: int32_t aLineNumber, michael@0: int32_t aColumnNumber); michael@0: michael@0: private: michael@0: nsString mPublicId; michael@0: nsString mSystemId; michael@0: int32_t mLineNumber; michael@0: int32_t mColumnNumber; michael@0: }; michael@0: michael@0: #endif //nsSAXLocator_h__