Commit graph

13500 commits

Author SHA1 Message Date
Ashod Nakashian
9bbd273e91 wsd: test: leverage the log system in TST_LOG
This moves the test log macros into a new home,
test/testlog.hpp, to avoid cycling dependencies.

Change-Id: Iacb80e813a64ff830fa18f63ec4de2535ee702b7
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-12-28 12:04:53 -04:00
Ashod Nakashian
f6082661d6 gitignore: .clangd and .cache
Change-Id: Iecb5e83bdb6dc5a54600b8bcc91254a33487a07e
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-12-28 12:04:53 -04:00
Pranam Lashkari
a3e59d1d21 leaflet: allow document scrolling when mouse is over annotations
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I9bb092a053b61f9cdd13c020b1349ae753d2289a
2020-12-28 11:57:35 -04:00
Tamás Zolnai
e8961e5123 Revert "downgrad wait-on: 5.2.0 -> 3.3.0"
This reverts commit a409b221f8.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I5662bfbf7b1209c0919eca2b8debefae9c82450d
2020-12-28 15:11:06 +01:00
Tamás Zolnai
8db4b19469 cypress: move includes of 3rd-party packages to support file.
Now we handle support file better for parallel test run too:
a13b1a93bc

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I4a88f815ddb1c4d79042134cc07e0c418d4ea10f
2020-12-28 15:11:06 +01:00
mert
6fec533398 Fix browsing parts visibility with PageDown/PageUp
Now the scrolling works as expected with the
parts that are invisible

Change-Id: I8fd41624befaea49978d43cf4e88249c47dc7534
Signed-off-by: mert <mert.tumer@collabora.com>
2020-12-28 16:13:22 +03:00
mert
067381f0b2 Pre-fetching next or previous slide tiles
Fetch the tiles of the part that is in the direction
of travel. This way we will avoid the tear effect
while browsing the tiles sequentially.

Change-Id: Ie47d1174f986253e4b43aa0c3276f05e7ddd0c81
Signed-off-by: mert <mert.tumer@collabora.com>
2020-12-28 16:13:11 +03:00
Henry Castro
5985ed252f jsdialog: only update the incoming control changes
It will update the control that has changed the model,
in the current visible dialog instead to recreate the
dialog again.

Change-Id: Ibad681df32952f380d63ccd82b01d83c488d95b4
Signed-off-by: Henry Castro <hcastro@collabora.com>
2020-12-28 08:36:17 -04:00
mert
c9cc7e840f Save Watermark bitmaps per user for re-use
Although we already save it for 256x256 regular
tiles, we use smaller tiles for preview requests
everytime there is a preview request the pixmap has to
recreated. Used unordered_map instead to keep different
resolutions saved for re-use

Change-Id: I3ced6b08b6e5f8096195b253abba8bb5afdffa3c
Signed-off-by: mert <mert.tumer@collabora.com>
2020-12-28 14:51:02 +03:00
mert
20476e147b Fix different size thumbnail rendering problem
We dont send broadcasts anymore for thumbnails
therefore no need to use higher dpi in case
we have highdpi views. This causes glitching on the thumbnail
especially when a watermark is applied. It gets smaller and bigger
back and forth and also this mean x2 more rendering for single preview.

Change-Id: I80ba8c70bcd9d5d3c00c2ddffadae11a6b0b2e61
Signed-off-by: mert <mert.tumer@collabora.com>
2020-12-28 14:50:54 +03:00
mert
92741efba3 More clean-ups wrt slide sorter
Fix preview placeholder does not load
Slowed down slide sorter scroll speed
Fix undefined function error

Change-Id: Ie19ec84bc43fbbdc2eb70fec183b895ef1409a96
Signed-off-by: mert <mert.tumer@collabora.com>
2020-12-28 14:50:37 +03:00
mert
9ef68cf19b Cancel preview requests that are not visible
Change-Id: I43db0d9d3068d38b98d449c3bba31050a1e288cd
Signed-off-by: mert <mert.tumer@collabora.com>
2020-12-28 14:50:37 +03:00
mert
fa7c5f572a Throttle preview requests on Impress
We should limit the on-fly preview requests to stop trashing
the server with countless preview requests
depending on the slide size and ask for more when we have them
rendered.

This patch adds the preview tile requests to a queue to be sent to server
as 3 requests at a time until they are rendered and received by the client
Also adding them to the queue allows us to check whether we already have
the same tile in the queue waiting to be sent which we can avoid sending
twice.

