Commit graph

13587 commits

Author SHA1 Message Date
Gökay Şatır
ebfcbbd8a2 CanvasSectionContainer: Rename myProperties to sectionProperties.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I79b362f384315123468238a465e37692c7242546
2021-01-07 20:58:44 +03:00
Gökay Şatır
a34fc23e1f CanvasSectionContainer: Add mouse enter & leave events.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I09b66deebe21e4d4732525ff8ffa778dab99110c
2021-01-07 20:58:44 +03:00
Gökay Şatır
de9299a455 CanvasSectionContainer: Improve event handling.
Tested on mobile device and desktop. Event combinations are added.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I97087921c7cc4de292e8919bcc8a99fd86d27806
2021-01-07 17:10:00 +03:00
Gökay Şatır
5ebb4b0a23 CanvasSectionContainer: Add drawingOrder feature.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I531ef4cfb3c5820cab99f6b8861e687f44d38d33
2021-01-07 12:38:00 +03:00
Gökay Şatır
3da59be947 CanvasSectionContainer: Rearrange re-drawings.
Only a few events / functions trigger a redraw. Sections can trigger it when needed.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I49c1b2f52ffd2af9e2201cb500bd5ae06b49d6d4
2021-01-07 12:38:00 +03:00
Gökay Şatır
aa63de4554 CanvasTileLayer: Fix offset variable setting.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ie0796d045e477c00c4edb1efa49e6de0bf2f95bc
2021-01-06 22:53:02 +03:00
Gökay Şatır
acf63041ec CanvasTileLayer: Remove "clear" function.
CanvasSectionContainer clears drawing area.
Related code is moved inside _onTilesSectionDraw for offscreen canvases.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I7854992d35258624fbf07d0a51021acb67700348
2021-01-06 20:43:54 +03:00
Gökay Şatır
e5f22d5044 CanvasTileLayer: Remove unused event handler declarations.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ic2f37ad7cdb43465e79baa4e08b202f6c7028803
2021-01-06 20:43:54 +03:00
Gökay Şatır
c7b320587e CanvasSectionContainer: Rename drawing order to processing order.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I3061b9ffa56cbd455d7834ab76a953189c0b6dd3
2021-01-06 20:43:54 +03:00
Gökay Şatır
2f6c967aac CanvasSectionContainer: Make event handlers and myProperties optional.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I8eb9349510077b0ca847a46c5a3a475e86cb7dfe
2021-01-06 20:43:54 +03:00
Gökay Şatır
1b50295ed5 CanvasSectionContainer: Add event objects.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ie3b60e7fb72ad75bf6c963fcbc4b076b40dc8723
2021-01-06 20:43:54 +03:00
Gökay Şatır
2871e1d3b7 Control.Header: Bring non-shared functions from rows and columns into header class.
Rebased with master.
gitignore file is updated.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I07c9f8e38db0dce7b50238e2c013d3521091ab25
2021-01-06 20:43:54 +03:00
Gökay Şatır
30658a05a7 CanvasTileLayer: Debugging drawings are moved into sections.
Also calc grid drawing is moved into a section.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: If62528118d2abeea7d84a4d72b9aec5dda37c4ea
2021-01-06 20:43:54 +03:00
Gökay Şatır
9a02c2973a CanvasSectionContainer: Add get / set clearColor functions.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Iadd8158294c3cc89790be7af1c4e918f04e2e137
2021-01-06 20:43:54 +03:00
Gökay Şatır
ef38ca7ff9 CanvasTileLayer: Add tiles section.
There is no functional changes on tile rendering up to this commit.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I06fb9f9eeea2093df62ffbc5315524055b9f99c9
2021-01-06 20:43:54 +03:00
Gökay Şatır
4db1ed67cf CanvasTileLayer: Move related code into sectionManager.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I6e53750b613a138d937ae36a36f1ffdeadfef164
2021-01-06 20:43:54 +03:00
Gökay Şatır
a2afbf228c CanvasTileLayer: Image smoothing should be set for every frame or it doesn't work.
Also, we draw things without scale, no image manipulation is needed.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I11b914a995d305377dc5ec0aad9b2bae255127cc
2021-01-06 20:43:54 +03:00
Gökay Şatır
08f0d58328 CanvasTileLayer: Rename CanvasTilePainter to TileSectionManager.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Icd85687d288c57c585db17d7ae700b6312a2c905
2021-01-06 20:43:54 +03:00
Gökay Şatır
1d64c7e30f CanvasSectionContainer: Add parent section and onInitialize features.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I100379b7287740aa7260f6a437b4e0862c7c339f
2021-01-06 20:43:54 +03:00
Gökay Şatır
4c5253266b CanvasTileLayer: Remove commented code.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I368bb60c7942293904e9eca899bc153deb07c7ef
2021-01-06 20:43:54 +03:00
Gökay Şatır
aa6f6a793d CanvasTileLayer: Code about "flickering" is removed.
We will have mapsize = canvassize with this commit. Maybe  we can use this information for our advantage. Like for droping latlng conversions.
Also, CanvasSectionContainer needs true right and bottom bounds for placing sections.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I0700524fb5cfb574659be88b14c894981d632a79
2021-01-06 20:43:54 +03:00
Gökay Şatır
b0ef6b289e Adapt CanvasSectionContainer Resize() to CanvasTileLayer
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I06b6a2105ecda92a51dc22f3df625c440a76658a
2021-01-06 20:43:54 +03:00
Gökay Şatır
07c2f7dc67 Introduce CanvasSectionContainer class.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I69929595450c48ed45326c21743fbde3babc9803
2021-01-06 20:43:54 +03:00
Andras Timar
9c10822f7d _UNO() takes precedence, it will become the actual label
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0e25ebc289179f80eb4231c218feb9af554ec334
2021-01-06 13:54:01 +01:00
Andras Timar
23fe1b3bc5 add CAP_CHOWN to systemd service files
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3270cc1c435c419117cfa805a4db16ca4ef9a3ec
2021-01-06 11:39:01 +01:00
Michael Meeks
98c7a03690 Drop cap_chown after use.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: If5bb5727b8842f30b60f4c9cee392f94d1984dca
2021-01-06 10:08:52 +00:00
Henry Castro
9f43878891 kit: send early dialog event to server
When the "Macro Security Warning" send clicks events,
the is no instance of Model/View/Controller yet.
So adjust to send to global events.

