Commit graph

15612 commits

Author SHA1 Message Date
Gökay Şatır
a0626e9bcd CanvasSectionContainer: Don't search not-shown sections.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I97e948652793bdb9caa21ca1b3d34fbfe7e209b1
2021-07-09 21:05:40 +03:00
Gökay Şatır
5fba71012a CanvasSectionContainer: Improve document object handling.
Ignore those that are not visible during calculations.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I58a587df33f2fe836623acfabe2baed75542e008
2021-07-09 21:05:40 +03:00
Gökay Şatır
76bc77f1fc Implement CommentSection.
This is the first implementation. It will change a lot.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I8cd5beff6f5e4fcc513954b8f4ab0f7807b92480
2021-07-09 21:05:40 +03:00
Gökay Şatır
8d4873fe35 Use global variables.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I345923efa8375c6be731ceb37508cffc6d02b365
2021-07-09 21:05:40 +03:00
Gökay Şatır
58d8606c4c Improve global variable declaration.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I2b926faf8405a6c689ad7d8659707583d93883e9
2021-07-09 21:05:40 +03:00
Gökay Şatır
55c3d9f1af CanvasTileLayer: Remove unused code.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ic557633cef6851f74e65a1eb9fbdbd7da6fd28d7
2021-07-09 21:05:40 +03:00
Gökay Şatır
ac2f2336fd Introduce CommentSection.ts file.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ie5e157638df043e39bfb8ee042b004fba19113d2
2021-07-09 21:05:40 +03:00
Gökay Şatır
e43878c9a8 Adapt mobile and tablet views to css-flex.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Icf3b1a8313b35c78012b931550922823bc387ea7
2021-07-09 21:05:40 +03:00
Gökay Şatır
82f9ac98f0 mobilewizard.css: Use relative position.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I093ef2c878188b08fc1eeb258283e209673a5807
2021-07-09 21:05:40 +03:00
Gökay Şatır
de0240eaaa MobileWizard: Show hide element.
Before, they were hidden by the elements above them.
Now, some elements are positioned according to CSS rules and they don't
use absolute positions. So we need to hide them manually.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ic7227c8686b90b954113cf2ec60df667125d40c6
2021-07-09 21:05:40 +03:00
Gökay Şatır
698e4b3f2b Tabs.js: Add tabs control into correct parent.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ib19fe362166244002fe256d0a2cf2475dec318fa
2021-07-09 21:05:40 +03:00
Gökay Şatır
4aef85a61f UIManager.js: Remove positioning with JS code.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I946151754d3fc90c91a185e41f8c8484478cb859
2021-07-09 21:05:40 +03:00
Gökay Şatır
73ae1a5431 w2ui: Remove workaround code.
It was blocking other components.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ic5039fc8f3896395121b60ea068ca15a247a1cc6
2021-07-09 21:05:40 +03:00
Gökay Şatır
ff744fb70e html.m4: Use CSS-flex for page layout.
Use flex for document-container, so now it automatically resizes itself.
Remove absolute positioning from row elements.
This patch is for desktop view.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I2807794da268fe0f3d7f2c54ad19a728f4c6f981
2021-07-09 21:05:40 +03:00
Gökay Şatır
9f3b72aa6f CanvasTileLayer: Scnchronize map with TilesSection.
We now position the map element according to TilesSection.

This change required document-container to be positioned too.
To make it a little easier, we now use css rules for document-container.

Css rules for desktop view is done with this patch.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I68f11a081f62b4a8cecd8c0d7529795c07756d1b
2021-07-09 21:05:40 +03:00
Gökay Şatır
0ca181ec50 Enable annotation markers for drawings.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I57b5d7d8c0310906153706eab4b374beb8c73dbf
2021-07-09 21:05:40 +03:00
Gökay Şatır
d07d3c1ac8 CanvasTileLayer: Update _updateMaxBounds function.
There were unused variables and functions were trying to use them.

Added a variable for extra size, to be used when comment(s) exist.

Saw that docPixelLimits variable had wrong value. Corrected it.
Ruler was using the wrong value, updated it too.

After updating "_updateMaxBounds" function, "updateMaxBoundsImpress" function wasn't needed anymore.

