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
1b465fcc
Kaydet (Commit)
1b465fcc
authored
Tem 21, 2011
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Do not use macros from comphelper's componentmodule.hxx
üst
d65e8cc1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
3 deletions
+73
-3
sbmodule.cxx
basic/source/uno/sbmodule.cxx
+18
-1
sbmodule.hxx
basic/source/uno/sbmodule.hxx
+49
-1
sbservices.cxx
basic/source/uno/sbservices.cxx
+6
-1
No files found.
basic/source/uno/sbmodule.cxx
Dosyayı görüntüle @
1b465fcc
...
...
@@ -36,7 +36,24 @@ namespace basic
{
//........................................................................
IMPLEMENT_COMPONENT_MODULE
(
BasicModule
);
struct
BasicModuleCreator
{
BasicModule
m_aBasicModule
;
};
namespace
{
class
theBasicModuleInstance
:
public
rtl
::
Static
<
BasicModuleCreator
,
theBasicModuleInstance
>
{};
}
BasicModule
::
BasicModule
()
:
BaseClass
()
{
}
BasicModule
&
BasicModule
::
getInstance
()
{
return
theBasicModuleInstance
::
get
().
m_aBasicModule
;
}
//........................................................................
}
// namespace basic
...
...
basic/source/uno/sbmodule.hxx
Dosyayı görüntüle @
1b465fcc
...
...
@@ -36,7 +36,55 @@ namespace basic
{
//........................................................................
DECLARE_COMPONENT_MODULE
(
BasicModule
,
BasicModuleClient
)
class
BasicModule
:
public
::
comphelper
::
OModule
{
friend
struct
BasicModuleCreator
;
typedef
::
comphelper
::
OModule
BaseClass
;
public
:
static
BasicModule
&
getInstance
();
private
:
BasicModule
();
};
/* -------------------------------------------------------------------- */
class
BasicModuleClient
:
public
::
comphelper
::
OModuleClient
{
private
:
typedef
::
comphelper
::
OModuleClient
BaseClass
;
public
:
BasicModuleClient
()
:
BaseClass
(
BasicModule
::
getInstance
()
)
{
}
};
/* -------------------------------------------------------------------- */
template
<
class
TYPE
>
class
OAutoRegistration
:
public
::
comphelper
::
OAutoRegistration
<
TYPE
>
{
private
:
typedef
::
comphelper
::
OAutoRegistration
<
TYPE
>
BaseClass
;
public
:
OAutoRegistration
()
:
BaseClass
(
BasicModule
::
getInstance
()
)
{
}
};
/* -------------------------------------------------------------------- */
template
<
class
TYPE
>
class
OSingletonRegistration
:
public
::
comphelper
::
OSingletonRegistration
<
TYPE
>
{
private
:
typedef
::
comphelper
::
OSingletonRegistration
<
TYPE
>
BaseClass
;
public
:
OSingletonRegistration
()
:
BaseClass
(
BasicModule
::
getInstance
()
)
{
}
};
//........................................................................
}
// namespace basic
...
...
basic/source/uno/sbservices.cxx
Dosyayı görüntüle @
1b465fcc
...
...
@@ -60,6 +60,11 @@ namespace basic
}
// namespace basic
//........................................................................
IMPLEMENT_COMPONENT_LIBRARY_API
(
::
basic
::
BasicModule
,
::
basic
::
initializeModule
)
extern
"C"
SAL_DLLPUBLIC_EXPORT
void
*
SAL_CALL
component_getFactory
(
const
sal_Char
*
pImplementationName
,
void
*
pServiceManager
,
void
*
pRegistryKey
)
{
::
basic
::
initializeModule
();
return
::
basic
::
BasicModule
::
getInstance
().
getComponentFactory
(
pImplementationName
,
pServiceManager
,
pRegistryKey
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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