Commit graph

6766 commits

Author SHA1 Message Date
Dennis Francis
9ab15688ec make zoom-animation with overlays work correctly for freeze-panes
The implicit transformations done in tile drawing(from offscreen canvas)
must match the canvas transformation done for drawing the overlays.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: If434eb87be99754a2def290b19631a1970e83488
2021-02-26 21:48:15 +05:30
Dennis Francis
28f97d76e0 draw overlay on top during zoom-animation
at the frame zoom level on the main canvas after tilesection is drawn
using off-screen canvas.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I45adafae4dc4eaaca27fb9b2d858186b04fb898e
2021-02-26 21:48:15 +05:30
Dennis Francis
f10bea6829 cancel animation frame after end frame step
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ibeac532f2d5e2d673f6a5f5f69adebdb506a5ef2
2021-02-26 21:48:15 +05:30
Dennis Francis
ec0433d372 Stop ignoring pan after dragend of cell-resize marker
Note that 'up' does not get fired after 'dragend', so the since
969f9f9860 window.IgnorePanning continues
to be true even after 'dragend' which disables panning for document
lifetime.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I76b03a0cd77cfdd36a932c2986d51e56007386ad
2021-02-26 21:48:15 +05:30
Rash419
846376c1e6 loleaflet: fix column resizing when not selected
Signed-off-by: Rash419 <rasheshpadia419@gmail.com>
Change-Id: I6074009679f279815b5fc00e38f4e8316493ce65
2021-02-26 16:20:07 +05:30
Gökay Şatır
83e94a4a92 Calc: Grid drawing is fixed.
It was broken because of one of the previous changes.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ibcc1955d35227d2ac1b429245a97f20df669bfb0
2021-02-26 11:05:50 +03:00
Gökay Şatır
590cfacc7a Calc: Fix header rendering.
When window is resized, sometimes header drawings aren't updated. This
patch solves that bug.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I1920435a49662c283e9b691bc02d32865ca401e8
2021-02-26 10:34:48 +03:00
sebastiaanveld
7623a4b7a8 Translated using Weblate (Dutch)
Currently translated at 62.6% (263 of 420 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (370 of 370 strings)

Co-authored-by: sebastiaanveld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibcf2003599138a93e31569122d91d5501a9a3457
2021-02-25 15:28:12 +01:00
Milo Ivir
0337990f6c Translated using Weblate (Croatian)
Currently translated at 100.0% (370 of 370 strings)

Translated using Weblate (Croatian)

Currently translated at 70.0% (294 of 420 strings)

Translated using Weblate (Croatian)

Currently translated at 99.7% (369 of 370 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6cdad8accc1578505c9d54d2fc62f97ef80654b8
2021-02-25 15:28:12 +01:00
Yaron Shahrabani
b62e66799c Translated using Weblate (Hebrew)
Currently translated at 54.0% (227 of 420 strings)

Translated using Weblate (Hebrew)

Currently translated at 100.0% (370 of 370 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/he/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/he/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I39a741ba53c8791b0197e9751650456092ab9e37
2021-02-25 15:28:11 +01:00
Rob Pearson
95877cc0f2 Translated using Weblate (English (New Zealand))
Currently translated at 100.0% (420 of 420 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (370 of 370 strings)

Translated using Weblate (English (South Africa))

Currently translated at 100.0% (420 of 420 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (420 of 420 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (420 of 420 strings)

Translated using Weblate (English (South Africa))

Currently translated at 100.0% (370 of 370 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (370 of 370 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (370 of 370 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_ZA/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic84cedf0dcc5767bec83738af9fc6d949ad4509c
2021-02-25 15:28:11 +01:00
Ihor Hordiichuk
0ffb3842a5 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (420 of 420 strings)

Translated using Weblate (Ukrainian)

Currently translated at 92.6% (389 of 420 strings)

Translated using Weblate (Ukrainian)

Currently translated at 86.6% (364 of 420 strings)

Translated using Weblate (Ukrainian)

Currently translated at 76.4% (321 of 420 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (370 of 370 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/uk/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/uk/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I27556c55ad2c9e0cce5836f8dfa18cdc1ec41e11
2021-02-25 15:28:11 +01:00
Oğuz Ersen
3cab6f5341 Translated using Weblate (Turkish)
Currently translated at 100.0% (420 of 420 strings)

Translated using Weblate (Turkish)

Currently translated at 100.0% (370 of 370 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/tr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id1dd05d5a7713d67afd10acbd22ac88e3e8e9bd1
2021-02-25 15:28:11 +01:00
Martin Srebotnjak
e96784fe50 Translated using Weblate (Slovenian)
Currently translated at 100.0% (370 of 370 strings)

Translated using Weblate (Slovenian)

Currently translated at 100.0% (420 of 420 strings)

Translated using Weblate (Slovenian)

Currently translated at 99.7% (369 of 370 strings)

Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1fac7b84b2c95d1851be3aaf3e8db7678977ebd3
2021-02-25 15:28:11 +01:00
Matthaiks
af4916a4de Translated using Weblate (Polish)
Currently translated at 100.0% (420 of 420 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (370 of 370 strings)

Co-authored-by: Matthaiks <kitynska@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3bf96644c1bc00dd304745e730e65ed2e654dbe0
2021-02-25 15:28:11 +01:00
Allan Nordhøy
b125d39d87 Translated using Weblate (Norwegian Bokmål)
Currently translated at 98.6% (365 of 370 strings)

Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nb_NO/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2ddf287f4c03baf482e611adc79f302b9ea67692
2021-02-25 15:28:11 +01:00
日陰のコスモス
45f5e9d5c2 Translated using Weblate (Japanese)
Currently translated at 53.2% (57 of 107 strings)

Translated using Weblate (Japanese)

Currently translated at 52.3% (220 of 420 strings)

Translated using Weblate (Japanese)

Currently translated at 64.8% (240 of 370 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: I8de8352bc14dbefbf67b918f7606524eac876f01
2021-02-25 15:28:11 +01:00
Andras Timar
42c1f456e0 Translated using Weblate (Hungarian)
Currently translated at 100.0% (370 of 370 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I13c6c6f5b97fa83f5736f0cc1ffc3520b55d3526
2021-02-25 15:28:11 +01:00
Adolfo Jayme Barrientos
7c9a56e84d Translated using Weblate (Catalan)
Currently translated at 100.0% (420 of 420 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (420 of 420 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (370 of 370 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ca/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/es/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ifa28cb2d56cbea0ec5068c5f331e514dbdeccb9e
2021-02-25 15:28:11 +01:00
Joan Montané
6e76285fdc Translated using Weblate (Catalan)
Currently translated at 99.0% (416 of 420 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (370 of 370 strings)

Co-authored-by: Joan Montané <joan@montane.cat>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ca/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5feebf884d7b777893a2fdf0fa16b92c54f9c084
2021-02-25 15:28:11 +01:00
Bayram Çiçek
422723cbdf removed a duplicate of if statement in TileLayer.js
Signed-off-by: Bayram Çiçek <mail@bayramcicek.com.tr>
Change-Id: I6c49ff442b1ed11f10802a54c675eca1cbd8a1f7
2021-02-22 14:37:11 +03:00
Pedro Pinto Silva
b879f6986f loleaflet: Postmessage-api: Fix missing tr tag in documentation
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I2798b137df43cc322879012a774248fa8185cdec
2021-02-19 17:49:05 +01:00
Gökay Şatır
7947759f6d CanvasSectionContainer: Event propagation.
Now, bound sections propagate events to the sections those are beneath
them. StopPropagation feature is also implemented.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I54c886fea0e254d4b97c4d06585db8ed28d40ab9
2021-02-19 12:07:10 +03:00
Pedro Pinto Silva
762a353509 Vex and jsdialog btns use the same btn font
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Idf286a6f3356b1827421540167b23931731519fd
2021-02-18 10:28:53 +01:00
Pedro Pinto Silva
7033da6dfa Vex: input fields: remove outdated width rule and add style
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie825d15a12732e6f55b370460115227e45a43589
2021-02-18 10:28:53 +01:00
Pedro Pinto Silva
5784ff8693 Vex btns: secondary re-use btn style
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib956440e4d79254c8cb5323a375046e4d4bc191e
2021-02-18 10:28:53 +01:00
Pedro Pinto Silva
a586faa5a0 Fix Vex btns: apply existent btn style
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7787588ccce5ce4042cdd553b781114cf0627fbe
2021-02-18 10:28:53 +01:00
Pranam Lashkari
49277c8b3e leaflet: fixed context menu not working on first row/col
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: If8013f0c8ea455adcb3032f1cf39b10b074e89c4
2021-02-18 13:53:20 +05:30
Andras Timar
beccab2694 update unocommands.js after change of unocommands.py
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ifc7b064e9eed9752bdbd5df5439d567bcaead9e7
2021-02-18 09:18:44 +01:00
Pedro Pinto Silva
cbd4d5ff96 Macro warn jsdialog: style
- apply max-width
- fix text-transformation
- fix color

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I6e40b8ab1b4fbeaee0bd6e97b3dae211c848505e
2021-02-17 14:47:45 +01:00
Pedro Pinto Silva
89442173fc NB: Improve alignment by removing extra margin..
from nav when in edit mode (keep margins when on readonly mode)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I83923bbb34e34c20daa81e80c5832778faab8e1b
2021-02-17 14:47:07 +01:00
Pedro Pinto Silva
fd62fc1aaf Partly revert cb27d2c ..
- Fix #1395
- This was also affecting iPad
- Overflow property doesn't apply to some table elements like table grouping and containers by default.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I2e12c3cb1e5e2ced16748e79063774502c670946
2021-02-17 14:47:07 +01:00
Dennis Francis
2d169bf32a add cypress checks for canvas-overlay items
Currently only the cell-cursor and document selections are part of the
canvas overlay. The others are still part of svg layer.

For now only the bounds of the canvas-overlay items are asserted. The
canvas overlay items update their bounds data as JSON text on cypress
only divs inside the overlay section div every time there is any change.

Unlike cell cursors, the selections need not be always a single
rectangle. To add tests for the more general cases, the json format of
test data is helpful.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I70e6328116c44317f31deb9c8bea62e781d8c421
2021-02-17 19:13:49 +05:30
Gökay Şatır
467dc94921 CanvasSectionContainer: Improve anchor property.
Now, sections can be anchored to other sections's edges.
One does not need to set approximated initial positions for expandable sections any more.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ic012960dedbd937c19c7442cefefdfebdaffafd3
2021-02-17 10:39:23 +03:00
Gökay Şatır
a591bc677f CanvasSectionContainer: Drag distance check is updated.
It wasn't detecting negative values.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I93a633e84828ef18d1b4fc4246065421e63748b9
2021-02-16 18:08:29 +03:00
Dennis Francis
7836b48c98 add CBounds.parse() tests
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I4ebed2f756d083e1dab411a21a976399cd945a47
2021-02-15 16:38:53 +05:30
Dennis Francis
7e8975dc23 missing header selections: set proper unit converter
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ib4f4fa326996ed29e044e392e58b19b342927cba
2021-02-15 16:38:53 +05:30
Dennis Francis
02c64ead85 mocha-tests: compile only the changed test files
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I99b033888006370c4511f54c8fd7312007a4c984
2021-02-15 16:38:53 +05:30
Dennis Francis
abf0b6d14f do not draw tile-section when in zoomAnimation
During zoom-animation, the map zoom is still the prezoom level hence the
painting will conflict with zoom-frame painting.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ib0fc5a3e4ab5e1b5dfc8410af0beaca5b90036ab
2021-02-15 16:38:53 +05:30
Dennis Francis
f9bc14b4ac on zoomanimation pen position should be in tilesection
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I630e628566d4c05c203a784e645d160c0176da10
2021-02-15 16:38:53 +05:30
Ashod Nakashian
6d11e400a7 wsd: userName is optional
This resolves a dependency on userName
(a.k.a. UserFriendlyName) that was a source
of issues when missing.

It turns out that when it's missing but
spellOnline is set, an edge-case caused
an exception that failed loading.

The spellOnline value, in its turn, was
incorrectly set to "null" when in fact
it was missing. This resulted in online
spell-checking being active by default.
Perhaps this was intentional, but here
we don't change this behavior at all.
Instead, we avoid sending "null" when
it's missing, and by default we always
enable online spell-checking, unless
it is explicitly set to "false".

This way, the exception is not thrown
and spellOnline doesn't have invalid
values, while preserving the current
behavior.

Change-Id: I4a09ac44ff5d6147c715afa0fb34af9650da4afd
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-02-13 13:25:48 -05:00
Andras Timar
e5adc33a32 set the StartSlideNumber URL parameter properly
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I51e95aa9d97a579bcba8a4c8127f2e2912238b77
2021-02-12 16:31:15 +01:00
Dennis Francis
8b2eae423c setup mocha framework for testing TS classes/functions
... and add a few test-cases for CPointSet.empty()

* The tests are written in TS and compiled to JS before Mocha framework
  runs them using 'npm test' via 'make check'.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I16e28404af76754b6bbb67c6743ca7d0f2701233
2021-02-12 12:02:13 +05:30
Dennis Francis
a084eafbe7 move CPointSet class to its own file
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I64e7c4d66560e309a7be670e0d0f76bccf20bfa0
2021-02-12 12:02:13 +05:30
Dennis Francis
57ef1e2fde remove generated CanvasOverlay.js
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I454384303f4b3855f34b870ef1ccfaee59f40bc9
2021-02-12 12:02:13 +05:30
Rash419
c32395ba27 added a separate option in debug mode for sidebar invalidation re-rendering debugging
Signed-off-by: Rash419 <rasheshpadia419@gmail.com>
Change-Id: I631e45c2c364522eb6b9875ff35c243db0673f35
2021-02-11 17:47:22 +00:00
Gabriel Masei
877ce2faf5 loleaflet: add support for changing ui mode dynamically
Signed-off-by: Gabriel Masei <gabriel.masei@1and1.ro>
Change-Id: Id84a4feb8f37357d7de8f9cfebea3612751709b1
2021-02-11 12:33:11 +01:00
Szymon Kłos
4f40126c7f jsdialog: handle ESC key to close
Change-Id: I6e9562c5330c3e56a84da384d6a6868625d12878
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-11 12:32:41 +01:00
Szymon Kłos
8df1e6e0ce jsdialog: don't override ok button
Change-Id: Id1c7c20c8bb6bf25c002fd106e90a9897ff53883
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-11 12:32:41 +01:00
Szymon Kłos
029450c166 jsdialog: check radio/checkbox also if clicked label
Change-Id: I0f7188aa6500c308a86e7f314949daedcfcfe237
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-11 12:32:41 +01:00
Szymon Kłos
d89964af65 mobile-wizard autofilter: don't override main container with submenu
Change-Id: Ife89dd6b8a167f06477aaccdcd944e1f178ed110
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-11 12:32:41 +01:00
Szymon Kłos
4e2131b1f6 mobile-wizard: avoid scrolling when adding new elements
when partial update creates bigger element than view
it might scroll down the content

Change-Id: I63cdfe9176d224594b4b737f0883ded8bdc6c878
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-11 12:32:41 +01:00
Szymon Kłos
65fdb1e234 Make hyperlink handler work globally
TileLayer is not initialized when Macro Security warning
is shown - so move to the socket so it can be handled.

Change-Id: I16493d80386c7814ba11d5acc5fa6944f58accf8
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-11 12:32:41 +01:00
Szymon Kłos
a35256f803 jsdialog: handle standard buttons
Standard buttons like help or cancel can be not
wrapped with jsdialog weld wrapper so click action
will be not performed correctly. For standard buttons
we have to send correct response to the dialog.

Change-Id: Ib4d42e53f4789bd12ad83404796f6d7a4ce19ef4
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-11 12:32:41 +01:00
Szymon Kłos
2105c11bee jsdialog: don't leave focus if dialog opened
+ if jsdialog or tunneled dialog is open
  don't steal focus by CellCursor state update

Change-Id: I425ee5e0a96521d8fbdc5dd235defe247f2cf9cb
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-11 12:32:41 +01:00
Szymon Kłos
b7c6682a24 jsdialog: send entry text on keypress
Change-Id: Iac3361ccc164fe6ed7ef2eb6229588e159bc8ccd
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-11 12:32:41 +01:00
Szymon Kłos
1df38361d7 Add fontwork also in calc
Change-Id: I80821e25f78f8d90387faf54d31c1889773a3666
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-11 12:32:41 +01:00
Szymon Kłos
7c2f1d06eb Don't apply invalid canvas split position
When eg. Statistics -> Sampling dialog was opened
we received empty split position what caused to
setup NaN for split pos and no rendering at all

Change-Id: I4bd37778d23b15a01f1850459924c66f437f1570
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-11 12:32:41 +01:00
Szymon Kłos
312b934f62 notebookbar: enable defining names in calc
as it is in the release branch already

Change-Id: I695660d788842bc34aff8b2735bf6f9d36ecf79c
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-11 12:32:41 +01:00
Dennis Francis
59bb3226c0 use CBounds.isValid() to check for empty bounds
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5a93cc77d09dab8d53705e906dcbd942d5da7c89
2021-02-11 14:26:01 +05:30
Dennis Francis
c477faea45 source cursor/selections style data from CSS vars
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ib650ba60d38ab390ae37c3bf24e24b820bd4221e
2021-02-11 14:26:01 +05:30
Dennis Francis
afb9dfd5df add purpose comment to CSelections class
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Idd7d7a4bfd110a868b41362a59092dbf97d79be6
2021-02-11 14:26:01 +05:30
umutbayramoglu
d08fda9749 Remove unused variables
Signed-off-by: umutbayramoglu <umut265@gmail.com>
Change-Id: I7c2565a01605846201cb4a35564eb52b52491fe8
2021-02-11 02:10:34 +03:00
Gökay Şatır
310bd0e234 CanvasTileLayer: Move TilesSection to a typescript file.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I305615e0fc4d9adddb2cedc7a2860e741d467dd4
2021-02-10 19:05:15 +03:00
Gökay Şatır
91094acbf5 loleaflet: Update makefile for typescript files.
It now detects and compiles ts files in specified directories.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ia8a399650480001193be7177b05b5cbb195a98c7
2021-02-10 19:05:15 +03:00
Pranam Lashkari
20a443c2be leaflet: fixed print shortcut not working in readonly mode
original problem was when in read only mode document container
is not in focus and that is why keyboard shortcut events were
never triggered

This solution focuses the document for composed keys to trigger
shortcuts

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I084635c5d3e61215a4e88d84271587186605133d
2021-02-10 17:17:31 +05:30
Dennis Francis
444cc5d131 clear tile section before overlay repaint
This is needed in cases where the tiles have transparent pixels in them.
For example in Writer's tiles, page borders use transparent pixels. In
this case if the tile section background is not white before we paint
tiles, the page border becomes darker.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id35cfe2e4b22efab8f1b1fb77c4f35dd46f0d1d2
2021-02-10 15:26:14 +05:30
Dennis Francis
29b7fdf360 remove hardcoding of debug-mode calc-grid drawingOrder
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I1b074e73b5e8dd8110f66e3f639433a07c73ae57
2021-02-10 15:26:14 +05:30
Dennis Francis
088e48ecc5 skip redraw only if both current and prev bounds are not in view
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Iaa7c8efc41b77f72f1804a4c81d2ec6c6f3d1f10
2021-02-10 15:26:14 +05:30
Dennis Francis
3a40feda4a migrate text/cell-area selections to canvas overlay
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ia9d1adb942fd0a0e1ea23805b2edbc76f9537b17
2021-02-10 15:26:14 +05:30
Dennis Francis
f242f1e654 Introduce anyRingBoundContains which is meaningful for orthogonal polygons
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I0fa487ba875f4e52228df4f89705c4bb9bb435b6
2021-02-10 15:26:14 +05:30
Dennis Francis
35d18d147f allow a pointSet/Polygon to be empty
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id415cee8c89a89d80b21e2aa3b3e0f19514dbb3c
2021-02-10 15:26:14 +05:30
Dennis Francis
31beafb2c9 export rectanglesToPointSet util function
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id20b2bf47863a2d8e9ade16fd009e6d9d330cf20
2021-02-10 15:26:14 +05:30
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
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
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
Gökay Şatır
1c147de68f Calc: Minus & plus sign hairline drawings.
Row and column group controls' plus & minus signs were not hairline. It is fixed.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I964f0e3916df91b110ba17e819c24d589c6bd3cd
2021-02-08 12:01:09 +03:00
Gökay Şatır
969ddc0927 Calc: Fix document-container position.
When column groups is used, document was badly aligned.
This commit fixes it.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: If572735a935fae1db2a94b66711b0a9080490a37
2021-02-08 12:00:52 +03:00
Henry Castro
d75a40317b loleaflet: set last cursor position with server side ...
coordinates.

Record the last cursor position before any transformation
to (lat,lng) coordinates

Change-Id: I183c55da5cd0f9e3338c411382708afc4b945c01
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-02-05 17:33:11 -04:00
Szymon Kłos
904ceed516 jsdialog: remember scroll position on update
Change-Id: I81daf2f33982b596637501590aaa111f084fad81
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-05 16:44:12 +01:00
Szymon Kłos
ec556113ea mobile-wizard: disable ExtrusionToggle
Change-Id: Idb68f59f4bb25a57a2cee17df61a2e5945d50cf9
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-05 14:27:54 +01:00
Szymon Kłos
64e97e5661 mobile-wizard: justify fontwork shapes
Change-Id: I2adfc059669fc4dbe73293d6024839857f77abd3
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-05 14:27:54 +01:00
Szymon Kłos
b48d215a18 mobile-wizard: fontwork property panel
Change-Id: I5279eba27ee6848a5bde539dc30f4e7a37e0eb89
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-05 14:27:54 +01:00
Tor Lillqvist
4bb6363b35 Bin unused STD_EXTRA_WIDTH
Change-Id: If436fba45bbd6669a414c20579f13ac0dadd8241
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-02-04 19:28:13 +02:00
Rizal Muttaqin
c03940312a Add download as csv icon
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id77468703bb941e853a7c1419b386d5a8c91fde7
2021-02-04 13:23:57 +01:00
Pedro Pinto Silva
069684ca97 Expose CSV as an additional download option...
* on classic
* on notebookbar
* allow it in readonly mode

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I29ed6ed40810ba0e59cdb4d55b9898d016653678
2021-02-04 13:23:57 +01:00
Tamás Zolnai
bb7af8b733 cypress: throw and Error object here to get backtrace in cypress log.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I8bb36da750f6bb0855d0118b139e2090e2dbcc85
2021-02-03 14:56:32 +01:00
Tor Lillqvist
c999c5c86d Also save cellviewcursor: messages for handling when we are ready
Without this, when joining an editing session of a spreadsheet, you
don't see the cell cursor of another participant until they move the
cell cursor.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I87b8ad584d57bce52b39706fa9f0bbf56a59082a
2021-02-03 15:54:11 +02:00
Gökay Şatır
18c4ad5584 Calc: GroupBase.js is added for shared functions.
Row and column groups share some of the functions. They are moved into a file.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I268daf2c293f0cac150587a23001f873e23b4dfc
2021-02-02 20:31:37 +03:00
Gökay Şatır
06293d3530 Row & Column Groups: Some fixups.
More comments are added.
Early exits are used.
Unused functions are deleted.
Some functions are renamed for better explanation.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: If835fbb9bbae6898c4847b2c428a3e36f042b60a
2021-02-02 20:31:37 +03:00
Tor Lillqvist
cd1a0c8d27 eslint is pickier in the co-6-4 branch, so cherry-pick fix here, too
Change-Id: I47d09ea9e3da0c60f07821dee9197cbefc7080dc
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-02-02 19:14:45 +02:00
Gökay Şatır
f9ebb450ab AutoFilter DropDown: Replace div reference with section reference.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I82ac56f320083f3fe0ba3ee6104cad341c69120b
2021-02-02 09:49:48 +01:00
Gökay Şatır
1fdcc0baa5 CanvasSectionContainer: Enable creating test divs for automated tests.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: If735aa39fc98959578904e3ea86b893449a119b5
2021-02-02 09:49:48 +01:00
Gökay Şatır
8a8f9f4e6d CanvasTileLayer: Set canvas border for Calc column groups.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I87bd288436cdbdcf866dead00d47bc6aa5f72f4f
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2021-02-02 09:49:48 +01:00
Gökay Şatır
ad7a01ac93 CanvasSectionContainer: Add onRemove function.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I2bc45c36a104b6b76f9a18e18dcda39b8b3d2072
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2021-02-02 09:49:48 +01:00
Gökay Şatır
1413ee6768 Calc: Adjust header and group font sizes.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I09b0146abd1d16305978c212f5cf5446e1b2ec54
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2021-02-02 09:49:48 +01:00
Gökay Şatır
5f1090dcb1 CanvasTileLayer: Position canvas on mobile, tablet and desktop.
Remove "spreadsheet-row-column-frame" div. Since row & column headers and groups are drawn onto the same canvas with tiles, that div shouldn't exist.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2021-02-02 09:49:48 +01:00
Gökay Şatır
d576895c57 Calc: Add Row Group and Column Group sections.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ib44e5e6a9e047c347a239a155b86f091467f5149
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2021-02-02 09:49:48 +01:00
Gökay Şatır
2d8df66167 Calc: Draw Column & Row Headers on tiles canvas.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2021-02-02 09:49:48 +01:00
Gökay Şatır
e2dbff061a CanvasTileLayer: Give id to tiles canvas.
Centralize re-painting event.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Idc37a4ce2206627f1a30162652169fbc7ae0ce03
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2021-02-02 09:49:48 +01:00
Szymon Kłos
969f9f9860 Revert "Don't block handling of touch events"
This reverts commit 284e8ce308.

We have to disable panning handler to avoid panning when resizing
the selection using handles.

Change-Id: I9994b3e9ba32bc3e43567d43e547eada311c050e
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-01 17:43:27 +01:00
Pedro Pinto Silva
b0a38ebe21 loleaflet: server recycling: Improve message
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4cecb72acc927707b68711478c5474326d456d82
2021-02-01 15:01:07 +01:00
Henry Castro
71c595ca4b loleaflet: do not update cursor from other views
Change-Id: I5e0cd6cfa6c5a5db61dcfbfa557c9ec3bc4c8977
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-02-01 07:19:45 -04:00
Tor Lillqvist
989d57b580 In Cypress tests throw error if dialog image cache is inconsistent wrt server
We have a dummy spreadsheet document with a column of cells each in a
different font size. The font size of the current cell is displayed in
the sidebar.

In the test we step through the cells first downwards and then back.
Thus the sidebar image that contains the font size will be updated as
we step through the cells. At first nothing will be found in cache,
but when returning, the images should be found in the cache. If the
cache in the JS client is not consistent with that in the server we
will throw an exception.

Change-Id: I439263c7923d985679fafa0125cd2d7f635e0995
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-29 12:08:58 +02:00
Gökay Şatır
1df8fc91d2 Revert "Disable Freeze panes menu & notebookbar entries on tablets."
This reverts commit 6c2d725c58.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I50c248e3d2dfc7b06a9d0d2c1da3fe8a52d26560
2021-01-29 10:25:45 +03:00
Pedro Pinto Silva
3b398d8e9d dev doc: postmessage-api: Favicon and styling
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I469051b3bd4fd8371ab3d0593922c71d15272445
2021-01-28 19:41:41 +01:00
Marco Cecchetti
445fe41118 cleanup dev doc: loleaflet and postmessage references in separate files
references.html has been replaced by 2 files with content LOLeaflet
and PostMessage setions respectively.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: Id095da5f1ab11c96d090bceab921d74b4fe68482
2021-01-28 15:29:12 +01:00
Tor Lillqvist
ffa940933d eslint is pickier in the co-6-4 branch, so cherry-pick fix here, too
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I06d49a56853fe391c4d137208865498a36c7a1e3
2021-01-28 14:14:03 +02:00
Marco Cecchetti
d869144abb cleanup doc: further cleanup reference.html: small fix-up
Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I031535af28470a66824db6c04f9693e6f6ee1771
2021-01-27 15:42:57 +01:00
Marco Cecchetti
b0315c7c20 cleanup doc: further cleanup reference.html
Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I031535af28470a66824db6c04f9693e6f6ee1771
2021-01-27 15:42:57 +01:00
Marco Cecchetti
b60f48d94a dev documentation: removing misleading leaflet API documentation
Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: If417805d7c0620921b2b8e35101b6489caafaf2f
2021-01-27 15:42:57 +01:00
Tor Lillqvist
944e831b3d Add sanity checks to the PNG cache code in loleaflet
If the client cache seems to be inconsistent with what the server
thinks, send an ERROR message to the server that will be logged.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ic7f9d7fb15b2c34f7a6cd2decbacaa7745ac9389
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-26 16:55:04 +02:00
Henry Castro
34a0aa04ed loleafet: simplify update max bounds
it is not necessary fire 'updatemaxbounds',
because the association map <-> document layer
1:1

Change-Id: Ic41ab328f7d3d331624107a13acf9f1fdd4c46df
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-01-26 08:08:28 -04:00
Tamás Zolnai
1a7f2b5122 leaflet: reset selection before opening the slide wizard
Taping on the selected slide's preview should open the mobile
wizard with the slide properties. To achive this also with
a selected shape on the slide we reset the selection first
and open the mobile wizard after that.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ie60ec9bff01d143e6ca79fe4e32849b2a4fb3bc6
2021-01-26 12:32:36 +01:00
Tamás Zolnai
fd14e92314 Revert "leaflet: wsd: select the page before opening the slide wizard"
This reverts commit 0a54b23251.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Id41a85d920a470d784f4c6158bb25c9ba46f43d2
2021-01-26 12:32:36 +01:00
Tor Lillqvist
f1e074f6bc Add caching of tunnelled dialog images
The same cache size is used in server and client. The caches use the
invalidation algorithm. Pass the hash of the pixmap in the
windowpaint: message. The client stores dialog images in its cache.
The server stores hashes of the images. When the server knows that the
client already has an image cached, it sends just its hash and the
client will use the cached image.

Pass the size of the cache to the client so that we don't have to keep
the the cache size synchronised in two places in the code.

Change-Id: Ie6cbfca79a9ede48fcc115e3acc669b925bb624e
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-25 17:48:33 +02:00
Szymon Kłos
80fd6420f7 notebookbar: partial updates support for listboxes
Change-Id: I90141f42bc5f1d448f3b81a926a4abef297e1a8c
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-25 12:35:13 +01:00
Szymon Kłos
3ac8da5eaf notebookbar: reuse font selectors
keep full code of each field in one place
iOS button was hardcoded and created in event
keep the previous structure but style at build time

Change-Id: I83bb808997c04206af7678b24ae1f8ed75f7b2a1
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-25 12:35:13 +01:00
Gökay Şatır
c49c135971 CanvasSectionContainer: Ensure that integer pixels are used for pos and size.
Make borders hairline.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Id0d690903a6f51316b318486baac6c49b62150d3
2021-01-25 13:13:00 +03:00
Gökay Şatır
f33f24c16c CanvasTileLayer: Canvas is moved outside of "map" div.
Canvas element's drawings will include part of UI outside of map area. Its size should be larger than tilelayer's and map's sizes.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I89bf79ccfe0240abdb031b937626b0bb81f3ed6f
2021-01-25 11:53:59 +03:00
Pranam Lashkari
77a344727d leaflet: use marker to select the reference range in calc formula
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I97839d01d88796e3a2c8c5ff3a27c05b6802578d
2021-01-25 09:50:26 +01:00
Pedro Pinto Silva
4cb1f81d84 Mobile: mobileWizard: style comment card's contents
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8bd166209694155f09ed958c216fc9850b01bcc4
2021-01-22 16:33:06 +01:00
Pranam Lashkari
24560b3555 leaflet: fixed hyperlink popup being mispositioned around the edge
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I1123715cfadd8e752adb8f9a6bdf697006271390
2021-01-22 18:59:20 +05:30
Szymon Kłos
44fd1c6b51 jsdialog: warn when update not applied
Change-Id: I8adaae41cb04dceea768f04b00200cd1e9867122
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Szymon Kłos
4183cca9dd jsdialog: on update build in the same place
This helps to keep control in the same place
if node has more siblings

Change-Id: I5922c5a34b85bace169504646e92fe892fbaf3a5
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Szymon Kłos
7a7bedfff4 mobile wizard: partial updates
Change-Id: I792d68104f61b377089296b130142215f83d2c24
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Szymon Kłos
a205a4c97a notebookbar: promote single items to bittoolitems
Change-Id: I7b7e2ac627d9bb50a1fca7f5aa1e40f86d5397d7
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Szymon Kłos
88e710a54d notebookbar: update cache with missing elements
Change-Id: I200cce9b89a3bb779a74cb98ad0c63caab997448
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Pranam Lashkari
f144df98c8 leaflet: blacklist language selection on misspelled words in mobile
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I149539983897d20828dc6e32ed053c9b7e279ad4
2021-01-22 01:34:30 +05:30
Pranam Lashkari
4962386d94 leaflet: fixed missing selection overlay while selecting row/column
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I85e41ffc9de69de9543b8e1ccae177054a9375ac
2021-01-21 23:59:02 +05:30
Szymon Kłos
92da9ab48e notebookbar: cache impress draw tab
Change-Id: I3a021ece0673593e38561ac2aeeb79e0bc7be4a3
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
e094f042b8 notebookbar: cache impress table tab
Change-Id: Id9f77933eff714fb9f7a1ae44c34161a6b37bcdc
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
3d07c178d1 notebookbar: cache impress review tab
Change-Id: I1991ff61c5553e95a0ed3ae564db8a2c12c5e058
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
1a977cc22b notebookbar: cache calc review tab
Change-Id: Ibf662b9794e5b68be448f24c6aa22e428d20905c
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
f926511ad1 notebookbar: cache calc data tab
Change-Id: Icc4f131a4f223b6830393bd1fe0c3fbb8dda0df4
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
6f56f79299 notebookbar: cache writer draw tab
Change-Id: I1b8f0b2d5bed8bc2c658b1805ca8b5e862f325f7
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
854a75c81a notebookbar: cache writer table tab
Change-Id: Ic19ac84acb297fc79e769d4189ec2365d8786204
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
17796f17ad notebookbar: cache writer review tab
Change-Id: I6f02c1b6e00da72089bb126381f38bb7150e3d1d
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
b94e9773f7 notebookbar: cache writer references tab
Change-Id: I239efd1506c1130e92ca5d503caf42eadb48524d
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
882fbd0e96 notebookbar: cache writer layout tab
Change-Id: I3c2b505c610008436ad7b2d06071a006ef5f37b5
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
e24b927eb1 autofilter: partial updates support
Change-Id: If2c67954e044bce1fc7338e86c1dca9b0a945380
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
01fb800043 notebookbar: don't create containers for partial updates
Change-Id: I025533ca48ca100bd7da1a48b21d7eb3f59e3bf4
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
5af69a6ccd jsdialog: use one instance of notebookbar builder
+ setup windowId which is received from core

Change-Id: Iefc726a2e547d79adca669768bd3c606cb3151bb
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
1f1d509ecf jsdialog: don't use static members
Change-Id: Ie0284a3c53219fcadfc63972d9ffc9188fc29175
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
06124d774e jsdialog: tabcontrol update to handle all tabs JSON
if JSON has more tabs - build in dedicated containers
if JSON has only one tab - build old old way

Change-Id: Ic960d6976ccdf60c48ca0057fdaa0ff115fca708
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
830d9408dc jsdialog: use partial updates for notebookbar
Change-Id: Iccf43dcb434695dc2be8d72f8e6fd43a659d1af0
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01: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
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
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
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
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
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
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
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
Tamás Zolnai
d1118b43be Fix wrong view info when opening two views close in time.
The issue is that we passed viewinfo messaged to do _docLayer
in wrong order because of the too simple delaying mechanism.

Wrong scenario steps:
viewinfo-1 arrives: _docLayer is not initialized yet -> 100 ms delay.
viewinfo-2 arrives: _docLayer is initialized now -> pass to _docLayer.
viewinfo-1's timeout: _docLayer is initialized now -> pass to _docLayer

Better to use the more sophisticated delaying method.
See _tryToDelayMessage() and related methods. They keep the order
of the messages.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I335b350b1553cfdee573f7d2e57c86c4b8f9af84
2021-01-14 15:04:13 +01:00
mert
f72d394a02 Fix calc text-input focus problem on Android
Change-Id: Iacd279f741c35703807f14a9798fbe2ef0f45d50
Signed-off-by: mert <mert.tumer@collabora.com>
2021-01-14 11:27:12 +03:00
Szymon Kłos
fe5454faa6 popup: improve text layout
Change-Id: Id3700692706bb67b8e626b24a2ae9c10dff1f772
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-14 08:16:33 +01:00
Andreas-Kainz
79374db3ae Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I3ce2be9cc6362c09725fe1692e6853f195274211
2021-01-14 06:29:37 +01:00
Pedro Pinto Silva
ad87fb854d Fontwork: layout improvements
- iconview fix layout without using hard-coded margins
- fontwork: make sure the elements start at the same left position as the title and that they occupy the dialog evenly
- hide unnecessary label
- space-around when on mobile

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia92acf1cbf09a3e7c6e996f9a846163835b115af
2021-01-13 16:57:16 +01:00
Pedro Pinto Silva
04ca03925d Notebookbar: disable command: easier to scan its status
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5f89c40f65a111de1a08d6e55eaaa68499449ed3
2021-01-13 11:35:28 +01:00
Andreas-Kainz
1f5feb1534 Notebookbar: disable commands without gray background
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I539d70ab1ba07d27cf34b61a8bf1a333e0bc4531
2021-01-13 11:35:28 +01:00
Szymon Kłos
ddcc45860c jsdialog: TreeView doubleclick to activate row
Change-Id: I312770470bf05c07c85c7962ce97132558c031f6
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-13 09:46:22 +01:00
Szymon Kłos
5aed87e10b Add fontwork dialog to the ui
Change-Id: I3c66f2e6db4fbfa5dd42484e260113e6233d62fd
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-13 09:46:22 +01:00
Szymon Kłos
bfc91864c0 jsdialog: implemented IconView
Change-Id: Ifb27b008396cba9c4695058096ae4f1757fa0a26
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-13 09:46:22 +01:00
Szymon Kłos
8e6ea69206 jsdialog: draggable only using titlebar
Change-Id: I7ee2cf4f1bc0d39a13b8689e3ab1db395665d201
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-13 09:46:22 +01:00
Szymon Kłos
08d49d9e9a Mark current linespacing setting in menu
Change-Id: I283082d7d78359861a7920290e99f90393ef6588
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-13 09:46:22 +01:00
Szymon Kłos
33ab7bdc6f autofilter: don't allow to place outside screen
Change-Id: If4a0583e4160726bd0801a029161ba09442ab4f3
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-13 09:46:22 +01:00
Szymon Kłos
1088e59a0c Initialize menubar only once
readonly for some reason is fired twice

Change-Id: I04db49decb810f3cc5238b50bf377f38b22a97c1
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-13 09:46:22 +01:00
Szymon Kłos
220c93ce2f notebookbar: clear timeout on remove
Change-Id: I8d7290e48a0c0235cdfb6c96f15205da0c220aa6
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-13 09:46:22 +01:00
Andreas-Kainz
e50a2d8ce4 Writer NB: Layout tab fix icon size of align commands
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I96b21a616756d79ebb45a1d12e8bdeb4dfabc80d
2021-01-12 18:36:15 +01:00
Pedro Pinto Silva
393bc9e810 NotebookBar: Promote saveas to bigtoolitem
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I357b0959458cf3ca72ec7cc0d8b10ee9fad2bdaf
2021-01-12 16:52:57 +01:00
Pedro Pinto Silva
e0cadd813c NotebookBar: Promote shareas to bigtoolitem
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I6526ec70eac50d9295f9a53687e4ba41613205ec
2021-01-12 16:52:57 +01:00
Szymon Kłos
33e9d0de53 notebookbar: share revhistory and print with menubar
Change-Id: I27166ab6ff97901945a55f1eb75297875090f5ff
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-12 16:52:57 +01:00
Pedro Pinto Silva
0e84320d7e NotebookBar: Promote Revision History to bigtoolitem
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I33c8a6ced4b502aae4aac8dfcb745c5b46c88556
2021-01-12 16:52:57 +01:00
Pedro Pinto Silva
4091145598 Notebookbar: Promote Print to bigtoolitem
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic100b0857d9617c5fcdf3d2ea8a992206cd0cf5d
2021-01-12 16:52:57 +01:00
Szymon Kłos
bbecabed82 mobilewizard: refresh sidebar after border change
Change-Id: If4ef31d47c3831cbc4918b2cf168cae9acd542e0
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-12 10:04:04 +01:00
Szymon Kłos
8e25f04e8b mobilewizard: add disabled state for toolbox children
Change-Id: I5fb30e63b05a32f986c6eab587bea089ba5f2294
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-12 10:04:04 +01:00
Szymon Kłos
702f3b3036 mobilewizard: send XLineColor data properly
Change-Id: I79a53f23a7efdc6f404192baedc0ac4bf50c2bb3
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-12 10:04:04 +01:00
Pedro Pinto Silva
41728bd630 JSDialog: force checkbox style
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I2770137acb9c64bca79c21f0e99dfaabb2701217
2021-01-11 17:12:03 +01:00
Michael Meeks
7094331d89 Add pixel-testing image for interpolation avoidance.
Change-Id: I8d6da1e35f4c0a8dfcead884ea3ad3a078c96157
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-01-11 14:16:47 +00:00
Szymon Kłos
a47a5b324d jsdialog: radiobutton updates
jsdialog updates require main container for control to have
id equal to the widget id. In case of radiobutton it wasn't true.
Fix it for desktop for now and leave for mobile as is (used
in cypress tests - so needs reworking)

Change-Id: I9220b289185ff6a72ea08360f0fa0570db40f95b
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-10 19:19:19 +01:00
Szymon Kłos
b00e903030 jsdialog: support radio groups
Change-Id: I8a56ccfe5d38ea451713d732c11131b8ee3d3db6
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-10 19:19:19 +01:00
Szymon Kłos
ca51113955 jsdialog: apply updates using new message
- use jsdialog: message instead commandresult:
- add updates handling also for autofilter dropdown

Change-Id: Iab909c9f119625784c6efcd14e8d0fdf38302ce4
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-10 19:19:19 +01:00
Andreas-Kainz
c4c30ecc03 add clone and clear to ContextMenu
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: Idd963d2f5789dbec4e1fb182d5e96925b64fabaa
2021-01-10 13:14:59 +01:00
Szymon Kłos
5268b8c5fb notebookbar: select correct tab for cached ones
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7b3ff02f3e2e6ee444edb5d11fb08c1171141d90
2021-01-09 16:22:56 +01:00