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
ee2e8d77
Kaydet (Commit)
ee2e8d77
authored
May 17, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove unnecessary macros
Change-Id: Ie73092fa6fc4fa7a95900ef4ba772af0c27d0f39
üst
184c48ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
20 deletions
+12
-20
fmservs.cxx
svx/source/form/fmservs.cxx
+12
-20
No files found.
svx/source/form/fmservs.cxx
Dosyayı görüntüle @
ee2e8d77
...
...
@@ -46,25 +46,11 @@ uno::Reference< uno::XInterface > SAL_CALL ImplName##_NewInstance_Impl(const uno
namespace
svxform
{
#define DECL_SELFAWARE_SERVICE( ClassName ) \
uno::Reference< uno::XInterface > SAL_CALL ClassName##_Create( \
const uno::Reference< lang::XMultiServiceFactory >& ); \
OUString SAL_CALL ClassName##_GetImplementationName(); \
uno::Sequence< OUString > SAL_CALL ClassName##_GetSupportedServiceNames(); \
#define REGISTER_SELFAWARE_SERVICE( ClassName ) \
xSingleFactory = ::cppu::createSingleFactory( xServiceFactory, \
ClassName##_GetImplementationName(), \
ClassName##_Create, \
ClassName##_GetSupportedServiceNames() \
); \
if ( xSingleFactory.is() ) \
xSet->insert( uno::makeAny( xSingleFactory ) );
// ------------------------------------------------------------------------
DECL_SELFAWARE_SERVICE
(
OAddConditionDialog
)
// declare selfaware service
uno
::
Reference
<
uno
::
XInterface
>
SAL_CALL
OAddConditionDialog_Create
(
const
uno
::
Reference
<
lang
::
XMultiServiceFactory
>&
);
OUString
SAL_CALL
OAddConditionDialog_GetImplementationName
();
uno
::
Sequence
<
OUString
>
SAL_CALL
OAddConditionDialog_GetSupportedServiceNames
();
// ------------------------------------------------------------------------
void
ImplSmartRegisterUnoServices
()
...
...
@@ -85,8 +71,14 @@ namespace svxform
REGISTER_SERVICE
(
LegacyFormController
,
OUString
(
"com.sun.star.form.FormController"
)
);
// ------------------------------------------------------------------------
// FormController
REGISTER_SELFAWARE_SERVICE
(
OAddConditionDialog
);
// FormController - register selfaware service
xSingleFactory
=
::
cppu
::
createSingleFactory
(
xServiceFactory
,
OAddConditionDialog_GetImplementationName
(),
OAddConditionDialog_Create
,
OAddConditionDialog_GetSupportedServiceNames
()
);
if
(
xSingleFactory
.
is
()
)
xSet
->
insert
(
uno
::
makeAny
(
xSingleFactory
)
);
// ------------------------------------------------------------------------
// DBGridControl
...
...
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