Change-Id: Idc395cfb86548481bbadc22874293d7d6238db89
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-01-05 11:10:22 -04:00
Tamás Zolnai
db7183ebb0 cypress: disable unstable multi-user test.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ia6839a805545fbe169c23f8c11121d30a8a5e91d
2021-01-05 15:55:46 +01:00
Tamás Zolnai
f131e4f6ea cypress: fix resolve comment test.
It randomly fails on style attribute.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ic80ff368fc08edaea80ec3069f26b3b7e4d2b384
2021-01-05 13:51:36 +01:00
Tamás Zolnai
e92a6fe2c0 cypress: fix up environment variable reference.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Iee662bb5af93cfa97868ab3a2bdffdb39caeffb0
2021-01-05 13:51:36 +01:00
Pranam Lashkari
ce60c1bd31 leaflet: clear text area using appropriate helpers
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I3e080e6097a9819549ccaa8f4fa2c3191e228b97
2021-01-05 10:50:55 +00:00
Gökay Şatır
28aafc85cd CalcTileLayer: getSpanData function uses pre-calculated values.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I0ff94444334ac2a9112475762bb9c64b44641167
2021-01-05 12:14:12 +03:00
Andras Timar
bcf7054fcf Do not let screenshots in Online Help be bigger than the width of help popup window
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I93d4267720f969a1d04d7adf8efd5c14ed0de93e
2021-01-05 07:07:48 +01:00
Ezinne Nnamani
5fc33d3bc4 loleaflet: Online Help
Retook the English screenshots at Help -> Online help from share.collabora.com. Then replaced them with the previously existing screenshots that were outdated

Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: Ibce2d958b8df881cdca3bbd59367dcd7d2348633
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2021-01-05 07:05:47 +01:00
Michael Meeks
234962dc79 Remind admins of the costs of high log levels.
Change-Id: Ie83ec794eb0962b6ecf3f1f7b201390d19fb0958
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-01-04 17:39:45 +00:00
Tamás Zolnai
c79d11b700 cypress: workaround an issue related to focus and replying comments.
It's a bug in the application. Let's workaround it,
until it is fixed.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I213a75816b5ba71e526d7b3fc616a454b7968e27
2021-01-04 16:30:40 +01:00
Tamás Zolnai
4f9169bf8c cypress: remove content of cypress folder before test run.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ic4e637903df6768c42fcd404563455e19fa86cda
2021-01-04 16:30:40 +01:00
Michael Meeks
317dffb817 Optimize copy of jails to hard-linking with new capability.
In some cases we cannot do a fast bind-mount of the files we want
in our jail since we don't have cap_sys_admin for loolmount inside
eg. docker.

