Commit graph

9501 commits

Author SHA1 Message Date
Ashod Nakashian
5dc8e815c4 wsd: logging: color trace differently to improve readability
Change-Id: I5127061f4d62122d07bad32d4757569f1a9cc877
Reviewed-on: https://gerrit.libreoffice.org/80321
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 48387b00077b9baa72508c05e3fc3228a4569998)
Reviewed-on: https://gerrit.libreoffice.org/81559
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-10-28 10:45:31 +01:00
Ashod Nakashian
8c4edb5087 Reuse cookies from the browser
Reviewed-on: https://gerrit.libreoffice.org/78195
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 8deecf4ea6966c059458bdc71e365be426238e09)

Change-Id: I96bbdd3e71bc9d0ecfddea7debc0ebcc303a49ae
Reviewed-on: https://gerrit.libreoffice.org/81558
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-10-28 10:45:14 +01:00
merttumer
1e63a02be4 Added reuse cookie option for wopi client
Signed-off-by: merttumer <mert.tumer@collabora.com>
(cherry picked from commit 9b8aa96a18ce2eda11b5e51b2df5bb0d8cd822d2)

Reviewed-on: https://gerrit.libreoffice.org/78194
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 3ab7e500d83ed814a2d1ba1043df828b1b6c865f)

Change-Id: I61577189f461ef94523af13b3734d84a20a11222
Reviewed-on: https://gerrit.libreoffice.org/81557
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-10-28 10:45:04 +01:00
Miklos Vajna
cf19ee6ce5 Convert password protected test to a new-style one
So that they are in-process, which means it's easier to debug when they
fail.

Change-Id: Ie57d028314fec1994f603097cf408cbda2fee8f4
2019-10-28 09:12:32 +01:00
Aron Budea
8b402b9687 Replace 'includes' with '$.inArray' for IE11
Change-Id: If9cbe0c2525e904bc80e0942fbea2acc269a70e1
Reviewed-on: https://gerrit.libreoffice.org/81515
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
2019-10-25 22:36:51 +02:00
Henry Castro
6eb1c759a8 loleaflet: fix "TypeError: Cannot read property 'show' of undefined"
I have the following error in the console log:

Control.Toolbar.js:1541 Uncaught TypeError: Cannot read property 'show'
of undefined
    at NewClass.onDocLayerInit (Control.Toolbar.js:1541)
    at NewClass.fire (Events.js:146)
    at NewClass._onStatusMsg (Socket.js:886)
    at NewClass._onMessage (Socket.js:777)

Change-Id: I83f07bd5bfcfde484156c2719065f4418f6fd4b3
Reviewed-on: https://gerrit.libreoffice.org/81534
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-10-25 21:48:49 +02:00
Henry Castro
632dc080fd loleaflet: move some debug files related to admin console
The loleaflet/admin folder was created to separate the source files
that it is related specifically to admin console stuff. It contains
the build script, source files and now the appropriately debug files.

*TODO: fix the relative paths.

Change-Id: I0b26208e1ceff28ac5c7b2a9b2f1ff424d87e6a5
Reviewed-on: https://gerrit.libreoffice.org/81505
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-10-25 21:48:26 +02:00
Tamás Zolnai
78fc788272 Dialog: can't get back to it after clicking into the URL bar
Change-Id: Ibc4951f256245eddb56eb2c28026906515535c08
2019-10-25 17:11:13 +01:00
Tamás Zolnai
a6bf52f4a2 viewInfo: Fix missing user avatars by the first load of a document
We need to add a delay to the processing of viewinfo message
to make sure it is processed by the _docLayer.

See also this commit:
b0317d0ff461100ce9f0ba805cb18e5d829947e2
The above commit adds a delay to the status message processing
which is a dependency of handling the viewinfo correctly, so
I added a similar delay here too.
2019-10-25 17:10:48 +01:00
Jan Holesovsky
473e52d27b android: Fix a linking problem.
This is needed after core.git's
f68a36b62ed327eb67efdfea0ac46645b4d90877, without it the native code
crashes:

E/AndroidRuntime: FATAL EXCEPTION: main

    Process: com.collabora.libreoffice.debug, PID: 25358
    java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found
        at java.lang.Runtime.loadLibrary0(Runtime.java:1071)
        at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
        at java.lang.System.loadLibrary(System.java:1667)
        at org.libreoffice.androidlib.LOActivity.<clinit>(LOActivity.java:467)
        at java.lang.Class.newInstance(Native Method)
        at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
	...

