Commit graph

6899 commits

Author SHA1 Message Date
Szymon Kłos
84771d4ba5 notebookbar: fix alignment in insert,layout,file,help tabs
Change-Id: Ia0699ffa749e6be2e943460c0b4398d6f3689fa3
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 12:01:02 +02:00
Szymon Kłos
e6b12a5741 notebookbar: refresh font list when is updated
Change-Id: I9139fccf47dd16c0e6729886b6e6da68a05f5d02
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 10:37:51 +02:00
Szymon Kłos
e6850dc9f7 notebookbar: show context tabs if needed
Change-Id: I4deb132600ef34654dba665683a248691691e03d
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 10:37:51 +02:00
Szymon Kłos
bed804309a notebookbar: use full JSON only once
Load full JSON on the beginning and later don't
rebuild on switching tabs.

Change-Id: I0b63c3f3dfa43a7b5cd4f580ab542e9f5022a5ec
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 10:37:51 +02:00
Szymon Kłos
9d2ac7f89d notebookbar: minify home tab for impress
Change-Id: If9f4affa2eff1364ee16bdee45f9a9092702753f
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 10:37:51 +02:00
Szymon Kłos
c303db11de notebookbar: minify home tab for calc
Change-Id: Iab61f19f4ba2cd1a13e4787762afcdd0e24365dc
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 10:37:51 +02:00
Szymon Kłos
853121b841 notebookbar: minify home tab for writer
Change-Id: I2f8ce6f1305dc13546efef23dded6a531691e2b9
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 10:37:51 +02:00
Szymon Kłos
4a218d656e mobile-wizard: listbox prepared for partial updates
Change-Id: I778f7d46de1fc3c9c2eb61daaee690e8438d57d6
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 09:30:15 +02:00
Szymon Kłos
f5af8e3395 mobile-wizard: prepare radiobutton for partial updates
Change-Id: Iddb1d57b0de1cc984f57793dfcdcfaee26737f71
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 09:30:15 +02:00
Szymon Kłos
8183e37f65 notebookbar: unify single tab code in tabcontrol
this will allow to use toolboxes without id

Change-Id: Ic5eb5ac249b9d1317fccc2143f10af292f564b52
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 09:30:15 +02:00
Dennis Francis
a13d18538c zoomanim: show markers/svg-overlays only at the end
Conflicts:
	loleaflet/src/layer/tile/CanvasTileLayer.js

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2163918a721db540cc02a73e0d75753dbccc9996
2021-04-05 18:20:24 +05:30
Dennis Francis
4e0f7459da zoomanim: avoid infinite setInterval loop
In Writer the tiles wont be sent for margin areas so waiting for all
tiles will hang forever. This is more apparent in low zoom levels where
the page margins are visible. So lets put a cap on waiting time instead
and hope the tiles would have arrived by then. If not it will cause a
flicker, but this is better than the document freezing due to infinite
loop.

