Commit Graph

1522 Commits

Author SHA1 Message Date
Jan Holesovsky
f36302e41d android: Remove unused icons.
Change-Id: Ia844806ad3bff92fcace2765fb3b39ab729a6b28
2015-02-16 09:20:46 +01:00
Jan Holesovsky
e27387a3d5 android: Set a more verbose SAL_LOG.
Change-Id: I7ce3d8eeaaa307ad2c779b2b57d5d3f34258ae5f
2015-02-16 09:20:44 +01:00
Thorsten Behrens
3d403f2af2 Related: tdf#63690 - remove rtl_logfile
This was unused since the earlier cleanup.

Change-Id: Ia56641c4242037a0ce501e43939b8dc862499f0e
2015-02-14 00:46:15 +01:00
Jacobo Aragunde Pérez
0f808374af Android: get the file to share in a different thread.
Share feature for cloud files will probably not work properly as it
is, but with this patch we prevent a crash at least.

Change-Id: I95176e9e855a37adf1d3c46edceb0dc6067d9884
2015-02-12 20:23:03 +00:00
Jacobo Aragunde Pérez
9e8fa85691 Android: improve error handling for document providers.
Now some operations in document providers may throw a RuntimeException
in case of error. The main activity is ready to catch them and show an
error message.

Change-Id: Iad7249dbdc06b2a0890d5435ad65284b728e9707
2015-02-12 20:23:03 +00:00
Jacobo Aragunde Pérez
5654e0f6af Android: fix share feature for .odp/.odt files
Added our own map of MIME types because we cannot rely on Android's.

Change-Id: I11d4b639f42d30aa8adb0ea092797fb30b4fc8b9
2015-02-10 18:03:49 +00:00
Jacobo Aragunde Pérez
cc9d29ff7b Android: run open(IFile) in a different thread.
Change-Id: I3a7023dba7621f9bd066edb9c0894df48313b117
2015-02-10 09:40:43 +00:00
Jacobo Aragunde Pérez
4810f108c4 Android: run openParentDirectory() in a different thread.
The Document Provider framework will implement access to network
services in the future, and network operations must be run in separate
threads.

Change-Id: Ifcba8f28cc4dbffaf2946c12749aa38d0eb11923
2015-02-10 09:40:34 +00:00
Jacobo Aragunde Pérez
bc8cb4e3b2 Android: run openDirectory() in a different thread.
The Document Provider framework will implement access to network
services in the future, and network operations must be run in separate
threads.
2015-02-10 09:40:26 +00:00
Jacobo Aragunde Pérez
ca022d5047 Android: run IDocumentProvider setup in a different thread.
The Document Provider framework will implement access to network
services in the future, and network operations must be run in separate
threads.
2015-02-10 09:40:19 +00:00
Miklos Vajna
4b70710420 lok::Document::postMouseEvent(): allow double-click
Change-Id: Idaddd28d906e7508d4d2c5aab916b06fbe021beb
2015-02-09 08:12:10 +01:00
Tomaž Vajngerl
768dea15b4 android: copy document to temp file when using content scheme
We get the data from Intent, which has data identified by an uri.
An uri can use many schemes but we support file (loading directly
from a file) or content (used by GMail App). When loading from
content, the document is available through a stream and has to be
stored into a temporary file locally first, and then that file is
should be used as input for loading the document.

Change-Id: Ia4ffa8ff02b9737b91a41c03c2eb335d28fe1d61
2015-02-09 08:12:10 +01:00
Tomaž Vajngerl
24b28151c8 android: allow only "file" and "content" URI scheme
Content scheme is used by GMail App for example.

Change-Id: I3583d38c42b9ad96209f0cd178ea6957a7aec86c
2015-02-09 08:12:10 +01:00
Jan Holesovsky
0059a213c1 android: When loading fails, make sure we don't crash the next time.
Until now, when the loading failed, the next attempt to open a document
lead to a crash; fixed.

Change-Id: Ibb55b4799169e1521f076cf38380e429a50258a3
2015-02-09 08:12:10 +01:00
Jan Holesovsky
9b482b325b android: Initialize for tiled rendering earlier.
We need to prepare the document ASAP, otherwise we will get zero size when eg.
presentation is switched to Notes view.

