Commit graph

11122 commits

Author SHA1 Message Date
Ashod Nakashian
ce03253e52 wsd: linkOrCopy now uses realpath to avoid links
This is needed in case the original template
directory itself is linked, which after setting
the FTW_PHYS flag to nftw skips them.

Change-Id: I63141b64ca486e6e2e979cdf1d80fe0fd0f3990c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92104
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-04-24 16:40:14 +02:00
Ashod Nakashian
7ea8d62cf6 wsd: improved logging of jail setup
And some formatting, but no functional changes.

Reduced the maximum time before logging all
link/copy activity of jail files, which typically
takes < 200ms.

Change-Id: Ie48072314471195a5f156cb45c616a5e57d2a287
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92103
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-04-24 16:39:46 +02:00
Michael Meeks
8c98b5930f Proxy: poll for output space if we need waking.
Change-Id: I18a5e71bd3342eea7992672d9be1f5518ea008e3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92810
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 16:12:01 +02:00
Michael Meeks
c28fff4cfa Proxy: open four wait sockets concurrently.
Change-Id: I08b85677be528b7aa77272a8527c9bacf3f7c336
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92809
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 15:58:42 +02:00
Ashod Nakashian
5471e967b9 wsd: killpoco - reduce Poco usage where unnecessary
Poco's File::linkTo was added in version 1.8.1 and
we still support older versions. Also, symlink(2) is
far more transparent and simpler here.

Change-Id: If537cc77cd1388f3c0e2a6b16b1edcf46a60e357
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92102
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-04-24 15:40:30 +02:00
Michael Meeks
5b9f092748 Proxy: re-write css image URLs to handle the proxy.
Change-Id: I09f3dea2f5e3a51869d5b0aa3f473d8f3ba75f44
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92808
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 15:39:25 +02:00
Ashod Nakashian
df6d942d08 wsd: harden socket weakptr
Weak pointers can be null and must be
checked before using. This fixes at least
one segfault and prevents a number of others.

Also, minimizes locking of weak pointers
in the message handlers.

Change-Id: I306501c26c3441d7bd6812d51fa17e7356126f32
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92828
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-04-24 15:39:17 +02:00
Tamás Zolnai
98e3994e6a cypress: add an own eslint config for the test code.
This parserOptions was added for cypress test so
move that into the tests' own config:
b2ec95dcfd

Change-Id: I3c565d212409cc01621eca97cd59ae7869d852cc
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92857
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-24 14:41:31 +02:00
Michael Meeks
3f9b486903 Proxy: send multiple messages in a single request.
Change-Id: Ic0a303979478801bd23941e8893ce5721cf3e732
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92807
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 14:25:48 +02:00
Michael Meeks
fdc062b488 Proxy protocol bits.
For now very silly: [T|B] + hex length + \n + content + \n

Change-Id: I256b834a23cca975a705da2c569887665ac6be02
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92806
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 13:57:49 +02:00
Tamás Zolnai
d66d6bc91c cypress: mobile: restore waitUntil usage in object insertion code.
Unfortunatelly, cypress does not work properly when invoke() and its()
are chained:
https://github.com/cypress-io/cypress/issues/7130

Change-Id: I49fb9dcf9dc664495dfe8662d430df19faab00de
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92849
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-24 13:23:14 +02:00
Michael Meeks
bf0662bda1 Proxy websocket prototype.
Try to read/write avoiding a websocket.

Change-Id: I382039fa88f1030a63df1e47f687df2ee5a6055b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92805
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 13:09:09 +02:00
Michael Meeks
87eac2079b ProxyPrefix: allow the user to specify a custom prefix.
This allows us to re-direct web traffic via a proxy quite simply
during fetch, instead of changing the service root.