Conflicts:
	loleaflet/src/layer/tile/CanvasTileLayer.js

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5f2fe5bac7e20cb0cc1417df078a1722b55cd08a
2021-04-05 18:20:24 +05:30
Dennis Francis
4765c7a315 zoomanim: fix: swipe action never finishes sometimes
Cancel the swipe's autoscroll animation frame as soon as we enter pinch
zoom and don't leak it.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5ae4ffc00c426fdb4f30bae5e759c77ecc88e5a3
2021-04-05 18:20:24 +05:30
Dennis Francis
505e8e9bda zoomanim: avoid flicker: wait till we have all tiles
Conflicts:
	loleaflet/src/layer/tile/CanvasTileLayer.js

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I9089ec3adf1982e19f1ff08acffed73859f75752
2021-04-05 18:20:24 +05:30
Dennis Francis
09d235fb58 fix: pinch-zoom after swipe: overlays out of sync with tiles
The fix is to avoid pinch zoom when swipe action has not finished yet.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I6cc9bf01ed3411f3dceea10326c4be7a6f0914d4
2021-04-05 18:20:24 +05:30
Dennis Francis
813afa18f4 fix: overlay line width gets thicker on zoom out
Keep the lineWidth constant and equal to the 100% zoom value during zoom
animation.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I7a35654cc563eead7f58f4545dca3a307fa31422
2021-04-05 18:20:24 +05:30
Dennis Francis
f6f270c8c8 client-side-grid: draw grid in offscreen canvas properly
When the canvas to draw the tiles is offscreen, always clear background
and draw grids. When drawing grids for offscreen canvas, use the correct
paneOffset as offscreen canvas has a extended pane area (meant to handle
zoom out).

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I202c6cd8540f0d3e501c6290412bf511ee28176b
2021-04-05 18:20:24 +05:30
Dennis Francis
bc3887b5c6 client-side-grid: use the right canvas context for clearing and grid
Earlier it used the main canvas context for clearing and drawing grid
always. This breaks the offscreen canvas contents and overwrites the
main canvas when trying to update offscreen canvas.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I6fe21bd20b1862f32a1e06828b22567b566809bf
2021-04-05 18:20:24 +05:30
Dennis Francis
50078e4161 client-side-grid: draw grid before drawing async tiles
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ic0d814cd0c64dcccd6d1d65b719829f4eed560aa
2021-04-05 18:20:24 +05:30
Dennis Francis
4ebdb4feb3 client-side-grid: clear tile background for Calc too
Tile section is already cleared if call arised from requestRedraw(). So
do per tile pre-clearing for async tiles painting.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I406f6cf2a9c77f81237a1be5a9e6dcf0b600a1de
2021-04-05 18:20:24 +05:30
Gökay Şatır
30a4c726c4 Calc: Fix error when filter is active.
RowColSelCount is used for 2 different states.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ia5f68ca15881102a42016e80ea0b947c0e4d9106
2021-04-05 12:39:34 +03:00
Gökay Şatır
91fa8be0d9 Calc: Update row headers on scroll when entire column/row selected.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Icfe1a71ea67d1a7e3c0adf324a7637ecf7f334fb
2021-04-05 12:18:18 +03:00
Gökay Şatır
c44656c59d CanvasTileLayer: Keep cursor position relative to view.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ib5e37077db0c31d5b43563537731c1f73bb516aa
2021-04-05 11:00:45 +03:00
Gökay Şatır
4f2f22cb5d CanvasTileLayer: Remove unusued variable "calledFromInvalidateCursorMsg"
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Id5f8240f11c2343e7ef5d93167b93008c48ccc93
2021-04-05 11:00:45 +03:00
Ayhan Yalçınsoy
7bef5b5c23 eslint:v.bump to 7.0.0
Signed-off-by: Ayhan Yalçınsoy <ayhanyalcinsoy@pisilinux.org>
Change-Id: Ib93992efd676e7f1d35ed55f3a317eb35003a901
2021-04-03 09:46:06 +03:00
mert
afa2ccd6df Send mouse click position on drawingAreaControl
Change-Id: I92dd6ada3a1179fe63fea428e554a7e490ca3c67
Signed-off-by: mert <mert.tumer@collabora.com>
2021-04-02 20:29:20 +02:00
Gökay Şatır
de62c0f359 AutoFillMarkerSection: Refactor rectangle vars.
Now the size and color are easier to see and update when needed.
Debugging code is deleted.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I9f89d71507a8fe7553f921e4c26c2097d3222b9b
2021-04-02 11:24:14 +03:00
Gökay Şatır
49be5105e5 AutoFillMarkerSection: Follow up patch.
Remove unusued variables.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I1b9b343d1e9388bb2b01da337da36f7dd3dc325b
2021-04-02 11:24:14 +03:00
Gökay Şatır
359ad0c80c Cypress test update.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ie6474f66e2996e8c6786b4b19c233361fe362334
2021-04-02 10:10:15 +03:00
Gökay Şatır
8c27a9f2f1 Enable AutoFillMarkerSection.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ic2cf7edbec1ca09259b555fee5d5972467cea291
2021-04-02 10:10:15 +03:00
Gökay Şatır
e381f9abd3 CanvasTileLayer: Remove _cellAutofillMarker svg element.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I0516faa46d4693a7744df7e5bc13f1d566eba177
2021-04-02 10:10:15 +03:00
Gökay Şatır
e6a17878c0 LOUtil: Rectangle class follow-up.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ib314aad2b1bd9faf6548857b27268c36a7c739de
2021-04-02 10:10:15 +03:00
Gökay Şatır
f2af95a797 CanvasTileLayer: Add pixel based variables for cursor and selections.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ic1659e8eb562f82f136ddf59a7d59681d99855e6
2021-04-02 10:10:15 +03:00
Gökay Şatır
f3853f4dd3 LOUtil: Add rectangle class.
Which will be working with core pixels.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I2d2a9320d3eb9bd3899219bca4e9a2d3b951e3f2
2021-04-02 10:10:15 +03:00
Gökay Şatır
6973bc0b87 Calc: Add AutoFillMarkerSection.ts
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I5e934cb8eb7113390194c083a65b1580df7ee179
2021-04-02 10:10:15 +03:00
Ezinne Nnamani
f700867731 Loleaflet: Impress slide previews in vertical orientation are modified to fit
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: I49e69d5ecb765e09bcd1d9c584883a1e2841ac0d
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2021-04-01 14:14:08 +01:00
Ezinne Nnamani
330b3bced2 Loleaflet: Paste shortcut CTRL + V does not work on comment dialog
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: I3bdf05ab3cd4159cb6e42f8705ad6987fa58ff08
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2021-04-01 18:42:09 +05:30
Pranam Lashkari
b8c85e7237 impress: hide regular slides in master view
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I2b1ececba67fb8855187baafdc42cb5baa051635
2021-04-01 14:02:46 +02:00
Pranam Lashkari
8487972256 leaflet: comment wizard: update comment wizard without closing it
in addition now newly added comments will be highlighted by default

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I130674753d0b34fb9afed778e99907d1848daf76
2021-04-01 17:20:12 +05:30
Tor Lillqvist
fc19f64bfc Fix UTF-8 decoding and fix handling of non-BMP codepoints for IE11
The UTF-8 decoder here was buggy, and additionally it tried to feed
the Unicode codepoints it had constructed directly to
String.fromCharCode() even if that function takes UTF-16 units, not
Unicode codepoints.

