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
752f69ba
Kaydet (Commit)
752f69ba
authored
Ock 04, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Do not export whole class to avoid MS C++ implicitly exporting base template.
üst
a11aa274
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
12 deletions
+23
-12
streamwrap.hxx
unotools/inc/unotools/streamwrap.hxx
+13
-9
accelcfg.cxx
unotools/source/config/accelcfg.cxx
+1
-2
streamwrap.cxx
unotools/source/streaming/streamwrap.cxx
+9
-1
No files found.
unotools/inc/unotools/streamwrap.hxx
Dosyayı görüntüle @
752f69ba
...
...
@@ -110,23 +110,24 @@ public:
//==================================================================
typedef
::
cppu
::
WeakImplHelper1
<
stario
::
XOutputStream
>
OutputStreamWrapper_Base
;
// needed for some compilers
class
UNOTOOLS_DLLPUBLIC
OOutputStreamWrapper
:
public
OutputStreamWrapper_Base
class
OOutputStreamWrapper
:
public
OutputStreamWrapper_Base
{
protected
:
// TODO: thread safety!
SvStream
&
rStream
;
public
:
OOutputStreamWrapper
(
SvStream
&
_rStream
)
:
rStream
(
_rStream
)
{
}
UNOTOOLS_DLLPUBLIC
OOutputStreamWrapper
(
SvStream
&
_rStream
);
protected
:
virtual
~
OOutputStreamWrapper
();
// stario::XOutputStream
virtual
void
SAL_CALL
writeBytes
(
const
staruno
::
Sequence
<
sal_Int8
>&
aData
)
throw
(
stario
::
NotConnectedException
,
stario
::
BufferSizeExceededException
,
staruno
::
RuntimeException
);
virtual
void
SAL_CALL
flush
()
throw
(
stario
::
NotConnectedException
,
stario
::
BufferSizeExceededException
,
staruno
::
RuntimeException
);
virtual
void
SAL_CALL
closeOutput
()
throw
(
stario
::
NotConnectedException
,
stario
::
BufferSizeExceededException
,
staruno
::
RuntimeException
);
protected
:
/// throws an exception according to the error flag of m_pSvStream
void
checkError
()
const
;
// TODO: thread safety!
SvStream
&
rStream
;
};
//==================================================================
...
...
@@ -137,12 +138,15 @@ typedef ::cppu::ImplHelper1 < ::com::sun::star::io::XSeekable
/** helper class for wrapping an SvStream into an <type scope="com.sun.star.io">XOutputStream</type>
which is seekable (i.e. supports the <type scope="com.sun.star.io">XSeekable</type> interface).
*/
class
UNOTOOLS_DLLPUBLIC
OSeekableOutputStreamWrapper
class
OSeekableOutputStreamWrapper
:
public
OOutputStreamWrapper
,
public
OSeekableOutputStreamWrapper_Base
{
public
:
OSeekableOutputStreamWrapper
(
SvStream
&
_rStream
);
UNOTOOLS_DLLPUBLIC
OSeekableOutputStreamWrapper
(
SvStream
&
_rStream
);
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
);
...
...
unotools/source/config/accelcfg.cxx
Dosyayı görüntüle @
752f69ba
...
...
@@ -187,8 +187,7 @@ SvtAcceleratorConfiguration::~SvtAcceleratorConfiguration()
INetURLObject
aObj
(
aUserConfig
);
aObj
.
insertName
(
String
::
CreateFromAscii
(
"GlobalKeyBindings.xml"
)
);
SvStream
*
pStream
=
::
utl
::
UcbStreamHelper
::
CreateStream
(
aObj
.
GetMainURL
(
INetURLObject
::
NO_DECODE
),
STREAM_STD_READWRITE
|
STREAM_TRUNC
);
::
utl
::
OOutputStreamWrapper
aHelper
(
*
pStream
);
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XOutputStream
>
xOut
(
&
aHelper
);
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XOutputStream
>
xOut
(
new
utl
::
OOutputStreamWrapper
(
*
pStream
)
);
pImp
->
Commit
(
xOut
);
delete
pStream
;
}
...
...
unotools/source/streaming/streamwrap.cxx
Dosyayı görüntüle @
752f69ba
...
...
@@ -223,7 +223,13 @@ sal_Int64 SAL_CALL OSeekableInputStreamWrapper::getLength( ) throw (IOException
//==================================================================
//= OOutputStreamWrapper
//==================================================================
//------------------------------------------------------------------------------
OOutputStreamWrapper
::
OOutputStreamWrapper
(
SvStream
&
_rStream
)
:
rStream
(
_rStream
)
{}
OOutputStreamWrapper
::~
OOutputStreamWrapper
()
{}
void
SAL_CALL
OOutputStreamWrapper
::
writeBytes
(
const
staruno
::
Sequence
<
sal_Int8
>&
aData
)
throw
(
stario
::
NotConnectedException
,
stario
::
BufferSizeExceededException
,
staruno
::
RuntimeException
)
{
sal_uInt32
nWritten
=
rStream
.
Write
(
aData
.
getConstArray
(),
aData
.
getLength
());
...
...
@@ -265,6 +271,8 @@ OSeekableOutputStreamWrapper::OSeekableOutputStreamWrapper(SvStream& _rStream)
{
}
OSeekableOutputStreamWrapper
::~
OSeekableOutputStreamWrapper
()
{}
//------------------------------------------------------------------------------
Any
SAL_CALL
OSeekableOutputStreamWrapper
::
queryInterface
(
const
Type
&
_rType
)
throw
(
RuntimeException
)
{
...
...
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