michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 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 txNodeSetAdaptor_h__ michael@0: #define txNodeSetAdaptor_h__ michael@0: michael@0: #include "txINodeSet.h" michael@0: #include "txNodeSet.h" michael@0: #include "txXPathObjectAdaptor.h" michael@0: michael@0: /** michael@0: * Implements an XPCOM wrapper around an XPath NodeSet. michael@0: */ michael@0: michael@0: class txNodeSetAdaptor : public txXPathObjectAdaptor, michael@0: public txINodeSet michael@0: { michael@0: public: michael@0: txNodeSetAdaptor(); michael@0: txNodeSetAdaptor(txNodeSet *aNodeSet); michael@0: michael@0: nsresult Init(); michael@0: michael@0: NS_DECL_ISUPPORTS_INHERITED michael@0: NS_DECL_TXINODESET michael@0: michael@0: private: michael@0: txNodeSet* NodeSet() michael@0: { michael@0: return static_cast(mValue.get()); michael@0: } michael@0: michael@0: bool mWritable; michael@0: }; michael@0: michael@0: #endif // txNodeSetAdaptor_h__