Change-Id: If0d0f3ade3d2a5a8692dcc3d79edbfb51cd7e2ed
Reviewed-on: https://gerrit.libreoffice.org/81499
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-10-25 14:31:26 +02:00
Andras Timar
2efdb2016a Remove Lotus WordPro support
... because lotuswordpro filter is not present in MPLv2-only core builds

Change-Id: I100e886273f8b7fd38887576c2d29fad4c69b2e7
Reviewed-on: https://gerrit.libreoffice.org/79683
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit d7813989913e95cefc8484d6d2af965ed5752588)
2019-10-25 14:39:29 +03:00
Jan Holesovsky
7bb57be10a Enable sidebar also in Impress.
Omitting Draw...

[Here in the master branch, all this change does is to add the sidebar
button to the toolbar for presentation documents.]

Change-Id: I1b97757629bf93795e0fe4f4d5681f9e31354df6
Reviewed-on: https://gerrit.libreoffice.org/80024
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2019-10-25 14:28:24 +03:00
Szymon Kłos
e048f366ed jsdialogs: added callback for color picker
Change-Id: I6457917a1e6a451568072f985c85bab021c38b47
2019-10-25 12:30:48 +02:00
Michael Meeks
b0403c7d45 Copy linked /etc/localtime (and also timezone) into the systemplate.
Change-Id: I77fc24aa0f2fc94ee889a87bc10332c85ea57808
2019-10-25 11:24:33 +01:00
Michael Meeks
2f534842cd fallback to ssl.enable for storage.ssl.enable for back-compat.
Implements TODO from 5d57f5aef3

Change-Id: I32bc4cc2b875a4ec44bc8d254af7b03c8016e887
2019-10-25 10:57:24 +01:00
Michael Weghorn
f75366bc94 configure.ac: Add check for python3 libs
They are needed since commit
c1e04e4069
("scripts/unocommands.py: Switch to python3"),
so add a corresponding check to configure.ac.

Change-Id: If0f1d2b474c3edb3fc63dc54292acd54f096b822
Reviewed-on: https://gerrit.libreoffice.org/81473
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Michael Weghorn <m.weghorn@posteo.de>
2019-10-25 09:51:43 +02:00
Miklos Vajna
cdec2c7870 Convert rendering options to a new-style one
So that they are in-process, which means it's easier to debug when they
fail.

Change-Id: I817812eaeaffea4de8bb3a90466d815d4047372c
2019-10-25 08:54:46 +02:00
Szymon Kłos
564b36f01a jsdialogs: selected entry also based on text
Change-Id: Ic4dcd0ba99c3b7303222f4a5eabae0358187a526
2019-10-24 15:56:15 +02:00
Pedro
79a0dcc9ff Hamburger menu: add missing icons, add default placeholder, add parent class in JS
Change-Id: I61d4127f1ddcf1e08b61cc7d6a76e47a80ba49f7
Reviewed-on: https://gerrit.libreoffice.org/81452
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-24 15:42:06 +02:00
Pedro
f80d447fce mobilewizard: add selected list icon and revert unselectable stylings
Change-Id: Icce7f43d99fd64304d701b860e08520f4a146755
Reviewed-on: https://gerrit.libreoffice.org/81451
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-24 15:40:08 +02:00
Szymon Kłos
fbfaeb5f32 fix typo: frof -> for
Change-Id: I6b1e32c736eb961e2ae6722de67bad0a32290061
2019-10-24 15:08:34 +02:00
Michael Weghorn
c1e04e4069 scripts/unocommands.py: Switch to python3
Files not explicitly opened in binary mode are text files and thus
expect a 'str' arg for their write() method.

Python 2 is nearing its EOL and e.g. Debian has already
removed the python2-based 'python-polib' package previously
used here from its testing distribution.

I checked that running the commands

    ./scripts/unocommands.py --update . ../libreoffice
    ./scripts/unocommands.py --translate . ../libreoffice/translations
    ./scripts/unocommands.py --check .

still yields the same results as previously.

