Commit graph

13724 commits

Author SHA1 Message Date
Tor Lillqvist
78691886f3 Use winId here, too
The other code in this function carefully checks before indexing the
tokens vexctor. We have already stored the integer from tokens[1] (if
it exists) in winId. So use that in one more place instead of
tokens[1] for consistency.

Change-Id: I2bc09b3e44e0549a94469d7569f724df17a113b3
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-21 14:59:22 +02:00
Szymon Kłos
b896700c3a jsdialog: accept boolean
Change-Id: Ia81f0601fdf82292991f4d00c290a9b88e217b23
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
acfce03a21 fontwork dialog: center on screen
we first create it without any content so foce the correct size
to correctly calculate position

Change-Id: I08d6a4c8ec42d5515ddd11cec508cb222d4c6ec8
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
e079b779fe jsdialog: partial updates support for listbox
Change-Id: I75a7449a053f056c6212ff4db471b22f71228936
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
40e171e726 jsdialog: partial updates support for expander
Change-Id: I398cbacb12d2342fa27df9ad4fce9e6db0c37eb2
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
6d2b234659 jsdialog: accept also boolean enabled state
Change-Id: Id991e3a6d488e0be282f5f9ad333a567632f6c67
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
96eecc4fe6 jsdialog: fix button state handling
Change-Id: I9f91ce63a5ae8d3dbdde3257c4487995920d3277
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
f8c64ec0d5 jsdialog: remove all chars instead of only first
Change-Id: Ic819167db66f97e3a4967f85bc41f5f5554fd88f
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
3796f19c15 jsdialog: partial updates for DrawingArea
Change-Id: I47ccc8afc06d27460a1c5e64dd10c0444fc03250
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Ashod Nakashian
72e9f3d2d6 wsd: asynchronous HTTP/1.1 implementation
This implements HTTP/1.1 per RFC 7230, partially.

Unit-tests are provided with documentation on usage.

This is desgined to serve as the http implementation
throughout loolwsd, for both synchronous and
asynchronous requests.

Change-Id: Iaf1b8c5fcb8cec032445e27c9f70d2fb807aa4dc
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-01-21 12:36:41 +01:00
Gökay Şatır
500ba660e9 CanvasSectionContainer: Add background color and border color.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I5d34e5ec9a1caa26ecee3dbc9dc23fb43423e29b
2021-01-21 13:48:13 +03:00
mert
8100a01c9c Fix typo that causes insertpage not to work
Change-Id: I3c0e2e2e4ef5c639c22e7562bc5602ebfea06bef
Signed-off-by: mert <mert.tumer@collabora.com>
2021-01-21 10:22:58 +01:00
mert
75f1cc3705 added insert connectors popup dialog
Change-Id: If97eb79bd697fe2e2b9cb86cbc1643e5890bf626
Signed-off-by: mert <mert.tumer@collabora.com>
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
2b5c00c861 Allow insert, delete, duplicate page for drawings
We restrict insert/delete/duplicate page (slide) only to
presentations, but they also work the in the same way for
drawings. This changes the restrictions to also take drawings
into account for this actions.

Change-Id: Ia9a3627d2144a6813f341ab8a8287743abad475a
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
6d58f0f394 Change "Slide" menu entry to "Page" for drawings
Change-Id: I25febf4287df868d4755658af992be3031e064cd
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
a478dc4229 Cleanup menubar entries for drawing (remove presentation specific)
Change-Id: If98719cfb37c05bedbeee7f239f931c769278834
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
bf0daa2dce Use own icon for drawings, don't share with presentations
Change-Id: I6cecc9869d36bc1e45a4ed88344c62e0c9adac1d
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
3fa52ac5a8 Duplicate the presentation menu entries for drawing
Currently the presentation and drawing menu entries use the same
definition, but as drawings are different with different terms,
it is best to separate the presentation and drawing entires
instead of handling the exceptions all the time.

Change-Id: I078eb4ebb5014a04614d20363042b3cd75e9a36d
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
400432f159 modify the toolbar for drawings
Separate the toolbar from presentation and remove icons that are
valid for presentation only.

