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
e0192c09
Kaydet (Commit)
e0192c09
authored
Tem 07, 2016
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Implement XServiceInfo for com.sun.star.comp.MemoryStream
Change-Id: Ie5499d2ac4aac67dc73fdc58958443b8060c4139
üst
5f37f560
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
memorystream.cxx
comphelper/source/streaming/memorystream.cxx
+23
-4
No files found.
comphelper/source/streaming/memorystream.cxx
Dosyayı görüntüle @
e0192c09
...
@@ -19,15 +19,13 @@
...
@@ -19,15 +19,13 @@
#include <algorithm>
#include <algorithm>
#include "comphelper_module.hxx"
#include "comphelper_services.hxx"
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/io/XStream.hpp>
#include <com/sun/star/io/XStream.hpp>
#include <com/sun/star/io/XSeekableInputStream.hpp>
#include <com/sun/star/io/XSeekableInputStream.hpp>
#include <com/sun/star/io/XTruncate.hpp>
#include <com/sun/star/io/XTruncate.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <osl/diagnose.h>
#include <osl/diagnose.h>
#include <string.h>
#include <string.h>
...
@@ -43,12 +41,17 @@ using namespace ::osl;
...
@@ -43,12 +41,17 @@ using namespace ::osl;
namespace
comphelper
namespace
comphelper
{
{
class
UNOMemoryStream
:
public
WeakImplHelper
<
XStream
,
XSeekableInputStream
,
XOutputStream
,
XTruncate
>
class
UNOMemoryStream
:
public
WeakImplHelper
<
XServiceInfo
,
XStream
,
XSeekableInputStream
,
XOutputStream
,
XTruncate
>
{
{
public
:
public
:
UNOMemoryStream
();
UNOMemoryStream
();
virtual
~
UNOMemoryStream
();
virtual
~
UNOMemoryStream
();
// XServiceInfo
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
override
;
virtual
sal_Bool
SAL_CALL
supportsService
(
const
OUString
&
ServiceName
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
override
;
virtual
css
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
override
;
// XStream
// XStream
virtual
Reference
<
XInputStream
>
SAL_CALL
getInputStream
(
)
throw
(
RuntimeException
,
std
::
exception
)
override
;
virtual
Reference
<
XInputStream
>
SAL_CALL
getInputStream
(
)
throw
(
RuntimeException
,
std
::
exception
)
override
;
virtual
Reference
<
XOutputStream
>
SAL_CALL
getOutputStream
(
)
throw
(
RuntimeException
,
std
::
exception
)
override
;
virtual
Reference
<
XOutputStream
>
SAL_CALL
getOutputStream
(
)
throw
(
RuntimeException
,
std
::
exception
)
override
;
...
@@ -87,6 +90,22 @@ UNOMemoryStream::~UNOMemoryStream()
...
@@ -87,6 +90,22 @@ UNOMemoryStream::~UNOMemoryStream()
{
{
}
}
// XServiceInfo
OUString
SAL_CALL
UNOMemoryStream
::
getImplementationName
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
return
OUString
(
"com.sun.star.comp.MemoryStream"
);
}
sal_Bool
SAL_CALL
UNOMemoryStream
::
supportsService
(
const
OUString
&
ServiceName
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
return
cppu
::
supportsService
(
this
,
ServiceName
);
}
css
::
uno
::
Sequence
<
OUString
>
SAL_CALL
UNOMemoryStream
::
getSupportedServiceNames
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
return
{
"com.sun.star.comp.MemoryStream"
};
}
// XStream
// XStream
Reference
<
XInputStream
>
SAL_CALL
UNOMemoryStream
::
getInputStream
(
)
throw
(
RuntimeException
,
std
::
exception
)
Reference
<
XInputStream
>
SAL_CALL
UNOMemoryStream
::
getInputStream
(
)
throw
(
RuntimeException
,
std
::
exception
)
{
{
...
...
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