Commit graph

13795 commits

Author SHA1 Message Date
Gökay Şatır
1df8fc91d2 Revert "Disable Freeze panes menu & notebookbar entries on tablets."
This reverts commit 6c2d725c58.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I50c248e3d2dfc7b06a9d0d2c1da3fe8a52d26560
2021-01-29 10:25:45 +03:00
Pedro Pinto Silva
3b398d8e9d dev doc: postmessage-api: Favicon and styling
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I469051b3bd4fd8371ab3d0593922c71d15272445
2021-01-28 19:41:41 +01:00
Miklos Vajna
b04f498ff4 test: avoid http status 512 and higher when interacting with poco
The last enumerator in Poco::Net::HTTPResponse::HTTPStatus is 511.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Id183916729c8d13f63fe0d6e0d7ca7e84c8afaeb
2021-01-28 16:40:00 +01:00
Marco Cecchetti
445fe41118 cleanup dev doc: loleaflet and postmessage references in separate files
references.html has been replaced by 2 files with content LOLeaflet
and PostMessage setions respectively.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: Id095da5f1ab11c96d090bceab921d74b4fe68482
2021-01-28 15:29:12 +01:00
Tamás Zolnai
0db412ccf0 cypress: add new Save/Print test to php-proxy/NC blacklists.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Id494a522e0961894cdf9e5ce56b19b781a724974
2021-01-28 15:27:51 +01:00
Tamás Zolnai
c2620ce5cf cypress: update 'Check disabled elements in master view.' test.
In master view, the 'Master Slide' list should be empty and so it's
not shown on mobile wizard. No, I disable this test, because
it needs the core code to be updated.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I12562c453673ac85e050303ebb5803fee6f1892a
2021-01-28 13:47:59 +01:00
Tor Lillqvist
ffa940933d eslint is pickier in the co-6-4 branch, so cherry-pick fix here, too
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I06d49a56853fe391c4d137208865498a36c7a1e3
2021-01-28 14:14:03 +02:00
Marco Cecchetti
d869144abb cleanup doc: further cleanup reference.html: small fix-up
Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I031535af28470a66824db6c04f9693e6f6ee1771
2021-01-27 15:42:57 +01:00
Marco Cecchetti
b0315c7c20 cleanup doc: further cleanup reference.html
Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I031535af28470a66824db6c04f9693e6f6ee1771
2021-01-27 15:42:57 +01:00
Marco Cecchetti
b60f48d94a dev documentation: removing misleading leaflet API documentation
Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: If417805d7c0620921b2b8e35101b6489caafaf2f
2021-01-27 15:42:57 +01:00
Tamás Zolnai
cb62773468 cypress: make chart test more stable.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I621538e1a6d17eb1ec10f13f2559a0b48a8e6918
2021-01-27 14:08:09 +01:00
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