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
80c90f51
Kaydet (Commit)
80c90f51
authored
Mar 09, 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 graphic selection
Change-Id: I9bf9193a2130316caca83030c4fb5dd588c5c0e0
üst
81886532
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
InvalidationHandler.java
...ndroid3/src/java/org/libreoffice/InvalidationHandler.java
+16
-0
No files found.
android/experimental/LOAndroid3/src/java/org/libreoffice/InvalidationHandler.java
Dosyayı görüntüle @
80c90f51
...
@@ -66,6 +66,9 @@ public class InvalidationHandler implements Document.MessageCallback {
...
@@ -66,6 +66,9 @@ public class InvalidationHandler implements Document.MessageCallback {
case
Document
.
CALLBACK_CURSOR_VISIBLE
:
case
Document
.
CALLBACK_CURSOR_VISIBLE
:
cursorVisibility
(
payload
);
cursorVisibility
(
payload
);
break
;
break
;
case
Document
.
CALLBACK_GRAPHIC_SELECTION
:
graphicSelection
(
payload
);
break
;
case
Document
.
CALLBACK_HYPERLINK_CLICKED
:
case
Document
.
CALLBACK_HYPERLINK_CLICKED
:
if
(!
payload
.
startsWith
(
"http://"
)
&&
!
payload
.
startsWith
(
"https://"
))
{
if
(!
payload
.
startsWith
(
"http://"
)
&&
!
payload
.
startsWith
(
"https://"
))
{
payload
=
"http://"
+
payload
;
payload
=
"http://"
+
payload
;
...
@@ -221,6 +224,19 @@ public class InvalidationHandler implements Document.MessageCallback {
...
@@ -221,6 +224,19 @@ public class InvalidationHandler implements Document.MessageCallback {
}
}
}
}
/**
* Handles the graphic selection change message
* @param payload
*/
private
void
graphicSelection
(
String
payload
)
{
if
(
payload
.
isEmpty
()
||
payload
.
equals
(
"EMPTY"
))
{
mTextCursorLayer
.
changeSelections
(
Collections
.
EMPTY_LIST
);
}
else
{
List
<
RectF
>
rects
=
convertPayloadToRectangles
(
payload
);
mTextCursorLayer
.
changeSelections
(
rects
);
}
}
public
synchronized
void
changeStateTo
(
OverlayState
next
)
{
public
synchronized
void
changeStateTo
(
OverlayState
next
)
{
changeState
(
mState
,
next
);
changeState
(
mState
,
next
);
}
}
...
...
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