Change-Id: I39e1785d3c78416009420dd4c2be58bd1c3647c3
Reviewed-on: https://gerrit.libreoffice.org/81422
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Tested-by: Michael Stahl <michael.stahl@cib.de>
2019-10-24 14:07:47 +02:00
Pedro
411c5d79b1 mobilewizard: add style to selected vs unselected items in item-list
Change-Id: I520fed4f732ff77cf5d597de438051faa1279557
Reviewed-on: https://gerrit.libreoffice.org/81447
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-24 13:40:05 +02:00
Pedro
dfc2eebe54 Add mobile-ready vertical scroll and disable horizontal scroll
Change-Id: I7504b9c9fbba19a5bfe79f137df79df1f9e9431a
Reviewed-on: https://gerrit.libreoffice.org/81378
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-24 12:56:18 +02:00
Pedro
9e790e53fc Style color-picker and add icons; move rules to mobilewizard.css
Change-Id: Icc8261c9ef138ea5ea4869296a156c0b860e983b
Reviewed-on: https://gerrit.libreoffice.org/81335
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-24 12:55:20 +02:00
Szymon Kłos
30b0749051 jsdialogs: add class for selected combobox entry
Change-Id: Ie3f49ae983d0aef8a821f5dc52094c07c902e436
2019-10-24 11:42:39 +02:00
Szymon Kłos
75d6cdbf9c jsdliaogs: girds reorder & combobox icons
Change-Id: I29855a3ec5367c01675bb40da2fde92d2b402ab2
2019-10-24 11:32:22 +02:00
Henry Castro
298cffd6b6 loleaflet: apply a border style when the "valueset" item is selected
When the user selects an item (touch), the LO server updates and send
selected data to apply border styles.

Change-Id: Ic6f877712514806b822d70342738ee04ae2ea0a8
Reviewed-on: https://gerrit.libreoffice.org/81419
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-10-24 02:10:22 +02:00
Henry Castro
3d576a07de lolefalet: send command when the user touches an item on the layout menu
sidebar of the impress document

The client side sends the JSON string:

{
  id: "sd::LayoutMenu",   // control id in sidebar LayoutMenu
  cmd: "selected",  // Selection action
  data: "3"  // item id,
}

The LO core server receives the data and execute actions to the
correspond control child.

Change-Id: I066b804a63f48fe04e9c691da928e186b573f8c2
Reviewed-on: https://gerrit.libreoffice.org/81168
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-10-23 19:35:38 +02:00
Marco Cecchetti
4c80e125f2 loleaflet: color picker: add a specific class for selected basic color
Change-Id: I6af2cf744db0dd33e1c604fd88972434e244d48d
2019-10-22 14:27:18 +02:00
Szymon Kłos
ec2cd78bcb jsdialogs: change event message to JSON
- also differentiate set(editfield) from change (checkbox) event type

Change-Id: I76d69f29cbe84368770d308f7cfd15c828bd8a89
Reviewed-on: https://gerrit.libreoffice.org/81312
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-22 14:19:54 +02:00
Pedro
23e71b56ac Fix how formula input looks on Firefox and Firefox mobile
Change-Id: Idb362dde1872f2ed934f67d349eb1693c6c9c074
Reviewed-on: https://gerrit.libreoffice.org/81257
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-22 14:04:24 +02:00
Pedro
837e72e7ab Hamburger menu: Add missing icons and optimize svg
Change-Id: I17aad9d0ceb6d37eb99992b7f21f701a74257609
Reviewed-on: https://gerrit.libreoffice.org/81317
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-22 14:01:49 +02:00
Marco Cecchetti
02fe006ead loleaflet: color picker: on open show the tint set with selected tint
Change-Id: Ia69b40aac7287a9472050733e032abc600175bd5
2019-10-22 13:50:57 +02:00
Aron Budea
443ed3274f lokit: fix order of functions
74ce4a9261 introduced a
different order than in core.

