Commit graph

8267 commits

Author SHA1 Message Date
Michael Meeks
81a27e26aa Switch local prisoner sockets to abstract UDS
Unix Domain Sockets are inaddressable remotely, and more efficient,
as well as allowing future SCM_CREDENTIALS / SCM_RIGHTS.

Change-Id: Ia2472260f75feb43e9022cdfa0fe005ccd489454
2019-03-30 16:51:06 +00:00
Michael Meeks
d832fb3c9d Crop socket buffer removal to socket buffer size & warn.
Change-Id: I734b4682941d71eee02a25aab61c8e4353a11718
Reviewed-on: https://gerrit.libreoffice.org/69948
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-03-30 17:50:59 +01:00
Michael Meeks
38bb1db96c Only erase buffer if socket is not shutting down.
Change-Id: I23886db8d2fdb6297862947e031e14d7a485ecd7
Reviewed-on: https://gerrit.libreoffice.org/69949
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-03-30 17:50:43 +01:00
Andras Timar
f7903922cb Updated pot files
Change-Id: Iab873d7605f63f8c1db4c1c6fe1daf3a4e4c64f3
2019-03-29 22:45:02 +01:00
Andras Timar
30851bb57e add plist2pot.sh to Makefile
Change-Id: I7cbd25ccb6ceaa4ce5a90eca1db2d7d5631edbe7
2019-03-29 22:34:42 +01:00
Andras Timar
9a289f08de very basic script that extracts translatable strings from Root.plist
Change-Id: Ic905cbdd2e74d41fe7f199d8852e021fb321f8eb
2019-03-29 22:31:41 +01:00
Szymon Kłos
e5fbc42ad5 Introduce warning when leaving the editor
Change-Id: Id9fe06015b45f37ae415f8e3607434d984a6074f
2019-03-29 21:44:44 +01:00
Michael Meeks
9b4afbb460 Disable potentially problematic module loads for online.
Change-Id: Iaa30486977ad783e2af0f876d790f2a2b06904f9
2019-03-29 09:49:23 +00:00
Michael Meeks
cadcc6e166 perftrace: start to annotate common spans.
Change-Id: I90e9939ddc7dedfb24fd608f13ea31a2863ebe3e
2019-03-29 09:37:28 +00:00
Tor Lillqvist
e2f48faf14 tdf#123742: Fix lifecycle issues for the "Office" object
Because of the use of std::shared_ptr in lokit_main(), the (singleton)
lok::Office (or LibLibreOffice_Impl) object gets destroyed when
lokit_main() exits. We shouldn't keep our own copy of a raw pointer to
it around. Just call lok_init_2() to get the pointer where we need it.
We don't need to call lok_init_2() already in -[AppDelegate
application:didFinishLaunchingWithOptions:].
2019-03-28 17:28:26 +02:00
Tor Lillqvist
421e4a4d84 tdf#123874: Don't do the SVG preview thing in the iOS app as it crashes WebKit
Sure, this is just a stopgap solution, it would be good to figure out
a way to have the functionality working.
2019-03-28 11:22:38 +02:00
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