Commit graph

13784 commits

Author SHA1 Message Date
Tamás Zolnai
d18d3a5381 cypress: update 'Enable text wrapping.' test.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Iac566958e3820376a991d06c1ad5c03f81efd36a
2021-01-27 14:08:09 +01:00
Ezinne
6490e45131 Created cypress tests for the Save and Print features on the Calctop-toolbar
Signed-off-by: Ezinne <nnamani.ezinne@collabora.com>
Change-Id: I1a0424c5ddfc7714475818fba029c6bb238db1f1
2021-01-27 14:07:56 +01:00
Miklos Vajna
b74f26910d net: http version string may not be null-terminated
Limit its length, we know the version length anyway.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I0db2b9227baf3e10055082ad394c0f555b9898e1
2021-01-27 13:33:30 +01:00
Ezinne
4e96492041 Created a cypress test for Text Wrap feature in Calc top_toolbar
Signed-off-by: Ezinne <nnamani.ezinne@collabora.com>
Change-Id: I873654c21649f849739cd25461f3d52335ecba8b
2021-01-27 11:34:44 +01:00
Ashod Nakashian
b4dd9f82a3 wsd: saveToStorageInternal -> uploadToStorageInternal
Change-Id: I0273314d65ebee91092a883bebeb53ab31051194
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-01-26 21:40:59 -05:00
Ashod Nakashian
f14034584f wsd: saveAsToStroage -> uploadAsToStorage
Change-Id: I6edbff6da6b2c29000c0a66524266138aeb88b89
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-01-26 21:40:59 -05:00
Ashod Nakashian
ed1e08662a wsd: saveToStorage -> uploadToStorage
Change-Id: Ie00728ca81d481676ae3a3c44d8d79e80ee29278
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-01-26 21:40:59 -05:00
Ashod Nakashian
a176213750 wsd: lastStorageSaveSuccessful -> lastStorageUploadSuccessful
Change-Id: I71618e388f44ac7b74f295c8af5d0235b395fe87
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-01-26 21:40:59 -05:00
Ashod Nakashian
7a9dc03e46 wsd: DocumentBroker documentation
Change-Id: Iaacb2bb961719e23ef0e955587d70f38ef5ce464
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-01-26 21:40:59 -05:00
Ashod Nakashian
24edfa2b62 wsd: test: move HttpRequestTests to 'make check'
These tests require network setup and therefore
can be problematic for `make run`.

Change-Id: I8747a505e15edc91964b290a5476a24069b7d538
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-01-26 20:02:04 -05:00
Andras Timar
92f44a4695 On-disk cache was removed long ago, clean-up in packaging
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2eeaed12af6ac8789151b95a9c2a2aa1fd72573b
2021-01-26 21:10:50 +01:00
Tor Lillqvist
5cc5e19ed6 Add comment describing a way to intentionally induce cache inconsistency
Change-Id: I4dabc1e70b2bca6751a60e5655a530c0025b09c5
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-26 17:09:09 +02:00
Tor Lillqvist
944e831b3d Add sanity checks to the PNG cache code in loleaflet
If the client cache seems to be inconsistent with what the server
thinks, send an ERROR message to the server that will be logged.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ic7f9d7fb15b2c34f7a6cd2decbacaa7745ac9389
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-26 16:55:04 +02:00
Tamás Zolnai
227b5f64fa Fix ENABLE_SSL condition.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I0f6a4dac4aff05be65b5a0735b5ff0c67fc4f7a0
2021-01-26 14:40:46 +01:00
Tor Lillqvist
b92e13de96 Add an ERROR message from client to server that is logged with LOG_ERR()
Change-Id: If9f3316bb07f68b609c96135227a3e06a1112786
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-26 15:24:08 +02:00
Martin Hoffmann
fff344afed fix build.sh: wrong directory after poco install
After compiling and installing poco the script is left in the wrong path, resulting core to be deployed underneath poco directory which breaks configure --with-lo-path later on.