Change-Id: I28d348467e48394d581fca4da4c199348a2ca8e0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92804
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 12:48:11 +02:00
Andras Timar
25bc0a1088 Proof: add loolwsd-generate-proof-key helper script
Change-Id: Ibbd99b6431b1a2992c520d3fad5f52d0770905f6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92788
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-23 19:36:06 +02:00
Andras Timar
c98d2d2b3d Add Insert Fields menus to Impress desktop menus, too, in order to be sync with mobile UI
Change-Id: I1e0a5e309be25a22dbec73e2a74d7498896a4eb7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92761
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-23 19:35:48 +02:00
Andras Timar
67fca3bdfb Re-add Impress fields to mobile menu
.uno:InsertSlideField, .uno:InsertSlideTitleField, and .uno:InsertSlidesField
cannot be dispatched, they are only 'aliases' to the respective 'Page' commands.

This partially reverts commit e6c880b1af.

Change-Id: Iad6a55a746377912adb7958cf7653fe181553cbb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92760
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-23 19:35:37 +02:00
mert
d9cbd9d6f6 mobilewizard: fix number format doesn't update properly
Change-Id: I852dd79d9658f676e86b22cb1cb145264c9de2fe
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92762
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-23 19:35:06 +02:00
Pranam Lashkari
def2368547 leaflet: slide background color/gradient name replaced
color names are replaced with descriptive names
i.e: background color, gradient start, gradient end

Change-Id: I4d8a8bec6f180efa3874275f6ed0aeec33369bb1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92750
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-23 18:09:47 +02:00
Pedro Pinto Silva
8f05c15656 Mobile: mWizard: disabled input fields: make sure both image and spinfield controls do not stay active
And make sure the js listener is only added when the inputfield is enabled (fixing useless callbacks and changes on html)

Change-Id: I4f4f2b4430b1c43143f95ab9d9fe075c8e1f49b8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92763
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-04-23 14:31:31 +02:00
Pranam Lashkari
15c2235d16 leaflet: changed ID of shape fill style
Change-Id: Ib8ad95cf265afbee88f02c3d7746a030e44bbf7c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92743
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-23 13:21:04 +02:00
Pranam Lashkari
313db8a8cd leaflet: resolved impress slide background gradient not changing
Change-Id: If71b380859c202327a533b121af45232682e52df
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92088
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-23 13:19:48 +02:00
Henry Castro
a2410c599c android: convert remaining rules to gradle tasks
It will give an Independence (at least) to the
gradle build system to package the product

Change-Id: I127c2f921b506ec280a244d609707f3480e0f92e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92719
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-23 09:09:11 +02:00
Henry Castro
35405ae637 android: update README file
Change-Id: I0eff096514a92cdce54a2e6d7efcc8a73faae974
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92720
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-23 09:06:54 +02:00
Andras Timar
b0645a647c Proof: SSH private key format matters
On openSUSE Leap 15.1 the ssh-keygen binary produced a private key
that caused Poco to throw an exception. Apparently Poco expects
the private key in PEM format. Apparently on most distros this is
the default format, but not on openSUSE Leap 15.1 where we need
to specify it explicitely.

Change-Id: Id142735b13887a1347895f121400ed6d5aecc1f4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92736
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-22 23:52:21 +02:00
Andras Timar
1b46fe47ba Revert "Update translation files"
This reverts commit 7bea44c149.

Reason for revert: it removed good translations

Change-Id: Iccc2a012d4fa6977f2a8e7fdf07ff4c9a0040399
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92542
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-22 18:55:02 +02:00
Weblate
7bea44c149 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: I17e88df1578b17e9beae7e6195b66634cc8b424b
Translation: LibreOffice Online/loleaflet-ui
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-ui/
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92710
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-22 18:53:33 +02:00
Weblate
0880000007 update translations
LibreOffice Online/loleaflet-ui (Hungarian)
Currently translated at 100.0% (296 of 296 strings)

Change-Id: Iaaa5fc948c142c87f634b75afd2a26812a0f8dca

update translations

LibreOffice Online/loleaflet-ui (Polish)
Currently translated at 100.0% (296 of 296 strings)

