184 Commits

Author SHA1 Message Date
brainbreaker
1503769fe1 tdf#106325 - No way to create a new Document
This commit will add the ability to create a new document.
A FAB is used in home screen which on expansion gives
four options namely new writer document, new impress,
new Sheet or new Draw. Two new events loadNewDocument
and saveDocumentAs have been added.
Another major change includes the use of constraint layout
in LOUIActivity layout as it decreases nesting of views and
improves the app performance. This was needed because
of the new FAB layouts being added.
Support for vector drawables has been enabled.

Change-Id: Ia3ea17f73c0d8514f8ddb7b9a1cbd2ce7de6ac08
Reviewed-on: https://gerrit.libreoffice.org/35183
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-03-30 19:59:10 +00:00
Mert Tumer
088fb93a7b tdf#106369 added toggle status ability for the list buttons
Change-Id: Ic3132441bac57abf36e3588e6871c5b14a47c25d
Reviewed-on: https://gerrit.libreoffice.org/35427
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-03-19 21:45:20 +00:00
aleksandar-stefanovic
11e443bfe1 Removed unnecessary imports
Import redundancy reported by Android Studio.

Change-Id: If46a43bb18268877d41d4957094acc543c4588fd
Reviewed-on: https://gerrit.libreoffice.org/32496
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2017-01-11 06:53:14 +00:00
Christian Lohmaier
f6a74ce9bb no need for IPC on Android, removes the need for the cache-hack
removing the cache on each launch prevented opening files via intents
(i.e. from your mail application) unless the viewer was already running,
as it also deleted the temporary file that was created from the intent.

Change-Id: I0a4d9432f475e8434902ae11fc2b0c35fd25a71f
2016-03-23 15:50:17 +01:00
Peter Foley
2879dceaf5 improve android build status reporting
Change-Id: I29f404dc5aee27b592eac7585c5142b91060fe5c
Reviewed-on: https://gerrit.libreoffice.org/21589
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-01-21 07:26:38 +00:00
Mihai Varga
96cd2abd74 LOK: setClientZoom() - sets the client zoom level
We need to know the client's view level to correctly handle the mouse
events in calc. PaintTile() set a zoom level that corresponds to the
requested tiles and previously postMouseEvent would call SetZoom(1,1).
Now we can make use of knowing the client's view level and call
SetZoom() with the correct parameters

Change-Id: I34b5afcdcc06a671a8ac92c03e87404e42adf4cd

Conflicts:
	sc/source/ui/unoobj/docuno.cxx
2015-11-13 09:55:19 +02:00
Tomaž Vajngerl
6d9124de6f android: update JNI facade, rename mouse/keyboard event flags
Change-Id: Ia2b9a812717d05c7d98d47bf0fe5fd293029d045
2015-11-01 22:59:04 +01:00
Tomaž Vajngerl
f70254caf4 android: remove CommandLine.java as we don't use it anymore
Change-Id: Ib487d4f948dde2027bebc914bb3fe43b55c6d50b
2015-11-01 22:59:03 +01:00
Tomaž Vajngerl
c8dcec9247 android: remove the native DirectBufferAllocator
Change-Id: I41d25d288253f1b35c268ba70b8384812fa567e5
2015-10-21 15:17:10 +02:00
Christian Lohmaier
8840a66fac allow using Android Studio with lldb to debug native part
and of course also for the Java part

Using build-id linker flag allows lldb to map the installed .so to the
non-stripped version on the buildhost.

Also ndk-gdb supports specifying a different package name on the
commandline, so no need for the error in configure anymore.

Change-Id: If6887a27cc8ab15ee6ab612502cacf0a22ade737
2015-10-14 21:24:52 +02:00
Christian Lohmaier
143fb0a4b5 move extracting assets to Java & use AssetManager to access assets
using AssetsManager in both java as well as native parts allows to
handle files both with and without compression transparently

Change-Id: If02f1159c498be7ea965fd9c217410722f2dca1f
2015-10-11 02:03:43 +02:00
Christian Lohmaier
ee8257a1c7 migrate android build to gradle
move preparation tasks (creating assets/processing files) from the
makefile into the gradle script

This allows much easier integration into android-studio (just open
android/source with android studio after running make to compile the
native library)

Change-Id: I9a9d6832797c24a7e195a1c7954cd6d20f5a8496
2015-10-11 02:03:13 +02:00
Christian Lohmaier
1a6ec13d08 tdf#93281 clean cache directory on each start
to avoid segfault in native lib.

