Commit graph

15993 commits

Author SHA1 Message Date
Tor Lillqvist
5147fc5902 Improve some temporary iOS app logging that is normally ifdeffed out
Change-Id: I25be27d9937729e49084395d11215c5efb16fd94
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-09-01 15:32:42 +03:00
Tor Lillqvist
c77b7e7dfd Actually do remove leftover tiles in the iOS app
Fix silly mistake in my previous commit. Had put code in #if 0 that
should be in #ifdef IOS.

Change-Id: I72f4dc3867bd070a01a4ba5625baba0eea3c2d73
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-09-01 15:32:42 +03:00
Tor Lillqvist
9b1033dbb5 Remove the tile file (in the iOS app) also if it failed to load
Change-Id: I65c7b350e8ca948c086aa9365a264cb32ed3cfb1
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-09-01 15:03:47 +03:00
Tor Lillqvist
6d2a6e110c Remove leftover tiles in the iOS app already when the document is closed
Normally (ideally), tiles (.bmp files) are removed as soon as the JS
has displayed them. But occasionally something goes wrong and they are
left behind. (For instance, it seems to happen if the user closes the
document immediately when it shows up.)

Do not leave them on disk until the app starts the next time.

Change-Id: I0c764280a69a16ad3b7b67c329832fd5331c2e1e
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-09-01 13:32:23 +03:00
Pranam Lashkari
daef96dcb3 freemium: corrected typos
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: If21f4471b3ad4b20f049e2e9f2330e31989ead0b
2021-09-01 09:44:19 +02:00
Pedro Pinto Silva
dc51804de2 Readonly: Do not show sidebar when in this mode
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic3763c300bf677914b06c6bf2296818770a3ec5e
2021-09-01 09:16:22 +02:00
Michael Meeks
09a2237372 Always lock the work queue.
The worker threads can be running and have not yet responded
to the last _cond.wait() by the time we start compressing again
- at least under valgrind:

loolforkit-nocaps: ./common/RenderTiles.hpp:304: void ThreadPool::run(): Assertion `_working == 0' failed.
==240379== Process terminating with default action of signal 6 (SIGABRT): dumping core
==240379==    at 0x5505322: raise (raise.c:50)
==240379==    by 0x54EE863: abort (abort.c:79)
==240379==    by 0x54EE748: __assert_fail_base.cold (assert.c:92)
==240379==    by 0x54FD9D5: __assert_fail (assert.c:101)
==240379==    by 0x5886BB: ThreadPool::run() (RenderTiles.hpp:304)
==240379==    by 0x56DC02: RenderTiles::doRender(std::shared_ptr<lok::Document>, TileCombined&, PngCache&, ThreadPool&, bool, std::function<void (unsigned char*, int, int, unsigned long, unsigned long, int, int, LibreOfficeKitTileMode)> const&, std::function<void (char const*, unsigned long)> const&) (RenderTiles.hpp:711)
==240379==    by 0x5A0104: Document::renderTiles(TileCombined&, bool) (Kit.cpp:762)
==240379==    by 0x59CF1A: Document::renderCombinedTiles(StringVector const&) (Kit.cpp:719)
==240379==    by 0x59AEC8: Document::drainQueue(std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&) (Kit.cpp:1570)

That means our queue starts processing work as we do the unlocked
queue push - causing some potential badness.

Change-Id: Ib0578dac009376c0676da73a8c1d8960304dc072
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-09-01 07:14:44 +01:00
Michael Meeks
85ae2d668a Get argument count right to spawn.
Why pass a dozen empty arguments each time: someone bitten
again by the default vector constructor.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I31bc6f23f0b5d7352b85d3df4b7b5298199044a1
2021-09-01 07:14:44 +01:00
Michael Meeks
d1ae5a8fb7 Valgrind support for tracing the forkit & kits.
Change-Id: Ie9dd69598bd408ae1994d8cdd6f886224890ad23
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-09-01 07:14:44 +01:00
Pedro Pinto Silva
d70b406876 Status bar: Add readonly class and hide inactive items
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If77924767ada8b6d635ded21a6ed4e0f1a75a457
2021-08-31 16:28:55 +02:00
Pedro Pinto Silva
2739dfe44c Menubar: Do not allow Insert menu on readonly mode
Since all of the menu items under "Insert" are disabled for
the readonly mode we can safely remove it.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic84dedd8d76a3db69a0bff7932052f944e42b959
2021-08-31 16:28:55 +02:00
Pedro Pinto Silva
c007122f9b Status bar: Display Permission mode
Extend Status bar information to display in which mode the user is
currently in.

Context:
When using Collabora Online to preview documents (readonly mode)
the user might not noticed at the first glance what is different
and why he cannot edit

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id148fc73ad4f46673170c2372d4ba16a390bbd4f
2021-08-31 16:28:55 +02:00
Pedro Pinto Silva
e9edf82e4a Readonly mode: Align document title to the right
also make sure (since there are less menu items)
that we use a bit more space for that (width)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7642e5fd6ee68d9738f8c2ede4854758a437df25
2021-08-31 16:28:55 +02:00
Pedro Pinto Silva
98e786befd Readonly mode: Fix close button alignment
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5f43eba546b36f52bc783546b5040e29293bfb9b
2021-08-31 16:28:55 +02:00
Pedro Pinto Silva
9bfec0bf4d Readonly mode: Remove unnecessary pixel positions
Removal of top pixels between that are no longer needed
due to the latest changes on neighboring elements.
Plus Make sure that even on readonly mode we do have a
bezel delimiting the bar and the document container

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I799fc099697e0b238cd55e53b91471cbd59da742
2021-08-31 16:28:55 +02:00
Pedro Pinto Silva
ba8a133c82 Readonly mode: Do not display ruler
Make sure we only check the ruler state when in
edit mode.

Context:
Show ruler (menu action) has been always disabled when on readonly mode
but we seem to do checks on the ruler state and ultimately
show it even on readonly mode.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7987e1c54bed4117f221aac37b7fbd184ce954e2
2021-08-31 16:28:55 +02:00
Andras Timar
aabb0886be Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I151a7ef497b2d453485fde270e6c35231c064e53
2021-08-31 09:55:17 +02:00
Luna Jernberg
495615dfe6 Translated using Weblate (Swedish)
Currently translated at 20.0% (1 of 5 strings)

Translated using Weblate (Swedish)

Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Swedish)

Currently translated at 100.0% (110 of 110 strings)

Translated using Weblate (Swedish)

Currently translated at 58.3% (245 of 420 strings)

Translated using Weblate (Swedish)

Currently translated at 96.6% (380 of 393 strings)

Co-authored-by: Luna Jernberg <droidbittin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/sv/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/sv/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/sv/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sv/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sv/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/CODE welcome text
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic3f88e28635c5f6efbf6c6750bda4e9b6c56c8ee
2021-08-31 09:49:43 +02:00
Tymofii Lytvynenko
ca44abeb7c Translated using Weblate (Ukrainian)
Currently translated at 100.0% (420 of 420 strings)

Co-authored-by: Tymofii Lytvynenko <till.svit@gmail.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: I41474be41400da4ac782327212f26fac3ce460ec
2021-08-31 09:49:43 +02:00
Gontzal Manuel Pujana Onaindia
6c7706e74a Translated using Weblate (Basque)
Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Basque)

Currently translated at 100.0% (110 of 110 strings)

Translated using Weblate (Basque)

Currently translated at 100.0% (393 of 393 strings)

Co-authored-by: Gontzal Manuel Pujana Onaindia <thadahdenyse@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/eu/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/eu/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/eu/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib828244f7c91698302a232718db2d2158577e722
2021-08-31 09:49:43 +02:00
Pedro Silva
e701366d5e Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (393 of 393 strings)

Co-authored-by: Pedro Silva <pedro.silva@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt_BR/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I667a902b9e4ab4928f145167b940043f8942ba6f
2021-08-31 09:49:43 +02:00
Oğuz Ersen
a17f71d590 Translated using Weblate (Turkish)
Currently translated at 100.0% (393 of 393 strings)

Translated using Weblate (Turkish)

Currently translated at 99.4% (391 of 393 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I03c3cad2c28407a763965c3ed46fd65d2e49e196
2021-08-31 09:49:43 +02:00
Milo Ivir
4de5bfec29 Translated using Weblate (Croatian)
Currently translated at 100.0% (110 of 110 strings)

Translated using Weblate (Croatian)

Currently translated at 100.0% (393 of 393 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/Android app
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ifaf92ac35aecdd5628c7baca4c933769b5999dba
2021-08-31 09:49:43 +02:00
Zhou Nan
39886689a9 Translated using Weblate (Chinese (Simplified))
Currently translated at 95.6% (376 of 393 strings)

Co-authored-by: Zhou Nan <zhounan@nfschina.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/zh_Hans/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3430c06e2d10affc5e9cac605c15690b9b726542
2021-08-31 09:49:43 +02:00
Artem
e9c2a1d3ca Translated using Weblate (Russian)
Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Russian)

Currently translated at 99.7% (392 of 393 strings)

Translated using Weblate (Russian)

Currently translated at 95.4% (21 of 22 strings)

Translated using Weblate (Russian)

Currently translated at 99.2% (390 of 393 strings)

Co-authored-by: Artem <Localizer_in_Russian@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/ru/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ru/
Translation: Collabora Online/Android lib
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id6151817f1bbc480839e544fae781ba7cd4f61b7
2021-08-31 09:49:43 +02:00
Adolfo Jayme Barrientos
28211f2dd5 Translated using Weblate (Spanish)
Currently translated at 100.0% (393 of 393 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If0737ebca7de9b63fa80e5ac3ff64f5cb9208b76
2021-08-31 09:49:43 +02:00
Mehmet Sait Gülmez
2270cd1e8e Translated using Weblate (Turkish)
Currently translated at 99.4% (391 of 393 strings)

Translated using Weblate (Turkish)

Currently translated at 98.7% (388 of 393 strings)

Co-authored-by: Mehmet Sait Gülmez <cenggulmez.65@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I34bf314644f812894a4dd75ae8345e31946ed2ba
2021-08-31 09:49:43 +02:00
Jeff Huang
f37824f45f Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (110 of 110 strings)

Co-authored-by: Jeff Huang <s8321414@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/zh_Hant/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/zh_Hant/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3d9830d139ed30bbebf5feec6d0978d3ad5ac47b
2021-08-31 09:49:43 +02:00
phlostically
252acd6ef1 Translated using Weblate (Esperanto)
Currently translated at 100.0% (393 of 393 strings)

Co-authored-by: phlostically <phlostically@mailinator.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/eo/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib074045debfae20308bf375b4c089fe0c320c68d
2021-08-31 09:49:43 +02:00
Weblate
d7d4922091 Added translation using Weblate (Swedish)
Added translation using Weblate (Hindi)

Added translation using Weblate (Hindi)

Added translation using Weblate (Hindi)

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic04ee15b743ca6801b6bc29b08d3e681498b6945
2021-08-31 09:49:42 +02:00
Rash419
9b9c6420fb cypress: fix: unstable desktop/impress/sidebar_spec.js
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic4d814112b97863ee4d812efa61869e059d705ee
2021-08-31 13:08:44 +05:30
NickWingate
6eb93a2330 Assign _firstLine before _data is changed
_firstLine must be assigned before _data is
changed, as it is used to check _data's
first line hasn't changed

Signed-off-by: NickWingate <nicholas.wingate03@gmail.com>
Change-Id: I79dfd0a64d53fc8503709015bbe7ab6875a58204
2021-08-30 21:07:59 +01:00
NickWingate
e72b073090 Make firstLine() return reference not value
And make return const to prevent _firstLine being
mutable.

Signed-off-by: NickWingate <nicholas.wingate03@gmail.com>
Change-Id: I1a6e391cd128704b67ec5cc99a4ed4d105f64e29
2021-08-30 21:07:59 +01:00
NickWingate
cc58c79136 Remove _firstLine assignment from constructor
_firstLine is no assigned when firstLine() is called
and _firstLine is empty.

Signed-off-by: NickWingate <nicholas.wingate03@gmail.com>
Change-Id: Ie6d86abd1f9db7a4f05e95e41f6b791f5923729f
2021-08-30 21:07:59 +01:00
Rash419
cc59ceeed2 cypress: added a new target for notebookbar
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I77ca43368942c38e51b0cb9cdf903d259d5af496
2021-08-30 17:23:07 +05:30
Rash419
b04e6c4544 cypress: make annotation specs compaitable with NB
loleaflet: added annotation button to impress classic

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I76f70262c13896ccb5bd41f68ac12b337db7f7c2
2021-08-30 17:23:07 +05:30
Tor Lillqvist
77b877c027 Bin misleading ERROR message
There is one EndSession record for each session that edited the same
document. That is not an error.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I9042411ad465fe07a8f88a29923f0dc051c755aa
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-08-30 13:41:21 +03:00
Henry Castro
8d694bdf97 wsd: log warn if proof keys not found
"default installs currently don't use proof keys"

Change-Id: I43b6c5ed6633b35e58ec3e1b1cc222756a9a47d8
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-08-27 15:01:58 -04:00
Rash419
02e774f381 cypress: fix: unstable calc/repair_document_spec.js
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ibec3df9ec8fe08143f0ed2206140a5b1655438c0
2021-08-27 15:31:52 +05:30
Pedro Pinto Silva
c901a3b6da Checkbox: Fix icon inconsistencies
Use the lc variant everywhere instead of having a mix of
icon types for the same component

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Icc0bc0e9cc5e1e7d53444a9b7e33f8e02bc784fe
2021-08-26 16:47:02 +02:00
Tor Lillqvist
10ef641889 I think the delay variable needs to be signed
I otherwise get values like this:
    epochFile=18682409
    deltaCurrent=34
    rec.getTimestampNs()=18682409
    deltaFile=0
    delay=4294967262

Leading to the idiotic:
    Sleeping for 4294967 ms

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I06530c31bc70bb7dcf3cd34c4684aa9f1f8036cb
2021-08-26 14:05:02 +03:00
Alexandru Vlăduţu
0b361d1cfc loleaflet: add demo for opening multiple docs and switching between them
closes #3122

Signed-off-by: Alexandru Vlăduţu <alexandru.vladutu@1and1.ro>
Change-Id: Ibf4823b03cb70812c84d9125f4092b87bec6613b
2021-08-26 12:08:17 +02:00
Çağrı Gökçe
3018878ae7 Create lc_checkboxoff.svg
Created unchecked checkbox

Signed-off-by: Çağrı Gökçe <cgokhangokce@gmail.com>
Change-Id: Ibb8479dbbc4cb6e8a627ef7167d77cea6d9d52e7
2021-08-24 17:02:54 +02:00
Tor Lillqvist
65b8001d73 Remove more leftover files taking space in the iOS app
Remove the app's copy of the document after core has saved it and we
have stored the edited version at its real location.

Remove possible leftover tile bitmaps when the app starts.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ibc41be38c2cfb689c532640d148116bc06a248ab
2021-08-24 18:02:40 +03:00
Tor Lillqvist
c6f1ec7404 Update CFBundleShortVersionString to match configure.ac
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I0a18e3f60cacd21522dc878ab6b477dd59536662
2021-08-24 15:57:48 +03:00
Rash419
57485718f9 cypress: increase stability of some tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I10532dc3307810476882944682928622dedd3994
2021-08-24 14:34:39 +05:30
Rash419
efac57d7bc loleaflet: fix: scroll buttons still appear when toolbar is narrower than the browser window
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic66ed15c90c1f012138a29b81ee0a8540667acf5
2021-08-24 14:29:25 +05:30
Rash419
76f2a85ff7 loleaflet: remove hide/show comment option from calc
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I2fbd77ee3a9a459bc427992c2bf2ab7d1db26813
2021-08-24 14:29:25 +05:30
Rash419
32e7c92156 loleaflet: fix: Calc: Dragging scrollbar and releasing button over formula bar keeps drag mode active
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ibea42d1fa9c3c7fe8abc6b5efdb5dc93cab1a491
2021-08-24 13:06:59 +05:30
Siddharth
e0cdc186e8 Copy loleaflet-api.html into code: cursorURL
Signed-off-by: Siddharth <siddharth25pandey@gmail.com>
2021-08-23 16:35:45 +02:00