14#include <com/sun/star/ucb/XSimpleFileAccess3.hpp>
15#include <com/sun/star/ucb/SimpleFileAccess.hpp>
16#include <com/sun/star/io/XInputStream.hpp>
21#include <document.hxx>
39 css::uno::Reference<css::ucb::XSimpleFileAccess3> xFileAccess
41 if (!xFileAccess.is())
44 css::uno::Reference<css::io::XInputStream>
xStream;
57 const sal_Int32 BUF_LEN = 8000;
58 css::uno::Sequence<sal_Int8> buffer(BUF_LEN);
62 while ((nRead =
xStream->readBytes(buffer, BUF_LEN)) == BUF_LEN)
63 aBuffer.append(
reinterpret_cast<const char*
>(buffer.getConstArray()), nRead);
66 aBuffer.append(
reinterpret_cast<const char*
>(buffer.getConstArray()), nRead);
void TrackFormulas(SfxHintId nHintId=SfxHintId::ScDataChanged)
SfxBindings * GetViewBindings()
SC_DLLPUBLIC sfx2::LinkManager * GetLinkManager()
virtual ~ScWebServiceLink() override
ScWebServiceLink(ScDocument *pD, OUString aURL)
virtual void ListenersGone() override
virtual ::sfx2::SvBaseLink::UpdateResult DataChanged(const OUString &rMimeType, const css::uno::Any &rValue) override
void Invalidate(sal_uInt16 nId)
bool HasListeners() const
void Broadcast(const SfxHint &rHint)
void Remove(SvBaseLink const *pLink)
const SvBaseLinks & GetLinks() const
Reference< XComponentContext > getProcessComponentContext()
std::unique_ptr< char[]> aBuffer