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
c9f5b8a3
Kaydet (Commit)
c9f5b8a3
authored
May 29, 2012
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add temporary test JNI method createWindowFoo()...
Change-Id: I8f99399faa3b0762bdea2aac09f1b849639cd191
üst
a9a0ed1e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
Bootstrap.java
android/Bootstrap/src/org/libreoffice/android/Bootstrap.java
+4
-1
lo-bootstrap.c
sal/android/lo-bootstrap.c
+19
-0
wrkwin.cxx
vcl/source/window/wrkwin.cxx
+10
-0
No files found.
android/Bootstrap/src/org/libreoffice/android/Bootstrap.java
Dosyayı görüntüle @
c9f5b8a3
...
@@ -97,10 +97,13 @@ public class Bootstrap extends NativeActivity
...
@@ -97,10 +97,13 @@ public class Bootstrap extends NativeActivity
// where the lo-bootstrap library is.
// where the lo-bootstrap library is.
public
static
native
void
setCommandArgs
(
String
[]
argv
);
public
static
native
void
setCommandArgs
(
String
[]
argv
);
// A wrapper for InitUCBHelper() in he ucbhelper library
// A wrapper for InitUCBHelper() in
t
he ucbhelper library
// (contentbroker.cxx), also this called indirectly through the lo-bootstrap library
// (contentbroker.cxx), also this called indirectly through the lo-bootstrap library
public
static
native
void
initUCBHelper
();
public
static
native
void
initUCBHelper
();
// A wrapper for createWindowFoo() in the vcl library
public
static
native
int
createWindowFoo
();
// A method that starts a thread to redirect stdout and stderr writes to
// A method that starts a thread to redirect stdout and stderr writes to
// the Android logging mechanism, or stops the redirection.
// the Android logging mechanism, or stops the redirection.
public
static
native
boolean
redirect_stdio
(
boolean
state
);
public
static
native
boolean
redirect_stdio
(
boolean
state
);
...
...
sal/android/lo-bootstrap.c
Dosyayı görüntüle @
c9f5b8a3
...
@@ -1633,6 +1633,25 @@ Java_org_libreoffice_android_Bootstrap_initUCBHelper(JNIEnv* env,
...
@@ -1633,6 +1633,25 @@ Java_org_libreoffice_android_Bootstrap_initUCBHelper(JNIEnv* env,
(
*
InitUCBHelper
)();
(
*
InitUCBHelper
)();
}
}
__attribute__
((
visibility
(
"default"
)))
jint
Java_org_libreoffice_android_Bootstrap_createWindowFoo
(
JNIEnv
*
env
,
jobject
clazz
)
{
int
(
*
createWindowFoo
)(
void
);
(
void
)
env
;
(
void
)
clazz
;
lo_dlopen
(
"libvcllo.so"
);
createWindowFoo
=
dlsym
(
RTLD_DEFAULT
,
"createWindowFoo"
);
if
(
createWindowFoo
==
NULL
)
{
LOGE
(
"createWindowFoo: createWindowFoo not found"
);
return
0
;
}
return
(
*
createWindowFoo
)();
}
/* Code for reading lines from the pipe based on the (Apache-licensed) Android
/* Code for reading lines from the pipe based on the (Apache-licensed) Android
* logwrapper.c
* logwrapper.c
*/
*/
...
...
vcl/source/window/wrkwin.cxx
Dosyayı görüntüle @
c9f5b8a3
...
@@ -107,6 +107,16 @@ WorkWindow::WorkWindow( WindowType nType ) :
...
@@ -107,6 +107,16 @@ WorkWindow::WorkWindow( WindowType nType ) :
ImplInitWorkWindowData
();
ImplInitWorkWindowData
();
}
}
#ifdef ANDROID
extern
"C"
void
*
createWindowFoo
(
void
)
{
return
(
void
*
)
new
WorkWindow
((
Window
*
)
NULL
);
}
#endif
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
WorkWindow
::
WorkWindow
(
Window
*
pParent
,
WinBits
nStyle
)
:
WorkWindow
::
WorkWindow
(
Window
*
pParent
,
WinBits
nStyle
)
:
...
...
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