Commit graph

14170 commits

Author SHA1 Message Date
Nguyen Trung Kien
94387f9f55 Translated using Weblate (Vietnamese)
Currently translated at 31.8% (118 of 370 strings)

Co-authored-by: Nguyen Trung Kien <ntk2111997@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/vi/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I543e54c2e3a9985d415d389265a2d510a2553d52
2021-03-05 12:36:38 +01:00
Nguyen Tuan Anh
af7f32e2ed Added translation using Weblate (Vietnamese)
Translated using Weblate (Vietnamese)

Currently translated at 0.2% (1 of 370 strings)

Co-authored-by: Nguyen Tuan Anh <anh93.nguyentuan@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/vi/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I976f58decabcf142e06711c9a45139bdecf202b4
2021-03-05 12:36:38 +01:00
Weblate
64f07955f8 Added translation using Weblate (Upper Sorbian)
Added translation using Weblate (Albanian)

Added translation using Weblate (Albanian)

Added translation using Weblate (Albanian)

Added translation using Weblate (Vietnamese)

Added translation using Weblate (Vietnamese)

Added translation using Weblate (Vietnamese)

Added translation using Weblate (Vietnamese)

Added translation using Weblate (Finnish)

Added translation using Weblate (Vietnamese)

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4d4a66c36898afae113141d3d7ec23de0081c0e2
2021-03-05 12:36:38 +01:00
Gökay Şatır
9c7ea22626 CanvasSectionContainer: Improve bound sections list calculation.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ie7c75172eb8e418c1047c0af5de0750962e5937d
2021-03-05 12:52:07 +03:00
Tor Lillqvist
9a57143c73 Avoid tooltips for the colour control in the mobile apps
(Some of our tooltip() calls are conditional on
window.mode.isDesktop(), others on !window.ThisIsAMobileApp. Which is
more correct?)

Fixes https://github.com/CollaboraOnline/online/issues/1461

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I98cd4c5f0cd05b78236c6722104cd1fe03f3e70f
2021-03-04 18:06:54 +02:00
Tamás Zolnai
b358cb3477 cypress: php-proxy: port was changed: 9982 -> 9983.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I6e5135cdc89c5790f11e1cf7fb4ee497e7a43078
2021-03-04 15:39:34 +01:00
Andras Timar
b86dd952ce Attempted fix of build failure on CentOS7 with old python
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I631f25f8cfe961957967b696c62481dc723427e8
2021-03-04 14:50:58 +01:00
Szymon Kłos
9c491ba4ea notebookbar: style previews style update
Change-Id: I8fd59115b4d2df91fa709d8606238c74384780f7
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-03-04 11:04:39 +01:00
Szymon Kłos
809067efa0 jsdialog: execute select action without rebuild
handle additional actions which doesn't retrigger building widgets
select action was implemented for icon view

Change-Id: I54f9d8553656e7ba85381482a53b4cbd39d70458
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-03-04 11:04:39 +01:00
Szymon Kłos
8446eb48e7 styles preview: converted to icon view
Change-Id: I51265fdfb4090af14f3081d1dee361d17aced7fd
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-03-04 11:04:39 +01:00
Dennis Francis
3e4a322c36 make the splitlines symmetric w.r.t headers/grid
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I45a5ab7e1283ef59c2aa14911190687d0a40a0e1
2021-03-04 15:06:02 +05:30
Dennis Francis
39622c282c cypress: calc: pick the correct svg to test
For calc we have 5 svg nodes inside the overlay pane (fixed, top-left,
top-right, bottom-left, bottom-right). The shape selections will be in
all panes except the 'fixed' pane. The 'fixed' was used to contain the
split/freeze lines but that got moved to canvas. Before this patch the
'fixed' svg was getting selected by the selector...

'.leaflet-pane.leaflet-overlay-pane svg'

