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
07997cba
Kaydet (Commit)
07997cba
authored
Ock 19, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: adapt doc browser to updated manifest that accepts Calc documents
Change-Id: I5398e225631097b31aa4f8418ffa40a6db323a42
üst
d4ebde60
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
17 deletions
+17
-17
arrays.xml
android/experimental/LOAndroid3/res/values/arrays.xml
+1
-1
FileUtilities.java
...LOAndroid3/src/java/org/libreoffice/ui/FileUtilities.java
+10
-10
GridItemAdapter.java
...Android3/src/java/org/libreoffice/ui/GridItemAdapter.java
+2
-2
LibreOfficeUIActivity.java
...d3/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
+2
-2
ListItemAdapter.java
...Android3/src/java/org/libreoffice/ui/ListItemAdapter.java
+2
-2
No files found.
android/experimental/LOAndroid3/res/values/arrays.xml
Dosyayı görüntüle @
07997cba
...
...
@@ -35,7 +35,7 @@
<string-array
name=
"file_view_modes"
>
<item
>
EVERYTHING
</item>
<item
>
DOCUMENTS
</item>
<
!-- <item>SPREADSHEETS</item> --
>
<
item>
SPREADSHEETS
</item
>
<item
>
PRESENTATIONS
</item>
<item>
DRAWINGS
</item>
</string-array>
...
...
android/experimental/LOAndroid3/src/java/org/libreoffice/ui/FileUtilities.java
Dosyayı görüntüle @
07997cba
...
...
@@ -24,9 +24,9 @@ public class FileUtilities {
// These have to be in sync with the file_view_modes resource.
static
final
int
DOC
=
0
;
//
static final int CALC = 1;
static
final
int
IMPRESS
=
1
;
static
final
int
DRAWING
=
2
;
static
final
int
CALC
=
1
;
static
final
int
IMPRESS
=
2
;
static
final
int
DRAWING
=
3
;
static
final
int
UNKNOWN
=
10
;
...
...
@@ -49,7 +49,7 @@ public class FileUtilities {
mExtnMap
.
put
(
".odt"
,
DOC
);
mExtnMap
.
put
(
".odg"
,
DRAWING
);
mExtnMap
.
put
(
".odp"
,
IMPRESS
);
//
mExtnMap.put(".ods", CALC);
mExtnMap
.
put
(
".ods"
,
CALC
);
mExtnMap
.
put
(
".fodt"
,
DOC
);
mExtnMap
.
put
(
".fodg"
,
DRAWING
);
mExtnMap
.
put
(
".fodp"
,
IMPRESS
);
...
...
@@ -59,7 +59,7 @@ public class FileUtilities {
mExtnMap
.
put
(
".ott"
,
DOC
);
mExtnMap
.
put
(
".otg"
,
DRAWING
);
mExtnMap
.
put
(
".otp"
,
IMPRESS
);
//
mExtnMap.put(".ots", CALC);
mExtnMap
.
put
(
".ots"
,
CALC
);
// MS
mExtnMap
.
put
(
".rtf"
,
DOC
);
...
...
@@ -69,26 +69,26 @@ public class FileUtilities {
mExtnMap
.
put
(
".pub"
,
DRAWING
);
mExtnMap
.
put
(
".ppt"
,
IMPRESS
);
// mExtnMap.put(".pps", IMPRESS);
//
mExtnMap.put(".xls", CALC);
mExtnMap
.
put
(
".xls"
,
CALC
);
// MS templates
mExtnMap
.
put
(
".dot"
,
DOC
);
mExtnMap
.
put
(
".pot"
,
IMPRESS
);
//
mExtnMap.put(".xlt", CALC);
mExtnMap
.
put
(
".xlt"
,
CALC
);
// OOXML
mExtnMap
.
put
(
".docx"
,
DOC
);
mExtnMap
.
put
(
".pptx"
,
IMPRESS
);
// mExtnMap.put(".ppsx", IMPRESS);
//
mExtnMap.put(".xlsx", CALC);
mExtnMap
.
put
(
".xlsx"
,
CALC
);
// OOXML templates
mExtnMap
.
put
(
".dotx"
,
DOC
);
mExtnMap
.
put
(
".potx"
,
IMPRESS
);
//
mExtnMap.put(".xltx", CALC);
mExtnMap
.
put
(
".xltx"
,
CALC
);
// Other
//
mExtnMap.put(".csv", CALC);
mExtnMap
.
put
(
".csv"
,
CALC
);
mExtnMap
.
put
(
".wps"
,
DOC
);
mExtnMap
.
put
(
".key"
,
IMPRESS
);
mExtnMap
.
put
(
".abw"
,
DOC
);
...
...
android/experimental/LOAndroid3/src/java/org/libreoffice/ui/GridItemAdapter.java
Dosyayı görüntüle @
07997cba
...
...
@@ -134,9 +134,9 @@ public class GridItemAdapter extends BaseAdapter {
*/
imageView
.
setImageResource
(
R
.
drawable
.
writer
);
break
;
/*
case FileUtilities.CALC:
case
FileUtilities
.
CALC
:
imageView
.
setImageResource
(
R
.
drawable
.
calc
);
break;
*/
break
;
case
FileUtilities
.
DRAWING
:
// FIXME: only for now ...
case
FileUtilities
.
IMPRESS
:
imageView
.
setImageResource
(
R
.
drawable
.
impress
);
...
...
android/experimental/LOAndroid3/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
Dosyayı görüntüle @
07997cba
...
...
@@ -570,9 +570,9 @@ public class LibreOfficeUIActivity extends LOAbout implements ActionBar.OnNaviga
case
FileUtilities
.
DOC
:
imageView
.
setImageResource
(
R
.
drawable
.
writer
);
break
;
/*
case FileUtilities.CALC:
case
FileUtilities
.
CALC
:
imageView
.
setImageResource
(
R
.
drawable
.
calc
);
break;
*/
break
;
case
FileUtilities
.
DRAWING
:
imageView
.
setImageResource
(
R
.
drawable
.
draw
);
break
;
...
...
android/experimental/LOAndroid3/src/java/org/libreoffice/ui/ListItemAdapter.java
Dosyayı görüntüle @
07997cba
...
...
@@ -117,9 +117,9 @@ public class ListItemAdapter implements ListAdapter{
case
FileUtilities
.
DOC
:
imageView
.
setImageResource
(
R
.
drawable
.
writer
);
break
;
/*
case FileUtilities.CALC:
case
FileUtilities
.
CALC
:
imageView
.
setImageResource
(
R
.
drawable
.
calc
);
break;
*/
break
;
case
FileUtilities
.
DRAWING
:
imageView
.
setImageResource
(
R
.
drawable
.
draw
);
break
;
...
...
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