Change-Id: I0d3ccea18058052994d91868ec1346c5de25faff
2015-02-09 08:12:09 +01:00
Miklos Vajna
36e701b1db android: fix missing drawingML preset shapes
Change-Id: I7a22b9bcacd26b837c00bb09743ab2e176d60746
2015-02-09 08:12:09 +01:00
Tomaž Vajngerl
2f018339be android: blinking cursor
Change-Id: I1e2d5df7917ec0f8e780e3e3481dadd10b1b76ed
2015-02-09 08:12:08 +01:00
Tomaž Vajngerl
e2d4cfa425 android: show text cursor in place suggested by invalid. event
Text cursor is a simple line (currently implemented as a drawable
and streched), which height is adaptable. It is drawn in a different
layer than the document.

Change-Id: I40509a866e3a3173e3efcb88e73066565a1619ae
2015-02-09 08:12:08 +01:00
Tomaž Vajngerl
48ae33bd85 android: gather text selection handles inside TextSelection
Change-Id: I7bd13bea6aa58f7a1be4b9cfbc32f9d59c0b9e14
2015-02-09 08:12:08 +01:00
Jan Holesovsky
1eb4114806 android: Always log the SAL_WARN's.
Change-Id: Iab470097cc09835efd5ab3c13a0defb267c985a0
2015-02-09 08:12:08 +01:00
Tomaž Vajngerl
72e7e945d0 android: TextSelection improvements
Change-Id: I485976edda5e2bb41381ad3a90b8d2139ca7d5f4
2015-02-09 08:12:07 +01:00
Tomaž Vajngerl
c9893aa858 android: make back button work again - return false in OnKeyDown
Change-Id: I8340e5f27475f38f8384d883ac0bb7fccf1135f1
2015-02-09 08:12:07 +01:00
Tomaž Vajngerl
a6ae67d897 android: mute invalid. if not editing, don't show handle on touch
Change-Id: I551af3849f9b0a10106bf02fff220fa4600eb07f
2015-02-09 08:12:07 +01:00
Tomaž Vajngerl
e71b15ccc5 tdf#87098 don't adjust zoom/position for spreadsheets
Change-Id: Ieb908980a931b123e2c48fe3ecdc7830b48810ed
2015-02-09 08:12:06 +01:00
Tomaž Vajngerl
e1f9b5394b android: Actually we don't need ViewFactory
Change-Id: I2d1ccafefe9c52d0536601ba7ff219e6547ceb20
2015-02-09 08:09:29 +01:00
Tomaž Vajngerl
aecce900af android: integrate text selection handles from Fennec
Integrate text selection handles from Fennec and insert middle
handle when a cursor invalidation event is recieved from LO.

Change-Id: I6ba31d46bf89555bdbca9ce4be666039e8bc9041
2015-02-09 08:09:28 +01:00
Tomaž Vajngerl
d720330c91 android: get LayerView from LOKitShell
Change-Id: I4fa3f7b0906eabd41d9e44a8780c2cc62241b41d
2015-02-09 08:09:27 +01:00
Tomaž Vajngerl
3d8c72ec68 android: Use callback types, extract string to rect conversion
Change LOKitTileProvider to use callback types defined in Document.
Extract conversion from payload string to rect into its own method
and use it in INVALIDATE_TILES and INVALIDATE_VISIBLE_CURSOR.

Change-Id: Ic908fb187568d4b6fd73770448198e1e752cc2c6
2015-02-09 08:09:26 +01:00
Tomaž Vajngerl
a8f0257871 android: Add callback types to Document
Change-Id: I93d117d42b6ccf48b58f9c8d64be0266ff36c6f3
2015-02-09 08:09:26 +01:00
Tomaž Vajngerl
17a5b8b8ec android: key press to key event, use InputConnectionHandler
Change key press event in LOEvent to a more general key event to
support key release.

Use InputConnectionHandler to react on key events, create
LOKitInputConnectionHandler as the implementation for LOKit.