The function in question is used only on IE11, apparently, so
presumably the problems had not been noticed.

Change-Id: I78f8ecea6ce6349e4121066774ae5c3fcfa87363
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-04-01 13:37:55 +03:00
Pedro Pinto Silva
fbba996383 Fix background color in which document page is placed
Avoid pure white and instead use another color for canvas background

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4cc9dffd19932bc631f5b880e53f8d413357d662
2021-04-01 10:13:11 +02:00
Gökay Şatır
7588255b3d CanvasSectionContainer: Add getter functions.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I413c56a9d03236d733cb35636ba743ec49ce8400
2021-03-30 18:01:55 +03:00
Gökay Şatır
9cdcd61831 CanvasTileLayer: Add app.sectionContainer pointer.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I4fef4b3544c1a356bf800da5983547ce29258055
2021-03-30 18:01:55 +03:00
Gökay Şatır
a15597de9c Merge GridLayer+TileLayer+CanvasTileLayer
Some of the functions were overwritten by the child classes. They are
removed.
CanvasTileLayer was experimental when we first created it. But now it's
used for all document types.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I1687c8d3e00d24a0bb2031ab74e4a3af044d9ca7
2021-03-30 14:36:05 +03:00
Gökay Şatır
86d3a3cd38 CanvasSectionContainer: Enable getTestDiv for all sections.
It wasn't usable when section is added by pushSection function.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I09a9db4fe27daad857f8f941606f0853e0e03399
2021-03-30 14:22:28 +03:00
Gökay Şatır
216cfbb6bd Remove extra check for positionOnMouseDown
We unintendedly solved the same bug with Szymon (while working on
different tasks), i removed the second
check.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I33b22364b58036fb57809476ebc689d9b542b4bc
2021-03-30 14:22:28 +03:00
Gökay Şatır
ffd61d848f Move map._socket to window.app.socket
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ia3f2b9d5d4516427d5b3b918cb4e5a503d9a79cf
2021-03-30 10:02:58 +03:00
Pedro Pinto Silva
c9b593741c Notebookbar: Improve shortcuts and fix top bar layout on tablet
- Desktop:
  - Shortcuts is now centered
  - Avoid setting hard min width for document title
- Tablet: Better presentation when on read only mode
  - Document name is now fully visible using all available space
  - Fix layout when on using tablet in portrait
  - When editing:
    - All top elements are now vertically centered
    - Document name uses better the available space
- Tablet: document-name-input: Fix shadow on iOS
  - Safari was overriding it with its own styles
- Generic:
  - Document name: do not use ellipsis if the text fits

when porting this please be sure that 81a5d029e was reverted first

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I82abe930ba5e26c004b387fbf4047de8412b8a36
2021-03-29 09:34:35 +02:00
Pedro Pinto Silva
44f420fd01 Revert "NB shortcuts-bar vertical alignment update"
This reverts commit 81a5d029e0.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8bfd3fec1d869be5ce0717091e27d59f6f331c25
2021-03-29 09:34:35 +02:00
Pranam Lashkari
eabdc70dda leaflet: set cursor to text if blinking cursor visible
problem:
when hovered over the scroll bar and then moving away from scrollbar,
mouse cursor would not be set to text even if cursor visible

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie27783cab0edfa3e264df41d584d81379e0afe79
2021-03-27 13:26:35 +05:30