Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_XML_XPATH_XXPATHAPI_HDL
2 : : #define INCLUDED_COM_SUN_STAR_XML_XPATH_XXPATHAPI_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XNodeList; } } } } }
8 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XNode; } } } } }
9 : : namespace com { namespace sun { namespace star { namespace xml { namespace xpath { class XXPathExtension; } } } } }
10 : : #include "com/sun/star/uno/XInterface.hdl"
11 : : namespace com { namespace sun { namespace star { namespace xml { namespace xpath { class XXPathObject; } } } } }
12 : : #include "com/sun/star/xml/xpath/XPathException.hdl"
13 : : #include "com/sun/star/uno/Reference.h"
14 : : #include "cppu/macros.hxx"
15 : : #include "rtl/ustring.hxx"
16 : :
17 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
18 : :
19 : : namespace com { namespace sun { namespace star { namespace xml { namespace xpath {
20 : :
21 : 12320 : class SAL_NO_VTABLE XXPathAPI : public ::com::sun::star::uno::XInterface
22 : : {
23 : : public:
24 : :
25 : : // Methods
26 : : virtual void SAL_CALL registerNS( const ::rtl::OUString& prefix, const ::rtl::OUString& url ) throw (::com::sun::star::uno::RuntimeException) = 0;
27 : : virtual void SAL_CALL unregisterNS( const ::rtl::OUString& prefix, const ::rtl::OUString& url ) throw (::com::sun::star::uno::RuntimeException) = 0;
28 : : virtual void SAL_CALL registerExtension( const ::rtl::OUString& serviceName ) throw (::com::sun::star::uno::RuntimeException) = 0;
29 : : virtual void SAL_CALL registerExtensionInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::xpath::XXPathExtension >& aExtension ) throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::xpath::XXPathObject > SAL_CALL eval( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& contextNode, const ::rtl::OUString& expr ) throw (::com::sun::star::xml::xpath::XPathException, ::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::xpath::XXPathObject > SAL_CALL evalNS( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& contextNode, const ::rtl::OUString& expr, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& namespaceNode ) throw (::com::sun::star::xml::xpath::XPathException, ::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNodeList > SAL_CALL selectNodeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& contextNode, const ::rtl::OUString& expr ) throw (::com::sun::star::xml::xpath::XPathException, ::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNodeList > SAL_CALL selectNodeListNS( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& contextNode, const ::rtl::OUString& str, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& namespaceNode ) throw (::com::sun::star::xml::xpath::XPathException, ::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > SAL_CALL selectSingleNode( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& contextNode, const ::rtl::OUString& expr ) throw (::com::sun::star::xml::xpath::XPathException, ::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > SAL_CALL selectSingleNodeNS( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& contextNode, const ::rtl::OUString& str, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >& namespaceNode ) throw (::com::sun::star::xml::xpath::XPathException, ::com::sun::star::uno::RuntimeException) = 0;
36 : :
37 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
38 : :
39 : : protected:
40 : 12320 : ~XXPathAPI() throw () {} // avoid warnings about virtual members and non-virtual dtor
41 : : };
42 : :
43 : :
44 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::xml::xpath::XXPathAPI const *);
45 : : } } } } }
46 : :
47 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::xml::xpath::XXPathAPI > *) SAL_THROW(());
48 : :
49 : : #endif
|