25#include <com/sun/star/ucb/IllegalIdentifierException.hpp>
49 osl::Guard< osl::Mutex > aGuard(
m_aMutex );
63 OUString aId =
m_xContent->getIdentifier()->getContentIdentifier();
76Reference< XContentIdentifier >
79 osl::Guard< osl::Mutex > aGuard(
m_aMutex );
94 Reference< XContentIdentifier > xId = new ::ucbhelper::ContentIdentifier( aId );
98 return Reference< XContentIdentifier >();
104 osl::Guard< osl::Mutex > aGuard(
m_aMutex );
106 if (
static_cast<size_t>(_nIndex) <
m_aResults.size() )
108 Reference< XContent > xContent =
m_aResults[ _nIndex ]->xContent;
121 Reference< XContent > xContent;
122 OUString
sName = xId->getContentIdentifier();
127 xContent =
m_aResults[ _nIndex ]->xContent.get();
131 catch ( IllegalIdentifierException& )
135 return Reference< XContent >();
140 osl::ClearableGuard< osl::Mutex > aGuard(
m_aMutex );
157 sal_uInt32
nPos = nOldCount;
161 if (
nIndex < sal::static_int_cast< sal_uInt32 >(
aSeq.getLength() ) )
163 const OUString* pIter =
aSeq.getConstArray();
164 const OUString* pEnd = pIter +
aSeq.getLength();
165 for(pIter = pIter +
nPos;pIter != pEnd;++pIter,++
nPos)
183 if ( xResultSet.is() )
188 if (
static_cast<size_t>(nOldCount) <
m_aResults.size() )
189 xResultSet->rowCountChanged( nOldCount,
m_aResults.size() );
192 xResultSet->rowCountFinal();
200 osl::ClearableGuard< osl::Mutex > aGuard(
m_aMutex );
209 const OUString* pIter =
aSeq.getConstArray();
210 const OUString* pEnd = pIter +
aSeq.getLength();
211 for(;pIter != pEnd;++pIter)
218 if ( xResultSet.is() )
223 if (
static_cast<size_t>(nOldCount) <
m_aResults.size() )
224 xResultSet->rowCountChanged( nOldCount,
m_aResults.size() );
226 xResultSet->rowCountFinal();
245 osl::Guard< osl::Mutex > aGuard(
m_aMutex );
267 return Reference< XRow >();
272 osl::Guard< osl::Mutex > aGuard(
m_aMutex );
uno::Reference< ucb::XContent > m_xContent
virtual void validate() override
virtual css::uno::Reference< css::ucb::XContent > queryContent(sal_uInt32 nIndex) override
virtual css::uno::Reference< css::sdbc::XRow > queryPropertyValues(sal_uInt32 nIndex) override
rtl::Reference< ODocumentContainer > m_xContent
virtual OUString queryContentIdentifierString(sal_uInt32 nIndex) override
virtual sal_uInt32 currentCount() override
virtual bool isCountFinal() override
virtual sal_uInt32 totalCount() override
std::vector< std::unique_ptr< ResultListEntry > > m_aResults
virtual bool getResult(sal_uInt32 nIndex) override
virtual ~DataSupplier() override
virtual void close() override
virtual void releasePropertyValues(sal_uInt32 nIndex) override
virtual css::uno::Reference< css::ucb::XContentIdentifier > queryContentIdentifier(sal_uInt32 nIndex) override
rtl::Reference< ResultSet > getResultSet() const
Sequence< sal_Int8 > aSeq