Commit graph

8097 commits

Author SHA1 Message Date
Michael Meeks
cacaefc287 perftrace: Annotate idleness and render it better as gaps.
Change-Id: If4d7853d02ca736f8cab12bd9dcc7c4b60ec7d27
2019-04-04 19:18:45 +01:00
Alexandru Vlăduţu
afcfd7a616 loleaflet: remove loading html page leftover
loading.html resource made obsolete by commit 51e849bf5d

Change-Id: I2308e4c121520f6ed293d5e86805c4daeec3fca6
Reviewed-on: https://gerrit.libreoffice.org/70257
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-04-04 14:55:23 +02:00
Alexandru Vlăduţu
51e849bf5d loleaflet: optimize slideshow spinner
This commit fixes 2 issues:

- a UX issue described by tdf#124544 (slideshow spinner is not
displayed for the correct duration - user shown a blank screen while the
browser downloads slideshow.svg)

- an additional HTTP request is being made to loading.html just to
display an ordinary spinner (that can be otherwise loaded via css for
example)

tdf#124544

Change-Id: I90d1e73d1514d736dd58a53caa5921b42bc1bd75
Reviewed-on: https://gerrit.libreoffice.org/70250
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-04-04 13:46:29 +02:00
Michael Meeks
f031e95229 perftrace: extend linear events duration to the next event.
Change-Id: I4ab31a6a71b3efcc366ca15e15d513f73205ca37
2019-04-03 21:34:47 +01:00
Henry Castro
bdf3b0f90b loleaflet: avoid ID duplication in the spreadsheet toolbar
ERROR: The parameter "id=break8" is not unique within the current
toolbar items. (obj: actionbar)

Change-Id: I208a6f3a3a21397a7e96a5663dba8a32923c4724
2019-04-02 16:04:02 -04:00
Henry Castro
1d2b0415b9 loleaflet: remove "document changes" status bar item
It is no longer need it

Change-Id: Ic054c52ad14c55a0e93c84f4ff94f83ea0d33100
2019-04-02 15:49:11 -04:00
Michael Meeks
5ea3f32857 perftrace: add thread identifiers, and spoof a duration for all lines.
Change-Id: I13d929ebb2f06969cccc1b89f6e2c9b022b107e3
2019-04-02 20:43:56 +01:00
Michael Meeks
4744755ede perftrace: map pids.
Change-Id: Ibb884bf212453decd146131e52478bdfe4283879
2019-04-02 20:27:45 +01:00
Michael Meeks
545f1457a3 perftrace: output in Trace Event Format too and by default.
Change-Id: I964f869d953234a83066c5d34f43abfc22933b46
2019-04-02 20:18:28 +01:00
Michael Meeks
5fe3cb0a4d Creds.
Change-Id: Iee6f567f3046461c8d034192f282ac7e8fd2f468
2019-04-02 20:18:28 +01:00
Henry Castro
9657e4dfa3 fix build: "sockaddr_un addrunix’ has incomplete type ...
and cannot be defined"

Change-Id: I2c136fc47c800ec3efd6268b4601100033e22724
2019-04-02 10:31:08 -04:00
Alexandru Vlăduţu
0821940ae7 loleaflet: check document hyperlink before open
Change-Id: Ie2b1ba8baf49136fa805ab5b3a52f7b7fb5827df
Reviewed-on: https://gerrit.libreoffice.org/70113
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-04-02 14:45:13 +02:00
Alexandru Vlăduţu
a9f1c91e84 loleaflet: remove npm dependency leftover from shrinkpack folder
Change-Id: I70693d505ade3c465fc3bfec7a080197ef8cd37b
Reviewed-on: https://gerrit.libreoffice.org/70115
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-04-02 08:45:18 +02:00
Alexandru Vlăduţu
765fac1d0d loleaflet: remove unnecessary dependency from package.json
Change-Id: If0ee24f31bcf47b2f5570ade95165cad9f8e5eae
Reviewed-on: https://gerrit.libreoffice.org/70109
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-04-02 07:59:42 +02:00
Samuel Mehrbrodt
71b9faca7c Fix -Werror=maybe-uninitialized
Change-Id: I076fb4b9ef80e4fbf13cdd22cff51ab1e99a2c6c
2019-04-01 14:18:23 +02:00
Samuel Mehrbrodt
f46d5e9845 NPM: require at least v5.0.0
This is necessary after 338563ab45