Change-Id: I4282aa06cdd85ad4d80330f4d2a9c43eb67df30a
2015-02-09 08:09:26 +01:00
Tomaž Vajngerl
dd6e502745 android: move TouchEventHandler into JavaPanZoomController
Change-Id: I6de3c0cdf3a0ec646fd63c9cc2c5a9a153e3e574
2015-02-09 08:09:25 +01:00
Tomaž Vajngerl
43bbf53bba android: remove unneded code from GeckoLayerClient
Change-Id: I5c7af6dfa7c921b186972b7b8d7bc079ddec0629
2015-02-09 08:09:25 +01:00
Jacobo Aragunde Pérez
f3eccc6553 tdf#87432: normal icons for folders in android doc browser
The code used to draw a black circle and populate it with thumbnails
of the documents inside the folder, but they are always empty because
we are not generating any thumbnails.

Change-Id: Id0b63f7e901525b5a962d12441cda84dfeb59d52
2015-02-05 10:31:25 +01:00
Tor Lillqvist
bfceafa67e Bin obsolete comments 2015-02-01 13:43:55 +01:00
Tor Lillqvist
1895fd2195 Copy only *-debug.apk
We don't want the silly 'unaligned' apk to end up being uploaded.
2015-02-01 13:41:48 +01:00
Tomaž Vajngerl
e57a6494da android: touch pop-ups keyboard and sends mousebuttondown event
Change-Id: I98bf7c5ae4d31ab1a48321d1c5a3a4858cd3e00b
2015-01-26 10:27:46 +01:00
Tomaž Vajngerl
f6e82e2e8b android: convert to document coor. and send it with touch event
Change-Id: I11286f73d23b21ee1e35e332b64b8bb37f7aaae8
2015-01-26 10:27:46 +01:00
Tomaž Vajngerl
06da73832a android: view point to document point conversion updated
Change-Id: Ie8a712f3fa24d0ffeef3ef524c02e97acdb1237e
2015-01-26 10:27:45 +01:00
Tomaž Vajngerl
525d73fc41 android: extend touch event with transformed document coordinate
Change-Id: I17e48bd39b799dc41b8d0402652f70d33ba002d7
2015-01-26 10:27:45 +01:00
Tomaž Vajngerl
41e5824de8 android: add mouseButtonDown(Up) to TileProvider + impl.
Change-Id: I1ca2242d2bc7ee7d2d48a4a5f5bcc6e77edfaa2d
2015-01-26 10:27:45 +01:00
Tomaž Vajngerl
8fa9f14a77 android: add some comments to TileProvider interface
Change-Id: I1c6f7bccda2392235242f5c26af1437f1365f728
2015-01-26 10:27:45 +01:00
Miklos Vajna
d0b50231d9 android: translate DEL/ENTER in LOKitTileProvider
Change-Id: Idda4769fc85a4059ba46706430f30ed247dddaa3
2015-01-26 10:27:45 +01:00
Miklos Vajna
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
Miklos Vajna
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
Miklos Vajna
004695708f android: disable Impress View -> Slide Pane
Change-Id: I5a3c014894fe74781cf050f3cd2ce2bcc0395cb3
2015-01-26 10:27:44 +01:00
Tomaž Vajngerl
dbde7f6ab8 android: add postMouseEvent to LOKit JNI interface
Change-Id: I652a0c365c4a1413226cdd4dc7910e65ac2a5285
2015-01-26 10:27:44 +01:00
Jan Holesovsky
3928932fe3 android: 'make release-apk' now also accepts the example document.
Change-Id: I4144d0ed42a50be4fa91f377f78a20c28fda36f6
2015-01-26 10:27:44 +01:00
Jan Holesovsky
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
Jan Holesovsky
2d584cb7cc android: Bind the release/debug setting to --enable-release-build.
Change-Id: I9e9849d91dda0ff9361ef9a0023be18406b067d0
2015-01-26 10:27:43 +01:00
Tomaž Vajngerl
4c9030beff android: it doesn't hurt to log the document filename on load
Change-Id: I18554052e543a8799ebb45727947a3466b1c793c
2015-01-26 10:27:43 +01:00