Commit graph

8056 commits

Author SHA1 Message Date
Alexandru Vlăduţu
338563ab45 loleaflet: update shrinkpack
Updated shrinkpack to work with (relatively) new versions of npm: https://github.com/JamieMason/shrinkpack/issues/83

The new version stores the tars in the 'archived-packages' folder and not the 'node_shrinkwrap' one, that's why there are so many files in the diff.

Change-Id: Iebcadaeee0e27f831b7ff16a50819a908e7f05a6
Reviewed-on: https://gerrit.libreoffice.org/69878
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-03-28 09:27:07 +01:00
Tor Lillqvist
1b06a82eb6 tdf#124179: Make it possible to drag an image using a touch gesture
First select the image (so that the circular handles show up), then
drag it.
2019-03-28 08:47:57 +02:00
Ashod Nakashian
b860ecf390 leaflet: align drop-down lists with parent combobox
This ensures that child-windows are aligned correctly
with their parents.

Change-Id: I3c491fb34083f26c7d376924ab04fbce83103f22
Reviewed-on: https://gerrit.libreoffice.org/68250
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/69874
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-03-28 02:05:52 +01:00
Florin Ciornei
3bcd9ba2a6 android: Display notification when creating file if such a file already exists
Change-Id: I2901e499135903d2649ee8ee62f144fc10a17a05
2019-03-27 14:48:58 +01:00
Florin Ciornei
8878567369 android: Add create document option
Activity should be restarted to see the newly created documents

Change-Id: I57113ca92e99dc58301d3cddae165f4edfdddcc1
2019-03-27 14:35:23 +01:00
Florin Ciornei
16e45aef60 android: Create FAB button now appears in the document browser.
Still have to implement the creations of the documents.

Change-Id: Icf1864b7d748636c6a3a0dec0eeb940d1fbcd8cc
2019-03-27 14:35:23 +01:00
Florin Ciornei
89d920d682 android: Port document browser from the old Java app to the new one.
Edit FAB still doesn't work, and the opencloud document browser should be
implemented

Change-Id: I788bf271b543e397cb156b970116614e73f1ad95
2019-03-27 14:35:21 +01:00
Jan Holesovsky
ecc3ee445e android: Copy some files from the old Android app.
This is a snapshot from core.git at the time of commit
9852f09b467e3c7f8058b931010b91f447905051.

Change-Id: Ifdd752c0c3d11b25ee7250e37f61959b0ea05c9a
2019-03-27 14:31:44 +01:00
Tor Lillqvist
9b5998e1bc Make tapping an element in a combo box actually work (on touch devices)
If we get a 'touchend' immediately after a 'touchstart', simulate a
'mousedown' immediately followed by a 'mouseup'.

Change-Id: Ib20eae4cc23518e34a1d948f8e498f50046f72d7
2019-03-27 11:26:57 +02:00
Tor Lillqvist
3791ebace3 Update to match core master
Change-Id: I9670676db84cbce949bf230d62f9c1f7666fe09f
2019-03-27 09:23:08 +02:00
Michael Meeks
a81b02b2c6 Parse loolwsd logs and start to chart the output.
Change-Id: I2fa2fb093fdc0bc9fab68e4533cd26abc2be3ecc
2019-03-27 06:41:45 +00:00
Tor Lillqvist
d124e3e5aa Scroll in correct direction with gesture
It is the combobox contents you are dragging with the gesture, so it
should move in the same direction, not opposite.

(If you would be draging the scrollbar's "thumb", then the contents of
the combobox would indeed move in the other direction. But on a touch
device, it definitely is the contents that the user is dragging.)

Change-Id: I9dc9e3cc7e3a1412176fd1d84c5587c86410d191
2019-03-26 18:25:29 +02:00
Tor Lillqvist
d0186aadee Update to match core master
Change-Id: I8932f9ea8ebd1addd9679f2f325b4dbafa48578c
2019-03-26 18:01:16 +02:00
Szymon Kłos
fe702b1d11 Avoid syntax errors while paring command results
Change-Id: I7d778fd62aeb32c8304afb90c21aafd83379c170
2019-03-26 15:24:08 +01:00
Szymon Kłos
a0797a7518 Make all pages accessible after zooming
After zooming scrollbar was updated and scroll
position was incorrect what caused first pages
not accessible.

Regression was introduced by:
ffd7151443

Second problem was jumping to the cursor
during zooming. Solution was to not update
the cursors on zooming start.

