sicking%bigfoot.com 4e8212e9c8 Bug 157142: get rid of txAtom typedef
r=Pike rs=peterv


git-svn-id: svn://10.0.0.236/trunk@136564 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-18 00:37:12 +00:00

34 lines
675 B
C++

#include "ProcessorState.h"
#include "txAtoms.h"
#include "XSLTFunctions.h"
/*
Implementation of XSLT 1.0 extension function: current
*/
/**
* Creates a new current function call
**/
CurrentFunctionCall::CurrentFunctionCall(ProcessorState* aPs)
: mPs(aPs)
{
}
/*
* Evaluates this Expr
*
* @return NodeSet containing the context node used for the complete
* Expr or Pattern.
*/
ExprResult* CurrentFunctionCall::evaluate(txIEvalContext* aContext)
{
return new NodeSet(mPs->getEvalContext()->getContextNode());
}
nsresult CurrentFunctionCall::getNameAtom(nsIAtom** aAtom)
{
*aAtom = txXSLTAtoms::current;
TX_ADDREF_ATOM(*aAtom);
return NS_OK;
}