Commit graph

4136 commits

Author SHA1 Message Date
Michael Meeks
87b95bb546 IE11 - adminconsole, polyfill and HTML cleanup.
Change-Id: I1cbc24aeb3c0398f399702ac9749a204b1b59a56
2019-11-20 14:33:55 +00:00
Pedro Pinto Silva
11df151290 * Ensure that any rule from mobilewizard does not spill out from smartphone range
* Fix impress slide previewControl misalignments (on desktop)

Change-Id: I009b75ba95870e3bd051b299113c90abb584c189
Reviewed-on: https://gerrit.libreoffice.org/83317
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-20 15:32:31 +01:00
Pedro Pinto Silva
b46ee2123a toolbar-up: fold: Replace padding with margin
Change-Id: Ie05b12fa01856ba61b881a27890f5a8942c5908b
Reviewed-on: https://gerrit.libreoffice.org/83295
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-20 15:32:17 +01:00
Szymon Kłos
1981e02335 jsdialogs: add id to the combobox
Change-Id: Id62efa14c3ef8019d89101d9ed35415024100b4d
2019-11-18 12:50:02 +01:00
Henry Castro
0d734b2aae loleaflet: avoid using $.data jquery function
I am personally not agree to use "jquery" functions in src/* source
code, but there are some "jquery" library components (i.e.
"mCustomScrollbar") that it is dependent it, however let's minimize the
use of "jquery" functions.

Change-Id: Ic64c12d966a6215acfa900cdc05e5ddb84026f79
Reviewed-on: https://gerrit.libreoffice.org/82996
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-16 19:29:15 +01:00
Henry Castro
acb4f87bd4 loleaflet: defer request preview thumbnail task
When mCustomScrollbar fires onScroll then queue the task to run as soon
as the current synchronizing code.

Change-Id: I761937a0ad181a42b592ad953cc7b83ea73a1b21
Reviewed-on: https://gerrit.libreoffice.org/82990
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-16 19:28:44 +01:00
Henry Castro
2644c113c2 mCustomScrollbar: add event listener to pointer or touch events
Some mobile devices support both pointer and touch events,
so if we add event listener it will fire 2 times.

Change-Id: Ida9862e9ee24e47ccbe3963b5c4ff18a173fffe0
Reviewed-on: https://gerrit.libreoffice.org/82799
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-16 19:28:31 +01:00
Henry Castro
59d3c2d20d mCustomScrollbar: remove unnecessary access to Window top property
When the frame is null, it is referring to a container frame window that
it is always not accessible.

Change-Id: Ie96a05327928b2b72ce5577409e368061b2afa1e
Reviewed-on: https://gerrit.libreoffice.org/82798
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-16 19:28:13 +01:00
Henry Castro
cb7813ef35 mCustomScrollbar: reduce the number of _coordinates function calls
The _coordinates function is called several times to compute
the same coordinate value.

Change-Id: I6e187b74709515ddde77d60649e564cb2b484fb4
Reviewed-on: https://gerrit.libreoffice.org/82797
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-16 19:28:01 +01:00
Michael Meeks
1ab617a3a2 Remove unused _keyHandled
Change-Id: I3bd1e05e33ec976ff44067a8a19b699b523c52a2
2019-11-15 21:42:58 +00:00
Michael Meeks
2d52ddcb60 avoid spamming the JS console with load state messages.
Instead highlight messages received when not fully initialized.

Change-Id: I2ee2c9cf20ceaf3f98f1500add3f56256e65f42d
2019-11-15 18:09:24 +00:00
Michael Meeks
98617e40e2 Enable protocol debugging by default in debug mode.
Also add a config option for logging.protocol - to help catch early
protocol issues during startup.

Change-Id: I6f0cc6dcf14b2797bc6b2bd36c44750d74eb0608
2019-11-15 18:01:02 +00:00
Michael Meeks
946cc5d8e6 Rename misleading ClipboardContainer -> TextInput
Change-Id: Idb5ccb9959e0c77dfcdbb2793330bb048db0f0f8
2019-11-15 16:28:34 +00:00
Henry Castro
3e2ec0854d loleaflet: add missing parameters when early websocket connection
Add some missing parameters when the "websocket" is connected after
loleaflet.html while "bundle.js" is downloading and ready to execute.

Change-Id: I36995a3c82ce17fa5a81923e8d6d785f0c1c7742
Reviewed-on: https://gerrit.libreoffice.org/82546
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-15 15:49:52 +01:00
Henry Castro
d93d9dc59b loleaflet: fix the dragging limits of the dialog box
Change-Id: Id6336ce5bde9567c3a99c4660e8445f65f7545a2
Reviewed-on: https://gerrit.libreoffice.org/82535
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-15 15:49:32 +01:00
Pedro Pinto Silva
1ed89ae220 mobileWizard: improve focus/active states in all unobuttons using new class and properties
Change-Id: Iaf124c50980d9d53be412e7ffcb1bf666e64f85f
Reviewed-on: https://gerrit.libreoffice.org/82716
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-14 15:58:47 +01:00
Pedro Pinto Silva
6ca05878f3 mobileWizard: style unobutton when selected
Change-Id: I83de024825e9409ae494b5d4b24afa23c54ad604
Reviewed-on: https://gerrit.libreoffice.org/82713
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-14 15:35:35 +01:00
Jan Holesovsky
865c10cfd5 Make Ctrl+f jumping to the search again.
I think better to just fire a new 'focussearch' event and handle all the
Ctrl+<something> at one place.

When at this, fix also a regression that Ctrl+f in the search bar
triggered the browser's search.

Change-Id: I759be9ed3934e14b1e05a37a65ca1ce54d99eb0b
Reviewed-on: https://gerrit.libreoffice.org/82700
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-14 15:03:11 +01:00
merttumer
92f5d74073 Make pressing Ctrl+F twice behave like Desktop
Currently pressing Ctrl+F twice opens up browsers
search bar.
Signed-off-by: merttumer <mert.tumer@collabora.com>

Change-Id: I213d4e4c770a035714abe7bcd0e54c74929ade27
Reviewed-on: https://gerrit.libreoffice.org/82694
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-14 15:02:51 +01:00
Jan Holesovsky
8f86b7e7e7 Take the name of .uno:MasterSlidesPanel directly from the core.
Change-Id: Ia75cf573552e0cf4c7eac378138d1ecbfd3e7b4f
Reviewed-on: https://gerrit.libreoffice.org/82692
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-14 15:02:06 +01:00
Szymon Kłos
f96461558d jsdialog: add uno listener for checkboxes
Change-Id: I207456330503c8900524f746411e0005434beb11
2019-11-14 13:56:59 +01:00
Pedro Pinto Silva
31c5769abd mobile: Toolbar-search: remove .over class that sometimes would appear when using firefox
Change-Id: I0386a05adcf2aae2ca94e186cfcafcba8ff2ad8b
Reviewed-on: https://gerrit.libreoffice.org/82676
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-14 13:39:51 +01:00
Szymon Kłos
6104b20d2b jsdialogs: remove debug printout
Change-Id: I6fb384e848c804f9596b29fff862cf6db82d37f8
2019-11-14 12:33:43 +01:00
Szymon Kłos
51cdf48138 jsdialog: add uno listener for uno toolitems
Change-Id: I5967c847ad0aea4845fdcac67555fb5179161e92
2019-11-14 12:09:05 +01:00
Szymon Kłos
52aab52dd3 jsdialog: add uno listener for spinfields
Change-Id: If61609e55680272661f0ab953cf18907c07f9f07
2019-11-14 12:09:05 +01:00
Pedro Pinto Silva
3319d8334f MobileWizard: spinfields: units: replace 'degree' with its respective sign
Change-Id: Ide40b9a06485960e63dbee9e94c3745b2cd59e3e
Reviewed-on: https://gerrit.libreoffice.org/82666
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-14 11:41:41 +01:00
Pedro Pinto Silva
80f7985e03 Mobile: Impress: add visual cue when editing slide master
Change-Id: I3a8882fbb76fb5c1d364381650d1424f140ccbd2
Reviewed-on: https://gerrit.libreoffice.org/82606
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-14 09:47:51 +01:00
Michael Meeks
c790eb7d37 loleaflet: calc: on IE11 headers and gridlines are not displayed
Fix merge error with:

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: I973f232fa48ce5ba1d125325c2ccf5d4e6610935
2019-11-13 18:10:18 +00:00
Michael Meeks
db20596a0a Avoid exceptions on mouse-events while initializing.
Change-Id: I7f25e08edcc7a34b08016211c599774973fd506d
2019-11-13 16:58:15 +00:00
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
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
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