Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_RDF_XREPOSITORY_HDL
2 : : #define INCLUDED_COM_SUN_STAR_RDF_XREPOSITORY_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : #include "com/sun/star/rdf/QueryException.hdl"
8 : : namespace com { namespace sun { namespace star { namespace rdf { class XQuerySelectResult; } } } }
9 : : namespace com { namespace sun { namespace star { namespace rdf { class XNode; } } } }
10 : : namespace com { namespace sun { namespace star { namespace rdf { class XResource; } } } }
11 : : namespace com { namespace sun { namespace star { namespace io { class XInputStream; } } } }
12 : : namespace com { namespace sun { namespace star { namespace container { class XEnumeration; } } } }
13 : : #include "com/sun/star/container/NoSuchElementException.hdl"
14 : : #include "com/sun/star/uno/XInterface.hdl"
15 : : #include "com/sun/star/datatransfer/UnsupportedFlavorException.hdl"
16 : : namespace com { namespace sun { namespace star { namespace io { class XOutputStream; } } } }
17 : : #include "com/sun/star/rdf/RepositoryException.hdl"
18 : : namespace com { namespace sun { namespace star { namespace rdf { class XNamedGraph; } } } }
19 : : #include "com/sun/star/rdf/ParseException.hdl"
20 : : #include "com/sun/star/io/IOException.hdl"
21 : : namespace com { namespace sun { namespace star { namespace rdf { class XURI; } } } }
22 : : #include "com/sun/star/container/ElementExistException.hdl"
23 : : #include "com/sun/star/lang/IllegalArgumentException.hdl"
24 : : namespace com { namespace sun { namespace star { namespace rdf { class XBlankNode; } } } }
25 : : #include "com/sun/star/uno/Reference.h"
26 : : #include "com/sun/star/uno/Sequence.h"
27 : : #include "cppu/macros.hxx"
28 : : #include "rtl/ustring.hxx"
29 : : #include "sal/types.h"
30 : :
31 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
32 : :
33 : : namespace com { namespace sun { namespace star { namespace rdf {
34 : :
35 : 60 : class SAL_NO_VTABLE XRepository : public ::com::sun::star::uno::XInterface
36 : : {
37 : : public:
38 : :
39 : : // Methods
40 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XBlankNode > SAL_CALL createBlankNode( ) throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XNamedGraph > SAL_CALL importGraph( ::sal_Int16 Format, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& InStream, const ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XURI >& GraphName, const ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XURI >& BaseURI ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::container::ElementExistException, ::com::sun::star::rdf::ParseException, ::com::sun::star::rdf::RepositoryException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual void SAL_CALL exportGraph( ::sal_Int16 Format, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& OutStream, const ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XURI >& GraphName, const ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XURI >& BaseURI ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::rdf::RepositoryException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XURI > > SAL_CALL getGraphNames( ) throw (::com::sun::star::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XNamedGraph > SAL_CALL getGraph( const ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XURI >& GraphName ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XNamedGraph > SAL_CALL createGraph( const ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XURI >& GraphName ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual void SAL_CALL destroyGraph( const ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XURI >& GraphName ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL getStatements( const ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XResource >& Subject, const ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XURI >& Predicate, const ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XNode >& Object ) throw (::com::sun::star::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XQuerySelectResult > SAL_CALL querySelect( const ::rtl::OUString& Query ) throw (::com::sun::star::rdf::QueryException, ::com::sun::star::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL queryConstruct( const ::rtl::OUString& Query ) throw (::com::sun::star::rdf::QueryException, ::com::sun::star::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) = 0;
50 : : virtual ::sal_Bool SAL_CALL queryAsk( const ::rtl::OUString& Query ) throw (::com::sun::star::rdf::QueryException, ::com::sun::star::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) = 0;
51 : :
52 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
53 : :
54 : : protected:
55 : 60 : ~XRepository() throw () {} // avoid warnings about virtual members and non-virtual dtor
56 : : };
57 : :
58 : :
59 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::rdf::XRepository const *);
60 : : } } } }
61 : :
62 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XRepository > *) SAL_THROW(());
63 : :
64 : : #endif
|