Commit Graph

1137 Commits

Author SHA1 Message Date
e57a6494da android: touch pop-ups keyboard and sends mousebuttondown event
Change-Id: I98bf7c5ae4d31ab1a48321d1c5a3a4858cd3e00b
2015-01-26 10:27:46 +01:00
f6e82e2e8b android: convert to document coor. and send it with touch event
Change-Id: I11286f73d23b21ee1e35e332b64b8bb37f7aaae8
2015-01-26 10:27:46 +01:00
06da73832a android: view point to document point conversion updated
Change-Id: Ie8a712f3fa24d0ffeef3ef524c02e97acdb1237e
2015-01-26 10:27:45 +01:00
525d73fc41 android: extend touch event with transformed document coordinate
Change-Id: I17e48bd39b799dc41b8d0402652f70d33ba002d7
2015-01-26 10:27:45 +01:00
41e5824de8 android: add mouseButtonDown(Up) to TileProvider + impl.
Change-Id: I1ca2242d2bc7ee7d2d48a4a5f5bcc6e77edfaa2d
2015-01-26 10:27:45 +01:00
8fa9f14a77 android: add some comments to TileProvider interface
Change-Id: I1c6f7bccda2392235242f5c26af1437f1365f728
2015-01-26 10:27:45 +01:00
d0b50231d9 android: translate DEL/ENTER in LOKitTileProvider
Change-Id: Idda4769fc85a4059ba46706430f30ed247dddaa3
2015-01-26 10:27:45 +01:00
c1d2c39afb android: use getUnicodeChar() in LOKitTileProvider
Follow gtktiledviewer's approach for keycodes: unless it's a special
key, ask the system to provide the Unicode equivalent and send that.
This makes typing work, except for special keys.

Change-Id: If9891ddfb0d52e1160099aa00580d1b261e71e61
2015-01-26 10:27:44 +01:00
a791560cb5 android: make sure the soffice.cfg directory is always available
Otherwise FSStorageFactory::createInstanceWithArguments() would throw,
resulting in a css::configuration::CorruptedConfigurationException
later, that makes LO throw up its hands in Desktop::Main() and say that
the instset is simply corrupted, there is no point in continuing
further.

Change-Id: I3a401ee77f4fbf1a42a09c5fedd7681b4f32e952
2015-01-26 10:27:44 +01:00
004695708f android: disable Impress View -> Slide Pane
Change-Id: I5a3c014894fe74781cf050f3cd2ce2bcc0395cb3
2015-01-26 10:27:44 +01:00
dbde7f6ab8 android: add postMouseEvent to LOKit JNI interface
Change-Id: I652a0c365c4a1413226cdd4dc7910e65ac2a5285
2015-01-26 10:27:44 +01:00
3928932fe3 android: 'make release-apk' now also accepts the example document.
Change-Id: I4144d0ed42a50be4fa91f377f78a20c28fda36f6
2015-01-26 10:27:44 +01:00
ae924ed3d0 android: Rename 'make sign' to 'make release-apk'.
This now also allows to specify the version number; now you want to use:

cd android/
make versionCode=<previous_version_num+1> key=<key_name> release-apk

Change-Id: I078e8dbbe671969fc3b228ac987cdb9a4a53b281
2015-01-26 10:27:43 +01:00
2d584cb7cc android: Bind the release/debug setting to --enable-release-build.
Change-Id: I9e9849d91dda0ff9361ef9a0023be18406b067d0
2015-01-26 10:27:43 +01:00
4c9030beff android: it doesn't hurt to log the document filename on load
Change-Id: I18554052e543a8799ebb45727947a3466b1c793c
2015-01-26 10:27:43 +01:00
79317f2fef android: Fix loading files that have space in the filename
Change-Id: Icf540bf199b3daf79e4eca9b0a403978b6cae18c
2015-01-26 10:27:43 +01:00
167412ce5e android: Add makefile rule to sign the resulting .apk.
To sign, do:

cd android
make key=<your_key_name> sign

Change-Id: I20214e034f997125ccfd122b97d18ae141130336
2015-01-26 10:27:42 +01:00
94ec99db8a android: fix crash in tile provider while closing the document
The problem was that for large documents if "back" was pressed quickly,
then we closed the document, but rendering thumbnails for the different
parts was still in progress.

