Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
ab9e2ed4
Kaydet (Commit)
ab9e2ed4
authored
Agu 20, 2014
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
unotools: use css alias
Change-Id: I0440f589242d921e3e10e490e43f40cabd70ec9f
üst
fa6a5ebc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
25 deletions
+25
-25
streamhelper.hxx
include/unotools/streamhelper.hxx
+3
-3
streamsection.hxx
include/unotools/streamsection.hxx
+2
-2
streamwrap.hxx
include/unotools/streamwrap.hxx
+14
-14
streamhelper.cxx
unotools/source/streaming/streamhelper.cxx
+3
-3
streamwrap.cxx
unotools/source/streaming/streamwrap.cxx
+3
-3
No files found.
include/unotools/streamhelper.hxx
Dosyayı görüntüle @
ab9e2ed4
...
...
@@ -63,9 +63,9 @@ public:
virtual
sal_Int32
SAL_CALL
available
(
)
throw
(
css
::
io
::
NotConnectedException
,
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
closeInput
(
)
throw
(
css
::
io
::
NotConnectedException
,
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
seek
(
sal_Int64
location
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Int64
SAL_CALL
getPosition
(
)
throw
(
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Int64
SAL_CALL
getLength
(
)
throw
(
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
seek
(
sal_Int64
location
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Int64
SAL_CALL
getPosition
(
)
throw
(
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Int64
SAL_CALL
getLength
(
)
throw
(
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
};
}
// namespace utl
...
...
include/unotools/streamsection.hxx
Dosyayı görüntüle @
ab9e2ed4
...
...
@@ -47,13 +47,13 @@ class OStreamSection
public
:
/** starts reading of a "skippable" section of data within the given input stream<BR>
@param _rxInput the stream to read from. Must support the
c
om::sun::star
::io::XMarkableStream interface
c
ss
::io::XMarkableStream interface
*/
OStreamSection
(
const
css
::
uno
::
Reference
<
css
::
io
::
XDataInputStream
>&
_rxInput
);
/** starts writing of a "skippable" section of data into the given output stream
@param _rxOutput the stream the stream to write to. Must support the
c
om::sun::star
::io::XMarkableStream interface
c
ss
::io::XMarkableStream interface
@param _nPresumedLength estimation for the length of the upcoming section. If greater 0, this
value will be written as section length and corrected (in the dtor) only if
needed. If you know how much bytes you are about to write, you may
...
...
include/unotools/streamwrap.hxx
Dosyayı görüntüle @
ab9e2ed4
...
...
@@ -73,12 +73,12 @@ protected:
//= OSeekableInputStreamWrapper
typedef
::
cppu
::
ImplHelper1
<
::
com
::
sun
::
star
::
io
::
XSeekable
typedef
::
cppu
::
ImplHelper1
<
css
::
io
::
XSeekable
>
OSeekableInputStreamWrapper_Base
;
/** helper class for wrapping an SvStream into an com.sun.star.io::XInputStream
which is seekable (i.e. supports the com.sun.star.io::XSeekable interface).
*/
class
UNOTOOLS_DLLPUBLIC
OSeekableInputStreamWrapper
:
public
::
cppu
::
ImplInheritanceHelper1
<
OInputStreamWrapper
,
c
om
::
sun
::
star
::
io
::
XSeekable
>
class
UNOTOOLS_DLLPUBLIC
OSeekableInputStreamWrapper
:
public
::
cppu
::
ImplInheritanceHelper1
<
OInputStreamWrapper
,
c
ss
::
io
::
XSeekable
>
{
protected
:
OSeekableInputStreamWrapper
()
{}
...
...
@@ -87,9 +87,9 @@ public:
OSeekableInputStreamWrapper
(
SvStream
*
_pStream
,
bool
_bOwner
=
false
);
// XSeekable
virtual
void
SAL_CALL
seek
(
sal_Int64
_nLocation
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Int64
SAL_CALL
getPosition
(
)
throw
(
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Int64
SAL_CALL
getLength
(
)
throw
(
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
seek
(
sal_Int64
_nLocation
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Int64
SAL_CALL
getPosition
(
)
throw
(
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Int64
SAL_CALL
getLength
(
)
throw
(
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
};
//= OOutputStreamWrapper
...
...
@@ -118,7 +118,7 @@ protected:
//= OSeekableOutputStreamWrapper
typedef
::
cppu
::
ImplHelper1
<
::
com
::
sun
::
star
::
io
::
XSeekable
typedef
::
cppu
::
ImplHelper1
<
css
::
io
::
XSeekable
>
OSeekableOutputStreamWrapper_Base
;
/** helper class for wrapping an SvStream into an com.sun.star.io::XOutputStream
which is seekable (i.e. supports the com.sun.star.io::XSeekable interface).
...
...
@@ -134,30 +134,30 @@ private:
virtual
~
OSeekableOutputStreamWrapper
();
// disambiguate XInterface
virtual
::
com
::
sun
::
star
::
uno
::
Any
SAL_CALL
queryInterface
(
const
::
com
::
sun
::
star
::
uno
::
Type
&
_rType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Any
SAL_CALL
queryInterface
(
const
css
::
uno
::
Type
&
_rType
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
acquire
(
)
throw
()
SAL_OVERRIDE
;
virtual
void
SAL_CALL
release
(
)
throw
()
SAL_OVERRIDE
;
// XSeekable
virtual
void
SAL_CALL
seek
(
sal_Int64
_nLocation
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Int64
SAL_CALL
getPosition
(
)
throw
(
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Int64
SAL_CALL
getLength
(
)
throw
(
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
seek
(
sal_Int64
_nLocation
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Int64
SAL_CALL
getPosition
(
)
throw
(
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Int64
SAL_CALL
getLength
(
)
throw
(
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
};
class
UNOTOOLS_DLLPUBLIC
OStreamWrapper
:
public
::
cppu
::
ImplInheritanceHelper3
<
OSeekableInputStreamWrapper
,
c
om
::
sun
::
star
::
io
::
XStream
,
com
::
sun
::
star
::
io
::
XOutputStream
,
com
::
sun
::
star
::
io
::
XTruncate
>
class
UNOTOOLS_DLLPUBLIC
OStreamWrapper
:
public
::
cppu
::
ImplInheritanceHelper3
<
OSeekableInputStreamWrapper
,
c
ss
::
io
::
XStream
,
css
::
io
::
XOutputStream
,
css
::
io
::
XTruncate
>
{
public
:
OStreamWrapper
(
SvStream
&
_rStream
);
// css::io::XStream
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XInputStream
>
SAL_CALL
getInputStream
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XOutputStream
>
SAL_CALL
getOutputStream
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
io
::
XInputStream
>
SAL_CALL
getInputStream
(
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
io
::
XOutputStream
>
SAL_CALL
getOutputStream
(
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// css::io::XOutputStream
virtual
void
SAL_CALL
writeBytes
(
const
css
::
uno
::
Sequence
<
sal_Int8
>&
aData
)
throw
(
css
::
io
::
NotConnectedException
,
css
::
io
::
BufferSizeExceededException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
flush
()
throw
(
css
::
io
::
NotConnectedException
,
css
::
io
::
BufferSizeExceededException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
closeOutput
()
throw
(
css
::
io
::
NotConnectedException
,
css
::
io
::
BufferSizeExceededException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
truncate
()
throw
(
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
truncate
()
throw
(
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
};
}
...
...
unotools/source/streaming/streamhelper.cxx
Dosyayı görüntüle @
ab9e2ed4
...
...
@@ -58,18 +58,18 @@ sal_Int32 SAL_CALL OInputStreamHelper::readBytes(css::uno::Sequence< sal_Int8 >&
return
nRead
;
}
void
SAL_CALL
OInputStreamHelper
::
seek
(
sal_Int64
location
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
void
SAL_CALL
OInputStreamHelper
::
seek
(
sal_Int64
location
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
m_nActPos
=
location
;
}
sal_Int64
SAL_CALL
OInputStreamHelper
::
getPosition
(
)
throw
(
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
sal_Int64
SAL_CALL
OInputStreamHelper
::
getPosition
(
)
throw
(
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
return
m_nActPos
;
}
sal_Int64
SAL_CALL
OInputStreamHelper
::
getLength
(
)
throw
(
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
sal_Int64
SAL_CALL
OInputStreamHelper
::
getLength
(
)
throw
(
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
if
(
!
m_xLockBytes
.
Is
())
return
0
;
...
...
unotools/source/streaming/streamwrap.cxx
Dosyayı görüntüle @
ab9e2ed4
...
...
@@ -280,12 +280,12 @@ OStreamWrapper::OStreamWrapper(SvStream& _rStream)
SetStream
(
&
_rStream
,
false
);
}
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XInputStream
>
SAL_CALL
OStreamWrapper
::
getInputStream
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
css
::
uno
::
Reference
<
css
::
io
::
XInputStream
>
SAL_CALL
OStreamWrapper
::
getInputStream
(
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
return
this
;
}
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XOutputStream
>
SAL_CALL
OStreamWrapper
::
getOutputStream
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
css
::
uno
::
Reference
<
css
::
io
::
XOutputStream
>
SAL_CALL
OStreamWrapper
::
getOutputStream
(
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
return
this
;
}
...
...
@@ -313,7 +313,7 @@ void SAL_CALL OStreamWrapper::closeOutput() throw(css::io::NotConnectedException
{
}
void
SAL_CALL
OStreamWrapper
::
truncate
()
throw
(
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
void
SAL_CALL
OStreamWrapper
::
truncate
()
throw
(
css
::
io
::
IOException
,
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
m_pSvStream
->
SetStreamSize
(
0
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment