Commit graph

9589 commits

Author SHA1 Message Date
Michael Meeks
9859a5f56b adapt grid and headers to retina scaling
Counter-intuitively, our retina scaling pixel multiplier is a
different integer multiplier than L.Util.dpiScaleFactor() in many
cases, being either 1 or 2.

Change-Id: I18078eca80b86216751738368d9885151a41dde2
2019-11-13 16:58:15 +00:00
Marco Cecchetti
a16da08b2c loleaflet: calc: on IE11 headers and gridlines are not displayed
The problem was that in CalcGridLine.onUpdate the integer costants
Number.MAX_SAFE_INTEGER and Number.MIN_SAFE_INTEGER were used.
Unfortunately such constants are not supported by IE11.

Change-Id: I0a0fba0c1eaa922b925168c16d3afd395c0d38f0
2019-11-13 16:58:15 +00:00
Iván Sánchez Ortega
55ac3da53f loleaflet: Draw column/row grid lines on the background
Based on information from UNO ViewRowColumnHeaders messages, this draws
the grid lines with Leaflet's SVG polylines, in a background pane.

To prevent visual glitches on touchscreens, this also reverts parts of
26aad36771ebd5a304b763912184acd2ea26dfdf - that introduced a regression
that prevented 'dragend' events from being fired when inertia-dragging.
Instead, inertia drag is disabled in the L.Map constructor.

[ Miklos: cherry-pick these early as they prevent automatic merging. ]

Change-Id: I86c68214822a0a2c2f8ced82ccf5a6c201e2cf04
2019-11-13 16:58:15 +00:00
Szymon Kłos
6584e3b8c0 jsdialogs: apply shadow transparency updates
Change-Id: I7e615590f8c3ba5f455cfbec55c3fef8919ab1a1
2019-11-13 16:03:51 +01:00
Szymon Kłos
c447c8fb43 jsdialogs: apply fill transparency updates
Change-Id: I630347002474609736e9d41169e65f8e1608ad04
2019-11-13 16:03:51 +01:00
Szymon Kłos
0937a21f9f jsdialogs: apply line transparency updates
Change-Id: Id222cbdf093fe73655bfda82fd8f41d13b192397
2019-11-13 16:03:51 +01:00
Szymon Kłos
df0bab8ab0 jsdialogs: apply .uno:NumberFormat updates
Change-Id: I141b1c35bbcfce404c1b042ffe9255db31ec180e
2019-11-13 16:03:51 +01:00
Jan Holesovsky
47e9cca4e1 Fix cut off comments in Impress.
We need to force the document size recounting in Impress, because the
document size actually "changes" there on zoom: The annotations are in
absolute pixels, so when you zoom out, it is as if the absolute-sized
annotations grew larger, so we have to extend the document size,
otherwise they are cut off.

But triggering the document size change too early leads to the
sideeffect that the layer with the cursor and the tiles grid get out of
sync.

Let's do the same as in writer - react on the 'updatemaxbounds' event,
and force resize from there.

Change-Id: If84ddf3597be0383ff6ae2271e6ba6ae3bbd5210
Reviewed-on: https://gerrit.libreoffice.org/82604
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-13 15:37:24 +01:00
Jan Holesovsky
d40002ab5f Fix eslint errors.
Change-Id: I3a354f684a08725afb2fac832ed5b6c118670696
Reviewed-on: https://gerrit.libreoffice.org/82594
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-13 15:37:04 +01:00
Jan Holesovsky
1040353fde More reliable way of theming the comment buttons.
Change-Id: I9c8e81a494733ec343b42596a19b1e90fa2b00d5
Reviewed-on: https://gerrit.libreoffice.org/82593
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-13 15:36:47 +01:00
Jan Holesovsky
3496b07e7e Cosmetic change in a memset invocation.
For an array, memset(array, ...) and memset(&array, ...) do the same
thing - but given that there has to be the sizeof(array), the former
is probably more readable / obvious here.

Change-Id: I7e329cb1dcabb564e26857b0c7d9f88431bb4ede
Reviewed-on: https://gerrit.libreoffice.org/82601
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Miklos Vajna <vmiklos@collabora.com>
2019-11-13 15:12:50 +01:00
Pedro Pinto Silva
575371f0d9 mobile:impress:menu(landscape): enable vertical scroll
mobile:impress:mobilewizard:hide scroll-x

