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
48ae33bd
Kaydet (Commit)
48ae33bd
authored
Ock 30, 2015
tarafından
Tomaž Vajngerl
Kaydeden (comit)
Miklos Vajna
Şub 09, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: gather text selection handles inside TextSelection
Change-Id: I7bd13bea6aa58f7a1be4b9cfbc32f9d59c0b9e14
üst
1eb41148
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
12 deletions
+8
-12
LibreOfficeMainActivity.java
...id3/src/java/org/libreoffice/LibreOfficeMainActivity.java
+1
-5
TextSelection.java
.../LOAndroid3/src/java/org/mozilla/gecko/TextSelection.java
+6
-6
TextSelectionHandle.java
...roid3/src/java/org/mozilla/gecko/TextSelectionHandle.java
+1
-1
No files found.
android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java
Dosyayı görüntüle @
48ae33bd
...
...
@@ -125,11 +125,7 @@ public class LibreOfficeMainActivity extends LOAbout {
sLOKitThread
.
clearQueue
();
}
TextSelectionHandle
startHandle
=
(
TextSelectionHandle
)
findViewById
(
R
.
id
.
start_handle
);
TextSelectionHandle
middleHandle
=
(
TextSelectionHandle
)
findViewById
(
R
.
id
.
middle_handle
);
TextSelectionHandle
endHandle
=
(
TextSelectionHandle
)
findViewById
(
R
.
id
.
end_handle
);
mTextSelection
=
new
TextSelection
(
startHandle
,
middleHandle
,
endHandle
);
mTextSelection
=
new
TextSelection
(
mAppContext
);
mLayerClient
=
new
GeckoLayerClient
(
this
);
mLayerClient
.
setZoomConstraints
(
new
ZoomConstraints
(
true
));
...
...
android/experimental/LOAndroid3/src/java/org/mozilla/gecko/TextSelection.java
Dosyayı görüntüle @
48ae33bd
...
...
@@ -4,6 +4,7 @@
package
org
.
mozilla
.
gecko
;
import
android.app.Activity
;
import
android.graphics.RectF
;
import
android.util.Log
;
import
android.view.View
;
...
...
@@ -12,6 +13,7 @@ import org.json.JSONArray;
import
org.json.JSONObject
;
import
org.libreoffice.LOKitShell
;
import
org.libreoffice.LibreOfficeMainActivity
;
import
org.libreoffice.R
;
import
org.mozilla.gecko.gfx.Layer
;
import
org.mozilla.gecko.gfx.LayerView
;
import
org.mozilla.gecko.util.FloatUtils
;
...
...
@@ -29,12 +31,10 @@ public class TextSelection extends Layer {
private
float
mViewTop
;
private
float
mViewZoom
;
public
TextSelection
(
TextSelectionHandle
startHandle
,
TextSelectionHandle
middleHandle
,
TextSelectionHandle
endHandle
)
{
mStartHandle
=
startHandle
;
mMiddleHandle
=
middleHandle
;
mEndHandle
=
endHandle
;
public
TextSelection
(
Activity
context
)
{
mStartHandle
=
(
TextSelectionHandle
)
context
.
findViewById
(
R
.
id
.
start_handle
);
mMiddleHandle
=
(
TextSelectionHandle
)
context
.
findViewById
(
R
.
id
.
middle_handle
);
mEndHandle
=
(
TextSelectionHandle
)
context
.
findViewById
(
R
.
id
.
end_handle
);
// Only register listeners if we have valid start/middle/end handles
if
(
mStartHandle
==
null
||
mMiddleHandle
==
null
||
mEndHandle
==
null
)
{
...
...
android/experimental/LOAndroid3/src/java/org/mozilla/gecko/TextSelectionHandle.java
Dosyayı görüntüle @
48ae33bd
...
...
@@ -22,7 +22,7 @@ import android.widget.ImageView;
import
android.widget.RelativeLayout
;
public
class
TextSelectionHandle
extends
ImageView
implements
View
.
OnTouchListener
{
private
static
final
String
LOGTAG
=
"GeckoTextSelectionHandle"
;
private
static
final
String
LOGTAG
=
TextSelectionHandle
.
class
.
getSimpleName
()
;
public
enum
HandleType
{
START
,
MIDDLE
,
END
};
...
...
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