Commit graph

154 commits

Author SHA1 Message Date
Szymon Kłos
cca7a44009 Move formula bar to separate file
Change-Id: If380e8bc8091151872a728cc632313aa3f4cfda1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92269
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-15 16:52:12 +02:00
Szymon Kłos
610e2dbd58 Move user list to a separate file
Change-Id: I1cd8881d8ea342b96bd5ea5bd4972f971c89881d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92210
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-15 16:51:48 +02:00
Szymon Kłos
a4201e929e Move bottom mobile toolbar to separate file
Change-Id: I32e8fe251fcabd5d1c5af19cd7a72f60250c2851
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92159
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-15 15:27:09 +02:00
Szymon Kłos
651a7bba1c Move mobile top bar to separate file
Change-Id: I26fc5be1b73b4ff68be00c21a6691c7712d08c1e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92158
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-15 11:43:09 +02:00
Szymon Kłos
b0be9c7b35 Move SearchBar to separate file
Change-Id: I6db64d35f40f3a762f50df010ead9395a873fb20
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92037
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-15 11:19:19 +02:00
Szymon Kłos
615f5212bf Move statusbar code to separate file
Change-Id: Ia4940b1725bbc4326dfeb520a6bcb6423b9a25b9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92036
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-15 11:03:21 +02:00
Jan Holesovsky
67d14eafd2 mobile: More portrait / landscape handling in Impress' mobile-wizard.
Change-Id: I8592db63e9112b1f879e5a10351308fbdd97e28d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91582
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-06 10:34:41 +02:00
Jan Holesovsky
e42987ecf5 mobile: Move the spreadsheet.css related bits to device-mobile.css.
Change-Id: I711a578462729e3f1b5f7029565dd8edd1f7caf8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91479
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-02 09:06:40 +02:00
Jan Holesovsky
9978752258 mobile detection: Create a separate device-*.css for the phone/tablet/desktop.
The problem is that the @media-based detection often disagrees with the
JS-based detection which then leads to many problems - most notably that
part of the UI behaves as if it was a tablet, and the other part as if
was a mobile phone, leading to a terrible user experience.

This commit changes it so that there is only one way how to detect if
we are on mobile phone, tablet or desktop: using the JavaScript, and we
will load the appropriate css accordingly.

Only one @media-based rule is converted as an example, the rest will
follow.

Change-Id: Id7bfb58ca12264904b3329db1542ae6b54893f11
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91416
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-31 20:31:49 +02:00
Jan Holesovsky
47d6d9eae6 mobile detection: Load the bundle.css dynamically.
So that the browser can cache the large css, instead of loading it anew
each time we are loading loleaflet.html.

Change-Id: I322bf9d62e4c899dbeffbca52aca83b6cd427ce4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91415
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-31 20:31:15 +02:00
Tor Lillqvist
ff7db2b229 Get rid of the iOS app specific "context toolbar"
The less special-case code/logic/UI, the better the world is.

It had weird unintended side effects anyway. (In the iOS app, which
was the only place where it was used.) For instance, in a spreadsheet
document on iPhone, after loading the document, the normal "mobile
wizard" style context menu did not appear, no matter how long you
pressed a selected cell. But if you first got the context toolbar to
show up once, and after that selected some cell and long-pressed it,
the mobile wizard style context menu did appear, just as when using
web-based Online on the same device.

Note that despite that the code in Control.ContextToolbar.js was used
only in the iOS app (L.control.contextToolbar() was called only if
window.ThisIsTheiOSApp), the file did contain code for non-iOS, too.