Change-Id: I3faa5cc983e50dcfbd85b7e3e21edc6b9652300d
Reviewed-on: https://gerrit.libreoffice.org/82605
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-13 15:08:19 +01:00
Jan Holesovsky
d066c88fea sd menubar: Let's not attempt to change the menu description.
It is not a good UX to change names of items in the menu - we have a
different mean of indicating that the master page view is active: the
tick in the menu.

Change-Id: I53486847b3929d990de6e398df96b04b943998e6
Reviewed-on: https://gerrit.libreoffice.org/82498
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-13 11:56:20 +01:00
Michael Meeks
d5d157275d calc: switch row / column / grouping data to pixels.
This simplifies lots of logic, making it trivial to get good row/column
header alignment at any zoom. Ultimately TWIPS were highly misleading
'print-twips', and in that state are ~impossible to map to pixels
accurately unless all data is present back to the origin
(which was not provided previously).

This requires the equivalent patch on master.

Change-Id: I110f6f646e2b52bec4584c193c640df6b41100f8
2019-11-13 10:17:13 +00:00
Szymon Kłos
c8277bb11c jsdialogs: apply table row/column size updates
Change-Id: Id3601c82ce0f7320e9a7f86fe1e589b2edb5ea16
Reviewed-on: https://gerrit.libreoffice.org/82541
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-11-13 09:51:41 +01:00
Szymon Kłos
c8595eb7e4 jsdialogs: apply .uno:ULSpacing updates
Change-Id: I67e8600738bb380f5652d47b609d4db4c4e670e0
Reviewed-on: https://gerrit.libreoffice.org/82530
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-11-13 09:51:30 +01:00
Pranam Lashkari
a6b0e5b827 killpoco: removed StringTokenizer from wsd directory
removed use of Poco::StringTokenizer from the wsd directory using LOOLProtocol::tokenize and std::vecor<std::string>

Change-Id: Ic50b4d4d71d4ffd005aacf6aef0ed2bfde66d40d
Reviewed-on: https://gerrit.libreoffice.org/82569
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-13 09:51:04 +01:00
Pranam Lashkari
aabb5b0633 killpoco: removed StringTokenizer from tools directory
removed use of Poco::StringTokenizer from the tools directory using LOOLProtocol::tokenize and std::vecor<std::string>

Change-Id: I0673e658fd35cbdc7425a99f1dcea0b54923f52c
Reviewed-on: https://gerrit.libreoffice.org/82568
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-13 09:43:10 +01:00
Pranam Lashkari
d7bc9ff2e4 killpoco: removed StringTokenizer from test directory
removed use of Poco::StringTokenizer from the test directory using LOOLProtocol::tokenize and std::vecor<std::string>

Change-Id: I20fc2e0ef0d0d8fc959fee7972aa095f2581c181
Reviewed-on: https://gerrit.libreoffice.org/82565
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-13 09:20:25 +01:00
Miklos Vajna
4e43c5bbaf test: remove duplicate HTTPWSTest::testPaste()
This was originally moved in commit
b97789eb76 (Convert paste testcase to a
new-style one, 2019-10-18), then
194db8ed45 (test: improve stability of a
number of tests, 2019-10-12) restored a duplicate of this, probably due
to a mismerge.

Change-Id: Ie76266ddb85c58bb2370640025b91af980656908
2019-11-13 09:03:09 +01:00
Pranam Lashkari
8fb94e1827 StringTokenizer replaced with tokenize in file TileCacheTsts.cpp
Change-Id: I1024329bf518795b819f19f497af70d2266ec7da
Reviewed-on: https://gerrit.libreoffice.org/82543
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-12 17:50:17 +01:00
Ashod Nakashian
4cb038c60a wsd: Destroy ChildProcess instances before exit
ChildProcess instances log in the dtor, and this can
happen after the log subsystem has been destroyed,
because the order of destruction is undefined.
NewChildren is destroyed in exit, at which point
we have no control over the log subsystem.

To avoid this inversion of order, we clear
the NewChildren container before exiting.

Change-Id: I7b1bac3123fd7917616c11ab9674534c9222fff1
Reviewed-on: https://gerrit.libreoffice.org/82533
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-11-12 16:45:19 +01:00
mert
e0c6f3f80b Highlight searched text when found
Change-Id: I22fb5af8015f5114039d981d85b3ece8be77bf3e
Reviewed-on: https://gerrit.libreoffice.org/81845
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-11-12 16:43:45 +01:00
Aron Budea
7ef79051e3 loleaflet: Keep original sidebar button in Writer/Calc toolbar
Toolbar buttons had wrong tooltip, and didn't hide the sidebar.