Change-Id: I026dba613349931a95fd71b126e72605d1546140
Reviewed-on: https://gerrit.libreoffice.org/70054
Reviewed-by: Alexandru Vlăduţu <alexandru.vladutu@1and1.ro>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-04-01 13:37:35 +02:00
Jan Holesovsky
46bdafb15f Cosmetics - add some spaces.
Change-Id: I18124265439a364ccdf6715b10fc8f2f2701ac5c
2019-04-01 12:28:17 +02:00
Florin Ciornei
b02cb37c72 android: Remove LOKitShell.java and refactor code
LOKitShell class is not needed anymore in the new app.

Change-Id: If9974f99e33d62102ae2290a2ed8847ee784a4c7
2019-04-01 12:22:39 +02:00
Florin Ciornei
84df937731 android: Display license and notice as html in a separate activity
In order to prevent starting LOOLWSD instance only for displaying license
or notice, these will be displayed as html in a separate activity inside a
webview.

Change-Id: I1d5817fa959abc69276ed717e962bea6291a85a8
2019-04-01 12:22:39 +02:00
Florin Ciornei
a21808f407 android: Add open document functionality to the document browser
To investigate: sometimes the MainActivity that displays the document
crashes.

Change-Id: I0f49e4449bfd8d5123153f04c4316d20d6e7ef22
2019-04-01 12:22:39 +02:00
Miklos Vajna
150ae4e8db net: fix -Werror,-Winconsistent-missing-override
Change-Id: I5e7bce35cd9892a3f74d6d57e094c006bd13b991
2019-04-01 12:00:27 +02:00
Michael Meeks
7b70aab367 peercred: fixup compile issues.
Change-Id: I87d956f5754e7b353776c538b7bb9dfea7f62883
2019-04-01 10:56:15 +01:00
Samuel Mehrbrodt
7f63e7658d Fix path (again)
After 59306e2f4c "loleaflet: rename toolbar.js to Control.Toolbar.js"

Change-Id: Iaa5556da289e23b8942a020b75a805c87dc03c70
2019-04-01 10:27:32 +02:00
Tor Lillqvist
9c02d82f7c Fix build in the MOBILEAPP case
Did not check how well it works.

Change-Id: I5ca1b349aafcfddaed517e51ca6bd25e9749779d
2019-03-31 14:34:24 +03:00
Andras Timar
d07abfeb67 make these strings better localizable: minutes ago/seconds ago
Change-Id: Idf46c11bc4fccb14e4a3955e9ac88901ed94586b
2019-03-30 23:14:45 +01:00
Michael Meeks
201bcb0762 Use peercreds to identify processes connecting rather than URL params.
Change-Id: I241e80962fb8cf2f3fff1bb4be81d9f0ee74c648
2019-03-30 21:37:05 +00:00
Henry Castro
dcf9559ecd loleaflet: add label "document modified" to the status bar
Change-Id: I4550b649fbb31da7e2d6dd2a9a3e5bd95b326d25
Reviewed-on: https://gerrit.libreoffice.org/69515
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-03-30 22:06:30 +01:00
Henry Castro
68be4badb2 loleaflet: fix the prototype property of a constructor L.Socket
Change-Id: Ie0086b6e1129fa9aaba416e44d49829fe605ded6
2019-03-30 16:58:08 -04:00
Henry Castro
da2bdd62da configure: update links for directory "archived-packages"
Change-Id: Iea7d5f867b5a7a2f987b0513d33ffb675729de97
2019-03-30 16:35:40 -04:00
Henry Castro
59306e2f4c loleaflet: rename toolbar.js to Control.Toolbar.js
Change-Id: Ia8d0c3856ea40b4e342e5bec94c558c78464943f
2019-03-30 16:22:32 -04:00
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