Signed-off-by: Martin Hoffmann <mhoffmann@pro-nets.de>
Change-Id: I46c5b77e44eebead08c8a7fb857c229900a23570
2021-01-26 13:59:26 +01:00
Tor Lillqvist
e60f972b05 Correct description of handling of the DEBUG message from the client
Change-Id: I19fd4ed92315908af36362368ee2fdbc8558c2ae
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-26 14:38:46 +02:00
Henry Castro
34a0aa04ed loleafet: simplify update max bounds
it is not necessary fire 'updatemaxbounds',
because the association map <-> document layer
1:1

Change-Id: Ic41ab328f7d3d331624107a13acf9f1fdd4c46df
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-01-26 08:08:28 -04:00
Tamás Zolnai
1a7f2b5122 leaflet: reset selection before opening the slide wizard
Taping on the selected slide's preview should open the mobile
wizard with the slide properties. To achive this also with
a selected shape on the slide we reset the selection first
and open the mobile wizard after that.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ie60ec9bff01d143e6ca79fe4e32849b2a4fb3bc6
2021-01-26 12:32:36 +01:00
Tamás Zolnai
fd14e92314 Revert "leaflet: wsd: select the page before opening the slide wizard"
This reverts commit 0a54b23251.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Id41a85d920a470d784f4c6158bb25c9ba46f43d2
2021-01-26 12:32:36 +01:00
Tor Lillqvist
c535040952 Use correct naming convention
Change-Id: I6aa3b7b25ae9eff462580eb17ceaa5bc40359c53
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-25 18:06:56 +02:00
Tor Lillqvist
f1e074f6bc Add caching of tunnelled dialog images
The same cache size is used in server and client. The caches use the
invalidation algorithm. Pass the hash of the pixmap in the
windowpaint: message. The client stores dialog images in its cache.
The server stores hashes of the images. When the server knows that the
client already has an image cached, it sends just its hash and the
client will use the cached image.

Pass the size of the cache to the client so that we don't have to keep
the the cache size synchronised in two places in the code.

Change-Id: Ie6cbfca79a9ede48fcc115e3acc669b925bb624e
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-25 17:48:33 +02:00
Tor Lillqvist
cb63bb6bed Log the DEBUG messages from client with LOG_DBG and not to stderr
Change-Id: I4fbb05b3b703ebcd1221faafd1ab3e33a1f8f144
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-25 14:24:43 +02:00
Szymon Kłos
80fd6420f7 notebookbar: partial updates support for listboxes
Change-Id: I90141f42bc5f1d448f3b81a926a4abef297e1a8c
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-25 12:35:13 +01:00
Szymon Kłos
3ac8da5eaf notebookbar: reuse font selectors
keep full code of each field in one place
iOS button was hardcoded and created in event
keep the previous structure but style at build time

Change-Id: I83bb808997c04206af7678b24ae1f8ed75f7b2a1
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-25 12:35:13 +01:00
Gökay Şatır
c49c135971 CanvasSectionContainer: Ensure that integer pixels are used for pos and size.
Make borders hairline.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Id0d690903a6f51316b318486baac6c49b62150d3
2021-01-25 13:13:00 +03:00
Gökay Şatır
f33f24c16c CanvasTileLayer: Canvas is moved outside of "map" div.
Canvas element's drawings will include part of UI outside of map area. Its size should be larger than tilelayer's and map's sizes.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I89bf79ccfe0240abdb031b937626b0bb81f3ed6f
2021-01-25 11:53:59 +03:00
Pranam Lashkari
77a344727d leaflet: use marker to select the reference range in calc formula
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I97839d01d88796e3a2c8c5ff3a27c05b6802578d
2021-01-25 09:50:26 +01:00
Tor Lillqvist
4bca8ea734 Add source files from sc/source/ui/docshell for breakpointing convenience
Change-Id: I9a4f4ff361c987de23dd376b4947ea054a82e6d8
2021-01-24 20:13:09 +01:00
Ashod Nakashian
21b1a54d00 wsd: access _isLoaded member via getter
This prepares for moving this flag into
the upcoming state machine.

