Commit graph

5692 commits

Author SHA1 Message Date
Henry Castro
6a70aeaad8 loleaflet: Hide the visibility of the cursor by default
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-17 17:58:58 +02:00
Jan Holesovsky
49cdd8cafd split panes: Don't expose the freeze panes buttons in the toolbar.
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-17 15:03:54 +02:00
Pranam Lashkari
fb0deb2a13 leaflet: added freeze pan buttons to view menu
Change-Id: I9ba7a0982b15d097e21d93a6e18289455f0f8139
2020-09-17 15:03:54 +02:00
Pranam Lashkari
4eab08e62b leaflet: added freeze pan buttons to toolbar
Change-Id: Ifb9ae58deef77397a5d5eb7c0bfd85625f1a4e74
2020-09-17 15:03:54 +02:00
Pranam Lashkari
b7e5604bc3 notebookbar: added freeze pan buttons in calc
added icons too

Change-Id: I913f315c2e5bfcfbf6f82677ecffe76eaf86ea2a
2020-09-17 15:03:54 +02:00
Jan Holesovsky
ed0c1e3477 split panes: No dragging of the split lines currently.
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-17 15:03:51 +02:00
Jan Holesovsky
f0b63eb765 split panes: No split lines at all when they are at 0 position.
Change-Id: I9fee28f32acdabd4768b095a471f26e5e8e9a378
2020-09-17 15:03:01 +02:00
Jan Holesovsky
f668b59001 calc canvas: More reliable check for the desktop / mobile / tablet.
Change-Id: I7b1ea581051608e020fd6e4615be9bc9b919c01f
2020-09-17 15:03:01 +02:00
Michael Meeks
0176bbeb6a calc canvas: get the right core px size of the canvas across.
Change-Id: Ib079097b9d5caf707bd95b286d675791b5df9255
2020-09-17 15:03:01 +02:00
Szymon Kłos
f9cfed47d4 Adjust splitline thickness according to zoom level
Change-Id: I33c398f1545860fb2f77d9d8dcdd8f632c2603ca
2020-09-17 15:03:01 +02:00
Szymon Kłos
284e8ce308 Don't block handling of touch events
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-17 15:03:01 +02:00
Michael Meeks
26e87932ae calc tiles: clarify some magic.
Change-Id: I2d95dd09b5640a5216e72366493ddf77541c8b73
2020-09-17 15:03:01 +02:00
Michael Meeks
d1971d3a7d calc canvas: avoid repeated setTransform; build the right offset.
Change-Id: Iab153b25fa38f27742a052ad0892e3d55c2c04cc
2020-09-17 15:03:01 +02:00
Michael Meeks
5367d18d3d calc canvas: use sub image blitting instead of clipping.
Avoids thrashing the canvas rendering context / clip state.

Change-Id: I547ce22a171874cd7be3a0fac50b4afc56faf084
2020-09-17 15:03:01 +02:00
Michael Meeks
cee264f971 calc canvas: round view co-ordinates to the real pixels we need.
Change-Id: I768cd9015da1f1301f3ddad242130d4eddb426d1
2020-09-17 15:03:01 +02:00
Michael Meeks
fdfb7fd9d0 calc canvas: avoid lots of canvas context save/restores.
Change-Id: Ib813686ef7d495e660ad8fa3b545391180b9e019
2020-09-17 15:03:01 +02:00
Szymon Kłos
69ccdb6b4b Split lines only in the corner when set to 0
Change-Id: I6192219cede2d0888ecd77236f72ff734d99d778
2020-09-17 15:03:01 +02:00
Jan Holesovsky
c1ac22da32 calc canvas: Preserving of the top left cell should be desktop-only.
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-17 15:03:01 +02:00
Michael Meeks
367a0b75fb calc canvas: paint invalid tiles until their replacement arrives.
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-17 15:03:01 +02:00
Michael Meeks
0184833ace calc tiles: don't send un-necessary zoom / visible area changes.
Lots of redundant zoom messages seem unhelpful.