Change-Id: I03684dc807a7aef6c996a91efba100a9dca9686d
Signed-off-by: mert <mert.tumer@collabora.com>
2020-12-28 14:50:37 +03:00
Pranam Lashkari
1b27129309 leaflet: prevent text editing in master view
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I95ed79cf557b53b6a6695e98eda7684f70a4dd24
2020-12-28 09:39:17 +01:00
Andreas-Kainz
e6cc492e90 NB Impress home tab align bullet commands
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I57a86ad8188bbbe2dd7d6acb1cc51ef1bfea6fb4
2020-12-28 08:43:49 +01:00
Andreas-Kainz
7692247d63 NB Calc home tab align character commands
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I3ce35f06991d889efbbc2a5017bb61a16d07bd48
2020-12-28 08:43:49 +01:00
Andreas-Kainz
0396307eaf NB Writer home tab align bullet commands
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I591f14db39261c7d319d179d98af122c06b028c9
2020-12-28 08:43:49 +01:00
Andreas-Kainz
87aff35664 NB update Format Tab
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I36ede47c5bf917d5620a3dddeaa1e8133cc638a4
2020-12-27 20:16:24 +01:00
andreas kainz
cb27d2cda6 NB: vertical-align content
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I08c0ca3a33f50b046b51705b0933e5623b203b48
2020-12-23 22:55:59 +01:00
andreas kainz
d9cadd1259 NB: Update writer and impress file tab according to calc #1080
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I09e41341321b2cf03903d39533aba722abe5d2e4
2020-12-23 18:11:43 +01:00
andreas kainz
6cceee7e43 NB update: calc file tab: bottom align labels
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I86e4eec764dcbe3771d0d381e078bbbb57665c3f
2020-12-23 11:20:36 +01:00
andreas kainz
952b5c0219 NB writer: add context-graphic tab
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Iea802e4bd662ed9003f61665b771e49f6ea6e4c4
2020-12-23 11:20:22 +01:00
Jan Holesovsky
08f0e99bca Remove unused functions.
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: I79d9a5028a64e30b68b6a9aeb3389dfb7d083bc9
2020-12-22 17:55:00 +01:00
Rash419
2a87c77ee3 leaflet:add and remove kebab,sub-menu-arrow when necessary
Signed-off-by: Rash419 <rasheshpadia419@gmail.com>
Change-Id: I5360922453f962a45e1d4cf7c418f2bbfa3a31ed
2020-12-22 21:54:41 +05:30
Ashod Nakashian
693a2e19e3 wsd: SocketPoll::poll accepts chrono duration
Cleans up some of the conversions and implicity
unit in integral types.

Change-Id: I79f35b92f8f631894e55bdb39851b050870fce96
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-12-22 11:24:13 -05:00
Ashod Nakashian
13d7d23cbe wsd: use chrono for readability and conversion safety
Change-Id: If5d478605fef0199b331d91310673a460e70d48e
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-12-22 11:24:13 -05:00
Ashod Nakashian
693ac2fa52 wsd: logs and const
Change-Id: Id7e4f81ab9709b62eddfa747479ab593a5ad45a2
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-12-22 11:24:13 -05:00
Jan Holesovsky
e77da33d43 canvas layer: _animatingZoom is no more needed too.
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: If7e38c591e6b4b52fa16a47f4cc3f1c015ee0901
2020-12-21 22:19:18 +01:00
andreas kainz
51ba40862a Notebookbar Insert Tab: update writer insert tab
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I255116b6bb16e84d2b465f8fb862145924552f68
2020-12-21 21:25:31 +01:00
andreas kainz
a596e3292c Notebookbar Insert Tab: update calc insert tab
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I0d829aaa2e9869de87cddc997b8758fe8d20823c
2020-12-21 21:25:15 +01:00
andreas kainz
db2280bbba Notebookbar Insert Tab: update impress insert tab
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Iadae860ec5bb82d84e262eaf5bc602f2ce304758
2020-12-21 21:24:40 +01:00
Szymon Kłos
39c54e69cf jsdialog: pan gesture on dialog content only on tablets
Change-Id: I08ee307fa860beeed9c3b9b577a8b191ae8f2f72
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 19:11:49 +01:00
Szymon Kłos
a8a715373e jsdialog: open dropdown also when clicked on arrow
Change-Id: Ia354ddf75e6a097f1ef5aab586adb88a5234a14d
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 19:11:49 +01:00
Szymon Kłos
cb568b4340 jsdialog: fix dialog jumping
Change-Id: Id0a428280db2811efcd0f355f6109984179c50af
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 19:11:49 +01:00
Szymon Kłos
d3b8796c87 jsdialog: support step in spinfields
Change-Id: I010f616e4601789fde36f8143226fe99bac3bb1a
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 19:11:49 +01:00
Szymon Kłos
06df4b71fa jsdialog: make draggable also on tablet
Change-Id: I2759d5ceba222cfc34528ca8cf1087b2d70be6bf
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 19:11:49 +01:00
Szymon Kłos
2bdf5e4840 jsdialog: fix textarea position in mobile-wizard
Change-Id: Idc77992b477acd790cf4d4bffe2589c530b4cb09
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 19:11:49 +01:00
Szymon Kłos
ebdc5c07b6 jsdialog: don't override mobilewizard buttons
Change-Id: I4cc192fc3906b2f29a35844ae66201a13202ce99
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 19:11:49 +01:00
Pedro Pinto Silva
7787e2e2f0 JSDialog: Checkbox's parent shouldn't get dragged or selected plus label improvements
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia07a4ffd59be3b19dc38c0904f15086b9f3fe2c0
2020-12-21 19:11:49 +01:00
Szymon Kłos
ac7db0167b jsdialog: fix grid nodes
tr should be inside the table...

