10#include <com/sun/star/ucb/OpenMode.hpp>
23 : m_pChildrenProvider( pChildrenProvider ), mnOpenMode(nOpenMode), mbCountFinal(false)
35 for (
const auto& rChild : aChildren )
37 OUString sContentType = rChild->getContentType( );
39 if ( (
mnOpenMode == ucb::OpenMode::FOLDERS && bIsFolder ) ||
40 (
mnOpenMode == ucb::OpenMode::DOCUMENTS && !bIsFolder ) ||
56 return (xTemp.is()) ? xTemp->getContentIdentifier() : OUString();
62 return (xTemp.is()) ? xTemp->getIdentifier() : uno::Reference<ucb::XContentIdentifier>();
68 return uno::Reference<ucb::XContent>();
117 uno::Reference< ucb::XCommandProcessor > xCmdProc(
118 xContent, uno::UNO_QUERY_THROW );
119 sal_Int32 nCmdId( xCmdProc->createCommandIdentifier() );
121 aCmd.Name =
"getPropertyValues";
124 uno::Any aResult( xCmdProc->execute(
126 uno::Reference< sdbc::XRow > xRow;
127 if ( aResult >>= xRow )
133 catch ( uno::Exception
const & )
138 return uno::Reference< sdbc::XRow >();
virtual std::vector< css::uno::Reference< css::ucb::XContent > > getChildren()=0
virtual sal_uInt32 currentCount() override
virtual css::uno::Reference< css::ucb::XContentIdentifier > queryContentIdentifier(sal_uInt32 nIndex) override
virtual void releasePropertyValues(sal_uInt32 nIndex) override
virtual bool getResult(sal_uInt32 nIndex) override
virtual void close() override
DataSupplier(ChildrenProvider *pChildrenProvider, sal_Int32 nOpenMode)
virtual css::uno::Reference< css::sdbc::XRow > queryPropertyValues(sal_uInt32 nIndex) override
virtual ~DataSupplier() override
virtual OUString queryContentIdentifierString(sal_uInt32 nIndex) override
virtual void validate() override
virtual sal_uInt32 totalCount() override
virtual bool isCountFinal() override
ChildrenProvider * m_pChildrenProvider
virtual css::uno::Reference< css::ucb::XContent > queryContent(sal_uInt32 nIndex) override
std::vector< ResultListEntry > maResults
rtl::Reference< ResultSet > getResultSet() const
std::vector< ResultListEntry * > ResultList
constexpr OUStringLiteral CMIS_FILE_TYPE
css::uno::Environment getEnvironment(OUString const &name, std::u16string_view implementation)