Change-Id: Icdbfc7e71f77539c1bcb5ac8cf6984375297a4bd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91055
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-25 16:29:25 +01:00
Henry Castro
4ea1b49376 loleaflet: makefile: do not execute javascript to get admin files
Change-Id: I84f3128499f038691abc762adec50c32f103b9f9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90448
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-03-16 16:12:00 +01:00
Henry Castro
c58b8dfdfc loleaflet: makefile: prefix m4_ builtin functions
Change-Id: I3605da8b44cec9855be39846de7f10feaf075f7d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89890
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-03-04 13:30:41 +01:00
Henry Castro
175cbdb3f4 loleaflet: makefile: use m4 to bundle all js files
It is a flexible bundling of all javascript libraries and
each platform (ANDROID, IOS, Desktop) can remove or add
from node_modules or imported according to its requirements.

Maybe in a near future some external libraries could be loaded
on demand or lazy loading that are not necessary when the page
is loading.

Change-Id: Ief5d4973ab29a4fb3c4848c3e1653a24fff0da69
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89860
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-03-03 18:21:10 +01:00
Henry Castro
3697315349 loleaflet: makefile: use m4 to bundle src js files
It is a flexible bundling of the loleafet source files
and each platform (ANDROID, IOS, DESKTOP) can prevent to
bundle some files that is not necessary.

(i.e Mouse handling in native mobile devices)

Change-Id: If018bcc8682df5ae4bf5dd9943aa977e18c0de36
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89734
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-03-02 16:51:32 +01:00
Henry Castro
133dee2980 loleaflet: makefile: avoid to execute javascript to get a list file
We are in state to bundle Javacript files for different platforms:
Android, IOS, desktop. And each platform could add specific chunk
Javascript code according its specific requirements.

Change-Id: Ib52ae816cb9443c8605fdf70aaa4c5e4c81b962d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89557
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-28 13:46:18 +01:00
Jan Holesovsky
94d4a27d65 android shell: Move ~all the functionality from menu to navigation drawer.
And so far disable the various sorting possibilities, they are not
working for the recent files (yet).

Change-Id: I233f6cd05d15cf0c3f9f2bf940a8233ee5300cb7
2020-02-21 13:51:40 +01:00
Henry Castro
c537bea938 loleaflet: import Autolinker.js library
The file was imported from node_modules/autolinker/dist/Autolinker.js
the main reason is to analyze the source code, debug and patch
if necessary

To get the source code from npm repository

	make libs

Change-Id: I3eea7cc6e8d61623398d77ed74e751ccd861252b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89150
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-21 00:49:04 +01:00
Henry Castro
87ff57fe5b loleaflet: import json2.js library
The file was imported from node_modules/json-js/json2.js
the main reason is to analyze the source code, debug and patch
if necessary

To get the source code from npm repository

	make libs

Change-Id: I7d80646704b368f6961c75f1dabaabecde2527e6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89146
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-20 18:32:48 +01:00
Henry Castro
a75c8f3e71 loleaflet: import select2.js library
The file was imported fromnode_modules/select2/dist/js/select2.js
the main reason is to analyze the source code, debug and patch
if necessary

To get the source code from npm repository

	make libs

Change-Id: Ibe0fd718d1dd6157d463a304c56fd6475821a0eb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89110
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-20 17:37:14 +01:00
Henry Castro
05d433b500 loleaflet: import vex.combined.js library
The file was imported from node_modules/vex-js/dist/js/vex.combined.js
the main reason is to analyze the source code, debug and patch
if necessary

To get the source code from npm repository

    make libs

Change-Id: I59e466e925d43bf4c599305898c656f69ec195d9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89099
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-20 14:51:54 +01:00
Henry Castro
5cc7ba2d77 loleaflet: import sanitize-url.js library
The file was imported from node_modules/@braintree/sanitize-url/index.js
the main reason is to analyze the source code, debug and patch
if necessary

To obtain the source code from npm repository

make libs

To bundle the file sanitize-url.js

browserify braintree-sanitize-url/index.js --standalone sanitizeUrl > sanitize-url.js

Change-Id: I7869a1349648ae1f8f2194859ebb398b1a73733e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89055
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-20 13:20:44 +01:00
Henry Castro
8ce1846e5e loleaflet: import l10n.js library
The file was imported from node_modules/l10n-for-node/l10n.js,
the main reason is to analyze the source code, debug and patch
if necessary