Renamed some variables to emphasize the distinction between document
limits and scroll limits.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I0d0dbc7adfc1bf881ac1c7c9adf7f27d0d6fe7bc
2021-07-09 21:05:40 +03:00
Gökay Şatır
5539ac7473 CalcTileLayer: Rename docsize event to scrolllimits.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I3fc556b902621ff25c7d4e7fdc8131380706bd4e
2021-07-09 21:05:40 +03:00
Gökay Şatır
78919c95f5 CanvasTileLayer: Enable extra width for comments in PDF.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I062f235ddf15ecce83f746879c09169763209629
2021-07-09 21:05:40 +03:00
Gökay Şatır
138fafa6cc TilesSection: Improve debugging code.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I759a09e323abb4a949e81bbb0887aaea910f5586
2021-07-09 21:05:40 +03:00
Gökay Şatır
16101e2320 Rename docsize event to scrolllimits.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I957d50718ec2c4478876e9680780b95d8ebc9442
2021-07-09 21:05:40 +03:00
Gökay Şatır
411781b234 Adjust Slide sorter for file based view.
PartsPreview:
* Disable selected part rectangle.
* Modify part selection for file based view.
* Scroll document when a part is clicked on slide sorter.

CanvasSectionContainer:
* Add getViewSize function to CanvasSectionContainer.

CanvasTileLayer:
* Scroll slide sorter when top viewed part is different from the previous one.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I4674e9e1662471509084b87993921a16f7f523e6
2021-07-09 21:05:40 +03:00
Gökay Şatır
17c022a8ac Disable drag & drop features for app.file.fileBasedView.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I60b806f0e915f120be925d48953b70dd4ecd987d
2021-07-09 21:05:40 +03:00
Gökay Şatır
84cfb013f8 Draw: Enable PDF scrolling for tile section.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I306fe4e4b5ed90f18df5537ce8ee7d90d4614092
2021-07-09 21:05:40 +03:00
Gökay Şatır
a39372f53e CanvasTileLayer: Add extra size for Impress when doc is read only.
ImpressTileLayer: Set document height differently when the file is read only.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I97123e8aec4ed73a6616e2772533a6e156bbeb2d
2021-07-09 21:05:40 +03:00
Gökay Şatır
326c5d6011 ImpressTileLayer: Get part count before updating max bounds.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I43430f494d36e996d85b88736ad756ee19a45eae
2021-07-09 21:05:40 +03:00
Gökay Şatır
cf1dd60f51 Socket.js: Handle filemode message.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I425d30c97793108eca1308a5380db1e9b46d7eab
2021-07-09 21:05:40 +03:00
Gökay Şatır
580d6ba1d3 Session: Send file mode to the client. We need to know if comments are editable or not.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I607e165b373ca6605ae5d72bf45821e3a3870f76
2021-07-09 21:05:40 +03:00
Gökay Şatır
124adf0b62 CanvasTileLayer: Remove unhandled event.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I704d6b9e63f4058fa1945e9262461aee4e1d69e9
2021-07-09 21:05:40 +03:00
Gökay Şatır
7d0cc25180 CanvasTileLayer: Remove unusued event.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I92517290d3fbe17bdf5bb5bb62352e4e0989a3f7
2021-07-09 21:05:40 +03:00
Gökay Şatır
9fdc4ce014 CanvasTileLayer: Cosmetic changes.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I25cfd30e762d5fd5fde454458365d5d7732f5341
2021-07-09 21:05:40 +03:00
Gökay Şatır
ee84a243e8 CanvasTileLayer: Remove duplicate code.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I86bae832bebc1a5b24ff714cde2cfb4ec8bd51c4
2021-07-09 21:05:40 +03:00
Gökay Şatır
8b28380f32 CanvasTileLayer: Remove unusued functions.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I4ca111145e9cfe3b386da2e4395fdf0c1404db25
2021-07-09 21:05:40 +03:00
Mert Tumer
c809190050 Dont use select2 for populating the font list
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ie1a820260720bd59756f9a52104091c490093780
2021-07-09 20:07:18 +03:00
Mert Tumer
c5ba5c7f16 Make font select2 search by id instead of class
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ifaf0d7246dc66776427dfb6063eb8dcc2919cf48
2021-07-09 20:07:18 +03:00
Hannah Meeks
d21fade7c9 Copy documentation into source code as comments #2160
Signed-off-by: Hannah Meeks <hmeeks4153@gmail.com>
Change-Id: I3cf728818fbe3f267d34607911075040a117ead5
2021-07-09 14:34:02 +03:00
Martin Srebotnjak
3488c9c2c4 Translated using Weblate (Slovenian)
Currently translated at 100.0% (393 of 393 strings)

Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5f91a6de0d503faeb150235ffb2a4c76b269292c
2021-07-09 11:28:17 +02:00
bruh
472b1c5bf6 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (393 of 393 strings)