Change-Id: I0891799b03ed4eccb211ee43eb30e546317a90fc
Reviewed-on: https://gerrit.libreoffice.org/69606
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit f496c1e9c588b382fbdb10ae90a0cd85390274e8)
Reviewed-on: https://gerrit.libreoffice.org/69748
2019-03-26 15:03:37 +01:00
Szymon Kłos
6c94280b9c Fix doucument loading on mobile
Change-Id: I190b021101fb0bb371b65c666969701d71b024aa
2019-03-26 15:02:41 +01:00
Tomaž Vajngerl
397249b9f3 allow to pan outside of widget bounds
Always pass firstTouchPosition{X,Y} instead of current X,Y
position to _postWindowGestureEvent so that panning is continued
even when you go out of widget (combobox) bounds.

Change-Id: I769b013f933881d8d1294ffd094e1cf7871cb701
2019-03-26 21:16:07 +09:00
Tor Lillqvist
bced2a313a Prevent whole page from scrolling when dragging in a combo box in a dialog
Change-Id: Ifcc256f0a882be6afe7a82cd7c95c5059b107bf7
2019-03-26 12:53:51 +02:00
Tomaž Vajngerl
02a07d62a5 tdf#124146 touch gesture support, send pan gesture in dialogs
Pan gesture should work for comboboxes, for which panning is
implemented in core.

Change-Id: I0a7e49e9335159a302716f666e2334a9d532c115
Reviewed-on: https://gerrit.libreoffice.org/69720
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2019-03-26 10:48:17 +01:00
Tor Lillqvist
d5c47ef986 Fix typo
Change-Id: I4c07c12e24d14577723a751104fe2c51ff1f052e
2019-03-26 09:49:49 +02:00
Tor Lillqvist
df223f20fe tdf#124178: Handle non-BMP character input on mobile devices
Sadly, we must split such into a surrogate pair.
2019-03-26 09:31:33 +02:00
Tor Lillqvist
3264f39d48 Add all fonts from instdir/share/fonts
Change-Id: I02765079e34cd9cbc96aea9cf2b72f432473ad0a
2019-03-25 19:17:21 +02:00
Tor Lillqvist
cbbb2496ca Truncate the JS expression for logging
Change-Id: Ia287f5e26a80bdf0547128b8b2c9c9aff2ef89cd
2019-03-22 16:37:32 +02:00
Tor Lillqvist
ea43fb337a Add source files from sfx2/source/appl for convenience 2019-03-22 16:22:05 +02:00
Tor Lillqvist
25c8ed7897 For iOS, generate the data: URLs for the PNG tiles already in the Online code
(What we cache is also the textual data: URLs even if we store them
using .png file names.)

This avoids the current back-and-forth-encoding: First we
base64-encode the complete binary "tile:" message (one text line
followed by a newline and the binary PNG) to pass to WebKit, then in
the JavaScript snippet passed to WebKit we decode the base64 and turn
it into an ArrayBuffer, and then we unpack the ArrayBuffer and encode
the PNG part to use as a data: URL.
2019-03-22 16:21:51 +02:00
Tor Lillqvist
74f19fce6f We insert global.js in loleaflet.html and shouldn't include it in bundle.js
Also, make loleaflet.html depend also on the two files that are inserted into
it with the m4 syscmd thing, bundle.css and global.js.

Change-Id: Iba261aeff70786eec114e5508b748dadd8663038
2019-03-21 17:20:27 +02:00
Tor Lillqvist
3e0ae523da Make the image resize and rotate handles larger in a mobile app 2019-03-21 16:08:17 +02:00
Florin Ciornei
eb332fdde0 android: Move window.ThisIsAMobileApp etc before they are used in global.js
It was causing the code to connect to a real socket instead of the
FakeWebSocket.

Change-Id: I0d08277e7138317ac06a13022eaba7ec672e0429
Reviewed-on: https://gerrit.libreoffice.org/69500
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-03-21 14:05:23 +01:00
Tor Lillqvist
c459ad77a1 tdf#124055: Idle timeout is pointless in mobile apps
We don't want to unload the document and show any "Idle document -
please click to reload and resume editing" overlay.

What the iOS (and presumably Android) app *would* need, though, is
proper restore functionality. I.e. if you have a document open, and
the app is put in the background (i.e. the user does something else),
and the OS kills it (as is perfectly normal for iOS or Android to do
to idle background apps), then when the user returs to the app, it
should reopen the same document and restore the view location and zoom
level.
2019-03-21 14:36:46 +02:00
Tor Lillqvist
e9ca86de85 tdf#122544: Disable the 'closemobile' button while tunnelled dialog is showing
Sure, I would have preferred to fix the actual bug instead, but that
was much harder. See bug report for some notes about what I tried.