To obtain the source code from npm repository

make libs

Change-Id: I7bd4d400c504f57a94566e187c6d26361aed8bd0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89043
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-19 17:32:10 +01:00
Henry Castro
1dda92109f makefile: generate an index (ctag) file for the JavaScript language
Change-Id: I495c7665786a47cfb007260368084a01c4163ea7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/85766
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2020-01-06 18:48:15 +01:00
Jan Holesovsky
37b5d29fc1 android: Copy the online widget theme too if available.
Change-Id: If9fd23e24bd28897f1645c043678b44f86d5b2e4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86163
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2020-01-03 11:07:54 +01:00
Jan Holesovsky
0cd43ead59 android: Make the localization work for the JS pieces.
To have the menu translated.

Change-Id: I8d4d90d260aa3fcd80a8eb68515b22c58c9b3e18
Reviewed-on: https://gerrit.libreoffice.org/84931
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-12-11 11:49:37 +01:00
Jan Holesovsky
1c8a31b33e android: Brand also the shell's About dialog.
Change-Id: I63b668ad92c688ec69818c058a787dbd94b5cc8b
Reviewed-on: https://gerrit.libreoffice.org/84630
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2019-12-06 15:46:04 +01:00
Jan Holesovsky
d87f06adef android: Add possibility to brand the launcher icon.
Change-Id: I6cd531aab698236287eb7c20146caa61e34e8450
Reviewed-on: https://gerrit.libreoffice.org/84328
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-12-03 14:34:47 +01:00
Tor Lillqvist
54e85d9cc2 Fix build without --enable-debug
Since c59bf4ed3a, $(ENABLE_DEBUG) is
eiher "false" or "true", not empty or "true". So we can't check it in
Makefiles with just $(if $(ENABLE_DEBUG),...), that will match also
the value "false".

Change-Id: I17c079f1c3a6346e9f0a0219f07f642673b55a98
Reviewed-on: https://gerrit.libreoffice.org/83663
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2019-11-25 13:49:29 +01:00
Michael Meeks
946cc5d8e6 Rename misleading ClipboardContainer -> TextInput
Change-Id: Idb5ccb9959e0c77dfcdbb2793330bb048db0f0f8
2019-11-15 16:28:34 +00:00
Jan Holesovsky
7b97c5b019 android: Update the branding layout.
Change-Id: I661dfbda731fb0ef7772364c30b879a19f40a322
2019-11-08 23:04:47 +01:00
Szymon Kłos
d3b92abd8e Mobile language indicator and dialog
Change-Id: I2358ac60a3ba1a0f177e9fa3f965b7043ab99559
2019-11-03 18:00:22 +01:00
Andras Timar
b813ed61b6 add copyright notice to About Box
Change-Id: I51c2c5e7c2b0cf232b8a2f2dbcb3b9f3f04737ea
Reviewed-on: https://gerrit.libreoffice.org/70205
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-10-29 13:24:33 +01:00
Szymon Kłos
1b3a8bd478 Use mobilewizard.css also
Change-Id: I6d8667f30e6ed35ee930f50ae247fd6522f5d251
2019-10-16 17:40:59 +02:00
Szymon Kłos
91d281bf0b Split css files - added empty files
Change-Id: I67863622d37e350e8a5eafa4cd5f65ec4a2baed3
2019-10-16 12:38:04 +02:00
Marco Cecchetti
d0e6692c1b loleaflet: color picker control based on JSDialogBuilder
This patch provides an implementation of a color picker control living
in its own submenu.