...which is empty in this case. Lets always select the bottom-right one
which is covers the whole view area when there aren't any active freezes.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Iea2bbeff3c492a82e75ecdeb1aa70fa3c33f3426
2021-03-04 15:06:02 +05:30
Dennis Francis
33ba87a10e in-document cursors should be visible only when in view
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id1602cf726b99069f6da7c8102e0c3c9d15388ac
2021-03-04 15:06:02 +05:30
Dennis Francis
e7129398e1 cypress: now cursor is not in overlay pane div
but in a dedicated div inside the canvas container div, covering the
canvas.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ie43a4cb98c9cdb7e3ca81faa78bcc2419fa90a32
2021-03-04 15:06:02 +05:30
Dennis Francis
13c6f68438 migrate cursor and view-cursor to TS Cursor implementation
and remove L.Cursor class.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I96fa158cbbe90ddc0f0b3cdd98cfc6615c2dfd4f
2021-03-04 15:06:02 +05:30
Dennis Francis
11bddcb3d1 Introduce TS Cursor class based on L.Cursor
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I1c9c0c9ed50956e9151b8028b5c5fe38f73a8097
2021-03-04 15:06:02 +05:30
Dennis Francis
89eacec4ec migrate reference marks from svg to canvas
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: If435f8cc6fb4d2e99ab4f6d63eea84dbd28b2156
2021-03-04 15:06:02 +05:30
Dennis Francis
5863a22d19 add purpose comments to CEventsHandler
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I1cc66cd78d91d4efabc68459de7935081f107089
2021-03-04 15:06:02 +05:30
Dennis Francis
f10bce9d9c move message replay logic to TileLayer
In canvas section based overlay objects the coordinates are stored in
core pixels and they need to get updated and redrawn every time zoom is
changed. Both Writer and Impress are also using canvas based overlays
for selections and will soon be using it for the rest.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Iecd5bf8c875d4c4a6f8d055f2abccfeedd2cae8a
2021-03-04 15:06:02 +05:30
Dennis Francis
d83f895d20 migrate view selections from svg to canvas
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I04f9ddce35f4a734efcbf445aae813ae7226fe12
2021-03-04 15:06:02 +05:30
Dennis Francis
03f413a25b CPath: when empty close any popups
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ic44ff6d432b8f5e05e439de9c60b41763493e900
2021-03-04 15:06:02 +05:30
Dennis Francis
cb1b5d4e64 CEventsHandler: pass an 'event-data' object to handlers
This can optionally contain corepixel position for now.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I3b9e369ee9c3b58070f2c16b0c6cf0dd8f0df87f
2021-03-04 15:06:02 +05:30
Dennis Francis
b7785f3a90 overlay layer must be interactable for getting events
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I56363fff695c2eaa47ddd62e987ad19da92a9d36
2021-03-04 15:06:02 +05:30
Dennis Francis
258262203e convert viewcursors from svg to canvas overlay section
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5f703a0ed47b33e491ef2eed8a9dbe2d637dd6b0
2021-03-04 15:06:02 +05:30
Dennis Francis
0760c969c0 allow popups binding to CPath
For this CPath needs capability to add handler(s) for arbitrary event
types. This achieved by introducing a base class CEventsHandler which
supports leaflet like functionality.

"""
this.on('swipe', this.onSwip)
this.off('popupclosed', this.popupClosed)
"""

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ia5d017096b98383491a25eec7353625a51703611
2021-03-04 15:06:02 +05:30
Dennis Francis
b72020d480 replay printtwips msgs on zoom after refreshing view data
This fixes incorrect header selections after zoom.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id68768baaddf93e48a7ed767da0f6be98f43f84f
2021-03-04 15:06:02 +05:30
Dennis Francis
40298cf18f introduce onResize() for CPaths
At least in case of CSplitterLine it is needed to adjust the coordinates
when map size changes.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I8a17fae4b662501da753f73aafe1443f6c3c28e8
2021-03-04 15:06:02 +05:30
Dennis Francis
cbb1c3df4a zoom-animation: separate transformation for fixed overlays
Fixed overlay objects are much easier to animate. Don't use the regular
transformation for these. Use a scaling transformation instead.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5392c850cdb0491a6d8aed5187d5af5baab9a8aa
2021-03-04 15:06:02 +05:30
Dennis Francis
5520029712 make CSplitterLine be based on CRectangle
When it was based on CPolyline and using lineWidth (weight) we get semi
transparent pixels on the edges of the line. By using a rectangle and
relying on just the fill (and not on stroke) we get sharp pixels.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Icddb8e37cdb2e30ac9e7e11305bb2c534069b295
2021-03-04 15:06:02 +05:30
Dennis Francis
3341e20525 ensure that splitter-line coordinates are integers
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Iee4825cf99aa282ca5bd3c90dc8a31284c00abe7
2021-03-04 15:06:02 +05:30
Dennis Francis
c6db2a26ad splitters: source style data from css variables
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I87a7f9fc242ab4a55b6f1a210f8f74f9871cbf3f
2021-03-04 15:06:02 +05:30
Dennis Francis
fa2614e02c add names to splitters
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I0ea524479a813363673b8135f0c3e8d9b0b370f8
2021-03-04 15:06:02 +05:30
Dennis Francis
13373b1cbe simplify splitter lines rendering
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ifd92d1e6b0aec63c0a2a996cc9b082ad58a69023
2021-03-04 15:06:02 +05:30
Dennis Francis
8aeaf9f2ee splitter lines must stay on top of other overlays
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ia4fd1a0a35c19b756c89ef82df05385250b676d2
2021-03-04 15:06:02 +05:30
Dennis Francis
25882d0186 avoid gaps between freeze-panes
Using a gap of 1 pixel (css or not) between frozen pane and movable pane
causes a unpainted gap lines. This was not apparent because we had thick
svg splitter line covering them.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I08573b590662e0e4199b1445c57d3a2917c7d99a
2021-03-04 15:06:02 +05:30
Dennis Francis
675963f22b migrate splitter lines to canvas overlay section
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I983eedbb946d640498e63660e948d09dd838f2b1
2021-03-04 15:06:02 +05:30
Dennis Francis
a08b7083d5 introduce TS CSplitterLine from L.SplitterLine
without the interaction capability which is currently not used.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: If78e23490f49d2d9d6d17c350c89fa67ba6bfdab
2021-03-04 15:06:02 +05:30
Michael Meeks
a739e268e1 Tolerate a null this.dialog on the map at start.
Change-Id: I1d74b9899c0bebe075c83ee79987b60154a27dac
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-03-03 21:08:45 +00:00
Michael Meeks
4c4c02b3b9 Firefox 42 ESR workaround.
We get a single exception during setup from setSelectionRange,
presumably when the textArea is not focused. That causes a leak
of _ignoreInputCount - which kills text input.

