Line data Source code
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 nsSAXAttributes_h__
7 : #define nsSAXAttributes_h__
8 :
9 : #include "nsISupports.h"
10 : #include "nsISAXAttributes.h"
11 : #include "nsISAXMutableAttributes.h"
12 : #include "nsTArray.h"
13 : #include "nsString.h"
14 : #include "mozilla/Attributes.h"
15 :
16 : #define NS_SAXATTRIBUTES_CONTRACTID "@mozilla.org/saxparser/attributes;1"
17 : #define NS_SAXATTRIBUTES_CID \
18 : {/* {7bb40992-77eb-43db-9a4e-39d3bcc483ae}*/ \
19 : 0x7bb40992, 0x77eb, 0x43db, \
20 : { 0x9a, 0x4e, 0x39, 0xd3, 0xbc, 0xc3, 0x83, 0xae} }
21 :
22 0 : struct SAXAttr
23 : {
24 : nsString uri;
25 : nsString localName;
26 : nsString qName;
27 : nsString type;
28 : nsString value;
29 : };
30 :
31 0 : class nsSAXAttributes final : public nsISAXMutableAttributes
32 : {
33 : public:
34 : NS_DECL_ISUPPORTS
35 : NS_DECL_NSISAXATTRIBUTES
36 : NS_DECL_NSISAXMUTABLEATTRIBUTES
37 :
38 : private:
39 0 : ~nsSAXAttributes() {}
40 : nsTArray<SAXAttr> mAttrs;
41 : };
42 :
43 : #endif // nsSAXAttributes_h__
|