Commit graph

14120 commits

Author SHA1 Message Date
Ashod Nakashian
f7d61ae0d3 wsd: remove single-use member
And a couple of const cases.
The removed const is to allow move on return.

Change-Id: I7a81b531e75c39379871f5ffeb82d49ba1110ab1
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-02-09 10:45:37 -05:00
Tor Lillqvist
6dcefc4f14 Add toString()
Please do not remove even if unused. It can be useful in temporary
console.log() etc.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I2734efa3cffb8dd5e4a9923672ec179fcae3e12f
2021-02-09 17:32:46 +02:00
Szymon Kłos
a4d834f83e jsdialog: single click activation for treeview
Change-Id: I808fedeaa26739c38b329f36bd4ed88ed53a4da3
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-09 15:55:35 +01:00
Andras Timar
547150a163 add 'how to build Collabora Online 6.4 docker' to README
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9a4e647d3cf0381afd7a7cc5cbd2aedab0214619
2021-02-09 15:48:22 +01:00
Szymon Kłos
7ac1438c2a jsdialog: don't send sidebar refresh by accident
if windowId is not set it will use -1 what will
trigger sidebar refresh

Change-Id: I619d05d855a99ccf064d556463f5d8812b7b43c2
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-09 15:01:11 +01:00
Szymon Kłos
4eb115d726 jsdialog: don't share windowId value between instances
Change-Id: Ie19d62dcdbf0b3411e0f95d10a447263088f0a25
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-09 15:01:11 +01:00
Andras Timar
e465a53726 generated new pot files and translations for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic513f3254022857bdf11e28e24f0f57bb5e2d8f0
2021-02-09 10:50:18 +01:00
Michalis
6a72a0032e Translated using Weblate (Greek)
Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (364 of 364 strings)