Change-Id: I8c1c88cf50fe031173900059f8486ac0972dd7a9

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: I17e88df1578b17e9beae7e6195b66634cc8b424b
Translation: LibreOffice Online/loleaflet-ui
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-ui/

update translations

LibreOffice Online/loleaflet-help (Slovak)
Currently translated at 98.8% (411 of 416 strings)

Change-Id: I20f4c5ce0fa87a26f9f05e75835e3d0cc245f011

update translations

LibreOffice Online/loleaflet-ui (Slovak)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: Ib2c80fa7f5ed5cc748f37d92638095224fb187f3

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 84.9% (353 of 416 strings)

Change-Id: I06008211ffceec01cbb3221eaaa1be784f5345b7

update translations

LibreOffice Online/loleaflet-help (Venetian)
Currently translated at 9.1% (38 of 416 strings)

Change-Id: I14f64e85dd3cfacb5bdd93cb61746fbfca934ae9

update translations

LibreOffice Online/loleaflet-ui (Portuguese)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: Ib164c7193b415e07cc5ab6a3e54236790e56e7a0

update translations

LibreOffice Online/loleaflet-ui (Amharic)
Currently translated at 72.4% (213 of 294 strings)

Change-Id: I2188bc567aa2fa6b85e98daffa16fd8f0f3ddef6

update translations

LibreOffice Online/loleaflet-ui (Asturian)
Currently translated at 40.5% (119 of 294 strings)

Change-Id: I3b871c9aeda5edac643a28e1b0c7a99acc0aa1eb

update translations

LibreOffice Online/loleaflet-help (Czech)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: Ic4268f4bccd2d68f41f3db688e28af60e6d3fe48

update translations

LibreOffice Online/loleaflet-ui (Upper Sorbian)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I1c51dc5c12f6c4e0fc6bc3c190bd612e09321f36

update translations

LibreOffice Online/loleaflet-ui (Basque)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I6d4b2768d17ca951ca5123f97888fc1587ea2d90

update translations

LibreOffice Online/loleaflet-ui (Lower Sorbian)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I0b2e4f1ffcd00eb1514026cd76f7211cd1972b3d

update translations

LibreOffice Online/loleaflet-ui (Bulgarian)
Currently translated at 99.7% (293 of 294 strings)

Change-Id: I5eb914e253472e3645469166fa00d81a44b20558

update translations

LibreOffice Online/loleaflet-ui (Portuguese (Brazil))
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I5f2d9a3785f94bdaf4cd41b0446ffe51d3938fd2

update translations

LibreOffice Online/loleaflet-ui (Welsh)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I45962b07b3890d49e83b47f6b10193934cb4d6b6

update translations

LibreOffice Online/ios (Dutch)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I17acebfd6380cb5c0822a97d9eb72ffb811a430c

update translations

LibreOffice Online/android-lib (Dutch)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I68896cbc8830521f22c91cf981550adee39cdcf2

update translations

LibreOffice Online/android-app (Dutch)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I13207ecfb48d4493d761ea434503cead9bd5e021

update translations

LibreOffice Online/android-lib (Dutch)
Currently translated at 91.7% (11 of 12 strings)

Change-Id: I95cf32aea3fe06052c72dda9fbc9f53d45e343f3

update translations

LibreOffice Online/loleaflet-ui (Dutch)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I1057bd39dabab7f35f539eb5145b26df9ff3db4a

update translations

LibreOffice Online/loleaflet-ui (Spanish)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I5ad5f88c4c7b845654178ab4fdf8269d5dac68fa

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: Iac1658f04f6ae759d19566338fd761b4842c6f2b

update translations

LibreOffice Online/loleaflet-ui (Asturian)
Currently translated at 39.1% (115 of 294 strings)

Change-Id: I0b4f91e151376158dfb19ba7aa8ae3a1dfd1ee52

update translations

LibreOffice Online/android-app (Norwegian Bokmål)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I893c6ea94dc954667756d076ea54953cd4e18497