Change-Id: I4d601e1fcd3028c7bbe9d0119c15193fe1db1f35
Reviewed-on: https://gerrit.libreoffice.org/81270
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
2019-10-21 20:20:45 +02:00
Marco Cecchetti
202de19585 loleaflet: use an svg icon as selection marker for sample tints
Change-Id: I2e94f0f65a8e7fc0e4883bca855ab23b77c96df8
2019-10-21 18:31:15 +02:00
Marco Cecchetti
e5035a3911 loleaflet: color-picker: selected basic color handled through css only
Change-Id: Ie23513a7f8246f92be08f7fde2d6b74ee3547a09
2019-10-21 18:31:15 +02:00
Pedro
7684aa029e Fix and style Follow editor overlay when on mobile
Change-Id: I30acf95f7cc8a7f274b031cc77cdace8b73e9918
Reviewed-on: https://gerrit.libreoffice.org/81233
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-21 15:13:39 +02:00
Pedro
d7b4a92550 Disable tooltips when on touch devices
Change-Id: I2a87a275b361fc2b81722bd25f09fd0f1baffcda
Reviewed-on: https://gerrit.libreoffice.org/81044
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-21 14:39:44 +02:00
Pedro
5618561d30 Add more icons to the hamburger menu
Change-Id: I2c85a67c80edd4c00222a1a1725cd07a4abb7fb8
Reviewed-on: https://gerrit.libreoffice.org/81051
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-21 14:39:18 +02:00
Szymon Kłos
ac15c8616a jsdialogs: setup spinfields events
Change-Id: I5597b8d981e25a79eb6eb6ee7e2595d06a7eb0e9
2019-10-21 13:34:53 +02:00
Marco Cecchetti
4b6807f6b9 loleaflet: comments layout improvements
This patch fixes the following problems:

1)
- create a document with several comments
- pan so that the comments are visible and the commented text is not
- tap on a comment box: no scroll action is performed for getting the
commented text visible

2)
Writer: in a document with a single page and a few comments,
clicking/tapping on a comment box doesn't align it with the commented
text since it is not possible to scroll the document (it is already
fully visible - it's made by a single page) and the comments are not
scrolled up/down.

Change-Id: Iaedbe9a89b5f45c322c5f9405960017cd7054e8e
2019-10-21 12:41:05 +02:00
Marco Cecchetti
91a8eccd27 loleaflet: update comments layout on pinch to zoom end
This patch mitigates but does not solve completely a problem that
seems to affect especially iOS devices when the user performs a pinch
to zoom the comments layout is not updated.

Change-Id: I04a0e91c11d07744653b6a25ffb553d22249bcb3
2019-10-21 12:41:05 +02:00
Marco Cecchetti
144089e639 loleaflet: not forward mouse events to core when user tap on a comment
For instance on Writer that causes the text cursor to be moved to a
new position.

Change-Id: I92082b7d0a3b512e0ceaabcea8592d09d0da27be
2019-10-21 12:41:05 +02:00
Marco Cecchetti
62e1d9ad82 loleaflet: writer: comments layout: comments overlaps
The selected comment can be placed far away from not selected comments
so the intersection could be empty, better to check for the y
coordinate only.

Change-Id: I2f649521bc5de44c89cbb61f76e6930aa5ccfe96
2019-10-21 12:41:05 +02:00
merttumer
271889bf05 Fix screen jumps away when inserting comments
Signed-off-by: merttumer <mert.tumer@collabora.com>
2019-10-21 12:41:05 +02:00
Szymon Kłos
721b9ad7d6 Avoid errors on non existing objects
Change-Id: Iacf082eb356dcd0f1e52bf5c7f024d7143990655
2019-10-21 12:41:05 +02:00
Szymon Kłos
6ed4f372f9 Don't jump to the previous pages when inserting a comment
Change-Id: I4d1573cd42b10388ee0265177a4c477c3a9b347d
2019-10-21 12:41:05 +02:00
Ashod Nakashian
7eba8628b5 leaflet: scroll to bring the selected comment in view
Change-Id: I15888b55cd3fef266e5a7f2bedf04bdf153b6d4d
2019-10-21 12:41:05 +02:00
Ashod Nakashian
d35508a38a leaflet: the comments area is never scaled
extraSize is fixed because the comments are never
scaled themselves, so we shouldn't scale the extraSize.

This fixes the issue with not being able to see the
comment boxes fully, even when scrolling to the far right,
when the screen width is too small.

What happened with small screens is that the document
zoom factor (and hence the dimensions scaling) kicked
in and zoomed the document out (< 1 scaling factor).
So when we scaled the extraSize needed by the comments,
we reduced their available width and since the
comment boxes aren't scaled they were left outside
the document and outside the reach of the user.

Change-Id: I57df55963b6119d5dde878bf3e1c3ffe984b7c43
2019-10-21 12:41:05 +02:00