Commit graph

9608 commits

Author SHA1 Message Date
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
Pranam Lashkari
e95413d151 killpoco: removed StringTokenizer from common directory
removed use of Poco::StringTokenizer from the common directory
used LOOLProtocol::tokenize and std::vecor<std::string>

regex is used in Authorization.cpp due to limitation of toeknize mathod
regular expression helps to keep the original intention of the code

Change-Id: Ic87597d8b30cb385000f983389a57dc5d2533d98
Reviewed-on: https://gerrit.libreoffice.org/82575
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-15 14:54:29 +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
Jan Holesovsky
cd81d78ccc Add a 'how to debug' to the whitebox unit tests.
Change-Id: I373ae9e7268b108eedcae2805b0c1681845542cb
Reviewed-on: https://gerrit.libreoffice.org/82651
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-14 10:07:17 +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
Miklos Vajna
ee61bc6fb8 Convert "client session" tests to a new-style one
So that they are in-process, which means it's easier to debug when they
fail.

Change-Id: Ia95b077b46538788c0bbc7cafebfd9019512d2ab
2019-11-14 08:40:59 +01:00
Andras Timar
fd93e11934 build fix after 'killpoco: removed StringTokenizer'
Change-Id: I2f1cb0da199a8dca1cf300955f133f45b8d7ba3b
2019-11-13 22:16:59 +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
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