1*cdf0e10cSrcweir #include <rtl/ustring.h> 2*cdf0e10cSrcweir #include <com/sun/star/uno/Reference.hxx> 3*cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.hxx> 4*cdf0e10cSrcweir #include <com/sun/star/uno/Any.hxx> 5*cdf0e10cSrcweir #include <cppuhelper/implbase1.hxx> 6*cdf0e10cSrcweir #include <cppuhelper/implbase2.hxx> 7*cdf0e10cSrcweir 8*cdf0e10cSrcweir #include <com/sun/star/uno/XInterface.hpp> 9*cdf0e10cSrcweir #include <com/sun/star/lang/XInitialization.hpp> 10*cdf0e10cSrcweir #include <com/sun/star/lang/XMultiServiceFactory.hpp> 11*cdf0e10cSrcweir #include <com/sun/star/xml/xpath/XXPathExtension.hpp> 12*cdf0e10cSrcweir #include <com/sun/star/xforms/XModel.hpp> 13*cdf0e10cSrcweir #include <com/sun/star/uno/RuntimeException.hpp> 14*cdf0e10cSrcweir #include <com/sun/star/beans/NamedValue.hpp> 15*cdf0e10cSrcweir #include <com/sun/star/xml/dom/XNode.hpp> 16*cdf0e10cSrcweir 17*cdf0e10cSrcweir 18*cdf0e10cSrcweir 19*cdf0e10cSrcweir 20*cdf0e10cSrcweir class CLibxml2XFormsExtension : public cppu::WeakImplHelper2< 21*cdf0e10cSrcweir com::sun::star::xml::xpath::XXPathExtension, com::sun::star::lang::XInitialization> 22*cdf0e10cSrcweir { 23*cdf0e10cSrcweir private: 24*cdf0e10cSrcweir com::sun::star::uno::Reference <com::sun::star::xforms::XModel> m_aModel; 25*cdf0e10cSrcweir com::sun::star::uno::Reference <com::sun::star::xml::dom::XNode> m_aContextNode; 26*cdf0e10cSrcweir 27*cdf0e10cSrcweir public: 28*cdf0e10cSrcweir static com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL Create( 29*cdf0e10cSrcweir const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& aFactory); 30*cdf0e10cSrcweir static rtl::OUString SAL_CALL getImplementationName_Static(); 31*cdf0e10cSrcweir static com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames_Static(); 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir com::sun::star::uno::Reference< com::sun::star::xforms::XModel > getModel(); 34*cdf0e10cSrcweir com::sun::star::uno::Reference< com::sun::star::xml::dom::XNode > getContextNode(); 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir virtual com::sun::star::xml::xpath::Libxml2ExtensionHandle SAL_CALL getLibxml2ExtensionHandle() throw (com::sun::star::uno::RuntimeException); 37*cdf0e10cSrcweir virtual void SAL_CALL initialize(const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aSequence) throw (com::sun::star::uno::RuntimeException); 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir }; 40