Just make sure we don't crash when the underlying document is gone.

E/AndroidRuntime( 8902): java.lang.NullPointerException
E/AndroidRuntime( 8902):        at org.libreoffice.LOKitTileProvider.thumbnail(LOKitTileProvider.java:244)
E/AndroidRuntime( 8902):        at org.libreoffice.ThumbnailCreator$ThumbnailCreationTask.getThumbnail(ThumbnailCreator.java:78)
E/AndroidRuntime( 8902):        at org.libreoffice.LOKitThread.createThumbnail(LOKitThread.java:170)
E/AndroidRuntime( 8902):        at org.libreoffice.LOKitThread.processEvent(LOKitThread.java:148)
E/AndroidRuntime( 8902):        at org.libreoffice.LOKitThread.run(LOKitThread.java:120)

Change-Id: I93e8e1ea19545ca196ef6f59d19528bb42f3676d
2015-01-26 10:27:42 +01:00
2b67566ade android: Set the debug / release according to the configure setting.
Change-Id: Ic1c4328b21e1cdca2fdb1aee72b8563af8f770c7
2015-01-26 10:27:41 +01:00
722d4f0cab android: Fix release build via top level 'make'.
Change-Id: I342e3dfd1e142d4be14162fd8a68876d038ed5ea
2015-01-26 10:27:41 +01:00
609367d3c9 android: Set the package name correctly.
Change-Id: Iab771f65121e477cda871a04098df306399628e7
2015-01-26 10:27:41 +01:00
ef99aeea0e android: eliminate hardcoded LibreOfficeMainActivity and package in LOAbout
Change-Id: I276f27a96b4fb970520dec588b9321731e7fc26b
2015-01-26 10:27:41 +01:00
872e5d8551 Revert "android: store tiles in Map for faster access to tiles"
This reverts commit 6263bcfd70bf76dbcdf6b7e35bb02e48e44cbd94.

Conflicts:
	android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/ComposedTileLayer.java