It's only a workaround, but I couldn't see what's wrong with the
cache...

Change-Id: Iceeee1e190bbbd6efe336d84ddcbd8c4d3a1c621
2015-10-03 22:54:39 +02:00
Christian Lohmaier
de376cb1c4 android: remove no longer used files
Change-Id: Id3b71ac50e3c8ce9705f6df18edaaaa6ba8ad3fd
2015-10-03 22:54:37 +02:00
Miklos Vajna
4475c17da5 android: fix make install and don't use ant -quiet by default
Unlike 'make -s', 'ant -quiet' will stay silent even if there was an
error.

Change-Id: Iba921d3cde48875f7a6da4c5ba811cab46dfb89f
2015-10-01 16:58:08 +02:00
Tor Lillqvist
827e78fcb2 Revert "revert back to android-21 target until tinderbox gets updated"
Now it has been updated.

This reverts commit 4e47ed7e5aad8bde548b4953baba13cf99b6fd9c.
2015-09-28 14:45:09 +03:00
Christian Lohmaier
4e47ed7e5a revert back to android-21 target until tinderbox gets updated
Change-Id: Ief38ef9cc4f167caef8d991c9543161997682418
2015-09-25 16:46:28 +02:00
Christian Lohmaier
45c27ffcfd android.util.FloatMath is deprecated/was removed in ver 23
replace with corresponding Math functions and bump android sdk target to
23 to be able to use current appcompat-v7

pre-JIT FloatMath was faster, but since then was wrapper to Math anyway
http://developer.android.com/reference/android/util/FloatMath.html

Change-Id: I19e316fb7d32e616162a70fca8c565fa320a8c1a
2015-09-24 22:47:59 +02:00
Norbert Thiebaud
a8db357874 gbuild/config stop using VERBOSE, use only verbose=t
configure.ac was setting VERBOSE=YES/NO when really
we use verbose=t or verbose=

Change-Id: I47aee8d177cb2d788a62ecdbbb9cc3695c2bb299
Reviewed-on: https://gerrit.libreoffice.org/17634
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-11 04:34:45 +00:00
Andrea Gelmini
ffa8892c5a Fix typos
Change-Id: I75b4ad61785bf0ba1cb07735d938c0977356b8cc
Reviewed-on: https://gerrit.libreoffice.org/16705
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-07-04 10:23:17 +00:00
Tor Lillqvist
ab8cbb6cc1 Let's simplify the paths and be less 'experimental' 2015-05-21 17:10:19 +01:00
Tor Lillqvist
72a688db73 Remove more obsolete Android code: The 'AppSupport' stuff 2015-05-21 14:51:59 +01:00
Jan Holesovsky
fe731a2f9f android: Plain .component files are not used from what I know.
Change-Id: I6e70dd44430a7b0e61c7618e3f0da42deadcd43d
2015-05-03 19:10:52 +02:00
Siqi Liu
cc54da2237 java part handles received statechange callback 2015-04-13 16:22:49 +02:00
Tor Lillqvist
3d177c7b6d Bootstrap.initVCL is not used by our Android app any more
Change-Id: Id1e58547cf2b0786d7a2ca29eae8bbcdd644fdd5
2015-03-30 16:01:38 +03:00
Jack Leigh
e41e571072 android: Bump to android-21
Change-Id: Ifbe9a316795fc0519119aa9420152118f3926653
Reviewed-on: https://gerrit.libreoffice.org/14946
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2015-03-30 09:23:46 +02:00
Tor Lillqvist
4cc1bcbaed Kill dead <touch/touch.h> API
Has all been obsoleted by LibreOfficeKit.

Only some MOBILE_* constant #defines are now left in touch.h, but probably
those are used only by dead code.

Change-Id: I646945c4408b4e6cd5510da535cfc12088dd391c
2015-03-24 15:30:27 +02:00
Miklos Vajna
b0cb454f4a android: add debugrun Makefile target
Also, if we are at it:

- clean up 'run' as well: since the doc browser is the default activity,
  no need to pass the test doc path anymore
- make 'install' not depend on build: a full build would need a toplevel
  'make' anyway