update translations

LibreOffice Online/loleaflet-help (Norwegian Bokmål)
Currently translated at 52.6% (219 of 416 strings)

Change-Id: If4ed7f3626e94949ca0bac1d2861a3496aa7fcee

update translations

LibreOffice Online/loleaflet-ui (Slovenian)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I135f8b0bf6591637daf8140538037c0b56e428af

update translations

LibreOffice Online/loleaflet-ui (Norwegian Bokmål)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: Ib8d0e3153a719c86820043f206a3ced88d9bf1ae

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: I2ab01e8363e023660377ff6172ddea17e6047a2f
Translation: LibreOffice Online/loleaflet-ui
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-ui/

update translations

LibreOffice Online/loleaflet-ui (Polish)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I993555978da571097b4a3f159992ccbd82b3f634

update translations

LibreOffice Online/loleaflet-ui (Hungarian)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I9016c2d1954c4c6e43d6dae83683f8aa782798b2

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: I89e25cc20f4d2e75b0b77ba7c00fb2fdda368434
Translation: LibreOffice Online/loleaflet-ui
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-ui/
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92369
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-22 18:46:09 +02:00
Tamás Zolnai
2a047045b2 cypress: make expectTextForClipboard() work in Writer.
Change-Id: I19d8961f64a23102f58d47a9893ddc318206c70a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92716
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-22 18:03:56 +02:00
Tamás Zolnai
604782e0a3 cypress: eliminate cy.wait() in clearAllText() method.
Change-Id: I572daf71b31814e2d6e0d2dc831152773e659f7b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92717
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-22 18:03:25 +02:00
Michael Meeks
ce54304a34 Tolerate missing WOPI parameters.
Change-Id: Ic938b835aadeb299e06682b2f384db323eca0a91
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92699
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-04-22 17:56:30 +02:00
Andras Timar
b6c354cbed loleaflet: update UI pot
Change-Id: I84e0216361e2ccc37051cdf00816caa4a48d8eae
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92706
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-22 16:59:34 +02:00
Pedro Pinto Silva
80848ea8e9 Mobile: mobilewizard: inputspinner: fix disabled state
Change-Id: I5e6ef1572b578c3f34e52f0e4795dc4dfc71865c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92639
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-04-22 14:34:47 +02:00
Tamás Zolnai
ba86534c43 cypress: introduce a data attribute for acceptInput
So we can use cypress calls to wait on the tested state
using cypress' retry functionality. It's also useful to
have the acceptInput state in the DOM, so we can check
it in the interactive test runner.

Change-Id: I17cd8f88b270f7a329d35e77dec4eedd7aa1c2a3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92682
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-22 13:35:35 +02:00
Tamás Zolnai
e580e8c7dc cypress: desktop: restructure data and test files.
Plus rename one test file: focus.odp -> slide_operations.odp.

Change-Id: I278fc22ec55bcfbd47d2ecda95b759c16b615403
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92681
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-22 12:56:02 +02:00
Tamás Zolnai
06160fed5e cypress: remove this example test code.
It was added initially to have some dekstop test too.
Now it fails, so no need to keep it.

Change-Id: I94aae2b5e86c46dfd5afa5decabb3333cefd1302
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92680
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-22 12:37:32 +02:00
Tamás Zolnai
9d9ea65529 cypress: introduce a better way to check the selected text.
We can use cypress methods on #copy-paste-container and so
we don't need to use explicit wait() method here. The added
cypress call will do the waiting more effectively.

Change-Id: Ib15ffb1d72e422ef303f9e0e17b29d740cd4e7f6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92678
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-22 12:31:22 +02:00
Tomaž Vajngerl
288d99847e loleaflet: decrease min zoom to 1 => 20%
In some cases on tablets in impress we want even smaller document
sizes as otherwise the document doesn't fit on the screen.

