23#include <com/sun/star/container/XChild.hpp>
24#include <com/sun/star/io/XInputStream.hpp>
25#include <com/sun/star/sdbc/XResultSet.hpp>
26#include <com/sun/star/sdbc/XRow.hpp>
27#include <com/sun/star/ucb/XContent.hpp>
28#include <com/sun/star/ucb/XContentAccess.hpp>
29#include <com/sun/star/ucb/XCommandEnvironment.hpp>
31#include <com/sun/star/uno/Reference.hxx>
32#include <com/sun/star/uno/Sequence.hxx>
36#include <rtl/ustring.hxx>
62 if (xResultSet->first())
65 uno::UNO_QUERY_THROW);
69 const OUString aTitle(xRow->getString(1));
79 }
while (xResultSet->next());
82 catch (
const uno::RuntimeException&)
86 catch (
const uno::Exception&)
103 : xContent(
std::move(_xContent))
131std::unique_ptr<DirectoryStream>
139 std::unique_ptr<DirectoryStream> pDir;
145 if (xDirContent.is())
147 pDir = std::make_unique<DirectoryStream>(xDirContent);
148 if (!pDir->isStructured())
164 return css::uno::Reference<css::ucb::XContent>();
196 findStream(aContent, OUString::createFromAscii(
pName)));
197 if (xInputStream.is())
css::uno::Reference< css::io::XInputStream > openStream()
css::uno::Reference< css::sdbc::XResultSet > createCursor(const css::uno::Sequence< OUString > &rPropertyNames, ResultSetInclude eMode=INCLUDE_FOLDERS_AND_DOCUMENTS)
css::uno::Reference< css::ucb::XContent > getContent() const
DirectoryStream(const css::uno::Reference< css::ucb::XContent > &xContent)
static std::unique_ptr< DirectoryStream > createForParent(const css::uno::Reference< css::ucb::XContent > &xContent)
virtual SAL_DLLPRIVATE bool existsSubStream(const char *name) override
virtual bool isStructured() override
virtual SAL_DLLPRIVATE unsigned subStreamCount() override
std::unique_ptr< Impl > m_pImpl
virtual long tell() override
static bool isDirectory(const css::uno::Reference< css::ucb::XContent > &xContent)
virtual bool isEnd() override
virtual SAL_DLLPRIVATE const char * subStreamName(unsigned id) override
virtual const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead) override
virtual SAL_DLLPRIVATE librevenge::RVNGInputStream * getSubStreamByName(const char *name) override
virtual ~DirectoryStream() override
virtual SAL_DLLPRIVATE librevenge::RVNGInputStream * getSubStreamById(unsigned id) override
virtual int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType) override
Reference< XComponentContext > getProcessComponentContext()
uno::Reference< ucb::XContent > xContent
Impl(uno::Reference< ucb::XContent > xContent)