Change-Id: I0dd74f396326b838c9a65352978a771bdb5da13d
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
aa6d8af042 Separate shortcuts online help for presentations and drawings
Change-Id: Ic6290ea43fc55e78a037ac3b774cb0eb090e8ba5
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
d92252522c Add hello-world for Draw
Change-Id: I4300c96d16c1e4911aabb5aeb1ec7181dfeeae1d
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
8d8f9f4dd3 Enable editing of ODG in discovery.xml
Change-Id: Ie019636a40f8a4ff712cca72a87258c87b51b775
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tamás Zolnai
dbad4b2c0c Update cypress: 6.1.0 -> 6.2.1.
It fixes a hang related to retries. It might be useful
in our case too. I've seen hangs on Jenkins, which might be
related.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I8320f9b38c59074d2b5dd3d7b0cad0c5828b0849
2021-01-20 09:18:59 +01:00
Pranam Lashkari
005132da03 leaflet: support reordering sheet tabs via drag and drop
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ibe4106aca08456410c4c524eeb8a630993737815
2021-01-19 14:14:22 -04:00
Tamás Zolnai
5eb8e5448f cypress: fix up and enable chart test.
It crashes if the mobile wizard is closed before exiting
chart editing mode.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I47143543220aaebf474e1d1aa560c7df2c2a14f5
2021-01-19 15:21:45 +01:00
Henry Castro
7e0186600d loleaflet: makefile: fix builddir != srcdir
Change-Id: I97083c0a093a4038cb91dd618096eeb4292463fe
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-01-18 17:31:19 -04:00
Tamás Zolnai
6643b57f4a cypress: reenable writer/simultaneous_typing multi-user test.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ibcbff205000b60c86699b04e1cd95b5bc05f7b1e
2021-01-18 20:39:03 +01:00
Tamás Zolnai
218e47e65a Switch to the correct view before calling getSelectionType() method.
This method needs to be called with having the correct view activated.

It caused a crash in writer/simultaneous_typing multi-user cypress test.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I57dd58a635ce7ea127200a6a3f0cadc8c0861aaf
2021-01-18 20:39:03 +01:00
Pedro Pinto Silva
f292ff4eb7 Add coolstress to gitignore
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4662bfa7d22c76dde316c5162510f821f694507b
2021-01-18 15:17:50 +00:00
Rash419
bee45ebf72 leaflet: display correct number of characters in statusbar
Signed-off-by: Rash419 <rasheshpadia419@gmail.com>
Change-Id: I93dc5c54abb3a43cdffe1b12ca3e22247ed22f67
2021-01-18 17:10:35 +02:00
Andras Timar
8b0af828ef Revert "docker: do not modify loolwsd.xml, use command line parameters instead"
This reverts commit 93dfff7dad.
Reason: #1264 and #1235
2021-01-18 15:12:29 +01:00
Tamás Zolnai
c0ae7f8bb8 Fix "Cannot read property 'color' of undefined" error
Crash trace:
at NewClass.getViewColor (/src/map/Map.js:702:33)
at NewClass._onUpdateCellViewCursor (/src/layer/tile/TileLayer.js:1466:55)
at NewClass._onCellViewCursorMsg (/src/layer/tile/TileLayer.js:1450:8)
at NewClass._onMessage (/src/layer/tile/TileLayer.js:710:9)
at NewClass._onMessage (/src/layer/tile/CalcTileLayer.js:394:37)
at NewClass._onMessage (/src/core/Socket.js:916:24)

