22#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
23#include <com/sun/star/lang/XServiceInfo.hpp>
24#include <com/sun/star/sdbc/XDataSource.hpp>
25#include <com/sun/star/container/XContainerListener.hpp>
26#include <com/sun/star/sdb/XBookmarksSupplier.hpp>
27#include <com/sun/star/sdb/XQueryDefinitionsSupplier.hpp>
28#include <com/sun/star/sdbc/XIsolatedConnection.hpp>
29#include <com/sun/star/util/XNumberFormatter.hpp>
30#include <com/sun/star/document/XEventListener.hpp>
31#include <com/sun/star/util/XFlushable.hpp>
37#include <com/sun/star/embed/XTransactionListener.hpp>
42#include <com/sun/star/beans/PropertyAttribute.hpp>
43#include <com/sun/star/beans/PropertyValue.hpp>
44#include <com/sun/star/sdb/XCompletedConnection.hpp>
45#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
46#include <com/sun/star/embed/XStorage.hpp>
48#include <com/sun/star/document/XStorageBasedDocument.hpp>
49#include <com/sun/star/embed/ElementModes.hpp>
50#include <com/sun/star/util/XRefreshable.hpp>
51#include <com/sun/star/sdb/XDocumentDataSource.hpp>
57class OSharedConnectionManager;
60typedef ::cppu::WeakComponentImplHelper< css::lang::XServiceInfo
61 , css::sdbc::XDataSource
62 , css::sdb::XBookmarksSupplier
63 , css::sdb::XQueryDefinitionsSupplier
64 , css::sdb::XCompletedConnection
65 , css::container::XContainerListener
66 , css::sdbc::XIsolatedConnection
67 , css::sdbcx::XTablesSupplier
68 , css::util::XFlushable
69 , css::util::XFlushListener
70 , css::sdb::XDocumentDataSource
71 , css::lang::XInitialization
84 using ODatabaseSource_Base::rBHelper;
93 explicit ODatabaseSource( const ::rtl::Reference< ODatabaseModelImpl >& _pImpl );
107 const css::uno::Reference< css::sdb::XDocumentDataSource >& _rxDocument,
108 const OUString& _rNewName,
113 virtual void SAL_CALL
elementInserted(
const css::container::ContainerEvent& Event )
override;
114 virtual void SAL_CALL
elementRemoved(
const css::container::ContainerEvent& Event )
override;
115 virtual void SAL_CALL
elementReplaced(
const css::container::ContainerEvent& Event )
override;
117 virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL
getTables( )
override;
120 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes()
override;
124 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type & rType )
override;
125 virtual void SAL_CALL
acquire() noexcept override;
126 virtual
void SAL_CALL
release() noexcept override;
134 virtual
void SAL_CALL
disposing() override;
139 virtual
void SAL_CALL
disposing( const css::lang::EventObject& Source ) override;
148 css::
uno::Any & rConvertedValue,
149 css::
uno::Any & rOldValue,
151 const css::
uno::Any& rValue ) override;
154 const css::
uno::Any& rValue
162 virtual css::
uno::Reference< css::sdbc::XConnection > SAL_CALL
getConnection( const OUString& user, const OUString& password ) override;
167 virtual css::
uno::Reference< css::container::XNameAccess > SAL_CALL
getBookmarks( ) override;
173 virtual css::
uno::Reference< css::sdbc::XConnection > SAL_CALL
getIsolatedConnection( const OUString& user, const OUString& password ) override;
177 virtual
void SAL_CALL
flush( ) override;
178 virtual
void SAL_CALL
addFlushListener( const css::
uno::Reference< css::util::XFlushListener >& l ) override;
179 virtual
void SAL_CALL
removeFlushListener( const css::
uno::Reference< css::util::XFlushListener >& l ) override;
182 virtual
void SAL_CALL
flushed( const css::lang::EventObject& rEvent ) override;
200 const OUString& _rUid, const OUString& _rPwd
204 const OUString& user, const OUString& password
209 css::
uno::Reference< css::sdbc::XConnection >
getConnection( const OUString& user, const OUString& password ,
bool _bIsolated);
a small base class for UNO components whose functionality depends on an ODatabaseModelImpl
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTables() override
virtual css::uno::Reference< css::sdb::XOfficeDatabaseDocument > SAL_CALL getDatabaseDocument() override
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getIsolatedConnection(const OUString &user, const OUString &password) override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getIsolatedConnectionWithCompletion(const css::uno::Reference< css::task::XInteractionHandler > &handler) override
virtual void SAL_CALL addFlushListener(const css::uno::Reference< css::util::XFlushListener > &l) override
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL disposing() override
virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
css::uno::Reference< css::sdbc::XConnection > buildLowLevelConnection(const OUString &_rUid, const OUString &_rPwd)
open a connection for the current settings.
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
virtual void SAL_CALL elementRemoved(const css::container::ContainerEvent &Event) override
virtual void SAL_CALL elementInserted(const css::container::ContainerEvent &Event) override
virtual void SAL_CALL flushed(const css::lang::EventObject &rEvent) override
virtual void SAL_CALL acquire() noexcept override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getBookmarks() override
virtual void SAL_CALL removeFlushListener(const css::uno::Reference< css::util::XFlushListener > &l) override
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
virtual sal_Int32 SAL_CALL getLoginTimeout() override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getQueryDefinitions() override
virtual void SAL_CALL release() noexcept override
ODatabaseSource(const ::rtl::Reference< ODatabaseModelImpl > &_pImpl)
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnection(const OUString &user, const OUString &password) override
::comphelper::OInterfaceContainerHelper3< css::util::XFlushListener > m_aFlushListeners
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL connectWithCompletion(const css::uno::Reference< css::task::XInteractionHandler > &handler) override
virtual css::uno::Reference< css::uno::XInterface > getThis() const override
returns the component itself
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual ~ODatabaseSource() override
OBookmarkContainer m_Bookmarks
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void SAL_CALL elementReplaced(const css::container::ContainerEvent &Event) override
virtual void SAL_CALL flush() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL setLoginTimeout(sal_Int32 seconds) override
css::uno::Reference< css::sdbc::XConnection > buildIsolatedConnection(const OUString &user, const OUString &password)
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
static void setName(const css::uno::Reference< css::sdb::XDocumentDataSource > &_rxDocument, const OUString &_rNewName, DBContextAccess)
sets a new name for the data source
Sequence< PropertyValue > aArguments
::cppu::WeakComponentImplHelper< css::lang::XServiceInfo, css::sdbc::XDataSource, css::sdb::XBookmarksSupplier, css::sdb::XQueryDefinitionsSupplier, css::sdb::XCompletedConnection, css::container::XContainerListener, css::sdbc::XIsolatedConnection, css::sdbcx::XTablesSupplier, css::util::XFlushable, css::util::XFlushListener, css::sdb::XDocumentDataSource, css::lang::XInitialization > ODatabaseSource_Base