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
864afb34
Kaydet (Commit)
864afb34
authored
Mar 07, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use WeakImplhelper1 for ContentIdentifier
Change-Id: I830d2642bde6affbc400fbaab11955ac082b7bc5
üst
20ed6886
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
69 deletions
+7
-69
identify.cxx
ucb/source/core/identify.cxx
+2
-47
identify.hxx
ucb/source/core/identify.hxx
+5
-22
No files found.
ucb/source/core/identify.cxx
Dosyayı görüntüle @
864afb34
...
...
@@ -31,15 +31,9 @@ using namespace com::sun::star::lang;
using
namespace
com
::
sun
::
star
::
ucb
;
// ContentIdentifier Implementation.
ContentIdentifier
::
ContentIdentifier
(
const
OUString
&
ContentId
)
:
m_aContentId
(
ContentId
)
ContentIdentifier
::
ContentIdentifier
(
const
OUString
&
ContentId
)
:
m_aContentId
(
ContentId
)
{
}
...
...
@@ -50,46 +44,7 @@ ContentIdentifier::~ContentIdentifier()
}
// XInterface methods.
void
SAL_CALL
ContentIdentifier
::
acquire
()
throw
()
{
OWeakObject
::
acquire
();
}
void
SAL_CALL
ContentIdentifier
::
release
()
throw
()
{
OWeakObject
::
release
();
}
css
::
uno
::
Any
SAL_CALL
ContentIdentifier
::
queryInterface
(
const
css
::
uno
::
Type
&
rType
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
css
::
uno
::
Any
aRet
=
cppu
::
queryInterface
(
rType
,
(
static_cast
<
XTypeProvider
*
>
(
this
)),
(
static_cast
<
XContentIdentifier
*
>
(
this
))
);
return
aRet
.
hasValue
()
?
aRet
:
OWeakObject
::
queryInterface
(
rType
);
}
// XTypeProvider methods.
XTYPEPROVIDER_IMPL_2
(
ContentIdentifier
,
XTypeProvider
,
XContentIdentifier
);
// XContentIdentifier methods.
// virtual
OUString
SAL_CALL
ContentIdentifier
::
getContentIdentifier
()
throw
(
RuntimeException
,
std
::
exception
)
...
...
ucb/source/core/identify.hxx
Dosyayı görüntüle @
864afb34
...
...
@@ -21,39 +21,22 @@
#define _IDENTIFY_HXX
#include <com/sun/star/ucb/XContentIdentifier.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XTypeProvider.hpp>
#include <rtl/ustrbuf.hxx>
#include <cppuhelper/weak.hxx>
#include <ucbhelper/macros.hxx>
#include <cppuhelper/implbase1.hxx>
class
ContentIdentifier
:
public
cppu
::
OWeakObject
,
public
com
::
sun
::
star
::
lang
::
XTypeProvider
,
public
com
::
sun
::
star
::
ucb
::
XContentIdentifier
class
ContentIdentifier
:
public
cppu
::
WeakImplHelper1
<
css
::
ucb
::
XContentIdentifier
>
{
public
:
ContentIdentifier
(
const
OUString
&
ContentId
);
virtual
~
ContentIdentifier
();
// XInterface
virtual
css
::
uno
::
Any
SAL_CALL
queryInterface
(
const
css
::
uno
::
Type
&
rType
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
void
SAL_CALL
acquire
()
throw
();
virtual
void
SAL_CALL
release
()
throw
();
// XTypeProvider
XTYPEPROVIDER_DECL
()
// XContentIdentifier
virtual
OUString
SAL_CALL
getContentIdentifier
()
throw
(
c
om
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
);
throw
(
c
ss
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
OUString
SAL_CALL
getContentProviderScheme
()
throw
(
c
om
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
);
throw
(
c
ss
::
uno
::
RuntimeException
,
std
::
exception
);
private
:
OUString
m_aContentId
;
...
...
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