Use sheetGeometry to transform the view coordinates for the chosen
zoom-level for the frame. However this is not done for the indivdual
tiles. As a result there could be small alignment descrepancies between
tiles and other stuff we draw using sheetGeometry such as grids and
overlays.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: If839997dda012f48e2c524643b5fd860e075320d
...missing to reduce error due to page-margins.
The error in score calculation can be made accurate if we use page
margins data into account. This is currently unavailable for
impress/draw apps.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I1a324766dddbd93b4a4f60089a81638357d242e8
Move the zoom frame painting to tile-section.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I12590809fe80b32d3630b7fdbaeeb9d8f703f041
Be sure to only do that when on mobile
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0a4f803ce50ceb950b4d9f0bbc38f5629218393b
Our permissions change callback modifies the UI so
first we have to create the UI when reconnecting.
This fixes the bug when on pdf renaming notebookbar appeared
above menubar.
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I37e462e240fe7dc7eba349c9f9fbcf01679b8fe9
When on mobile we hide keyboard it was visible that
content "under the keyboard" wasn't refreshed.
So be sure we draw everything after we detected resized view
and we did all the view position setup keeping cursor on the screen.
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If9dc449415b14f5d71035bae190a16d85b3118c1
On mobile in hamburger menu > search when we focused input field
the focus was set to document so when user started typing we
received new characters in the document instead of input field.
Also it doesn't trigger showing the keyboard when 'next' button
is clicked in search dialog.
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I89ee39ad99f7f250e04e20d7f297e16fd7c75dd4
Currently translated at 100.0% (457 of 457 strings)
Translated using Weblate (Czech)
Currently translated at 100.0% (457 of 457 strings)
Co-authored-by: Jan Holesovsky <kendy@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/cs/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9b85bcc064738fdc70fa5ec33b2804d082600efc
Currently translated at 100.0% (457 of 457 strings)
Translated using Weblate (Swedish)
Currently translated at 74.6% (341 of 457 strings)
Translated using Weblate (Swedish)
Currently translated at 64.3% (294 of 457 strings)
Translated using Weblate (Swedish)
Currently translated at 100.0% (5 of 5 strings)
Translated using Weblate (Swedish)
Currently translated at 100.0% (110 of 110 strings)
Translated using Weblate (Swedish)
Currently translated at 54.0% (247 of 457 strings)
Translated using Weblate (Swedish)
Currently translated at 100.0% (395 of 395 strings)
Co-authored-by: Leif-Jöran Olsson <info@friprogramvarusyndikatet.se>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/sv/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/sv/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sv/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sv/
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: I3987e574f5adb7e7256c80d2eaf308d4cd05c2cb
Currently translated at 100.0% (457 of 457 strings)
Translated using Weblate (Catalan)
Currently translated at 100.0% (395 of 395 strings)
Translated using Weblate (Catalan)
Currently translated at 99.3% (454 of 457 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: Iac55920d1fb5c986c8af88fab7f40e4b632c05b6
Currently translated at 100.0% (22 of 22 strings)
Translated using Weblate (Greek)
Currently translated at 93.2% (426 of 457 strings)
Translated using Weblate (Greek)
Currently translated at 99.4% (393 of 395 strings)
Translated using Weblate (Greek)
Currently translated at 95.4% (21 of 22 strings)
Translated using Weblate (Greek)
Currently translated at 100.0% (110 of 110 strings)
Translated using Weblate (Greek)
Currently translated at 98.1% (108 of 110 strings)
Co-authored-by: george kitsoukakis <norhorn@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/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/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib59a0aa2d47cf0c0004703008ef46bdf9165f1e1
Currently translated at 71.9% (329 of 457 strings)
Translated using Weblate (Icelandic)
Currently translated at 70.2% (321 of 457 strings)
Translated using Weblate (Icelandic)
Currently translated at 100.0% (395 of 395 strings)
Co-authored-by: Sveinn í Felli <sv1@fellsnet.is>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/is/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/is/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I04f69dab7edcfe7d13b1f617ef9e2c3bd12e014d
Currently translated at 63.6% (291 of 457 strings)
Translated using Weblate (Hebrew)
Currently translated at 59.5% (272 of 457 strings)
Translated using Weblate (Hebrew)
Currently translated at 100.0% (395 of 395 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: I3086bc396e3610c151a89cb03918f14d921edd04
For instance groups field can be "" to indicate there are no groups and
ignoring this is a bug if there were some grouping in the previous
uno:sheetGeometry message. This also adds a Mocha test for this.
The issue was originally caught by the cypress group/ungroup tests.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ib64009e62d510772d5f523378b713a71cf9cccc6
Adding redundant data to the spanlist does not give us any speed
advantage and they can be provided via the public interface SpanViewData
whenever requested.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ifd402f4c2d20aa69c9dd34c2f73ba619f5a5d574
All public methods of SheetGeometry class now have tests.
TODO: Add tests for component classes of SheetGeometry. For instance
SheetDimension's interface are directly used in drawing headers, so we
need tests for them.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ifab2acea51cf30e6cf1437d9983e6678b4074c38
While adding new mocha tests, it is helpful to run and debug just those
tests.
For instance to run the unit test file for SheetGeomtry, now this is possible by running:
$ make build-tests && npm run test-single -- mocha_tests/SheetGeometry.test.js
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I730f79409c05b5ea67fa42c5d0b58cc2f92e238a
Without further TS migrations, this is necessary to tests these using
Mocha.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ia92bb0cd3e750d668790635e11935f49d8227ec6
The functonality is not implemented in the mobile apps, and it is hard
to say what it would do anyway.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ibf14c2018603c79a8297e0ffaf5e6450f9b97431
The functonality is not implemented in the mobile apps, and it is hard
to say what it would do anyway.
Fixes https://github.com/CollaboraOnline/online/issues/3294
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I7ec9df56c24d9c6486641e8feffca2350210d52e