2006-04-17 05:13:07 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-04-17 05:13:07 +04:00
|
|
|
|
|
|
|
#ifndef nsSAXAttributes_h__
|
|
|
|
#define nsSAXAttributes_h__
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
|
|
|
#include "nsISAXAttributes.h"
|
|
|
|
#include "nsTArray.h"
|
|
|
|
#include "nsString.h"
|
2012-06-13 08:07:59 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2006-04-17 05:13:07 +04:00
|
|
|
|
|
|
|
struct SAXAttr
|
|
|
|
{
|
|
|
|
nsString uri;
|
|
|
|
nsString localName;
|
|
|
|
nsString qName;
|
|
|
|
nsString type;
|
|
|
|
nsString value;
|
|
|
|
};
|
|
|
|
|
2017-11-10 07:21:27 +03:00
|
|
|
class nsSAXAttributes final : public nsISAXAttributes
|
2006-04-17 05:13:07 +04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSISAXATTRIBUTES
|
2017-11-10 07:21:27 +03:00
|
|
|
|
|
|
|
nsresult AddAttribute(const nsAString &aURI,
|
|
|
|
const nsAString &aLocalName,
|
|
|
|
const nsAString &aQName,
|
|
|
|
const nsAString &aType,
|
|
|
|
const nsAString &aValue);
|
2006-04-17 05:13:07 +04:00
|
|
|
|
|
|
|
private:
|
2014-06-27 22:41:03 +04:00
|
|
|
~nsSAXAttributes() {}
|
2006-04-17 05:13:07 +04:00
|
|
|
nsTArray<SAXAttr> mAttrs;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsSAXAttributes_h__
|