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
48d64f3c
Kaydet (Commit)
48d64f3c
authored
Ock 30, 2008
tarafından
Rüdiger Timm
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS dba24d (1.5.58); FILE MERGED
2007/11/22 13:03:25 fs 1.5.58.1: #i81658# +OLegacySingleRegistration
üst
7a8df6f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
4 deletions
+39
-4
componentmodule.hxx
comphelper/inc/comphelper/componentmodule.hxx
+39
-4
No files found.
comphelper/inc/comphelper/componentmodule.hxx
Dosyayı görüntüle @
48d64f3c
...
...
@@ -4,9 +4,9 @@
*
* $RCSfile: componentmodule.hxx,v $
*
* $Revision: 1.
5
$
* $Revision: 1.
6
$
*
* last change: $Author:
hr $ $Date: 2007-06-27 14:53:24
$
* last change: $Author:
rt $ $Date: 2008-01-30 09:34:45
$
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
...
...
@@ -35,9 +35,8 @@
#ifndef COMPHELPER_INC_COMPHELPER_COMPONENTMODULE_HXX
#define COMPHELPER_INC_COMPHELPER_COMPONENTMODULE_HXX
#ifndef INCLUDED_COMPHELPERDLLAPI_H
#include <comphelper/comphelperdllapi.h>
#
endif
#
include <comphelper/legacysingletonfactory.hxx>
/** === begin UNO includes === **/
#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
...
...
@@ -298,6 +297,7 @@ namespace comphelper
};
template
<
class
TYPE
>
//--------------------------------------------------------------------------
OSingletonRegistration
<
TYPE
>::
OSingletonRegistration
(
OModule
&
_rModule
)
{
_rModule
.
registerImplementation
(
ComponentDescription
(
...
...
@@ -309,6 +309,29 @@ namespace comphelper
)
);
}
//==========================================================================
//= OLegacySingletonRegistration
//==========================================================================
template
<
class
TYPE
>
class
OLegacySingletonRegistration
{
public
:
OLegacySingletonRegistration
(
OModule
&
_rModule
);
};
//--------------------------------------------------------------------------
template
<
class
TYPE
>
OLegacySingletonRegistration
<
TYPE
>::
OLegacySingletonRegistration
(
OModule
&
_rModule
)
{
_rModule
.
registerImplementation
(
ComponentDescription
(
TYPE
::
getImplementationName_static
(),
TYPE
::
getSupportedServiceNames_static
(),
::
rtl
::
OUString
(),
&
TYPE
::
Create
,
&::
comphelper
::
createLegacySingletonFactory
)
);
}
//==========================================================================
//= helpers
//==========================================================================
...
...
@@ -366,6 +389,18 @@ namespace comphelper
{ \
} \
}; \
/* -------------------------------------------------------------------- */
\
template < class TYPE > \
class OLegacySingletonRegistration : public ::comphelper::OLegacySingletonRegistration< TYPE > \
{ \
private: \
typedef ::comphelper::OLegacySingletonRegistration< TYPE > BaseClass; \
\
public: \
OLegacySingletonRegistration() : BaseClass( ModuleClass::getInstance() ) \
{ \
} \
}; \
//==========================================================================
//= implementing a OModule for a component library
...
...
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