Change-Id: I2fbd0b67aa3ccf0f629ce4af8788236d297144e5
2015-01-26 10:27:41 +01:00
784a1765d7 android: guard rendering if buffer could not be allocated
Change-Id: I51a8f7f56531e5f0c4cb966c44be40913c557da7
2015-01-26 10:27:40 +01:00
3596abe1d8 android: getRect renamed to getRectF - adapt the code to this
Change-Id: Id0248803fbd8fedf846d7741a2faddb9bfd171e0
2015-01-26 10:27:40 +01:00
3135fbb42e android: invalidate only new/changed tiles - big perf. improvement
Previously on every rerender or draw event all tiles were
invalidated (which means they were reuploaded to GPU even when
the tiles didn't change). This was changed to only invalidate
tiles that did actually change.

Change-Id: I50a8b51b9d5b44797ac3e2dedd20cfb07fb2bb8b
2015-01-26 10:27:40 +01:00
5ad4180191 android: make editing switchable via LOKitShell
Change-Id: I329dbead616527a985eba1f3b42cddf573501e86
2015-01-26 10:27:40 +01:00
07a736ff67 android: add getCSSRect to TileIdentifier and use id in SubTile
Change-Id: I565a5f88d5913f5337f5c3d32d54be71a32f542a
2015-01-26 10:27:40 +01:00
f3fdc828f1 android: small cleanup of ComposedTileLayer
Change-Id: Ifa4b35fa23a754c0ba0dbf63653986e61e6cb399
2015-01-26 10:27:39 +01:00
70766d8cb7 android: construct a "css" rect of the tile in TileIdentifier
Change-Id: I98417dbb6b607b127540292fcae6a8efce4a7da4
2015-01-26 10:27:39 +01:00
61c368ddde android: cleanup new tileid's if they gone out of viewport scope
It can happen that the viewport moves so fast that the tileid is
not valid anymore before it could even be rendered to.

Change-Id: I5ff7d3de6b289ca48ea8a8974705d8306e1be86b
2015-01-26 10:27:39 +01:00
d38b6618ca android: make the about dialog scrollable
Content was cut in landscape mode on smaller screens.

Change-Id: Ic3b52da7a4ba9e093946be814afa93226cc34c4b
2015-01-26 10:27:39 +01:00
a4684722cc android: revert the app package name & relative activity name
Package name must stay "org.libreoffice" as code gen uses this
for the package name of resources (generated org.libreoffice.R)
which we reference in the source code. Usual practice is to change
the package name at packaging step. The code was changed to allow
this.

Change-Id: I4e36f46c4b8d620f3c9b20fe4fd39737c76624bc
2015-01-26 10:27:38 +01:00
aff19a6c8c android: add dummy resurce to get the correct package name
Change-Id: I27a40108d9523058b6340d870105667bb4c0bdae
2015-01-26 10:27:38 +01:00
7aad6171fa android: don't need Bootstrap anymore
Change-Id: I271ab1e7e99dedf46e000169c6b7374898421747
2015-01-26 10:27:38 +01:00
f34f51bfbf android: eliminate hardcoded LibreOfficeMainActivity and package
Change-Id: I365ea3b51d9a8d965eca996d100441d24b8ff5a6
2015-01-26 10:27:37 +01:00
166df60cfc android: Remove 200kb docu.png from resources as it is not used
Change-Id: I524669456a2ea2725d09363e2574079ade172df1
2015-01-26 10:27:37 +01:00
07997cba77 android: adapt doc browser to updated manifest that accepts Calc documents
Change-Id: I5398e225631097b31aa4f8418ffa40a6db323a42
2015-01-26 10:27:37 +01:00
d4ebde60a8 android: re-enable calc documents associations with LO viewer
Change-Id: I89424e575a926c189be499e5fe2b811817ccd2fb
2015-01-26 10:27:36 +01:00
462d48ccf5 android: make package name configurable
Change-Id: I3897c551676bcb7d3237be3dde74123c5ddd8f84
2015-01-26 10:27:36 +01:00
6debb045a0 android: show vendor in LOAbout
Change-Id: Iddcf953718083b218d41fcb895d28adb5808a8f4
2015-01-26 10:27:36 +01:00
d1aad6177c android: fix invalidation rect calculation in ComposedTileLayer
Change-Id: I5e0a59d6b966daea2a2033b0f52dc6983b837ca1
2015-01-26 10:27:35 +01:00
96fa96b084 android: cleanup GeckoLayerClient
Change-Id: If9a7c50249c9e44dce1a8e3c02a8b2f568dedfb1
2015-01-26 10:27:35 +01:00
29d65fbdb5 android: remove getDisplayMetrics as it exists in LOKitShell
Change-Id: I5e7fa1b9c99707db382c555c5ffdfe601eb4622a
2015-01-26 10:27:34 +01:00
3cb66f5ef8 android: move getMemoryClass to LOKitShell
Change-Id: I2db92ec20c1999c0a4373fa25690680cacd79331
2015-01-26 10:27:34 +01:00
61682ae511 Android: i18n-ized document provider names.
The factory will need access to the Context to be able to transform
the resources into Strings, and the only way to receive it is from
the Activity. Implemented initialize(Context) for that reason.

Change-Id: If6e81a9c4ad73180851e43968ac97aa1e74231e7
2015-01-19 09:46:44 +00:00
9f3716cb7d Android: reimplement DocumentProviderFactory as a singleton
The factory will require some objects that are not available from a
static context.

Change-Id: Idf852f5b9ab3023644b1a9577951a94c4f21c4e9
2015-01-19 09:46:44 +00:00
e0517616fa Android: prevent browsing further than the root directory.
We must ensure that two LocalFile objects pointing to the same File
are equal so the check to decide if the application button means "up"
works.

Change-Id: Ib83b34a210eec9a3f038c27d27a4e9b305c98ef9
2015-01-19 09:46:43 +00:00
233138918d Android: add UI selector for the available IDocumentProviders.
Implemented a DrawerLayout in the main activity where the providers
are listed. Also added the class DocumentProviderFactory which keeps
the instances of the providers.

Change-Id: I821958e93b9ea1008921db321e825648a8766405
2015-01-19 09:46:43 +00:00
280f1c03a7 Android: implement LocalDocumentsDirectoryProvider.
A convenience Document Provider to browse the /sdcard/Documents
directory.

Change-Id: Ib412d9b54dfb0e54ac014cf80ce94f067b2f4924
2015-01-19 09:46:43 +00:00