Change-Id: I944a3202739adfc89aab81902b467a4e34977202
2020-09-17 15:03:01 +02:00
Michael Meeks
3b75957011 calc canvas: ensure that the fraction width rounds to the pixel width.
Slave CSS geometry from integral canvas pixels, don't attempt the
reverse.

Change-Id: I369ed1bea3c4a5a199192aa1e84bb4e03dcb2e94
2020-09-17 15:03:01 +02:00
Jan Holesovsky
1be56e18a5 calc canvas: Fix occasional off-by-one error that results in a blurry canvas.
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-17 15:03:01 +02:00
Michael Meeks
77599a9266 calc tiles: connect debug to global setting.
Change-Id: I0db008ac40020c9173d37969aa6c23b3a1696f79
2020-09-17 15:03:01 +02:00
Jan Holesovsky
c82d14af52 calc canvas: Keep the document zoom separate from the browser zoom.
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-17 15:03:01 +02:00
Dennis Francis
74d71e870d specialize twips/core-pixels/css-pixels conversion methods
Change-Id: Ifb0a67b938fdd34a06bb7e75832498d566247010
2020-09-17 15:03:01 +02:00
Dennis Francis
75f662fbd7 detect change in dpi and update zoom
Change-Id: I034727a8fe8495445350648fea2422c56fda1875
2020-09-17 15:03:01 +02:00
Dennis Francis
baef4f78f4 use the main canvas dpiScale everywhere
Change-Id: I2bea44a000552ce8f2fee2b0ebb5a4d162d3576f
2020-09-17 15:03:01 +02:00
Dennis Francis
f86d70901e sheetGeometry: use exact dpiScale when canvas is used
Also use the term core-pixels instead of 'device pixels' which is more
appropriate.

Change-Id: I18952393f17e0391167e0219b829be47723c5c47
2020-09-17 15:03:01 +02:00
Dennis Francis
2bf76665a2 header canvases should resize with map-resize
This is now safe as we update their contents on resize.

Change-Id: Ie8b33e03e9b67de0f5c4d0e4822154032c171a70
2020-09-17 15:03:01 +02:00
Dennis Francis
cf12bb1903 setup the header canvases in the same way as the tile-canvas
All drawings to it needs to in css pixels for now, because the
mouse/touch handlers need positions in css pixels and the HeaderInfo
datastructure has everything in css pixels.

Moving the headers to the main-canvas needs more work but this change
will help in doing that.

Change-Id: I6a19e62a67b2b42975a51bb695db300ce493ba01
2020-09-17 15:03:01 +02:00
Dennis Francis
b888df1c68 compute nearest zoomlevel with devpixelratio included
and use this for every setZoom call.

Change-Id: I37f0d7503e4087f062576bc03b13bd8155c3c994
2020-09-17 15:03:01 +02:00
Dennis Francis
1c2c4f1ed6 calc-canvas: make tile size fixed (256) for every device
Change-Id: I4e00b8b43f73f001a8bcfc77931f5fa22982642e
2020-09-17 15:03:01 +02:00
Dennis Francis
2635aed432 use window.devicePixelRatio without rounding
at least for the canvas tile layer.

Change-Id: Ia830cad1fe0aaac6df03288cc1ee9e0371ef6f47
2020-09-17 15:03:01 +02:00
Michael Meeks
d80b75ae9a Grim hack try to get 1:1 pixels in canvas.
Change-Id: I8ff3f157112295e0c6ef6743de3c878329b98adb
2020-09-17 15:02:51 +02:00
Michael Meeks
3da653982d calc tiles: more debug helpers
Change-Id: I24370b2a35fdfeca360cbaeb296cd2dd3a11e768
2020-09-17 15:02:51 +02:00
Michael Meeks
e559fb7666 calc tiles: share code for building bounds and panes.
Avoid duplication between tileReady and paint.

Change-Id: Ic3d1c22a1dbeffe1abfffd35ea0d7fbcfd5c1ccc
2020-09-17 15:02:51 +02:00
Michael Meeks
f09823dad0 calc tiles: remove partial re-rendering for now.
Drops _shiftAndPaint and _paintRects, blits are fast.

