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 nsSAXAttributes_h__ michael@0: #define nsSAXAttributes_h__ michael@0: michael@0: #include "nsISupports.h" michael@0: #include "nsISAXAttributes.h" michael@0: #include "nsISAXMutableAttributes.h" michael@0: #include "nsTArray.h" michael@0: #include "nsString.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: #define NS_SAXATTRIBUTES_CONTRACTID "@mozilla.org/saxparser/attributes;1" michael@0: #define NS_SAXATTRIBUTES_CID \ michael@0: {/* {7bb40992-77eb-43db-9a4e-39d3bcc483ae}*/ \ michael@0: 0x7bb40992, 0x77eb, 0x43db, \ michael@0: { 0x9a, 0x4e, 0x39, 0xd3, 0xbc, 0xc3, 0x83, 0xae} } michael@0: michael@0: struct SAXAttr michael@0: { michael@0: nsString uri; michael@0: nsString localName; michael@0: nsString qName; michael@0: nsString type; michael@0: nsString value; michael@0: }; michael@0: michael@0: class nsSAXAttributes MOZ_FINAL : public nsISAXMutableAttributes michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSISAXATTRIBUTES michael@0: NS_DECL_NSISAXMUTABLEATTRIBUTES michael@0: michael@0: private: michael@0: nsTArray mAttrs; michael@0: }; michael@0: michael@0: #endif // nsSAXAttributes_h__