22#include <com/sun/star/ucb/NumberedSortingInfo.hpp>
23#include <com/sun/star/sdbc/XResultSet.hpp>
24#include <com/sun/star/ucb/XDynamicResultSet.hpp>
25#include <com/sun/star/ucb/XDynamicResultSetListener.hpp>
26#include <com/sun/star/ucb/XSortedDynamicResultSetFactory.hpp>
38 css::lang::XServiceInfo,
39 css::ucb::XDynamicResultSet >
43 css::uno::Reference < css::ucb::XDynamicResultSetListener >
mxListener;
45 css::uno::Reference < css::ucb::XDynamicResultSet >
mxOriginal;
46 css::uno::Sequence < css::ucb::NumberedSortingInfo >
maOptions;
47 css::uno::Reference < css::ucb::XAnyCompareFactory >
mxCompFac;
48 css::uno::Reference < css::uno::XComponentContext >
m_xContext;
65 const css::uno::Sequence < css::ucb::NumberedSortingInfo > &aOptions,
66 const css::uno::Reference < css::ucb::XAnyCompareFactory > &xCompFac,
67 const css::uno::Reference < css::uno::XComponentContext > &rxContext );
80 virtual void SAL_CALL
dispose()
override;
83 addEventListener(
const css::uno::Reference< css::lang::XEventListener >& Listener )
override;
86 removeEventListener(
const css::uno::Reference< css::lang::XEventListener >& Listener )
override;
91 virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL
getStaticResultSet()
override;
94 setListener(
const css::uno::Reference< css::ucb::XDynamicResultSetListener >& Listener )
override;
97 connectToCache(
const css::uno::Reference< css::ucb::XDynamicResultSet > & xCache )
override;
99 virtual sal_Int16 SAL_CALL
109 void impl_notify(
const css::ucb::ListEvent& Changes );
113 css::ucb::XDynamicResultSetListener >
124 virtual void SAL_CALL
125 disposing(
const css::lang::EventObject& Source )
override;
129 virtual void SAL_CALL
notify(
const css::ucb::ListEvent& Changes )
override;
138 css::lang::XServiceInfo,
139 css::ucb::XSortedDynamicResultSetFactory >
142 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
146 const css::uno::Reference< css::uno::XComponentContext > & rxContext);
157 virtual css::uno::Reference< css::ucb::XDynamicResultSet > SAL_CALL
159 const css::uno::Reference< css::ucb::XDynamicResultSet > & Source,
160 const css::uno::Sequence< css::ucb::NumberedSortingInfo > & Info,
161 const css::uno::Reference< css::ucb::XAnyCompareFactory > & CompareFactory )
override;
virtual css::uno::Reference< css::ucb::XDynamicResultSet > SAL_CALL createSortedDynamicResultSet(const css::uno::Reference< css::ucb::XDynamicResultSet > &Source, const css::uno::Sequence< css::ucb::NumberedSortingInfo > &Info, const css::uno::Reference< css::ucb::XAnyCompareFactory > &CompareFactory) override
SortedDynamicResultSetFactory(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
virtual ~SortedDynamicResultSetFactory() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
SortedDynamicResultSetListener(SortedDynamicResultSet *mOwner)
virtual ~SortedDynamicResultSetListener() override
SortedDynamicResultSet * mpOwner
virtual void SAL_CALL notify(const css::ucb::ListEvent &Changes) override
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
SortedDynamicResultSet(const css::uno::Reference< css::ucb::XDynamicResultSet > &xOriginal, const css::uno::Sequence< css::ucb::NumberedSortingInfo > &aOptions, const css::uno::Reference< css::ucb::XAnyCompareFactory > &xCompFac, const css::uno::Reference< css::uno::XComponentContext > &rxContext)
virtual OUString SAL_CALL getImplementationName() override
css::uno::Reference< css::ucb::XAnyCompareFactory > mxCompFac
virtual sal_Int16 SAL_CALL getCapabilities() override
rtl::Reference< SortedResultSet > mxOne
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual ~SortedDynamicResultSet() override
virtual void SAL_CALL dispose() override
rtl::Reference< SortedDynamicResultSetListener > mxOwnListener
virtual void SAL_CALL setListener(const css::uno::Reference< css::ucb::XDynamicResultSetListener > &Listener) override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &Listener) override
css::uno::Reference< css::ucb::XDynamicResultSetListener > mxListener
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
rtl::Reference< SortedResultSet > mxTwo
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &Listener) override
css::uno::Sequence< css::ucb::NumberedSortingInfo > maOptions
virtual void SAL_CALL connectToCache(const css::uno::Reference< css::ucb::XDynamicResultSet > &xCache) override
void impl_notify(const css::ucb::ListEvent &Changes)
In the first notify-call the listener gets the two <type>XResultSet</type>s and has to hold them.
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maDisposeEventListeners
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getStaticResultSet() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
css::uno::Reference< css::ucb::XDynamicResultSet > mxOriginal