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
e32dcdda
Kaydet (Commit)
e32dcdda
authored
Ara 12, 2015
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
OOneInstanceAutoRegistration is not used
Change-Id: I6928dec92655e4655af6c519405712892bf7d870
üst
0769ad92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
77 deletions
+0
-77
registrationhelper.hxx
dbaccess/source/inc/registrationhelper.hxx
+0
-36
componentmodule.hxx
extensions/source/inc/componentmodule.hxx
+0
-41
No files found.
dbaccess/source/inc/registrationhelper.hxx
Dosyayı görüntüle @
e32dcdda
...
...
@@ -87,7 +87,6 @@ public:
Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&)</code><BR>
the instantiation of this object will automatically register the class via <code>OModuleRegistration::registerComponent</code>.
The factory creation function used is <code>::cppu::createSingleFactory</code>.<BR>
@see OOneInstanceAutoRegistration
*/
OMultiInstanceAutoRegistration
();
~
OMultiInstanceAutoRegistration
();
...
...
@@ -110,39 +109,4 @@ OMultiInstanceAutoRegistration<TYPE>::~OMultiInstanceAutoRegistration()
OModuleRegistration
::
revokeComponent
(
TYPE
::
getImplementationName_Static
());
}
template
<
class
TYPE
>
class
OOneInstanceAutoRegistration
{
public
:
/** provided that the template argument has three methods<BR>
<code>static OUString getImplementationName_Static()</code><BR>
<code>static css::uno::Sequence< OUString > getSupportedServiceNames_Static()</code><BR>
and<BR>
<code>static css::uno::Reference< css::uno::XInterface >
Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&)</code><BR>
the instantiation of this object will automatically register the class via <code>OModuleRegistration::registerComponent</code>.
The factory creation function used is <code>::cppu::createSingleFactory</code>.<BR>
@see OMultiInstanceAutoRegistration
*/
OOneInstanceAutoRegistration
();
~
OOneInstanceAutoRegistration
();
};
template
<
class
TYPE
>
OOneInstanceAutoRegistration
<
TYPE
>::
OOneInstanceAutoRegistration
()
{
OModuleRegistration
::
registerComponent
(
TYPE
::
getImplementationName_Static
(),
TYPE
::
getSupportedServiceNames_Static
(),
TYPE
::
Create
,
::
cppu
::
createOneInstanceFactory
);
}
template
<
class
TYPE
>
OOneInstanceAutoRegistration
<
TYPE
>::~
OOneInstanceAutoRegistration
()
{
OModuleRegistration
::
revokeComponent
(
TYPE
::
getImplementationName_Static
());
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
extensions/source/inc/componentmodule.hxx
Dosyayı görüntüle @
e32dcdda
...
...
@@ -170,7 +170,6 @@ typedef css::uno::Reference< css::lang::XSingleServiceFactory > (SAL_CALL *Facto
the instantiation of this object will automatically register the class via <method>OModule::registerComponent</method>.
<p/>
The factory creation function used is <code>::cppu::createSingleFactory</code>.
@see OOneInstanceAutoRegistration
*/
OMultiInstanceAutoRegistration
();
~
OMultiInstanceAutoRegistration
();
...
...
@@ -193,46 +192,6 @@ typedef css::uno::Reference< css::lang::XSingleServiceFactory > (SAL_CALL *Facto
OModule
::
revokeComponent
(
TYPE
::
getImplementationName_Static
());
}
template
<
class
TYPE
>
class
OOneInstanceAutoRegistration
{
public
:
/** automatically registeres a single instance component
<p>Assumed that the template argument has the three methods
<ul>
<li><code>static OUString getImplementationName_Static()</code><li/>
<li><code>static css::uno::Sequence< OUString > getSupportedServiceNames_Static()</code><li/>
<li><code>static css::uno::Reference< css::uno::XInterface >
Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&)</code>
</li>
<ul/>
the instantiation of this object will automatically register the class via <method>OModule::registerComponent</method>.
<p/>
The factory creation function used is <code>::cppu::createOneInstanceFactory</code>.
@see OOneInstanceAutoRegistration
*/
OOneInstanceAutoRegistration
();
~
OOneInstanceAutoRegistration
();
};
template
<
class
TYPE
>
OOneInstanceAutoRegistration
<
TYPE
>::
OOneInstanceAutoRegistration
()
{
OModule
::
registerComponent
(
TYPE
::
getImplementationName_Static
(),
TYPE
::
getSupportedServiceNames_Static
(),
TYPE
::
Create
,
::
cppu
::
createOneInstanceFactory
);
}
template
<
class
TYPE
>
OOneInstanceAutoRegistration
<
TYPE
>::~
OOneInstanceAutoRegistration
()
{
OModule
::
revokeComponent
(
TYPE
::
getImplementationName_Static
());
}
}
// namespace COMPMOD_NAMESPACE
...
...
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