Change-Id: I65c24c73d322f1d4d0d8819dc5c9ad80ee846261
2019-10-16 12:18:43 +02:00
Szymon Kłos
c1e96bff45 Fix build, not existing Mobile.Input.js
Change-Id: If443850bad4fd40886e378e3f7ede1eb52bb69ea
Reviewed-on: https://gerrit.libreoffice.org/80139
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-04 11:43:15 +02:00
Szymon Kłos
ab9962a9f2 jsdialogs: UI Builder
Change-Id: I6cfcae90542eca84d45a99b15dc97ed3356a0626
Reviewed-on: https://gerrit.libreoffice.org/79724
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-09-27 17:03:16 +02:00
Szymon Kłos
e3a01b7561 jsdialogs: Mobile Wizard
Change-Id: Ida2dc48d86ea4f28b08ec24a7638f27ad8633dbf
Reviewed-on: https://gerrit.libreoffice.org/79723
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-09-27 17:03:06 +02:00
Andras Timar
448f050372 Updated pot files
Change-Id: I560f9eff4556941d211d03080237d2cf0599aa6f
2019-09-17 10:52:53 +02:00
Ashod Nakashian
27d780747b loleaflet: add sidebar
(cherry picked from commit 01c828c911fa70b263fee699efbc656fde54d03f)

Change-Id: Idc215e67b21b1f0ba48b3d391041278dd6526cfe
2019-09-03 01:00:05 -04:00
Henry Castro
7af08ddc85 loleaflet: makefile: do not use hammer.j minified library
It is hard to debug the library if it is minfied,
it is preferable to non minified when --enable-debug is set

Change-Id: I7886d047d8aab90b68c12bb50964d263445d8afe
Reviewed-on: https://gerrit.libreoffice.org/77733
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-08-19 17:11:04 +02:00
Tomaž Vajngerl
cc70602939 tdf#122529 Support for table overlay - column/row change markers
This adds table markers for resizing rows and columns if the user
has the table selected or the cursor is in the table. The code
reacts to the callback "tableselected:", where the markers are
created for each column and row, if the payload (json) of course
has any data. When the marker is dragged, a uno command to resize
the table column or row border is send to the core.

Change-Id: I9b21d09639c1b2be70a1a897f9e3340b453d847e
Reviewed-on: https://gerrit.libreoffice.org/77360
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2019-08-15 05:16:04 +02:00
Michael Meeks
229ca09419 Start of separating clipboard code to Clipboard.js.
Change-Id: I59ba0c093002cb60b13d2f71a4801e76f6a94b2a
2019-08-05 21:20:21 -04:00
Marco Cecchetti
fdc5d259ea loleaflet: download widget skeleton for larger copy/paste data operation
Change-Id: I64d8edc014241e94c45677185a935714b8eeb192
2019-08-05 19:15:28 -04:00
Jan Holesovsky
2b13c69d75 android: Split the actual editing Activity into an own library.
This way, it is more naturally visible what is the actuall app (with the
initial recent documents / file picker) and the editing part.

Change-Id: Ia764f2900939e980f703e3da9f9abd6c0aee7cbb
2019-07-12 11:52:56 +02:00
Jan Holesovsky
18ee97d9c8 android: Copy also the branded images if any.
Change-Id: I9f8ed9f726015f9a668bd0d6e8f6d934f60cd413
2019-07-11 08:33:52 +02:00
Jan Holesovsky
6f5290da0e android: Actually use the branding if it exists.
Change-Id: Idd7136f0657452c5fb88f2a84b5c647ab8c2935b
2019-07-11 08:33:43 +02:00
Samuel Mehrbrodt
16fcd37201 configure: Add support for custom icons
Change-Id: I573b4d7e745cdea6fdbecd2c3790078d1980bdf9
Reviewed-on: https://gerrit.libreoffice.org/74491
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-06-28 12:32:43 +02:00
Jan Holesovsky
f485b2ea97 android/ios: Turn the --with-iosapp-branding into --with-app-branding.
This is needed for the Android app too, so generalize the switch.

Kill copying of the example documents into the APK when at that...

Change-Id: I5b575ade3e40cc0becd5c739077acff5299d3312
2019-06-20 14:13:09 +02:00