1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/parser/xml/src/nsSAXAttributes.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,42 @@ 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 nsSAXAttributes_h__ 1.10 +#define nsSAXAttributes_h__ 1.11 + 1.12 +#include "nsISupports.h" 1.13 +#include "nsISAXAttributes.h" 1.14 +#include "nsISAXMutableAttributes.h" 1.15 +#include "nsTArray.h" 1.16 +#include "nsString.h" 1.17 +#include "mozilla/Attributes.h" 1.18 + 1.19 +#define NS_SAXATTRIBUTES_CONTRACTID "@mozilla.org/saxparser/attributes;1" 1.20 +#define NS_SAXATTRIBUTES_CID \ 1.21 +{/* {7bb40992-77eb-43db-9a4e-39d3bcc483ae}*/ \ 1.22 +0x7bb40992, 0x77eb, 0x43db, \ 1.23 +{ 0x9a, 0x4e, 0x39, 0xd3, 0xbc, 0xc3, 0x83, 0xae} } 1.24 + 1.25 +struct SAXAttr 1.26 +{ 1.27 + nsString uri; 1.28 + nsString localName; 1.29 + nsString qName; 1.30 + nsString type; 1.31 + nsString value; 1.32 +}; 1.33 + 1.34 +class nsSAXAttributes MOZ_FINAL : public nsISAXMutableAttributes 1.35 +{ 1.36 +public: 1.37 + NS_DECL_ISUPPORTS 1.38 + NS_DECL_NSISAXATTRIBUTES 1.39 + NS_DECL_NSISAXMUTABLEATTRIBUTES 1.40 + 1.41 +private: 1.42 + nsTArray<SAXAttr> mAttrs; 1.43 +}; 1.44 + 1.45 +#endif // nsSAXAttributes_h__