Change-Id: I64779f1037784f4efbe74cdf564b5f09e13b3316
2020-09-17 15:02:51 +02:00
gokaysatir
f05906aac5 Online: Show input help on Online / Online part.
Change-Id: Ida8c5e8baccf87dae68c1c6d8f5302b1288741e7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102747
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-09-17 14:23:13 +02:00
Weblate
67845b541e update translations
LibreOffice Online/loleaflet-help (Slovak)
Currently translated at 100.0% (418 of 418 strings)

Change-Id: I562044d259c009e8abd36f88049c729a0f0ec7c2

update translations

LibreOffice Online/loleaflet-help (German)
Currently translated at 100.0% (418 of 418 strings)

Change-Id: Idcc2f7847022e454d6c591650e4f5512081392ef

update translations

LibreOffice Online/loleaflet-ui (Slovak)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: Idec1e51f58d79c6b0578d2fae32e80b00ba2ae07

update translations

LibreOffice Online/loleaflet-ui (German)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: I78a5669bd666992476fd358ae41f286890dc1ce2

update translations

LibreOffice Online/loleaflet-ui (Welsh)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: If3fcc7b2b1b20216ebae70618d07e7191bd5ffe5

update translations

LibreOffice Online/android-lib (English (United Kingdom))
Currently translated at 100.0% (13 of 13 strings)

Change-Id: I7f481f2a26ee198591c3d9c93177f81dc477919a

update translations

LibreOffice Online/loleaflet-help (English (United Kingdom))
Currently translated at 100.0% (418 of 418 strings)

Change-Id: Id27b4a12f008df604aa7416248c55fae794688ac

update translations

LibreOffice Online/loleaflet-ui (English (United Kingdom))
Currently translated at 100.0% (347 of 347 strings)

Change-Id: I66ecbdbb73c68dd92ff0add6d8afc78e01844739

update translations

LibreOffice Online/ios (Norwegian Nynorsk)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: Id5fc7a3eefbeb0a4ed5dac880fcca2afe739f7e9

update translations

LibreOffice Online/loleaflet-help (Bulgarian)
Currently translated at 100.0% (418 of 418 strings)

Change-Id: I04f5b89159fa55aedf626fa85a1504677a2a63c6

update translations

LibreOffice Online/loleaflet-ui (Bulgarian)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: I0673467ff62d2091cb87b05c1ad87673d25e8347

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 100.0% (418 of 418 strings)

Change-Id: I5fe0cd68efbb9b3642864a596344081a3a118760

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: Ie525d58ef85e41dd7d40952980b5381411ade8a9

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 99.7% (417 of 418 strings)

Change-Id: Ib3d0243fe57bdea6f490a2d1413eb4af7e9f97e3

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 99.5% (416 of 418 strings)

Change-Id: Id5af3a2e7ea1bec07a78779c2888128be7e7218a

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 99.7% (346 of 347 strings)

Change-Id: I004263b83ac38f220ef602f079c35d9345620217

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently translated at 100.0% (418 of 418 strings)

Change-Id: I220b9e85a5276d68f50ae0d949c5457ea1c311a3

update translations

LibreOffice Online/loleaflet-ui (Polish)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: I39919fbb4379e7479c3d45663195b01ba0a6ae0f

update translations

LibreOffice Online/loleaflet-ui (Spanish)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: I35ceafd7293b7f6589cb710ca59f45b90d526843

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 99.4% (345 of 347 strings)

Change-Id: I9996b3fc22d4d3e6629fbd561d44f23e49744d96

update translations

LibreOffice Online/loleaflet-help (Portuguese (Brazil))
Currently translated at 100.0% (418 of 418 strings)

Change-Id: I513d7d891f525fbb53f09013e083479c30d590f2

update translations

LibreOffice Online/loleaflet-ui (Portuguese (Brazil))
Currently translated at 100.0% (347 of 347 strings)

Change-Id: I378852679848d04be6c95e466af9c08dc60bb801

update translations

