diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-07-11 15:26:48 +0100 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-07-12 16:34:27 +0100 |
commit | 8f6e969c71d8693aece01ad4b769c9ba6ec6dd6e (patch) | |
tree | 9e045350b45483430754189d156571c5967d94ef /connectivity/source/drivers/firebird/FConnection.hxx | |
parent | 3391121cccbf92587443420daab8c25f80531ad8 (diff) |
Implement DocumentEventListener in firebird_sdbc driver.
Change-Id: I7e0c9abcb9822e673ba1e93c1d8bf4d177baae0f
Diffstat (limited to 'connectivity/source/drivers/firebird/FConnection.hxx')
-rw-r--r-- | connectivity/source/drivers/firebird/FConnection.hxx | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/connectivity/source/drivers/firebird/FConnection.hxx b/connectivity/source/drivers/firebird/FConnection.hxx index af2ff6601d62..d6f284b686c3 100644 --- a/connectivity/source/drivers/firebird/FConnection.hxx +++ b/connectivity/source/drivers/firebird/FConnection.hxx @@ -38,6 +38,9 @@ #include <com/sun/star/sdbc/SQLWarning.hpp> #include <com/sun/star/beans/PropertyValue.hpp> +#include <com/sun/star/document/DocumentEvent.hpp> +#include <com/sun/star/document/XDocumentEventListener.hpp> +#include <com/sun/star/embed/XStorage.hpp> #include "OSubComponent.hxx" #include "OTypeInfo.hxx" #include <com/sun/star/lang/DisposedException.hpp> @@ -45,7 +48,7 @@ #include <com/sun/star/lang/XUnoTunnel.hpp> #include <com/sun/star/sdbc/XWarningsSupplier.hpp> #include <com/sun/star/sdbc/XConnection.hpp> -#include <cppuhelper/compbase3.hxx> +#include <cppuhelper/compbase4.hxx> #include <cppuhelper/weakref.hxx> #include <map> @@ -57,9 +60,10 @@ namespace connectivity namespace firebird { - typedef ::cppu::WeakComponentImplHelper3< ::com::sun::star::sdbc::XConnection, + typedef ::cppu::WeakComponentImplHelper4< ::com::sun::star::sdbc::XConnection, ::com::sun::star::sdbc::XWarningsSupplier, - ::com::sun::star::lang::XServiceInfo + ::com::sun::star::lang::XServiceInfo, + ::com::sun::star::document::XDocumentEventListener > OMetaConnection_BASE; class OStatement_Base; @@ -94,11 +98,15 @@ namespace connectivity ::com::sun::star::sdbc::SQLWarning m_aLastWarning; // Last SQLWarning generated by // an operation + bool m_bIsEmbedded; ::rtl::OUString m_aURL; // URL of connection + // or file path ::rtl::OUString m_sUser; // the user name FirebirdDriver* m_pDriver; // Pointer to the owning // driver object + ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xEmbeddedStorage; + sal_Bool m_bClosed; sal_Bool m_bUseCatalog; // should we use the catalog on filebased databases sal_Bool m_bUseOldDateFormat; @@ -108,8 +116,7 @@ namespace connectivity public: virtual void construct( const ::rtl::OUString& url, - const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info, - const bool constructNewDatabase) + const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info) throw(::com::sun::star::sdbc::SQLException); OConnection(FirebirdDriver* _pDriver); @@ -148,7 +155,10 @@ namespace connectivity // XWarningsSupplier virtual ::com::sun::star::uno::Any SAL_CALL getWarnings( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL clearWarnings( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); - // + // XDocumentEventListener + virtual void SAL_CALL documentEventOccured( const ::com::sun::star::document::DocumentEvent& Event ) throw(::com::sun::star::uno::RuntimeException); + // css.lang.XEventListener + virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException); // should we use the catalog on filebased databases inline sal_Bool isCatalogUsed() const { return m_bUseCatalog; } |