Co-authored-by: Michalis <michalisntovas@yahoo.gr>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/el/
Translation: Collabora Online/Android app
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icca4639e715d43b8ca3f79b59fc326f346e812b6
2021-02-09 10:47:50 +01:00
Stratos Kostidis
23c9cdce18 Translated using Weblate (Greek)
Currently translated at 100.0% (17 of 17 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (364 of 364 strings)

Co-authored-by: Stratos Kostidis <petros8280@hotmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/el/
Translation: Collabora Online/Android lib
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If2883ffd4ff1656d87a29fbaf0bb651b3b7abef7
2021-02-09 10:47:50 +01:00
Michalis
d6a57a8609 Translated using Weblate (Greek)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (417 of 417 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (364 of 364 strings)

Co-authored-by: Michalis <michalisntovas@yahoo.gr>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/el/
Translation: Collabora Online/Android app
Translation: Collabora Online/CODE welcome text
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2a91b664c9c299a1cc1e7cde09a575af95aee22b
2021-02-09 10:47:50 +01:00
Stratos Kostidis
635b1c152c Translated using Weblate (Greek)
Currently translated at 100.0% (5 of 5 strings)

Co-authored-by: Stratos Kostidis <petros8280@hotmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/el/
Translation: Collabora Online/CODE welcome text
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If4d788a6907efa1f7c0fbe10a5d9421961175f57
2021-02-09 10:47:50 +01:00
Ihor Hordiichuk
61c47fc511 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (Ukrainian)

Currently translated at 76.2% (318 of 417 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/uk/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/uk/
Translation: Collabora Online/Android app
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id505d2fcee8df286493760ecc6d624e58d8b4320
2021-02-09 10:47:50 +01:00
Adolfo Jayme Barrientos
0de1be7083 Translated using Weblate (Spanish)
Currently translated at 100.0% (417 of 417 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/es/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I949eca9c234e5a70ca7019506a53fdde0a2f6f4b
2021-02-09 10:47:50 +01:00
Stanislav Horáček
01d89c6cb6 Translated using Weblate (Czech)
Currently translated at 100.0% (364 of 364 strings)

Co-authored-by: Stanislav Horáček <stanislav.horacek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I473f5b9c3a8c2eee977139450e091a6489a79f93
2021-02-09 10:47:49 +01:00
Hirae
72d442de2e Translated using Weblate (Russian)
Currently translated at 47.4% (198 of 417 strings)

Co-authored-by: Hirae <hiraetari@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ru/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic8c69730622deacc519c7ec9c186ad2b2f6c5493
2021-02-09 10:47:49 +01:00
日陰のコスモス
8d2154e944 Translated using Weblate (Japanese)
Currently translated at 53.2% (57 of 107 strings)

Translated using Weblate (Japanese)

Currently translated at 53.2% (222 of 417 strings)

Translated using Weblate (Japanese)

Currently translated at 64.2% (234 of 364 strings)

Translated using Weblate (Japanese)

Currently translated at 53.2% (222 of 417 strings)

Translated using Weblate (Japanese)

Currently translated at 50.4% (54 of 107 strings)

Translated using Weblate (Japanese)

Currently translated at 64.0% (233 of 364 strings)

Co-authored-by: 日陰のコスモス <baffclan@yahoo.co.jp>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Translation: Collabora Online/Android app
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I73fdd7c96e80288936281ec19aba2acef2036972
2021-02-09 10:47:49 +01:00
Weblate
9d5acb37ea Added translation using Weblate (Greek)
Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I20e20b16cca1a4332c25eec83816dd8e9131697f
2021-02-09 10:47:49 +01:00
Andras Timar
8b4911ec93 cypress: typo fix
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4c9468ae01620bb0e56dc63e359e00bd1951e4d5
2021-02-09 08:41:53 +01:00
Andras Timar
19206ce9c2 sometimes it's useful, when path to loolkitconfig.xcu is configurable
e.g. in case of CODE AppImage, that is built from packages,
/etc/loolwsd/loolkitconfig.xcu will not be good, the good
location is within the AppImage's file system.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie2bf56cd95781c193a0e7185bd96d40c4849d920
2021-02-09 08:41:53 +01:00
Szymon Kłos
135ca46a23 autofilter: close properly welded window
send click event for cancel button as there is no
better way to close this docking window...

Change-Id: Id5f30e3d823b154117e9da7dca6bbbdef2422591
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-08 16:41:04 +01:00
Szymon Kłos
1d7bbea873 notebookbar: add run macro in hamburger menu
Change-Id: I79c0f1a81cce0a5a461137e49c2f57cad63374f3
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-08 16:09:35 +01:00
Dennis Francis
0d685c5e50 Don't spill out on rectangle painting by non-integral corepx bounds
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I7f8499eb002b59532cee91d1f381a45de9dd74ab
2021-02-08 16:48:47 +05:30
Dennis Francis
004fbc9b18 Added usage/functionality comments to new TS classes/functions
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id49a49356f89a1057000bd3a0363d8408bf86a86
2021-02-08 16:48:47 +05:30
Dennis Francis
a6f6c62572 PR#1341 follow-up: Fix indentation issues
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ic163b024a8783c5f4b98ccdec427b72add4052ae
2021-02-08 16:48:47 +05:30
Dennis Francis
c1d9884f00 migrate cellcursor to canvas overlays rectangle
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I8ef11efdb335f1de0261a1beb35f97a95277d4a6
2021-02-08 14:32:57 +05:30
Dennis Francis
4a5fef6054 Add CRectangle based on L.Rectangle
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5f3ffd6ae2293677ee77fb4a18d1ef1d643774a8
2021-02-08 14:32:57 +05:30
Dennis Francis
fbe63f6a8e overlay: paint after path removal
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id500fed81fac0b228f539b351dab35f5f6da98ad
2021-02-08 14:32:57 +05:30
Dennis Francis
77451188b7 overlay-paint: just one context save-restore pair is enough
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2142d3824888e76b1ccb34faf4171eb58206aa59
2021-02-08 14:32:57 +05:30
Dennis Francis
0b3b3fa69e make 'build-loleaflet' depend on dist version of ts -> js
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I04c5f6770e4d58cdca2cbebf24656b280b906988
2021-02-08 14:32:57 +05:30
Dennis Francis
928d85f5e0 Define canvas clip region before painting
to avoid any spillage of painting off the freeze panes if any active.

As of now the CPolyUtil.clipPolygon() does not work properly so there
the updatePoly() call will paint outside the specified region. So the
canvas clip helps.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2b0b9f767bb04cf504323e087cad456fe04eb5b0
2021-02-08 14:32:57 +05:30
Dennis Francis
9cdbd051f7 skip overlay pane-paint if no intersection
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I0d29750b0e8eaaeab01b7a867292002379be5476
2021-02-08 14:32:57 +05:30
Dennis Francis
7787f6f2a5 Introduce CPolygon based on L.Polygon
Also add CPolyUtil based on L.PolyUtil that contains dependant
algorithms for polygon clipping.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I4d43fd208e47207116bd2253733fe6205fcd6c48
2021-02-08 14:32:57 +05:30
Dennis Francis
6ee897bee3 render overlays correctly for each freeze-pane
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I06477dbd8bb6b0bb369104a03f6472af59a516ee
2021-02-08 14:32:57 +05:30
Dennis Francis
026f5fac4a overlay painting after async tile paint calls
The overlay needs to be painted only for the tile area.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I725a6b656d8261a90e6debbea0478a0581822b40
2021-02-08 14:32:57 +05:30
Dennis Francis
655dbd79f5 compute rings and bounds only when point-set...
is updated and not do them every time updatePath() is called.
Also compute both rings and bounds in a single pass over point-set.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I718f33d3ecd97da333fab0dd1fd3312d16ea6aa9
2021-02-08 14:32:57 +05:30
Dennis Francis
dac8d84efa CanvasOverlay.js depends on all typescript files in vector/
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I235a2dcd681476331cf4224d368eca7a8547e0e8
2021-02-08 14:32:57 +05:30
Dennis Francis
3a4f98852c overlay-origin must be negative of documentTopLeft
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2c42627261211b975c3b3ef1aa18b33c3b4b55a1
2021-02-08 14:32:57 +05:30
Dennis Francis
b27ae65b39 redraw on construction
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ia0c6b0c8db22ec7b53d5acc16cb53a5cd99a7780
2021-02-08 14:32:57 +05:30
Dennis Francis
5906d5ba94 Introduce CPolyline.ts based on L.Polyline
CLineUtil.ts is also introduced from L.LineUtil which has
implementations of dependant line algorithms.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5ff24c8daf0391553c45db74d6f512ccc80fcc97
2021-02-08 14:32:57 +05:30
Dennis Francis
58e309f0af updatePoly should assume path is not closed by default
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I6af26cbabeadad59d4a23758d481bce1913abe19
2021-02-08 14:32:57 +05:30
Dennis Francis
e0193b732c add bounds getter for CanvasOverlay
.. since the subclasses of CPath need to use it for clipping the
contents to visible area mainly for performance reasons.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I86c7a46e498b69b55990a8b4423cbf1da5efae71
2021-02-08 14:32:57 +05:30
Dennis Francis
e29d88dde6 mark CPath as abstract and renderer member protected
as CPath's subclasses need to access it.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I04b42e9b867d308855a62a7e1b82650dc75c57a1
2021-02-08 14:32:57 +05:30
Dennis Francis
fa9b856d10 allow CBounds object construction with 0 or 1 CPoint(s)
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I69b7cf8ff979d6e170aeb1ee978e500450ed997f
2021-02-08 14:32:57 +05:30
Dennis Francis
d28b66df7a CanvasOverlay.js is dependant on layer/vector/*.ts
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I87640e81fe11dee7b87eb376a9c9871977bc6710
2021-02-08 14:32:57 +05:30
Dennis Francis
38f05b60f5 Add CBounds.ts based on L.Bounds
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: If16b995f75db0db14cbfe012ae2c206d89a885b7
2021-02-08 14:32:57 +05:30
Dennis Francis
4e57357032 Add CPoint.ts based on L.Point
and use that in CanvasOverlay and CPath.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id3cf0418396dc72b47aeeadf22e78ce3aa1fff4e
2021-02-08 14:32:57 +05:30
Dennis Francis
c5800a676e Add CPath.ts based on L.Path
The generated js for CPath.ts is added to the generated CanvasOver.js
for now using

/// <reference path="CPath.ts" />

as there is no support for modules in ES5.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I72bf2ab6f299641925c72b484f63e755ba4e61d4
2021-02-08 14:32:57 +05:30
Dennis Francis
0d75324379 introduce CanvasOverlay and its section
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I47d2f739b0d98c3926208358951e7240e632153f
2021-02-08 14:32:57 +05:30
Dennis Francis
66f145b696 Allow access to tileSection manager
The overlay section will need access to tile section manager to make it
paint over the regions it wishes to "erase" before painting the updated
paths/objects. When overlay's objects are updated, their paint will not
be via onDraw, so tiles are not painted beforehand.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I9ea142af69675ee6e0da7132ee36f399facb8ead
2021-02-08 14:32:57 +05:30
Dennis Francis
4f7662484e allow canvas-context getter from container
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I6b5ba64220dae32c6155b7f6edb12c949ead33d9
2021-02-08 14:32:57 +05:30