Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_SDB_APPLICATION_XDATABASEDOCUMENTUI_HDL
2 : #define INCLUDED_COM_SUN_STAR_SDB_APPLICATION_XDATABASEDOCUMENTUI_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : namespace com { namespace sun { namespace star { namespace awt { class XWindow; } } } }
7 : #include "com/sun/star/beans/Pair.hdl"
8 : #include "com/sun/star/beans/PropertyValue.hdl"
9 : #include "com/sun/star/container/NoSuchElementException.hdl"
10 : #include "com/sun/star/lang/IllegalArgumentException.hdl"
11 : namespace com { namespace sun { namespace star { namespace lang { class XComponent; } } } }
12 : #include "com/sun/star/sdbc/SQLException.hdl"
13 : namespace com { namespace sun { namespace star { namespace sdbc { class XConnection; } } } }
14 : namespace com { namespace sun { namespace star { namespace sdbc { class XDataSource; } } } }
15 : #include "com/sun/star/uno/RuntimeException.hdl"
16 : #include "com/sun/star/uno/XInterface.hdl"
17 : #include "com/sun/star/uno/Reference.h"
18 : #include "com/sun/star/uno/Sequence.h"
19 : #include "cppu/macros.hxx"
20 : #include "rtl/ustring.hxx"
21 : #include "sal/types.h"
22 :
23 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
24 :
25 : namespace com { namespace sun { namespace star { namespace sdb { namespace application {
26 :
27 0 : class SAL_NO_VTABLE XDatabaseDocumentUI : public css::uno::XInterface
28 : {
29 : public:
30 :
31 : // Attributes
32 : virtual ::com::sun::star::uno::Reference< css::sdbc::XDataSource > SAL_CALL getDataSource() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual ::com::sun::star::uno::Reference< css::awt::XWindow > SAL_CALL getApplicationMainWindow() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual ::com::sun::star::uno::Reference< css::sdbc::XConnection > SAL_CALL getActiveConnection() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< css::lang::XComponent > > SAL_CALL getSubComponents() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
36 :
37 : // Methods
38 : virtual ::sal_Bool SAL_CALL isConnected() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual void SAL_CALL connect() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
40 : virtual css::beans::Pair< ::sal_Int32, ::rtl::OUString > SAL_CALL identifySubComponent( const ::com::sun::star::uno::Reference< css::lang::XComponent >& SubComponent ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
41 : virtual ::sal_Bool SAL_CALL closeSubComponents() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
42 : virtual ::com::sun::star::uno::Reference< css::lang::XComponent > SAL_CALL loadComponent( ::sal_Int32 ObjectType, const ::rtl::OUString& ObjectName, ::sal_Bool ForEditing ) /* throw (css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
43 : virtual ::com::sun::star::uno::Reference< css::lang::XComponent > SAL_CALL loadComponentWithArguments( ::sal_Int32 ObjectType, const ::rtl::OUString& ObjectName, ::sal_Bool ForEditing, const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& Arguments ) /* throw (css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
44 : virtual ::com::sun::star::uno::Reference< css::lang::XComponent > SAL_CALL createComponent( ::sal_Int32 ObjectType, ::com::sun::star::uno::Reference< css::lang::XComponent >& DocumentDefinition ) /* throw (css::lang::IllegalArgumentException, css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
45 : virtual ::com::sun::star::uno::Reference< css::lang::XComponent > SAL_CALL createComponentWithArguments( ::sal_Int32 ObjectType, const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& Arguments, ::com::sun::star::uno::Reference< css::lang::XComponent >& DocumentDefinition ) /* throw (css::lang::IllegalArgumentException, css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
46 :
47 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
48 :
49 : protected:
50 0 : ~XDatabaseDocumentUI() throw () {} // avoid warnings about virtual members and non-virtual dtor
51 : };
52 :
53 :
54 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::sdb::application::XDatabaseDocumentUI const *);
55 : } } } } }
56 :
57 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::sdb::application::XDatabaseDocumentUI > *) SAL_THROW(());
58 :
59 : #endif
|