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
4cf5556f
Kaydet (Commit)
4cf5556f
authored
Mar 21, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use WeakImplHelper for ucb FileProvider
Change-Id: I7de8301fc1a071f91d25f559ace44e9f27040d63
üst
37aeda6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
88 deletions
+8
-88
prov.cxx
ucb/source/ucp/file/prov.cxx
+0
-56
prov.hxx
ucb/source/ucp/file/prov.hxx
+8
-32
No files found.
ucb/source/ucp/file/prov.cxx
Dosyayı görüntüle @
4cf5556f
...
@@ -102,45 +102,6 @@ FileProvider::~FileProvider()
...
@@ -102,45 +102,6 @@ FileProvider::~FileProvider()
// XInterface
void
SAL_CALL
FileProvider
::
acquire
(
void
)
throw
()
{
OWeakObject
::
acquire
();
}
void
SAL_CALL
FileProvider
::
release
(
void
)
throw
()
{
OWeakObject
::
release
();
}
Any
SAL_CALL
FileProvider
::
queryInterface
(
const
Type
&
rType
)
throw
(
RuntimeException
,
std
::
exception
)
{
Any
aRet
=
cppu
::
queryInterface
(
rType
,
(
static_cast
<
XContentProvider
*
>
(
this
)),
(
static_cast
<
XInitialization
*
>
(
this
)),
(
static_cast
<
XContentIdentifierFactory
*
>
(
this
)),
(
static_cast
<
XServiceInfo
*
>
(
this
)),
(
static_cast
<
XTypeProvider
*
>
(
this
)),
(
static_cast
<
XFileIdentifierConverter
*
>
(
this
)),
(
static_cast
<
XPropertySet
*
>
(
this
))
);
return
aRet
.
hasValue
()
?
aRet
:
OWeakObject
::
queryInterface
(
rType
);
}
// XInitialization
// XInitialization
void
SAL_CALL
FileProvider
::
init
()
void
SAL_CALL
FileProvider
::
init
()
...
@@ -166,23 +127,6 @@ FileProvider::initialize(
...
@@ -166,23 +127,6 @@ FileProvider::initialize(
}
}
}
}
// XTypeProvider methods.
XTYPEPROVIDER_IMPL_7
(
FileProvider
,
XTypeProvider
,
XServiceInfo
,
XInitialization
,
XContentIdentifierFactory
,
XPropertySet
,
XFileIdentifierConverter
,
XContentProvider
)
// XServiceInfo methods.
// XServiceInfo methods.
OUString
SAL_CALL
OUString
SAL_CALL
FileProvider
::
getImplementationName
()
FileProvider
::
getImplementationName
()
...
...
ucb/source/ucp/file/prov.hxx
Dosyayı görüntüle @
4cf5556f
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/ucb/XFileIdentifierConverter.hpp>
#include <com/sun/star/ucb/XFileIdentifierConverter.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <cppuhelper/implbase6.hxx>
// FileProvider
// FileProvider
...
@@ -47,15 +48,13 @@ namespace fileaccess {
...
@@ -47,15 +48,13 @@ namespace fileaccess {
class
BaseContent
;
class
BaseContent
;
class
shell
;
class
shell
;
class
FileProvider
:
class
FileProvider
:
public
cppu
::
WeakImplHelper6
<
public
cppu
::
OWeakObject
,
css
::
lang
::
XServiceInfo
,
public
com
::
sun
::
star
::
lang
::
XServiceInfo
,
css
::
lang
::
XInitialization
,
public
com
::
sun
::
star
::
lang
::
XInitialization
,
css
::
ucb
::
XContentProvider
,
public
com
::
sun
::
star
::
lang
::
XTypeProvider
,
css
::
ucb
::
XContentIdentifierFactory
,
public
com
::
sun
::
star
::
ucb
::
XContentProvider
,
css
::
beans
::
XPropertySet
,
public
com
::
sun
::
star
::
ucb
::
XContentIdentifierFactory
,
css
::
ucb
::
XFileIdentifierConverter
>
public
com
::
sun
::
star
::
beans
::
XPropertySet
,
public
com
::
sun
::
star
::
ucb
::
XFileIdentifierConverter
{
{
friend
class
BaseContent
;
friend
class
BaseContent
;
public
:
public
:
...
@@ -63,22 +62,6 @@ namespace fileaccess {
...
@@ -63,22 +62,6 @@ namespace fileaccess {
FileProvider
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>&
rxContext
);
FileProvider
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>&
rxContext
);
~
FileProvider
();
~
FileProvider
();
// XInterface
virtual
com
::
sun
::
star
::
uno
::
Any
SAL_CALL
queryInterface
(
const
com
::
sun
::
star
::
uno
::
Type
&
aType
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
void
SAL_CALL
acquire
(
void
)
throw
();
virtual
void
SAL_CALL
release
(
void
)
throw
();
// XServiceInfo
// XServiceInfo
virtual
OUString
SAL_CALL
virtual
OUString
SAL_CALL
getImplementationName
(
getImplementationName
(
...
@@ -104,13 +87,6 @@ namespace fileaccess {
...
@@ -104,13 +87,6 @@ namespace fileaccess {
CreateInstance
(
CreateInstance
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
xMultiServiceFactory
);
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
xMultiServiceFactory
);
// XTypeProvider
virtual
css
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
getImplementationId
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
virtual
css
::
uno
::
Sequence
<
com
::
sun
::
star
::
uno
::
Type
>
SAL_CALL
getTypes
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
);
// XInitialization
// XInitialization
virtual
void
SAL_CALL
virtual
void
SAL_CALL
initialize
(
initialize
(
...
...
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