Change-Id: I0fa0e26f72a8f4da6813c3be6df5b16a94773591
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-01-23 23:55:43 +00:00
Ashod Nakashian
c12313676e wsd: cosmetic
Change-Id: Ie0df45003a0d4221c4e03ad093229cb703e6bf3a
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-01-23 23:55:43 +00:00
Ashod Nakashian
f038204021 wsd: load -> download
To differentiate between the different stages
of document lifecycle, fetching documents
from the storage is now called 'download',
as opposed to the previous 'load', which is
reserved to loading document in Core.

This is a cosmetic renaming to avoid
confusing usage and intent going forward.

Change-Id: Ib9451e6f73bab19b877a3e6c8fb5b17ba82a06ab
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-01-23 23:55:43 +00:00
Ashod Nakashian
42f5ceae42 wsd: test: improvements
This reduces the execution time of some
long-running tests and improves stability.

A full debug build of Core and Online
now finishes on my machine in under 3 minutes,
down from slightly over 4 minutes. A significant
saving when running the tests frequently and
repeatedly.

Change-Id: I66c1b06ec3c9e8ab90a30f3a15c03f8d560ed3c6
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-01-23 23:55:43 +00:00
Ashod Nakashian
efa3e44231 wsd: remove debug logs
Change-Id: I68a856ff9678fe09ff4fcc597c46de9e29f72060
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-01-23 23:55:43 +00:00
Pedro Pinto Silva
4cb1f81d84 Mobile: mobileWizard: style comment card's contents
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8bd166209694155f09ed958c216fc9850b01bcc4
2021-01-22 16:33:06 +01:00
Pranam Lashkari
24560b3555 leaflet: fixed hyperlink popup being mispositioned around the edge
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I1123715cfadd8e752adb8f9a6bdf697006271390
2021-01-22 18:59:20 +05:30
Szymon Kłos
44fd1c6b51 jsdialog: warn when update not applied
Change-Id: I8adaae41cb04dceea768f04b00200cd1e9867122
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Szymon Kłos
4183cca9dd jsdialog: on update build in the same place
This helps to keep control in the same place
if node has more siblings

Change-Id: I5922c5a34b85bace169504646e92fe892fbaf3a5
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Szymon Kłos
7a7bedfff4 mobile wizard: partial updates
Change-Id: I792d68104f61b377089296b130142215f83d2c24
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Szymon Kłos
a205a4c97a notebookbar: promote single items to bittoolitems
Change-Id: I7b7e2ac627d9bb50a1fca7f5aa1e40f86d5397d7
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Szymon Kłos
88e710a54d notebookbar: update cache with missing elements
Change-Id: I200cce9b89a3bb779a74cb98ad0c63caab997448
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Pranam Lashkari
f144df98c8 leaflet: blacklist language selection on misspelled words in mobile
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I149539983897d20828dc6e32ed053c9b7e279ad4
2021-01-22 01:34:30 +05:30
Pranam Lashkari
4962386d94 leaflet: fixed missing selection overlay while selecting row/column
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I85e41ffc9de69de9543b8e1ccae177054a9375ac
2021-01-21 23:59:02 +05:30
Szymon Kłos
92da9ab48e notebookbar: cache impress draw tab
Change-Id: I3a021ece0673593e38561ac2aeeb79e0bc7be4a3
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
e094f042b8 notebookbar: cache impress table tab
Change-Id: Id9f77933eff714fb9f7a1ae44c34161a6b37bcdc
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
3d07c178d1 notebookbar: cache impress review tab
Change-Id: I1991ff61c5553e95a0ed3ae564db8a2c12c5e058
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
1a977cc22b notebookbar: cache calc review tab
Change-Id: Ibf662b9794e5b68be448f24c6aa22e428d20905c
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
f926511ad1 notebookbar: cache calc data tab
Change-Id: Icc4f131a4f223b6830393bd1fe0c3fbb8dda0df4
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
6f56f79299 notebookbar: cache writer draw tab
Change-Id: I1b8f0b2d5bed8bc2c658b1805ca8b5e862f325f7
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
854a75c81a notebookbar: cache writer table tab
Change-Id: Ic19ac84acb297fc79e769d4189ec2365d8786204
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00