Change-Id: Ia55d52f767ab3e0be02a753a95b2aac02f8491cc
2015-03-23 09:19:05 +01:00
Jan Holesovsky
5df6cd16a2 android: Make the Bold button actually work - switches to typing in bold.
Change-Id: I48da0f3cc918bda1cdb396b4ea72a82eddafb9a8
2015-03-16 09:38:10 +01:00
Tomaž Vajngerl
bd3771e105 android: add to JNI - setGraphicSelection, resetSelection
Change-Id: Ib81763148b077423d3903802b13a11b15ba3b0c1
2015-03-16 09:38:07 +01:00
Tomaž Vajngerl
1771f21e2b android: use LOK_SETTEXTSELECTION_RESET as it is meant to be used
Change-Id: I09f175a09c8b4c9468e2221274b17216b23b76ff
2015-03-16 09:38:02 +01:00
Tomaž Vajngerl
bdd8a68c7b android: make & build appcompat-v7 library, up target to v21
Previously we included the android support library v4 for some
GUI elements like GridView. This commit in addition adds the v7
appcompat library which is needed for the new Lollipop style
Toolbar and many other new GUI elements.

The appcompat v7 library is not distributed as only a jar file
but needs to be build (as it includes additional resources) and
included as a library project. So to do this the content is copied
from SDK and build with the build system. The files also include
the v4 so it doesn't need to be copied from SDK anymore.

The target had to be raised to v21 (Lollipop), however the minimum
SDK version remains unchanged.

Change-Id: I4f1a6ce69e7f6c3f9df784a6835f376a01d4dfdb
2015-03-16 09:37:58 +01:00
Tomaž Vajngerl
049aa53dc2 android: add CALLBACK_GRAPHIC_SELECTION to LOK facade
Change-Id: I105f8811f810b393cac8518b42d77f8bd4d0c763
2015-03-09 10:16:21 +01:00
Siqi Liu
619f033d39 tdf#89705: provides callback for url handling on android.
Change-Id: Ie28cd768519fbdc305f98e1d764d05bd209951ca
2015-03-09 10:16:17 +01:00
Tomaž Vajngerl
7373248256 android: add and handle show/hide cursor message from LOK
Change-Id: I42c0971b10e3926f8fca989884da089bec8d59d4
2015-03-09 10:16:13 +01:00
Tomaž Vajngerl
706691bd97 android: rename text selection callback messages
Change-Id: I78c8a984907d1481134426eef164f2587c0f06c6
2015-03-09 10:16:13 +01:00
Miklos Vajna
6650fe947d LOK: move Office::postKeyEvent to Document
The implementation still sends them to the currently active VCL frame,
not to the given document, though.

Change-Id: I6fa2decdea3f949c55287e802cb3373c85664207
2015-03-02 08:51:01 +01:00
Tomaž Vajngerl
6f04b04dfd android: organise imports
Change-Id: Ie8178e34698ba686e899ddd8e4f8775081fc9d83
2015-02-23 10:10:25 +01:00
Miklos Vajna
1f20a47d0e android: forgot to update javadoc of JNI wrapper
Change-Id: I2964c030f420638672da5390e11179aee28043e5
2015-02-23 10:10:22 +01:00
Miklos Vajna
bfe3a47e1e lok::Office::postKeyEvent: allow different char and key code
editeng is not happy with non-zero char code for css::awt::Key::ESCAPE.

Change-Id: If26923df7defb8a47766e9109835a8569067e578
2015-02-23 10:10:22 +01:00
Tomaž Vajngerl
1eb2de90be android: add support for text selection to JNI
Change-Id: Ifa307eb6a8cb031bdd88b9fadae42c8a0811772b
2015-02-16 09:20:50 +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
Miklos Vajna
4b70710420 lok::Document::postMouseEvent(): allow double-click
Change-Id: Idaddd28d906e7508d4d2c5aab916b06fbe021beb
2015-02-09 08:12:10 +01:00
Miklos Vajna
36e701b1db android: fix missing drawingML preset shapes
Change-Id: I7a22b9bcacd26b837c00bb09743ab2e176d60746
2015-02-09 08:12:09 +01:00
Tomaž Vajngerl
a8f0257871 android: Add callback types to Document
Change-Id: I93d117d42b6ccf48b58f9c8d64be0266ff36c6f3
2015-02-09 08:09:26 +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
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
609367d3c9 android: Set the package name correctly.
Change-Id: Iab771f65121e477cda871a04098df306399628e7
2015-01-26 10:27:41 +01:00