Change-Id: Ice00f122bae1401755c5094c23202a208468fe50
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92640
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2020-04-22 11:47:19 +02:00
Szymon Kłos
829a0c7fa3 Move toolbars resizing to the internal implementation
Change-Id: I7afa916f03c4d6d4dd4b863d6ff65b1936fe32f0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92671
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-22 10:20:15 +02:00
Szymon Kłos
799235eb38 Move command state updates handler to toolbar implementations
Change-Id: I3b9b4a7c05a0c6f40f86f6a69ea8873a1120180c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92670
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-22 10:06:18 +02:00
Miklos Vajna
49fa1aa1c0 Fix -Werror,-Winconsistent-missing-override
Change-Id: I734c2987b20de3dda85ce079aced3c5b90f352e1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92667
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-04-22 09:58:26 +02:00
Dennis Francis
217dd2de54 Do not broadcast view-cursor invalidation messages
in kit as these are sent by core to specific view(s) by ultimately calling either
(as seen from the usages of LOK_CALLBACK_INVALIDATE_VIEW_CURSOR in core)

1. SfxLokHelper::notifyOtherView() where it sends to particular view.

or

2. SfxLokHelper::notifyOtherViews() where it sends to all views except
the current view.

The core makes the decision to broadcast or not, and if it does, then
the kit's broadcast of broadcasted messages can only cause a blowup of messaging
complexiity w.r.t number of views. It also does not make sense to send
view-cursor messages meant for a view to be sent to others in Calc
with clients of hetrogeneous zooms.

Change-Id: Ib07c5fbba9bb05c59048561d2c26aed00f3be598
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92633
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-04-22 09:48:55 +02:00
Szymon Kłos
43f19fa57e Move DocumentNameInput to separate file
Change-Id: I20b5620269b46902a612d2b43346d3b02c3636cd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92622
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-22 09:36:03 +02:00
Henry Castro
40b0e084be android: change dependency to generate assets
According to gradle graph tasks, add a dependecy
to generate loleaflet assets

Change-Id: I5b528989c645903840eae44b7770b7d2425bb921
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92662
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-04-22 00:49:43 +02:00
Henry Castro
e3b0c05733 android: add gradle task copyBrandTheme
Change-Id: Ide4a58551fad9befe3e81ab727be283e438dcae3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92661
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-04-21 23:43:15 +02:00
Henry Castro
8b593d94c1 android: add gradle task copyBrandFiles
The gradle build system can do the job

Change-Id: Ife8f080726ca61540201bd00acb7fab97efbba85
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92659
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-04-21 23:01:07 +02:00
Tamás Zolnai
49edc462b7 cypress: assign selection data to clipboard container as soon as it arrives.
So we don't need to trigger a fake copying to get the
content. It will make things easier.

Change-Id: I0964fe697602d77078f10792355fbda23879c7c9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92645
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-21 20:31:42 +02:00
Tamás Zolnai
57e225bb9b mobile: fix 'enable property of undefined' error.
Caught by cypress tests.
We don't have 'presentation-toolbar' on mobile.

Change-Id: I95440dbd505202183f936fc3e4f962c6a0199257
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92646
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-21 19:35:46 +02:00
Henry Castro
d8f8e12358 android: parameterize the Dist folder
Now, It is possible to build lolealfet to assets
folder directly

Change-Id: Ie5f7de65bcd4d6e4ab5df2b2697b4c02cbbbef67
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92597
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-04-21 16:52:23 +02:00
Henry Castro
53a27a1ec4 android: set specific DEST:SOURCE config files
The *.in files in android should be generated
explicitly in source dir. With this setting it is
enabled to configure builddir != srcdir

Change-Id: I529f8021d4407b2f87ae265b93fb3d764bb1a1bf
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92595
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-04-21 16:28:13 +02:00
Henry Castro
0e8942f88f android: configure build directory
Enable to change to build directory when
builddir != srcdir

Change-Id: I8e48897c44a5ea67da8ffebc3183d722a05e3a20
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92596
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-04-21 16:03:38 +02:00