Change-Id: I90c983f3d3446549b04e3b4379612dba7b762750
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 16:55:02 +01:00
Pedro Pinto Silva
be6488b544 JSDialog: style frame-label, fix ui-alignment, fix expanders' container..
- Fix checkbox
- Chrome: fix input dimensions
- Remove unnecessary margins
- Hide frame-label in SelectSourceDialog (we don't need it, there is only one frame and we already have  a title)
- Add .ui-treeview-cell.with-sub-dialog to be used when we get that class
- fix hideitems, remove border

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5b07c543038163a33c66ea81672a858fca2b4059
2020-12-21 16:55:02 +01:00
Szymon Kłos
bcca81e860 jsdialog: disabled state for treeview
Change-Id: I40d21f395239c7394c9e4ae0af3facd11100b0e1
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 16:54:48 +01:00
Pedro Pinto Silva
bb0346d198 JSDialog: Fix listbox disabled value and style surrounding elements
- radio buttons
- label
- listbox and listbox-arrow
- make sure disable elements do not get hover styles

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Icb3f4171a431fe794c2a97848952219a6bb2bee0
2020-12-21 13:44:51 +01:00
Pedro Pinto Silva
a2e23eb5d6 Notebookbar: Fix StatisticsMenu arrow on Chrome and Safari
In some browsers the 3 components (icon, label and arrow)
were not being displayed properly.

- Adjust arrow element for StatisticsMenu
(fiddle with useInLineLabelsForUnoButtons and noLabelsForUnoButtons [Control.JSDialogBuilder.js] wouldn't solve it)

- Remove unnecessarily padding-left: 25% from .unotoolbutton images
- Also avoid other problems with regular arrow by setting its dimensions to 0
- Be sure that image gets centered aligned everywhere with margin: auto
- Avoid position absolute

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I907bfe711bbf81ac2a1071b73c322813426fc4e9
2020-12-21 13:38:22 +01:00
Pedro Pinto Silva
1db35de0a0 JSDialog: Set radiobutton and respective labels
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iaed825d98c4eea7fc4256d39aedb6e76b982e682
2020-12-21 13:38:22 +01:00
Pedro Pinto Silva
7d10bef362 JSDialog: Statistics: Fix spinfields and respective labels
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I1dc530bd4f5e5aca853c811fc06884cbf40e2ef7
2020-12-21 13:38:22 +01:00
Pedro Pinto Silva
d660a9f8de JSDialog: Statistics functions: fix reference btns
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I1bb3c0e3318bc3e83982892861101ead7c91f4e5
2020-12-21 13:38:22 +01:00
Szymon Kłos
886ef2689b jsdialog: icons for reference buttons in statistics dialogs
Change-Id: I571c5613d53d81b23e49826adfed0ffa2a4cfac6
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 13:38:22 +01:00
Szymon Kłos
160416106d jsdialog: alignment control
Change-Id: I8579b530ef2c37af82ce12393f12b3192fe81eb9
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 13:38:22 +01:00
Szymon Kłos
897d4b1b83 Add statistics dialogs to the menu
Change-Id: I27f06e7f25a44bd42de7a4b2bb26a9c4f84afd64
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 13:12:21 +01:00