Co-authored-by: bruh <quangtrung02hn16@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/vi/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8f3f01835a8b467ef18d54e85d0a52f27ff327d6
2021-07-09 11:28:17 +02:00
Joan Montané
dc7c06e2e4 Translated using Weblate (Catalan)
Currently translated at 100.0% (393 of 393 strings)

Translated using Weblate (Catalan)

Currently translated at 99.4% (391 of 393 strings)

Co-authored-by: Joan Montané <joan@montane.cat>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I88f53d007e6a32bfe215a8ac846680b5e883d1eb
2021-07-09 11:28:17 +02:00
K. Herbert
b5d94e35c4 Translated using Weblate (French)
Currently translated at 100.0% (110 of 110 strings)

Translated using Weblate (French)

Currently translated at 100.0% (420 of 420 strings)

Translated using Weblate (French)

Currently translated at 100.0% (393 of 393 strings)

Translated using Weblate (French)

Currently translated at 99.0% (109 of 110 strings)

Co-authored-by: K. Herbert <herbert.ka@mailo.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/fr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/fr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fr/
Translation: Collabora Online/Android app
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7bbb26235a70cd183d5d6e7dd7e0ab97caa7640b
2021-07-09 11:28:17 +02:00
Elisa de Castro Guerra
0d49bb1581 Translated using Weblate (French)
Currently translated at 100.0% (110 of 110 strings)

Translated using Weblate (French)

Currently translated at 99.0% (109 of 110 strings)

Translated using Weblate (French)

Currently translated at 98.1% (108 of 110 strings)

Co-authored-by: Elisa de Castro Guerra <elisa.dcg@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/fr/
Translation: Collabora Online/Android app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iecd63c8feb7c3465a66684c732baa4c00b018952
2021-07-09 11:28:17 +02:00
Marc Rodrigues
7c233008f7 Translated using Weblate (German)
Currently translated at 100.0% (393 of 393 strings)

Co-authored-by: Marc Rodrigues <marc.rodrigues@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I368c5877a5006b130d018b78061b169c5d39da78
2021-07-09 11:28:17 +02:00
Rob Pearson
23ed199ba0 Translated using Weblate (English (New Zealand))
Currently translated at 100.0% (393 of 393 strings)

Translated using Weblate (English (South Africa))

Currently translated at 100.0% (393 of 393 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (393 of 393 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (393 of 393 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If907c25fd4add4b7bf54d1848f2fccf0ab18439a
2021-07-09 11:28:17 +02:00
Stanislav Horáček
09f53bc18e Translated using Weblate (Czech)
Currently translated at 100.0% (393 of 393 strings)

Co-authored-by: Stanislav Horáček <stanislav.horacek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iff885ec18b8db11172e00538d7725a101b0fded3
2021-07-09 11:28:17 +02:00
Mert Tumer
a911c31c44 perf-test: Automatize tests
We have to start loolwsd manually in order to
start the testing. This patch covers starting the
loolwsd with custom port seperately and spawning the views in nodejs
instead of in Makefile.

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I0af99c2be1d886e11ce4dfaefe9bb07de9be00e8
2021-07-09 11:20:34 +03:00
Andras Timar
98e4e271ed change link to Collabora Office 6.4 mobile release in Welcome text
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I72675597c0f2cdc8fbc690835f37909fa7afbbba
2021-07-09 07:13:08 +02:00
Miklos Vajna
57d3d0f391 http response: check if result would fit into chunkLen
Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I6e3b73461653d2ab3cedaa3f6ca7fbfd2a826edb
2021-07-08 14:51:11 +02:00
Mike Kaganski
858aaab5a7 Drop unused Upload/CrossProgress controls
Only DownloadProgress is used..

Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com>
Change-Id: I61bf8ebc707b2303863954456576d42b0ddbfe55
2021-07-08 11:57:51 +00:00
Tor Lillqvist
5998980c8d Add some comments for developers
Many of the settings in loolwsd.xml that you might want to tweak this
or that way during development are set on the loolwsd command-line for
a "make run". Don't waste time on trying to set them in loolwsd.xml
and wondering why it has no effect. I just did that. Hopefully these
comments will avoid such in the future.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I896e9cb2830bf36c165842bff53f0e4e471599ae
2021-07-08 12:07:52 +03:00
Szymon Kłos
424852660c mobile-wizard: be sure elements are hidden
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifa238bc24b6ae0c8e196f9c2f0d4ab48ba99264b
2021-07-08 10:48:07 +02:00