Regression from d902160dd5
and 8a28a560f2

Change-Id: Ie85a4bee5d979c0ee1a8d3254faf019161c06869
Reviewed-on: https://gerrit.libreoffice.org/82477
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-11-12 16:43:08 +01:00
Szymon Kłos
5c3cd664a1 jsdialog: remove unnecessary console log
Change-Id: Idf8d7a2cd9738fbdb7a8ab32b516c7bbea10d652
2019-11-12 14:24:05 +01:00
Szymon Kłos
9ee96d4c25 jsdialogs: apply .uno:LeftRightParaMargin updates
Change-Id: I81cb7e20d41c51976f5df274c29b110656c0b8a7
2019-11-12 14:21:48 +01:00
Pedro Pinto Silva
00cff7eeec mobile:impress: fix border top from doc container (was being cropped);
mobile:impress: mobilewizard: hide horizontal scrollbar (was showing up in landscape mode)
mobile:impress: mobilewizard: adjust position when in landscape mode

Change-Id: I95e9b84a7b85bbafe1d0f510210a6cb840be9b12
Reviewed-on: https://gerrit.libreoffice.org/82512
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-12 14:18:15 +01:00
Pedro Pinto Silva
0a994724f5 Mobile: toolbar-down: horizontal scroll
- hide scroll elements (left, right)
- make it scrollable
- hide scrollbar (webkit, firefox, ie)
- tested on real devices (do not report/test based on desktop responsive mode. it's dubious)

Change-Id: I1dc509b36d4d16c3872561e8301d76ae708a286b
Reviewed-on: https://gerrit.libreoffice.org/82496
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-12 11:40:37 +01:00
Szymon Kłos
90611f59a6 jsdialogs: update LineWidth with current state
Change-Id: Ia699170691cda3fab892583a6a302302b6e3464d
Reviewed-on: https://gerrit.libreoffice.org/82486
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-11-12 10:41:09 +01:00
Henry Castro
504f6c17ef loleaflet: mobile: block the user from zooming on a page by setting
user-scalable=no in the viewport

Change-Id: Ibbe07d088800e65e649e549625441d114511e45e
2019-11-12 08:51:44 +00:00
Pedro Pinto Silva
59b29e2b2a Toolbar up (desktop): unfold icon: account for svg height and adjust vertical background position
Change-Id: I9a920de2436422c32a60a20084cfe668199acaca
Reviewed-on: https://gerrit.libreoffice.org/82487
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-12 09:40:36 +01:00
Miklos Vajna
3cf185a576 Convert "each view" tests to a new-style one
So that they are in-process, which means it's easier to debug when they
fail.

Change-Id: Ia16009f6047acdba531a7bfc50419dfb8ad0ca29
2019-11-12 08:47:47 +01:00
Grzegorz Araminowicz
d10257cf09 Pre-populate hyperlink dialog text field with selected text
using existing textselectioncontent message

Change-Id: I64ad932e8462d2318532bb5b9899b5e546831e32
Reviewed-on: https://gerrit.libreoffice.org/82334
Reviewed-by: Grzegorz Araminowicz <grzegorz.araminowicz@collabora.com>
Tested-by: Grzegorz Araminowicz <grzegorz.araminowicz@collabora.com>
2019-11-11 18:39:51 +01:00
Ashod Nakashian
ada90815cf wsd: remove duplicate renderFontOrientation from bundled headers
Change-Id: I91d4e2a9c76f6d62d0219e22442c8bf538a63908
Reviewed-on: https://gerrit.libreoffice.org/82438
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-11-11 14:17:35 +01:00
Pedro Pinto Silva
1a0cee97b5 - Spreadsheet: Move rules for mobile to spreadsheet-mobile.css
- Remove duplicated selectors regarding toolbar-down (toolbar-mobile.css)
- Add max-height for toolbar-down (toolbar.css)

Change-Id: I41cbd09620d212916338aedbae1936a5d924a520
Reviewed-on: https://gerrit.libreoffice.org/82435
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-11 13:43:43 +01:00
Pedro Pinto Silva
6dd9f393b4 Vex Overlay: add class also in the Map.js file
Change-Id: I8182f5945cddc56f9432c47e24c91434f550e82c
Reviewed-on: https://gerrit.libreoffice.org/82424
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-11 11:30:57 +01:00
Pedro Pinto Silva
cb1d893a80 - Fix vertical text alignment for all mobilewizard lvl1 rows (e.g. so font name is aligned with font value)
- Add missing transparency icon regarding shape shadow

Change-Id: If0ad887e50849ad5e1d53a6870ceaa7dd3b6a470
Reviewed-on: https://gerrit.libreoffice.org/82420
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-11 10:23:20 +01:00
Miklos Vajna
6e3d8005eb Fix HTTPWSTest::testExcelLoad() to pass again
Assuming that the test has to be adapted, and it's not like it caught
real badness.

Change-Id: Id0e6bc134aefdeb46d281ae6b2a5fbc9ae70e8a4
Reviewed-on: https://gerrit.libreoffice.org/82414
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Miklos Vajna <vmiklos@collabora.com>
2019-11-11 08:54:56 +01:00
mert
a8a11ef8f9 Fix mixed watermark texts
Change-Id: Id350d9dffc479350f240e82a4cc62ec97e5d68e1
Reviewed-on: https://gerrit.libreoffice.org/82372
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-11-10 23:46:09 +01:00
mert
e09b5f4226 Added Unit Test for new Watermarking feature
Change-Id: Id30015731d7ea562bfeb63fc70ffc6813945e492
Reviewed-on: https://gerrit.libreoffice.org/81674
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-11-10 23:42:47 +01:00
mert
2c598ba4ef Rotate Watermarks with 45 degree angle
Change-Id: I9b399a4e1daf52f536d4becae2cc6dc692e16f7a
Reviewed-on: https://gerrit.libreoffice.org/81436
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-11-10 23:42:03 +01:00
Ashod Nakashian
5c34a55eff wsd: update bundled headers
Change-Id: I142d6b39c91215b34815bdb425942b3d1298e1b4
Reviewed-on: https://gerrit.libreoffice.org/82396
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-11-10 23:41:27 +01:00
Muhammet Kara
3e3e40bbe1 Add logerrit for online
Copied over from core, replaced 'core' strings
with 'online', and removed 'testfeature'

Change-Id: Iae18ebc97b6851dbe61e5b089fa479dd740e2a8a
Reviewed-on: https://gerrit.libreoffice.org/82356
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-11-09 18:29:50 +01:00
Jan Holesovsky
888a9e56ab android: Back to using POCO.
It turns out that the std::filesystem is still not part of the NDK:
https://github.com/android/ndk/issues/609

The NDK has the header - but not the c++fs library yet :-(

Change-Id: Ic7003f71cd4730b2f34138adea3b09fe92fdbb4a
Reviewed-on: https://gerrit.libreoffice.org/82336
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-09 00:33:25 +01:00
Jan Holesovsky
7b97c5b019 android: Update the branding layout.
Change-Id: I661dfbda731fb0ef7772364c30b879a19f40a322
2019-11-08 23:04:47 +01:00
Jan Holesovsky
f637f4a75a killpoco: Remove StringTokenizer from LOOLWSD.cpp.
Adds possibility to tokenize using a regex easily.

Change-Id: Ie327d4faabec330c76d4cadb1d14bbe1527d332f
Reviewed-on: https://gerrit.libreoffice.org/82333
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-08 22:24:08 +01:00
Jan Holesovsky
15dcf613d8 killpoco: More complicated StringTokenizer removal in DocumentBroker.
Change-Id: I55688bfdd5aef49e27dddf56cc47c2ec5834768c
Reviewed-on: https://gerrit.libreoffice.org/82324
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-08 22:23:25 +01:00
Jan Holesovsky
efa293290c killpoco: Remove trivial StringTokenizer uses from some files.
Particularly those used on Android...

Change-Id: I47bf9692f5e99ba30140d698558472201168a198
Reviewed-on: https://gerrit.libreoffice.org/82302
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-08 22:21:31 +01:00
Jan Holesovsky
d906c78198 killpoco: Remove POCO from Protocol.cpp + related StringTokenizer usage.
Change-Id: I9d93c03dde110a4e88f7ec86e5934916596a27c1
Reviewed-on: https://gerrit.libreoffice.org/82301
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-08 22:20:58 +01:00
Aron Budea
8df2610dc9 Update reference to TemplateSource in capabilities
Change-Id: I1a0c08752bf81ae6675ea7430ca3024c35bd8c89
Reviewed-on: https://gerrit.libreoffice.org/82316
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
2019-11-08 17:57:33 +01:00