Branch data 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 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : #include "com/sun/star/container/NoSuchElementException.hdl"
8 : : #include "com/sun/star/beans/PropertyValue.hdl"
9 : : #include "com/sun/star/lang/IllegalArgumentException.hdl"
10 : : namespace com { namespace sun { namespace star { namespace lang { class XComponent; } } } }
11 : : namespace com { namespace sun { namespace star { namespace sdbc { class XConnection; } } } }
12 : : #include "com/sun/star/sdbc/SQLException.hdl"
13 : : namespace com { namespace sun { namespace star { namespace sdbc { class XDataSource; } } } }
14 : : #include "com/sun/star/beans/Pair.hdl"
15 : : namespace com { namespace sun { namespace star { namespace awt { class XWindow; } } } }
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 ::com::sun::star::uno::XInterface
28 : : {
29 : : public:
30 : :
31 : : // Attributes
32 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource > SAL_CALL getDataSource() throw (::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL getApplicationMainWindow() throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL getActiveConnection() throw (::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::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 (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual ::com::sun::star::beans::Pair< ::sal_Int32, ::rtl::OUString > SAL_CALL identifySubComponent( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& SubComponent ) throw (::com::sun::star::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< ::com::sun::star::lang::XComponent > SAL_CALL loadComponent( ::sal_Int32 ObjectType, const ::rtl::OUString& ObjectName, ::sal_Bool ForEditing ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > SAL_CALL loadComponentWithArguments( ::sal_Int32 ObjectType, const ::rtl::OUString& ObjectName, ::sal_Bool ForEditing, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& Arguments ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > SAL_CALL createComponent( ::sal_Int32 ObjectType, ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& DocumentDefinition ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > SAL_CALL createComponentWithArguments( ::sal_Int32 ObjectType, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& Arguments, ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& DocumentDefinition ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::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 ::com::sun::star::sdb::application::XDatabaseDocumentUI const *);
55 : : } } } } }
56 : :
57 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::application::XDatabaseDocumentUI > *) SAL_THROW(());
58 : :
59 : : #endif
|