So catch and ignore the exception.

Change-Id: I3fdfff99344f53b03ebadec2e551d7ee70416334
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-03-03 21:08:45 +00:00
Henry Castro
cedf950a52 wsd: add interactive state
Add a new state before load the document,
when Macro Security dialog popup, and avoid
to send the event load timeout.

Change-Id: I5973c5205e90e5447e5478cbab895709a68606f6
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-03-03 09:18:15 -05:00
Tamás Zolnai
d4f4abde02 cypress: avoid "detached from DOM" failure in statusbar tests.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I48696c4b7bba68b176ab948dcac9d7728a9c7831
2021-03-03 14:34:14 +01:00
Tamás Zolnai
fd481bf669 cypress: fix spec existence check usage.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ie71828942e0f67df7e33be51f4727af8edbd1340
2021-03-03 14:34:14 +01:00
Gökay Şatır
0f76dfa925 ScrollBars: Make them pixel perfect.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I5d00b444e43c65c65366efb2b54cc6d4c58c3499
2021-03-03 16:31:08 +03:00
Gökay Şatır
52759920a5 mCustomScrollBar: Remove.
It's not used anymore.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I4424018e6b1820de0d86c9058207fe19f46e0c16
2021-03-03 14:04:11 +03:00
Gökay Şatır
68ac78ceec Impress: Remove mCustomScrollBar
Use native scroll bars.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I63eeac7916e9f7edc2decc0e9338c36bda48ee50
2021-03-03 14:04:11 +03:00
Gökay Şatır
b9e50b7de6 Control.Scroll.js: Removed.
ScrollSection.ts is the updated version of this file.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I484dcb7eafdc3ca62ba4d8ad864e0de711567d66
2021-03-03 14:04:11 +03:00
Gökay Şatır
1bf9a9a9e9 scroll-container: Remove references.
This class was used by mCustomScrollBar.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Id912677c3fa2cfdfa6cd5824975d8630ec6a2ac7
2021-03-03 14:04:11 +03:00
Gökay Şatır
078ce5b24e Map: Remove function "enable".
It was used for managing the mCustomScrollBar. Not needed anymore.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ibb1da1e69556f4af56353d2f8d326a3b9a56f059
2021-03-03 14:04:11 +03:00
Gökay Şatır
6fa20e77aa Calc: Set variables upon selection all.
wholeColumnSelected and wholeRowSelected variables need to be set before the command is sent to the server.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I302643d5dbaeb3a6919c51eef34a2523e5f9bfa0
2021-03-03 13:17:34 +03:00
Tamás Zolnai
87c6c7d81d cypress: extract typeIntoInputField() method.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I8dc89dc6abad9106ffae42fc52723e503ddc0cca
2021-03-02 17:58:52 +01:00