2005-11-02 10:42:39 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
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/. */
|
2005-11-02 10:42:39 +03:00
|
|
|
|
2006-07-13 18:21:53 +04:00
|
|
|
#ifndef txNodeSetAdaptor_h__
|
|
|
|
#define txNodeSetAdaptor_h__
|
2005-11-02 10:42:39 +03:00
|
|
|
|
2006-07-13 18:21:53 +04:00
|
|
|
#include "txINodeSet.h"
|
|
|
|
#include "txNodeSet.h"
|
2008-11-01 03:52:06 +03:00
|
|
|
#include "txXPathObjectAdaptor.h"
|
2005-11-02 10:42:39 +03:00
|
|
|
|
2006-07-13 18:21:53 +04:00
|
|
|
/**
|
|
|
|
* Implements an XPCOM wrapper around an XPath NodeSet.
|
2005-11-02 10:42:39 +03:00
|
|
|
*/
|
|
|
|
|
2008-11-01 03:52:06 +03:00
|
|
|
class txNodeSetAdaptor : public txXPathObjectAdaptor,
|
|
|
|
public txINodeSet
|
2006-07-13 18:21:53 +04:00
|
|
|
{
|
2005-11-02 10:42:39 +03:00
|
|
|
public:
|
2006-07-13 18:21:53 +04:00
|
|
|
txNodeSetAdaptor();
|
2014-09-02 04:49:25 +04:00
|
|
|
explicit txNodeSetAdaptor(txNodeSet* aNodeSet);
|
2005-11-02 10:42:39 +03:00
|
|
|
|
2006-07-13 18:21:53 +04:00
|
|
|
nsresult Init();
|
2005-11-02 10:42:39 +03:00
|
|
|
|
2008-11-01 03:52:06 +03:00
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
2006-07-13 18:21:53 +04:00
|
|
|
NS_DECL_TXINODESET
|
2005-11-02 10:42:39 +03:00
|
|
|
|
2014-07-09 01:23:17 +04:00
|
|
|
protected:
|
|
|
|
~txNodeSetAdaptor() {}
|
|
|
|
|
2005-11-02 10:42:39 +03:00
|
|
|
private:
|
2008-11-01 03:52:06 +03:00
|
|
|
txNodeSet* NodeSet()
|
|
|
|
{
|
|
|
|
return static_cast<txNodeSet*>(mValue.get());
|
|
|
|
}
|
|
|
|
|
2011-09-29 10:19:26 +04:00
|
|
|
bool mWritable;
|
2005-11-02 10:42:39 +03:00
|
|
|
};
|
|
|
|
|
2006-07-13 18:21:53 +04:00
|
|
|
#endif // txNodeSetAdaptor_h__
|