21#include <com/sun/star/xml/xpath/Libxml2ExtensionHandle.hpp>
22#include <com/sun/star/beans/NamedValue.hpp>
27 class XComponentContext;
38 Libxml2ExtensionHandle aHandle;
39 aHandle.functionLookupFunction =
reinterpret_cast< sal_Int64
>( &
xforms_lookupFunc );
40 aHandle.functionData =
reinterpret_cast< sal_Int64
>( this );
41 aHandle.variableLookupFunction = sal_Int64(0);
42 aHandle.variableData = sal_Int64(0);
48 if (aSequence.getLength() == 2
56 for (
const Any& rArg : aSequence)
58 if (! (rArg >>= aValue))
59 throw RuntimeException();
60 if ( aValue.Name ==
"Model" )
62 else if ( aValue.Name ==
"ContextNode" )
68extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
70 css::uno::Sequence<css::uno::Any>
const &)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_xml_xpath_XFormsExtension_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
xmlXPathFunction xforms_lookupFunc(void *, const xmlChar *xname, const xmlChar *)