Now done for iOS app only (window.ThisIsTheiOSApp), probably should be
done for any mobile app (window.ThisIsAMobileApp).
2019-03-20 17:00:15 +02:00
Jan Holesovsky
9d6b079e58 Tip how to cross-compile with icecream.
Change-Id: Iad797e81575fd44c51732a1c93328f833dd1b901
2019-03-20 15:46:11 +01:00
Tor Lillqvist
eaa4a7838a Add references to source files from svl/source/items for debugging goodness 2019-03-20 15:21:14 +02:00
Tor Lillqvist
8dce313642 tdf#122543: Ignore duplicate calls to loadFromContents on same Document 2019-03-20 15:20:52 +02:00
Tor Lillqvist
08da078546 When FAKESOCKET_LOG_ALWAYS_STDERR, output also the thread id 2019-03-20 15:18:43 +02:00
Jan Holesovsky
345df913de Revert "loleaflet: remove jquery-ui.js"
This is needed for the functionality of the dialogs.

This reverts commit e81441f63b.
2019-03-20 09:44:39 +01:00
Florin Ciornei
c1f5e5acce Updated some instructions in the android/README to make them more clear.
Change-Id: I8dc5643bcde634dc66a3f75c6054cc093c18aad0
Reviewed-on: https://gerrit.libreoffice.org/69427
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-03-20 09:05:32 +01:00
Szymon Kłos
9e70d70588 Don't hide last modification if height is small
Change-Id: Ic8986e8a9c36bd1c4ede9e604b07d93974c1a05f
2019-03-20 08:57:57 +01:00
Jan Holesovsky
c8285addec Kill some extra whitespace.
Change-Id: If0899266ab0ca0d3717fce6eff3a8fca0b4f90ea
2019-03-20 08:50:14 +01:00
Eduard Ardeleanu
d87146d3fa fix: saveAs breaks when '%' character is used within the filename
Change-Id: I2df059abd67be88acae8bd44ae2c74be7778a595
Reviewed-on: https://gerrit.libreoffice.org/69424
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-03-19 18:31:15 +01:00
Szymon Kłos
7176214de3 Escape username
In case of guest users it was possible to inject html.

Change-Id: I642de3efa0fa03cd2a8d63834605f46eacd0f464
Reviewed-on: https://gerrit.libreoffice.org/69410
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 3084565981d85d5734436c3411266c529ad5d879)
2019-03-19 11:05:18 +01:00
Andras Timar
9c74b8e14f put back po->json make rule
Change-Id: Idbd45a48f3215f36b68e444a83c4eb07ea37e1bb
2019-03-18 14:20:26 +01:00
merttumer
5e7401c2fe Added passing watermark text to saveAs for tiled watermark
Change-Id: I2cc7c942a646a57e39d3c5862bbcc45ddfbafe4c
Signed-off-by: merttumer <mert.tumer@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/67780
2019-03-18 13:04:12 +01:00
Samuel Mehrbrodt
58eab0bbb5 Fix path
Change-Id: Ie04f809e6d6b1c87a4fe4d66132c9c51551b0b04
Reviewed-on: https://gerrit.libreoffice.org/69383
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-03-18 11:44:32 +01:00
Szymon Kłos
ee85e458fe Add sort buttons to the toolbar in Calc
Change-Id: Ifc700afdf3fbd93656e07c9295f2c07f246659d8
Reviewed-on: https://gerrit.libreoffice.org/69326
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-03-15 22:58:04 +01:00
Jan Holesovsky
e5ecc92659 Revert "loleaflet: execute l10n.js script after html parsing"
This reverts commit e512924544.

Change-Id: I9b322b45cd13b69c4438d48227237dd8062aee05
2019-03-15 18:24:25 +01:00
Jan Holesovsky
cbc85953e8 Revert "loleaflet: set format unix l10n.js"
This reverts commit ab2051cd50.
2019-03-15 18:24:25 +01:00
Jan Holesovsky
117bb3a837 Revert "loleaflet: expand l10n files"
This reverts commit 70bdc4660e.
2019-03-15 18:24:25 +01:00
Jan Holesovsky
869dd93851 Revert "loleaflet: remove 'link rel="localizations"' tags"
This reverts commit a5536109af.
2019-03-15 18:24:25 +01:00
Jan Holesovsky
b842679e9a Revert "loleaflet: load l10n files according to parameter "lang""
This reverts commit 668b837c70.
2019-03-15 18:24:25 +01:00
Jan Holesovsky
153e2d06fa Revert "loleaflet: uglify l10n.js"
This reverts commit 3aebf7fea9.
2019-03-15 18:24:25 +01:00