LibreOffice Online/loleaflet-ui (Hungarian)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: Ibfb7140f4d0121339243201f5e42e530ec209970

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: Iccf903f630a308f860b98ad0f639d67d634b692c
Translation: LibreOffice Online/ios
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/ios/

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: I4135888e93067fc88653d01fb153fdba8f15db23
Translation: LibreOffice Online/loleaflet-help
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-help/

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: I7c69924e16a99b936c65330494fdd19849d59cf8
Translation: LibreOffice Online/loleaflet-ui
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-ui/

update translations

LibreOffice Online/android-lib (Icelandic)
Currently translated at 100.0% (13 of 13 strings)

Change-Id: I85c7258825f96853ff131eab28710439c0294b27

update translations

LibreOffice Online/loleaflet-ui (Icelandic)
Currently translated at 100.0% (344 of 344 strings)

Change-Id: Ie39cf8107592b1907d7cd9acf423436989b27fe8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102374
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-09-16 20:05:15 +02:00
gokaysatir
596d70187c loleaflet: Hide portrait view previews on layout view.
Header code is updated to avoid creating/deleting it every time.
Some CSS adjustments to increase maintainability. Example: There were 2 scroll bars in mobile-wizard. Scrolling was not smooth. And some other improvements.
On layout view, 2 separate slide-sorter containers were visible. One of them is hidden now.

Change-Id: Ic4201b176812f6ca00402777423feced7ee8284c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102521
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-09-16 14:19:20 +02:00
Szymon Kłos
0734ab1c62 Revert "Encode wopisrc part in download link"
This reverts commit e25379af22.

Reason for revert: change didn't help

Change-Id: I6312b3762f108ba3984d5ec8ca8e9becab3696f3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102761
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-09-16 13:57:54 +02:00
Szymon Kłos
e25379af22 Encode wopisrc part in download link
Avoid browser warnings/errors wrt encoding when
trying to download.

Change-Id: I66820c1adec1a612f773b41416bc623c42cdb138
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102843
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-09-16 12:45:40 +02:00
Thais Vieira
54cad07c4e Loleaflet: fix pencil icon
- to be displayed after the toolbar appears
- only when it's possible to edit the name of the document
- only when not in presence of android app and hidden (display: none) by default so it does show up before input field

Change-Id: I5c78593b1229da1682832a46e6fc8f1b09b31e12
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102675
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pedro Silva <pedro.silva@collabora.com>
2020-09-16 12:38:35 +02:00
Pranam Lashkari
40a67b00a2 leaflet: disable tooltip in mobile and tablet
Change-Id: I591b2392d6c7072144bd7229a60933c61a2f3241
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102506
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-09-15 15:49:26 +02:00
Pranam Lashkari
245f797ac9 leaflet: annotation: use vex dialogs for annotation reply
Change-Id: I171c5712fcae54b4c1c6e2a8be7dd12bd6765f0a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102412
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-09-15 15:48:44 +02:00
Pranam Lashkari
fa410c77d3 scrolling: fixed multitouch horizontal scrolling
Change-Id: I2b30be5bd2d96c4757cd4059a28fb08a702bc3ca
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102447
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-09-15 15:47:44 +02:00
Pedro Pinto Silva
fec0b314af Mobile: Set icon for combobox rotation
Change-Id: Id063188781165d8724cbe4b04ec7f9c5b767e37c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102730
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pedro Silva <pedro.silva@collabora.com>
2020-09-15 15:39:36 +02:00
Pranam Lashkari
ce572a9d44 leaflet: removed bogus menu items in Draw menu
Change-Id: I055cb3cb08b7f91d35602ee33c6b799048950134
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102740
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-09-15 15:23:57 +02:00
mert
115bb1b652 Fix unable to open password protected documents on mobile
Change-Id: Ifd67cb6f3640784176abfe483f0364c1dfe4b5d9
Signed-off-by: mert <mert.tumer@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102388
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102729
2020-09-15 15:14:40 +02:00
Pedro Pinto Silva
e3bace4a44 Mobile wizard: SetObjectToForeground label shouldn't be visible
Change-Id: I193731a3fc9d6a5eef958a2d255558f83a054b16
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102731
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pedro Silva <pedro.silva@collabora.com>
2020-09-15 14:21:18 +02:00