19#ifndef INCLUDED_COMPHELPER_SEEKABLEINPUT_HXX
20#define INCLUDED_COMPHELPER_SEEKABLEINPUT_HXX
22#include <com/sun/star/uno/Reference.hxx>
23#include <com/sun/star/io/XInputStream.hpp>
24#include <com/sun/star/io/XSeekable.hpp>
35 :
public ::cppu::WeakImplHelper< css::io::XInputStream,
44 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
56 css::uno::Reference< css::io::XInputStream > xInStream,
57 css::uno::Reference< css::uno::XComponentContext > xContext );
61 static css::uno::Reference< css::io::XInputStream > CheckSeekableCanWrap(
62 const css::uno::Reference< css::io::XInputStream >& xInStream,
63 const css::uno::Reference< css::uno::XComponentContext >& rxContext );
66 virtual sal_Int32 SAL_CALL readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
override;
67 virtual sal_Int32 SAL_CALL readSomeBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead )
override;
68 virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )
override;
69 virtual sal_Int32 SAL_CALL available()
override;
70 virtual void SAL_CALL closeInput()
override;
73 virtual void SAL_CALL seek( sal_Int64 location )
override;
74 virtual sal_Int64 SAL_CALL getPosition()
override;
75 virtual sal_Int64 SAL_CALL
getLength()
override;
#define COMPHELPER_DLLPRIVATE
#define COMPHELPER_DLLPUBLIC
double getLength(const B2DPolygon &rCandidate)