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 __TX_XPATH_CONTEXT michael@0: #define __TX_XPATH_CONTEXT michael@0: michael@0: #include "txIXPathContext.h" michael@0: #include "nsAutoPtr.h" michael@0: #include "txNodeSet.h" michael@0: michael@0: class txForwardContext : public txIEvalContext michael@0: { michael@0: public: michael@0: txForwardContext(txIMatchContext* aContext, michael@0: const txXPathNode& aContextNode, michael@0: txNodeSet* aContextNodeSet) michael@0: : mInner(aContext), michael@0: mContextNode(aContextNode), michael@0: mContextSet(aContextNodeSet) michael@0: {} michael@0: michael@0: TX_DECL_EVAL_CONTEXT; michael@0: michael@0: private: michael@0: txIMatchContext* mInner; michael@0: const txXPathNode& mContextNode; michael@0: nsRefPtr mContextSet; michael@0: }; michael@0: michael@0: #endif // __TX_XPATH_CONTEXT