Thus we need to fallback to hard-linking, however various security
systems namespace parts of our tree, such that link() fails with
EXDEV even across the (apparently) same file-system.

As such we need to assemble a copy of what we want to hard-link
close to our jails. However, this needs to be owned by root / the
system to avoid having writable files shared between jails. Hence
we need cap_chown in addition to cap_fowner, to get ownership right
and then hard-link.

Change-Id: Iba0ef46ddbc1c03f3dc7177bc1ec1755624135db
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-01-04 15:05:36 +00:00
Andras Timar
1202dae8cc updated .gitignore for docker
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1daf5f4819c7085a8ee9213e7f938360d72525b2
2021-01-04 15:47:22 +01:00
Miklos Vajna
ee37bd9c05 test: avoid garbage at the end of the message in getErrorCode()
'bytes' can be smaller than the size of the buffer, so go with that size
instead.

Change-Id: I025b56379ee449fe33710b660d845fa2dd0865ee
Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
2021-01-04 15:46:39 +01:00
Henry Castro
7f70197723 kit: enable input process when early dialog show
Before loading the document and if it has an embedded
macros, it will show the "Macro Security Warning"
message dialog.

If the input process is not enabled, the result will be
a virtual deadlock, so it should filter some messages at least.

Change-Id: I565569a0227ac0e7ce2feae2cf3ccdf21ce4b1d4
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-01-04 09:33:55 -04:00
Henry Castro
0fb1d7ccb5 jsdialog: move onJSDialog to Socket class
When the "Macro Security Warning" message is received,
there are no instances of the document layer yet,
because the server does not have an instance for Model/View/Conroller.

Change-Id: I1ac36fb1553d8bd3ed48b86e75bf32d1b12d1d86
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-01-04 09:33:28 -04:00
Miklos Vajna
3c0e7707bd admin fuzzer: fix build
This went wrong in commit 693a2e19e3 (wsd:
SocketPoll::poll accepts chrono duration, 2020-12-14).

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I04780d7a5ef8ba54530df7727f2fe4df59995fb9
2021-01-04 11:45:01 +01:00
Dennis Francis
a26ea89541 zoom-animation:Make overlay/marker layers invisible
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5abccfc0021daf4912aed726ef0ef1b35d05c0a6
2021-01-04 13:09:04 +05:30
Dennis Francis
4ad8a8d9d5 zoom-animation:Draw the last frame with final-zoom
...which is rounded to the allowed set of zooms hence reduce the view
jump after map's zoom is set. There is still a jump depending on the
position of the pinch center on the screen. This is because on setting
the zoom in Map, it repositions the center such that pinch center is now
the center of the screen.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2a79240373f333b96574b7fe5c2b18de7dec612e
2021-01-04 13:09:04 +05:30
Dennis Francis
009c317da6 Offscreen-canvas painting for _paintSimple too...
so that zoom animation works for writer and impress as well.  In case of
impress/writer the core-pixel coordinates can be negative, so make
"extendedPane" be 3 tiles biggger in all directions in such a case.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Iab836ea963c117ec26a7648e5ff37c0b625b3b4d
2021-01-04 13:09:04 +05:30
Dennis Francis
599ec7ad37 fix offset computation and usage
The incorrect offset is present since
db887df4aba500062827bad484ba3aacfe262339

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I3089a00cf297762b5280e841680590f65d2c73a4
2021-01-04 13:09:04 +05:30
Dennis Francis
6fec3c791c getPixelBoundsCore() does not return css pixels
This also fixes slowness in Calc's swipe/pan animation because of
oversized main canvas and offscreen canvases.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: If451f49fd99fb11207a2f4862daa37d9f3f02477
2021-01-04 13:09:04 +05:30
george k
ae65637eb5 Translated using Weblate (Greek)
Currently translated at 95.0% (346 of 364 strings)

Co-authored-by: george k <norhorn@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/el/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I20b604f8781f1491ad255bcf6f5f3e54a62d4895
2021-01-04 08:37:11 +01:00
Ihor Hordiichuk
75d7865eed 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/help/uk/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6d27a91b1e8974986ce9daf0f44bb4142f7d4ac4
2021-01-04 08:37:11 +01:00