38#include <com/sun/star/container/XNameAccess.hpp>
39#include <com/sun/star/container/XIndexAccess.hpp>
40#include <com/sun/star/container/XEnumerationAccess.hpp>
41#include <com/sun/star/container/XContainer.hpp>
43#include <com/sun/star/sdbc/XConnection.hpp>
44#include <com/sun/star/sdbcx/XAppend.hpp>
45#include <com/sun/star/sdbcx/XDrop.hpp>
46#include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp>
48#include <com/sun/star/util/XRefreshable.hpp>
54#include <unordered_map>
59struct ConnectionSettings;
64 virtual void fire(css::lang::XEventListener * listener)
const = 0;
65 virtual css::uno::Type
getType()
const = 0;
77 virtual void fire( css::lang::XEventListener * listener )
const override
79 static_cast<css::util::XRefreshListener*
>(listener)->refreshed(
m_event );
82 virtual css::uno::Type
getType()
const override
85 css::util::XRefreshListener>::get();
89typedef std::unordered_map
95typedef ::cppu::WeakComponentImplHelper
97 css::container::XNameAccess,
98 css::container::XIndexAccess,
99 css::container::XEnumerationAccess,
102 css::util::XRefreshable,
103 css::sdbcx::XDataDescriptorFactory,
104 css::container::XContainer
112 css::uno::Reference< css::sdbc::XConnection >
m_origin;
119 const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
120 css::uno::Reference< css::sdbc::XConnection > origin,
126 virtual sal_Int32 SAL_CALL
getCount( )
override;
130 virtual css::uno::Reference< css::container::XEnumeration >
134 virtual css::uno::Any SAL_CALL
getByName(
const OUString& aName )
override;
135 virtual css::uno::Sequence< OUString > SAL_CALL
getElementNames( )
override;
146 const css::uno::Reference< css::beans::XPropertySet >& descriptor )
override;
151 const OUString & str,
152 const css::uno::Reference< css::beans::XPropertySet >& descriptor );
156 virtual void SAL_CALL
dropByName(
const OUString& elementName )
override;
157 virtual void SAL_CALL
dropByIndex( sal_Int32 index )
override;
165 const css::uno::Reference< css::util::XRefreshListener >& l )
override;
167 const css::uno::Reference< css::util::XRefreshListener >& l )
override;
172 const css::uno::Reference< css::container::XContainerListener >& xListener )
override;
174 const css::uno::Reference< css::container::XContainerListener >& xListener )
override;
177 virtual void SAL_CALL
disposing()
override;
180 void rename(
const OUString & oldName,
const OUString &newName );
ConnectionSettings * m_pSettings
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
void append(const OUString &str, const css::uno::Reference< css::beans::XPropertySet > &descriptor)
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Container(const ::rtl::Reference< comphelper::RefCountedMutex > &refMutex, css::uno::Reference< css::sdbc::XConnection > origin, ConnectionSettings *pSettings, OUString type)
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual void SAL_CALL addRefreshListener(const css::uno::Reference< css::util::XRefreshListener > &l) override
void fire(const EventBroadcastHelper &helper)
void rename(const OUString &oldName, const OUString &newName)
virtual sal_Bool SAL_CALL hasElements() override
virtual sal_Int32 SAL_CALL getCount() override
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor() override=0
virtual void SAL_CALL dropByName(const OUString &elementName) override
css::uno::Reference< css::sdbc::XConnection > m_origin
virtual css::uno::Type SAL_CALL getElementType() override
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
virtual void SAL_CALL disposing() override
virtual void SAL_CALL addContainerListener(const css::uno::Reference< css::container::XContainerListener > &xListener) override
virtual void SAL_CALL removeRefreshListener(const css::uno::Reference< css::util::XRefreshListener > &l) override
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
::rtl::Reference< comphelper::RefCountedMutex > m_xMutex
virtual void SAL_CALL appendByDescriptor(const css::uno::Reference< css::beans::XPropertySet > &descriptor) override
virtual void SAL_CALL refresh() override
String2IntMap m_name2index
virtual void SAL_CALL removeContainerListener(const css::uno::Reference< css::container::XContainerListener > &xListener) override
virtual void SAL_CALL dropByIndex(sal_Int32 index) override
std::vector< css::uno::Any > m_values
virtual ~EventBroadcastHelper()
virtual css::uno::Type getType() const =0
virtual void fire(css::lang::XEventListener *listener) const =0
virtual void fire(css::lang::XEventListener *listener) const override
css::lang::EventObject m_event
virtual css::uno::Type getType() const override
RefreshedBroadcaster(const css::uno::Reference< css::uno::XInterface > &source)
::cppu::WeakComponentImplHelper< css::container::XNameAccess, css::container::XIndexAccess, css::container::XEnumerationAccess, css::sdbcx::XAppend, css::sdbcx::XDrop, css::util::XRefreshable, css::sdbcx::XDataDescriptorFactory, css::container::XContainer > ContainerBase
std::unordered_map< OUString, sal_Int32 > String2IntMap