summaryrefslogtreecommitdiff
path: root/loleaflet
AgeCommit message (Collapse)AuthorFilesLines
2020-09-22Updated welcome messagesAndras Timar4-36/+42
Change-Id: Ibca158574a31266aab39a88cd39dd73830af089f
2020-09-22Welcome message links should open on a new tabAndras Timar4-16/+16
Change-Id: I427ce0642f45eb96eefceeda4e5f0f6236bb1674
2020-09-22[cp] CODE welcome messages (en, de, es, fr)Andras Timar4-5/+53
Change-Id: Ib0ff8390f4163e3f6471e5e55452a9bc00d4187c
2020-09-22update translationsWeblate3-40/+18
LibreOffice Online/loleaflet-ui (Ukrainian) Currently translated at 100.0% (347 of 347 strings) Change-Id: I435a4affef58fae81d8e09cb3c9542d8754a3b30 update translations LibreOffice Online/loleaflet-ui (Asturian) Currently translated at 44.6% (155 of 347 strings) Change-Id: I056bc24e30783453275811c383b82e98f0b879f2 update translations LibreOffice Online/loleaflet-ui (Swedish) Currently translated at 100.0% (347 of 347 strings) Change-Id: Id3444272423c4337771b717349ea238e82e472c5 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102968 Tested-by: Andras Timar <andras.timar@collabora.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-09-22Resize tunneled tooltips on invalidationSzymon Kłos1-0/+11
Prevent us from showing leftovers from previous (longer) tooltip. Change-Id: Ic35238c6a9780c975f90ee76b1c12b92065b4f1b Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103185 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-09-22Ruler: Make sure numbers are always vertically centeredPedro Pinto Silva1-1/+3
Change-Id: I7ab64cc001e3a65b3fa52f7f77843cfe0eb6e2df Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103173 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Pedro Silva <pedro.silva@collabora.com>
2020-09-22jsdialog: send FillColor as numberSzymon Kłos1-1/+1
Change-Id: Iab85bd2cc6ab082c368ec2a8669c9ce384305d24 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102921 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103140 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-09-22notebookbar: toggle hamburger menu on clickSzymon Kłos1-1/+3
Change-Id: I3593f46ea962a225c56202fb07f804a2f69c151e Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103135 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-09-21leaflet: show annotation marker only from the selected slidePranam Lashkari1-1/+2
Change-Id: I6a9950f8f5be0f6e7393faf4f8718b94ffb05ebc Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103114 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
2020-09-21Fix pinch gesture causes hammer to stuck on Mobilemert1-2/+13
Change-Id: If0ae311346a1111e9c9935ebacde3bc5ea874833 Signed-off-by: mert <mert.tumer@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102873 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-09-21default to Carlito in font selectorAndras Timar4-7/+7
Change-Id: Ib568253adc48376cf57335934c3471b46d08fdbc Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103092 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-09-21Mobile: add missing rotation iconPedro Pinto Silva1-0/+1
Change-Id: I380c2a21433ed1cb18fe059f70713028503cf966 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103112 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Pedro Silva <pedro.silva@collabora.com>
2020-09-21Fix missing InputBar and sidebar in Calc.Tamás Zolnai1-2/+2
_isReady() can be true even if the _docLayer is not created yet and in this case we dropped the window messages which should have triggered the input bar and the sidebar creation. cypress tests were failing because of this issue sometimes. Change-Id: Ifda1d66c952c65c420db06bfd61918411426ae93 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103010 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-09-21mobile: pre-condition if they are numbersHenry Castro1-1/+7
The hammer library sometimes or random when consecutively pinch events, the center and scale has infinity values Change-Id: Ide6605bcbc0c7b4818fd27b7b44706fb8122d80a Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100744 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 091eca0ae421ca436ba95ea1e478909f2a18d0a7) Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103047
2020-09-21calc grid: render during canvas 'clear' if we can.Michael Meeks1-13/+24
Also re-render as soon as we have grid positions. Change-Id: I57095683e662991badcb3a58832c81ebb3bc460d Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103043 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-09-18Readonly: fix styles and multiple document headers on notebookbar and classicPedro Pinto Silva3-5/+17
- Avoid having multiple document-header elements when on notebookbar - Add classes to the main-nav element when in presence of Readonly Change-Id: I82cb816fcfa28d790202c96484a7e8c99f3875f6 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103004 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Pedro Silva <pedro.silva@collabora.com>
2020-09-17tilecombine: should pass back oldwid to save bandwidth.Michael Meeks1-5/+17
Don't re-send un-changed tiles that we can detect easily. Also avoids some PNG compression / CPU overhead server-side. Change-Id: Ieca05680d9194e0bfc177b8db338010e5ffafe75 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102954 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-09-17calc canvas: use the right canvas size in core pixels to clear.Michael Meeks1-1/+1
Change-Id: I058cabd4daa51eb7da1f1ee33e59464692f00331 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102953 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-09-17calc grid: re-render the canvas when we get grid details.Michael Meeks1-0/+1
Change-Id: I3d1d1485e561d8c807daa0dfe0a9f2cb5651d31b Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102952 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-09-17calc grid: fix this interleaving.Michael Meeks1-2/+4
When the span starts in the middle of the view don't render backwards. Change-Id: Icc97fef88a65c0ca83167ddb72c03bece9a8e047 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102951 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-09-17grid lines: Setup renderBackground only after _painter exists.Jan Holesovsky2-61/+66
This fixes setup of many cypress tests. Change-Id: I4eb626050d2d4202104ab01a6aa0b01248ae4eb5 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102965 Tested-by: Jan Holesovsky <kendy@collabora.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-09-17calc canvas: start of direct grid rendering.Michael Meeks2-15/+109
Change-Id: If471fc4ff94b3cb8e2897ac76e712aa3958fc7d2 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102950 Tested-by: Jan Holesovsky <kendy@collabora.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-09-17loleaflet: Hide the visibility of the cursor by defaultHenry Castro1-0/+1
When loading a spreadsheet document, the server should send a message to show the cursor appropriately Change-Id: I520a2b21fab903fc6b17ea612bbe1691ef311dbd Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102692 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-09-17split panes: Don't expose the freeze panes buttons in the toolbar.Jan Holesovsky1-5/+1
The split panes are not modified that often, no need to have buttons to set that up in the toolbar. Change-Id: I9c7920f6dd57de5f507450e15fcde615ad941f1c
2020-09-17leaflet: added freeze pan buttons to view menuPranam Lashkari2-0/+7
Change-Id: I9ba7a0982b15d097e21d93a6e18289455f0f8139
2020-09-17leaflet: added freeze pan buttons to toolbarPranam Lashkari2-1/+9
Change-Id: Ifb9ae58deef77397a5d5eb7c0bfd85625f1a4e74
2020-09-17notebookbar: added freeze pan buttons in calcPranam Lashkari5-0/+63
added icons too Change-Id: I913f315c2e5bfcfbf6f82677ecffe76eaf86ea2a
2020-09-17split panes: No dragging of the split lines currently.Jan Holesovsky2-2/+8
It is too buggy, let's instead allow only setting of that via the menu, similarly to what the desktop LO does. Change-Id: I219b2535e0cbd5310fe2a3a9ebf2098536d5c175
2020-09-17split panes: No split lines at all when they are at 0 position.Jan Holesovsky1-6/+11
Change-Id: I9fee28f32acdabd4768b095a471f26e5e8e9a378
2020-09-17calc canvas: More reliable check for the desktop / mobile / tablet.Jan Holesovsky4-2/+11
Change-Id: I7b1ea581051608e020fd6e4615be9bc9b919c01f
2020-09-17calc canvas: get the right core px size of the canvas across.Michael Meeks1-7/+9
Change-Id: Ib079097b9d5caf707bd95b286d675791b5df9255
2020-09-17Adjust splitline thickness according to zoom levelSzymon Kłos1-1/+3
Change-Id: I33c398f1545860fb2f77d9d8dcdd8f632c2603ca
2020-09-17Don't block handling of touch eventsSzymon Kłos2-13/+0
This is partial revert of 901ecca313. Handles (Markers) 'down' handler disabled main TouchGesture handler what caused taps to be ignored. Eg. double click didn't enter edit mode for a Calc cell. Change-Id: Id7097e9ad513e56a71423a6d6a8ac5105c373f77
2020-09-17calc tiles: clarify some magic.Michael Meeks1-5/+8
Change-Id: I2d95dd09b5640a5216e72366493ddf77541c8b73
2020-09-17calc canvas: avoid repeated setTransform; build the right offset.Michael Meeks1-12/+6
Change-Id: Iab153b25fa38f27742a052ad0892e3d55c2c04cc
2020-09-17calc canvas: use sub image blitting instead of clipping.Michael Meeks1-9/+20
Avoids thrashing the canvas rendering context / clip state. Change-Id: I547ce22a171874cd7be3a0fac50b4afc56faf084
2020-09-17calc canvas: round view co-ordinates to the real pixels we need.Michael Meeks2-0/+11
Change-Id: I768cd9015da1f1301f3ddad242130d4eddb426d1
2020-09-17calc canvas: avoid lots of canvas context save/restores.Michael Meeks1-10/+3
Change-Id: Ib813686ef7d495e660ad8fa3b545391180b9e019
2020-09-17Split lines only in the corner when set to 0Szymon Kłos1-1/+10
Change-Id: I6192219cede2d0888ecd77236f72ff734d99d778
2020-09-17calc canvas: Preserving of the top left cell should be desktop-only.Jan Holesovsky1-11/+13
On mobile, the center of the zooming has to be according to the center of the pinch-to-zoom, ie. the center has to be taken into account. Change-Id: I3ba2ea90b7bac9bc1ba27f8068ea7ed6bbb4910d
2020-09-17calc canvas: paint invalid tiles until their replacement arrives.Michael Meeks1-3/+7
This avoids display corruption when panning, whereby stale/old canvas content would continue to be rendered in the 'holes' where invalid tiles were not rendered. Change-Id: Ic886c0924c5a930116b1437c8e0cf35726ab76a5
2020-09-17calc tiles: don't send un-necessary zoom / visible area changes.Michael Meeks1-3/+2
Lots of redundant zoom messages seem unhelpful. Change-Id: I944a3202739adfc89aab81902b467a4e34977202
2020-09-17calc canvas: ensure that the fraction width rounds to the pixel width.Michael Meeks1-4/+13
Slave CSS geometry from integral canvas pixels, don't attempt the reverse. Change-Id: I369ed1bea3c4a5a199192aa1e84bb4e03dcb2e94
2020-09-17calc canvas: Fix occasional off-by-one error that results in a blurry canvas.Jan Holesovsky1-6/+12
The core of the fix is in _getNewPixelOrigin() where the round() behaves non-predictably / inconsistently with the rest of the code, causing random off-by-one error that shows (or not) depending on the window size. The biggest problem of this is that this off-by-one is then multiplied somewhere by the zoom factor, causing the canvas being completely blurry; but eventually when the user clicked into the sheet, it 'magically' fixed itself. The rest of the changes (in setZoom()) should actually do the same thing as the previous code, but using existing methods, instead of computing the shifts manually. Change-Id: If0ecb1301b7c1e65cfe8126385ef959c584c5d16
2020-09-17calc tiles: connect debug to global setting.Michael Meeks1-10/+6
Change-Id: I0db008ac40020c9173d37969aa6c23b3a1696f79
2020-09-17calc canvas: Keep the document zoom separate from the browser zoom.Jan Holesovsky1-15/+0
With this, if you increase or decrease the browser zoom, the document zoom still stays the same. Before this, when you had eg. 100% document zoom and 150% browser zoom and try to zoom out, it actually zooms in instead, because the browser's zoom is added to the mix; and it displays the wrong value in the dropdown. Even worse, to get the 100% again, you have to choose 80% so that the correction for the browser zoom is added, resulting in the 100%. We should keep both the document and browser zoom separately. The questions is then whether to combine them later for the actual document rendering; I believe we should not, but even if we should, we cannot do it directly in the setZoom() method, but instead closer to the painting itself. Change-Id: Ib7f3d2ae8b4e6e6086f14e933b215c32326c6be6
2020-09-17specialize twips/core-pixels/css-pixels conversion methodsDennis Francis2-13/+125
Change-Id: Ifb0a67b938fdd34a06bb7e75832498d566247010
2020-09-17detect change in dpi and update zoomDennis Francis2-13/+16
Change-Id: I034727a8fe8495445350648fea2422c56fda1875
2020-09-17use the main canvas dpiScale everywhereDennis Francis7-22/+51
Change-Id: I2bea44a000552ce8f2fee2b0ebb5a4d162d3576f
2020-09-17sheetGeometry: use exact dpiScale when canvas is usedDennis Francis1-58/+70
Also use the term core-pixels instead of 'device pixels' which is more appropriate. Change-Id: I18952393f17e0391167e0219b829be47723c5c47