Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_EMBED_XRELATIONSHIPACCESS_HDL
2 : #define INCLUDED_COM_SUN_STAR_EMBED_XRELATIONSHIPACCESS_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/beans/StringPair.hdl"
7 : #include "com/sun/star/container/ElementExistException.hdl"
8 : #include "com/sun/star/container/NoSuchElementException.hdl"
9 : #include "com/sun/star/io/IOException.hdl"
10 : #include "com/sun/star/uno/RuntimeException.hdl"
11 : #include "com/sun/star/uno/XInterface.hdl"
12 : #include "com/sun/star/uno/Reference.h"
13 : #include "com/sun/star/uno/Sequence.h"
14 : #include "cppu/macros.hxx"
15 : #include "rtl/ustring.hxx"
16 : #include "sal/types.h"
17 :
18 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
19 :
20 : namespace com { namespace sun { namespace star { namespace embed {
21 :
22 16698 : class SAL_NO_VTABLE XRelationshipAccess : public css::uno::XInterface
23 : {
24 : public:
25 :
26 : // Methods
27 : virtual ::sal_Bool SAL_CALL hasByID( const ::rtl::OUString& sID ) /* throw (css::io::IOException, ::com::sun::star::uno::RuntimeException) */ = 0;
28 : virtual ::rtl::OUString SAL_CALL getTargetByID( const ::rtl::OUString& sID ) /* throw (css::container::NoSuchElementException, css::io::IOException, ::com::sun::star::uno::RuntimeException) */ = 0;
29 : virtual ::rtl::OUString SAL_CALL getTypeByID( const ::rtl::OUString& sID ) /* throw (css::container::NoSuchElementException, css::io::IOException, ::com::sun::star::uno::RuntimeException) */ = 0;
30 : virtual ::com::sun::star::uno::Sequence< css::beans::StringPair > SAL_CALL getRelationshipByID( const ::rtl::OUString& sID ) /* throw (css::container::NoSuchElementException, css::io::IOException, ::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< css::beans::StringPair > > SAL_CALL getRelationshipsByType( const ::rtl::OUString& sType ) /* throw (css::io::IOException, ::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< css::beans::StringPair > > SAL_CALL getAllRelationships() /* throw (css::io::IOException, ::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual void SAL_CALL insertRelationshipByID( const ::rtl::OUString& sID, const ::com::sun::star::uno::Sequence< css::beans::StringPair >& aEntry, ::sal_Bool bReplace ) /* throw (css::container::ElementExistException, css::io::IOException, ::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual void SAL_CALL removeRelationshipByID( const ::rtl::OUString& sID ) /* throw (css::container::NoSuchElementException, css::io::IOException, ::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual void SAL_CALL insertRelationships( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< css::beans::StringPair > >& aEntries, ::sal_Bool bReplace ) /* throw (css::container::ElementExistException, css::io::IOException, ::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual void SAL_CALL clearRelationships() /* throw (css::io::IOException, ::com::sun::star::uno::RuntimeException) */ = 0;
37 :
38 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
39 :
40 : protected:
41 16240 : ~XRelationshipAccess() throw () {} // avoid warnings about virtual members and non-virtual dtor
42 : };
43 :
44 :
45 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::embed::XRelationshipAccess const *);
46 : } } } }
47 :
48 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::embed::XRelationshipAccess > *) SAL_THROW(());
49 :
50 : #endif
|