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/container/ElementExistException.hdl"
7 : #include "com/sun/star/container/NoSuchElementException.hdl"
8 : namespace com { namespace sun { namespace star { namespace container { class XEnumeration; } } } }
9 : #include "com/sun/star/datatransfer/UnsupportedFlavorException.hdl"
10 : #include "com/sun/star/io/IOException.hdl"
11 : namespace com { namespace sun { namespace star { namespace io { class XInputStream; } } } }
12 : namespace com { namespace sun { namespace star { namespace io { class XOutputStream; } } } }
13 : #include "com/sun/star/lang/IllegalArgumentException.hdl"
14 : #include "com/sun/star/rdf/ParseException.hdl"
15 : #include "com/sun/star/rdf/QueryException.hdl"
16 : #include "com/sun/star/rdf/RepositoryException.hdl"
17 : namespace com { namespace sun { namespace star { namespace rdf { class XBlankNode; } } } }
18 : namespace com { namespace sun { namespace star { namespace rdf { class XNamedGraph; } } } }
19 : namespace com { namespace sun { namespace star { namespace rdf { class XNode; } } } }
20 : namespace com { namespace sun { namespace star { namespace rdf { class XQuerySelectResult; } } } }
21 : namespace com { namespace sun { namespace star { namespace rdf { class XResource; } } } }
22 : namespace com { namespace sun { namespace star { namespace rdf { class XURI; } } } }
23 : #include "com/sun/star/uno/RuntimeException.hdl"
24 : #include "com/sun/star/uno/XInterface.hdl"
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 104 : class SAL_NO_VTABLE XRepository : public css::uno::XInterface
36 : {
37 : public:
38 :
39 : // Methods
40 : virtual ::com::sun::star::uno::Reference< css::rdf::XBlankNode > SAL_CALL createBlankNode() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
41 : virtual ::com::sun::star::uno::Reference< css::rdf::XNamedGraph > SAL_CALL importGraph( ::sal_Int16 Format, const ::com::sun::star::uno::Reference< css::io::XInputStream >& InStream, const ::com::sun::star::uno::Reference< css::rdf::XURI >& GraphName, const ::com::sun::star::uno::Reference< css::rdf::XURI >& BaseURI ) /* throw (css::lang::IllegalArgumentException, css::datatransfer::UnsupportedFlavorException, css::container::ElementExistException, css::rdf::ParseException, css::rdf::RepositoryException, css::io::IOException, ::com::sun::star::uno::RuntimeException) */ = 0;
42 : virtual void SAL_CALL exportGraph( ::sal_Int16 Format, const ::com::sun::star::uno::Reference< css::io::XOutputStream >& OutStream, const ::com::sun::star::uno::Reference< css::rdf::XURI >& GraphName, const ::com::sun::star::uno::Reference< css::rdf::XURI >& BaseURI ) /* throw (css::lang::IllegalArgumentException, css::datatransfer::UnsupportedFlavorException, css::container::NoSuchElementException, css::rdf::RepositoryException, css::io::IOException, ::com::sun::star::uno::RuntimeException) */ = 0;
43 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< css::rdf::XURI > > SAL_CALL getGraphNames() /* throw (css::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) */ = 0;
44 : virtual ::com::sun::star::uno::Reference< css::rdf::XNamedGraph > SAL_CALL getGraph( const ::com::sun::star::uno::Reference< css::rdf::XURI >& GraphName ) /* throw (css::lang::IllegalArgumentException, css::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) */ = 0;
45 : virtual ::com::sun::star::uno::Reference< css::rdf::XNamedGraph > SAL_CALL createGraph( const ::com::sun::star::uno::Reference< css::rdf::XURI >& GraphName ) /* throw (css::lang::IllegalArgumentException, css::container::ElementExistException, css::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) */ = 0;
46 : virtual void SAL_CALL destroyGraph( const ::com::sun::star::uno::Reference< css::rdf::XURI >& GraphName ) /* throw (css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) */ = 0;
47 : virtual ::com::sun::star::uno::Reference< css::container::XEnumeration > SAL_CALL getStatements( const ::com::sun::star::uno::Reference< css::rdf::XResource >& Subject, const ::com::sun::star::uno::Reference< css::rdf::XURI >& Predicate, const ::com::sun::star::uno::Reference< css::rdf::XNode >& Object ) /* throw (css::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) */ = 0;
48 : virtual ::com::sun::star::uno::Reference< css::rdf::XQuerySelectResult > SAL_CALL querySelect( const ::rtl::OUString& Query ) /* throw (css::rdf::QueryException, css::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) */ = 0;
49 : virtual ::com::sun::star::uno::Reference< css::container::XEnumeration > SAL_CALL queryConstruct( const ::rtl::OUString& Query ) /* throw (css::rdf::QueryException, css::rdf::RepositoryException, ::com::sun::star::uno::RuntimeException) */ = 0;
50 : virtual ::sal_Bool SAL_CALL queryAsk( const ::rtl::OUString& Query ) /* throw (css::rdf::QueryException, css::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 96 : ~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 css::rdf::XRepository const *);
60 : } } } }
61 :
62 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::rdf::XRepository > *) SAL_THROW(());
63 :
64 : #endif
|