1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/parser/xml/src/nsSAXLocator.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsSAXLocator_h__ 1.10 +#define nsSAXLocator_h__ 1.11 + 1.12 +#include "nsISAXLocator.h" 1.13 +#include "nsString.h" 1.14 +#include "mozilla/Attributes.h" 1.15 + 1.16 +#define NS_SAXLOCATOR_CONTRACTID "@mozilla.org/saxparser/locator;1" 1.17 +#define NS_SAXLOCATOR_CID \ 1.18 +{/* {c1cd4045-846b-43bb-a95e-745a3d7b40e0}*/ \ 1.19 +0xc1cd4045, 0x846b, 0x43bb, \ 1.20 +{ 0xa9, 0x5e, 0x74, 0x5a, 0x3d, 0x7b, 0x40, 0xe0} } 1.21 + 1.22 +class nsSAXLocator MOZ_FINAL : public nsISAXLocator 1.23 +{ 1.24 +public: 1.25 + NS_DECL_ISUPPORTS 1.26 + NS_DECL_NSISAXLOCATOR 1.27 + 1.28 + nsSAXLocator(nsString& aPublicId, 1.29 + nsString& aSystemId, 1.30 + int32_t aLineNumber, 1.31 + int32_t aColumnNumber); 1.32 + 1.33 +private: 1.34 + nsString mPublicId; 1.35 + nsString mSystemId; 1.36 + int32_t mLineNumber; 1.37 + int32_t mColumnNumber; 1.38 +}; 1.39 + 1.40 +#endif //nsSAXLocator_h__