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
bd3771e1
Kaydet (Commit)
bd3771e1
authored
Mar 11, 2015
tarafından
Tomaž Vajngerl
Kaydeden (comit)
Miklos Vajna
Mar 16, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: add to JNI - setGraphicSelection, resetSelection
Change-Id: Ib81763148b077423d3903802b13a11b15ba3b0c1
üst
bcc3163a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
Document.java
android/Bootstrap/src/org/libreoffice/kit/Document.java
+20
-1
lokandroid.cxx
desktop/source/lib/lokandroid.cxx
+14
-0
No files found.
android/Bootstrap/src/org/libreoffice/kit/Document.java
Dosyayı görüntüle @
bd3771e1
...
@@ -50,6 +50,12 @@ public class Document {
...
@@ -50,6 +50,12 @@ public class Document {
public
static
final
int
SET_TEXT_SELECTION_END
=
1
;
public
static
final
int
SET_TEXT_SELECTION_END
=
1
;
public
static
final
int
SET_TEXT_SELECTION_RESET
=
2
;
public
static
final
int
SET_TEXT_SELECTION_RESET
=
2
;
/**
* Set graphic selection types
*/
public
static
final
int
SET_GRAPHIC_SELECTION_START
=
0
;
public
static
final
int
SET_GRAPHIC_SELECTION_END
=
1
;
private
final
ByteBuffer
handle
;
private
final
ByteBuffer
handle
;
private
MessageCallback
messageCallback
=
null
;
private
MessageCallback
messageCallback
=
null
;
...
@@ -127,13 +133,26 @@ public class Document {
...
@@ -127,13 +133,26 @@ public class Document {
public
native
void
postMouseEvent
(
int
type
,
int
x
,
int
y
,
int
count
);
public
native
void
postMouseEvent
(
int
type
,
int
x
,
int
y
,
int
count
);
/**
/**
* Change text selection
* Change text selection
.
* @param type - text selection type
* @param type - text selection type
* @param x - x coordinate
* @param x - x coordinate
* @param y - y coordinate
* @param y - y coordinate
*/
*/
public
native
void
setTextSelection
(
int
type
,
int
x
,
int
y
);
public
native
void
setTextSelection
(
int
type
,
int
x
,
int
y
);
/**
* Change graphic selection.
* @param type - graphic selection type
* @param x - x coordinate
* @param y - y coordinate
*/
public
native
void
setGraphicSelection
(
int
type
,
int
x
,
int
y
);
/**
* Reset current (any kind of) selection.
*/
public
native
void
resetSelection
();
/**
/**
* Callback to retrieve messages from LOK
* Callback to retrieve messages from LOK
*/
*/
...
...
desktop/source/lib/lokandroid.cxx
Dosyayı görüntüle @
bd3771e1
...
@@ -291,6 +291,20 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Document_setText
...
@@ -291,6 +291,20 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Document_setText
pDocument
->
pClass
->
setTextSelection
(
pDocument
,
type
,
x
,
y
);
pDocument
->
pClass
->
setTextSelection
(
pDocument
,
type
,
x
,
y
);
}
}
extern
"C"
SAL_JNI_EXPORT
void
JNICALL
Java_org_libreoffice_kit_Document_setGraphicSelection
(
JNIEnv
*
pEnv
,
jobject
aObject
,
jint
type
,
jint
x
,
jint
y
)
{
LibreOfficeKitDocument
*
pDocument
=
getHandle
<
LibreOfficeKitDocument
>
(
pEnv
,
aObject
);
pDocument
->
pClass
->
setGraphicSelection
(
pDocument
,
type
,
x
,
y
);
}
extern
"C"
SAL_JNI_EXPORT
void
JNICALL
Java_org_libreoffice_kit_Document_resetSelection
(
JNIEnv
*
pEnv
,
jobject
aObject
)
{
LibreOfficeKitDocument
*
pDocument
=
getHandle
<
LibreOfficeKitDocument
>
(
pEnv
,
aObject
);
pDocument
->
pClass
->
resetSelection
(
pDocument
);
}
/* DirectBufferAllocator */
/* DirectBufferAllocator */
extern
"C"
SAL_JNI_EXPORT
jobject
JNICALL
Java_org_libreoffice_kit_DirectBufferAllocator_allocateDirectBufferNative
extern
"C"
SAL_JNI_EXPORT
jobject
JNICALL
Java_org_libreoffice_kit_DirectBufferAllocator_allocateDirectBufferNative
...
...
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