Caught by calc/sheet_operations multi-user test.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I56b686e8d9f27a407f1fef54808e4f65c99173f0
2021-01-18 13:36:26 +01:00
Tamás Zolnai
fde1d4c529 cypress: prefer chromium over chrome.
With chrome tests sometimes fail on starting
the chrome binary.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Id5c6af71efad8622b3885b8904f2ef3ede82d631
2021-01-18 13:36:26 +01:00
Gökay Şatır
137a757d72 CanvasSectionProps: Add an overview of sections.
We are drawing things from different files onto the same canvas.
CanvasSectionContainer is organising them. When they are too many, it is difficult to know about sections' important properties.
CanvasSectionProps keeps sections maintainable.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I9e81104c30f30a47c02625ce9d6716a98958317c
2021-01-18 15:17:07 +03:00
Andreas-Kainz
038c85b8f9 change default sidebar icon size to use 24px icons (like in toolbars)
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I8b9caef707bdd856d126841c3c0135cd738e692e
2021-01-18 09:25:50 +01:00
Andreas-Kainz
d3ff48f65a Sidebar should use .png icons instead of .svg fix #786
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: Ieeb8c5f37efb6e3f262d50f4fb54bbef59c2ff06
2021-01-18 09:25:50 +01:00
Gökay Şatır
15bf787771 CanvasSectionContainer: Fixes.
Bugs related to ordering of sections are fixed.
addSection and createSection functions are separated.
contextMenu event is added.
Sections' drawing orders are updated for future uses.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I89127c97ad7b7dac4b293c4108c44cb6c4427134
2021-01-17 18:56:27 +03:00
Dennis Francis
95a8028f00 On resize allow recomputation of section pos and size
by resetting the isLocated flag for each section.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I0ad41f20219afd8b90050bd43223843ca280587d
2021-01-16 18:12:00 +05:30
Dennis Francis
10f70ae866 fix pixel offset between grid and row headers
Sections which are not yet expanded via locateSections() can interfere
with the hitLeft() and hitTop() for sections of same z-index depending
on order of addition. So lets skip the sections for computing hitLeft()
and hitTop(). This also avoids redoing locateSections() for all sections
everytime a new section is added.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I7595f5b5cfaa61d8fcfe177edd4c605d3fb7b122
2021-01-16 18:12:00 +05:30
Dennis Francis
7cf060dfbb don't leave 1px empty space near headers
when there are no freeze-panes active.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id5b651d4b1e76cd14b725d125f813d93ed031ff8
2021-01-16 18:12:00 +05:30
Dennis Francis
34578ce3fd fix the debug tile-border rectangles in red
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I93b950a5f903ed5ed2713a518911f8e37eadddfc
2021-01-16 18:12:00 +05:30
Michael Meeks
136f20b386 Use jsdom to load and execute our CSS, HTML and JS.
Change-Id: Ia7414e1fd19bf7ebfa29274d1acac5cee4837341
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-01-16 12:18:47 +00:00
Michael Meeks
c7d0de0877 Start of using NodeJS to do load simulation.
Change-Id: Id27ff406adc2269665aca0bbb54dd2102a4c7c74
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-01-16 12:18:47 +00:00
Michael Meeks
4e92b5a697 Special case opacity to avoid arithmetic where possible.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I37a72bc966424ca1b4c30b31d9fcf88d15c11789
2021-01-16 12:18:24 +00:00
Tamás Zolnai
b52d169686 Revert "cypress: remove workaround for multi-user test cases."
This reverts commit c3e1986d63.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ib0d6d0972262b2ec82bc60672bf5ae27be32fb2e
2021-01-15 23:01:30 +01:00
Tamás Zolnai
9e9e9f3117 cypress: improve selectFullTable() helper of table properties tests.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I9362c0b8d528d0e7cd5841a50584f866a4432b3f
2021-01-15 15:16:28 +01:00
Michael Meeks
f4008cd979 clipboard: give a more explicit clustering error earlier.
Change-Id: I3050fd5f9e66174ece03620e956ee394684f369f
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-01-15 09:31:22 +00:00
Tor Lillqvist
c5118ea43a Fix crash in iOS app: Don't bother with UnitKit
I don't recall if simply ifdeffing is the proper way to bypass UnitKit
stuff (that I don't understand) for the mobile apps, but at least it
helps.

Signed-off-by: Tor Lillqvist <tml@iki.fi>
Change-Id: I85d477e4ee7d11c597d95a9b0b42af7e5f7ad122
2021-01-15 01:36:52 +02:00
Tamás Zolnai
c3e1986d63 cypress: remove workaround for multi-user test cases.
We had an issue with loading two views to the same document
at the same time.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I8b1ba92eca5e59bfa50cbcd637f1076d5e15c664
2021-01-14 15:04:13 +01:00
Tamás Zolnai
efb96f0700 cypress: reenable paragraph_prop multi-user test.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: If57964320d2615c81b0bcbc57c0f942e463c60ea
2021-01-14 15:04:13 +01:00