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
871cc191
Kaydet (Commit)
871cc191
authored
Mar 22, 2012
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add a wrapper for InitVCL(), to be called from Java on Android
üst
a3035495
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
svmain.cxx
vcl/source/app/svmain.cxx
+22
-0
No files found.
vcl/source/app/svmain.cxx
Dosyayı görüntüle @
871cc191
...
...
@@ -56,6 +56,11 @@
#include <ole2.h> // for _beginthreadex
#endif
#ifdef ANDROID
#include <cppuhelper/bootstrap.hxx>
#include <jni.h>
#endif
// [ed 5/14/02 Add in explicit check for quartz graphics. OS X will define
// unx for both quartz and X11 graphics, but we include svunx.h only if we're
// building X11 graphics layers.
...
...
@@ -327,6 +332,23 @@ sal_Bool InitVCL( const ::com::sun::star::uno::Reference< ::com::sun::star::lang
return
sal_True
;
}
#ifdef ANDROID
extern
"C"
__attribute__
((
visibility
(
"default"
)))
void
InitVCLWrapper
()
{
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
(
cppu
::
defaultBootstrap_InitialComponentContext
()
);
uno
::
Reference
<
lang
::
XMultiComponentFactory
>
xFactory
(
xContext
->
getServiceManager
()
);
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xSM
(
xFactory
,
uno
::
UNO_QUERY_THROW
);
comphelper
::
setProcessServiceFactory
(
xSM
);
InitVCL
(
xSM
);
}
#endif
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