Commit graph

122 commits

Author SHA1 Message Date
Allan Nordhøy
4f8367c0d4 Updated translations from Weblate
Translated using Weblate (Abkhazian)

Currently translated at 37.3% (156 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ab/

Translated using Weblate (Afrikaans)

Currently translated at 53.1% (222 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/af/

Translated using Weblate (Amharic)

Currently translated at 47.3% (198 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/am/

Translated using Weblate (Belarusian)

Currently translated at 14.3% (60 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/be/

Translated using Weblate (Catalan)

Currently translated at 99.2% (415 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ca_VALENCIA/

Translated using Weblate (Welsh)

Currently translated at 55.0% (230 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/cy/

Translated using Weblate (Lower Sorbian)

Currently translated at 48.5% (203 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/dsb/

Translated using Weblate (Greek)

Currently translated at 99.2% (415 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/el/

Translated using Weblate (Finnish)

Currently translated at 3.3% (14 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/fi/

Translated using Weblate (French)

Currently translated at 99.2% (415 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/fr/

Translated using Weblate (Irish)

Currently translated at 11.7% (49 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ga/

Translated using Weblate (Gaelic)

Currently translated at 47.1% (197 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/gd/

Translated using Weblate (Hebrew)

Currently translated at 47.1% (197 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/he/

Translated using Weblate (Hindi)

Currently translated at 30.6% (128 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/hi/

Translated using Weblate (Croatian)

Currently translated at 66.5% (278 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/hr/

Translated using Weblate (Upper Sorbian)

Currently translated at 63.6% (266 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/hsb/

Translated using Weblate (Hungarian)

Currently translated at 54.5% (228 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/hu/

Translated using Weblate (Indonesian)

Currently translated at 54.5% (228 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/id/

Translated using Weblate (Icelandic)

Currently translated at 58.8% (246 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/is/

Translated using Weblate (Japanese)

Currently translated at 47.1% (197 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/

Translated using Weblate (Javanese)

Currently translated at 9.0% (38 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/jv/

Translated using Weblate (Kabyle)

Currently translated at 34.2% (143 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/kab/

Translated using Weblate (Kazakh)

Currently translated at 14.8% (62 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/kk/

Translated using Weblate (Kannada)

Currently translated at 10.7% (45 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/kn/

Translated using Weblate (Korean)

Currently translated at 47.1% (197 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ko/

Translated using Weblate (Latvian)

Currently translated at 22.9% (96 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/lv/

Translated using Weblate (Mongolian)

Currently translated at 12.9% (54 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/mn/

Translated using Weblate (Norwegian Bokmål)

Currently translated at 99.7% (417 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nb_NO/

Translated using Weblate (Nepali)

Currently translated at 47.1% (197 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ne/

Translated using Weblate (Dutch)

Currently translated at 62.2% (260 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nl/

Translated using Weblate (Norwegian Nynorsk)

Currently translated at 47.1% (197 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nn/

Translated using Weblate (Occitan)

Currently translated at 41.3% (173 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/oc/

Translated using Weblate (Punjabi)

Currently translated at 22.2% (93 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pa/

Translated using Weblate (Romanian)

Currently translated at 43.3% (181 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ro/

Translated using Weblate (Russian)

Currently translated at 47.1% (197 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ru/

Translated using Weblate (Albanian)

Currently translated at 16.0% (67 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sq/

Translated using Weblate (Swedish)

Currently translated at 48.8% (204 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sv/

Translated using Weblate (Tamil)

Currently translated at 31.5% (132 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ta/

Translated using Weblate (Tajik)

Currently translated at 3.3% (14 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/tg/

Translated using Weblate (Turkish)

Currently translated at 62.2% (260 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/tr/

Translated using Weblate (Ukrainian)

Currently translated at 61.9% (259 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/uk/

Translated using Weblate (Uzbek)

Currently translated at 45.6% (191 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/uz/

Translated using Weblate (Venetian)

Currently translated at 9.0% (38 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/vec/

Translated using Weblate (Chinese (Simplified))

Currently translated at 69.8% (292 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/zh_Hans/

Translated using Weblate (Chinese (Traditional))

Currently translated at 47.3% (198 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/zh_Hant/

Translated using Weblate (Norwegian Bokmål)

Currently translated at 100.0% (107 of 107 strings)

Translation: Collabora Online/Android app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/nb_NO/

Translated using Weblate (Spanish)

Currently translated at 60.0% (3 of 5 strings)

Translation: Collabora Online/CODE welcome text
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/es/

Translated using Weblate (Norwegian Bokmål)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/CODE welcome text
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/nb_NO/

Translated using Weblate (Norwegian Bokmål)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/iOS app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/nb_NO/

Deleted translation using Weblate (Angika)

Added translation using Weblate (Spanish)

Added translation using Weblate (Catalan)

Added translation using Weblate (Asturian)

Added translation using Weblate (Catalan)

Added translation using Weblate (Aragonese)

Added translation using Weblate (Hungarian)

Added translation using Weblate (Afrikaans)

Translated using Weblate (Bulgarian)

Currently translated at 100.0% (348 of 348 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/bg/

Translated using Weblate (Czech)

Currently translated at 100.0% (348 of 348 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/

Translated using Weblate (Welsh)

Currently translated at 100.0% (348 of 348 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cy/

Translated using Weblate (Lower Sorbian)

Currently translated at 100.0% (348 of 348 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/dsb/

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (348 of 348 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/

Translated using Weblate (French)

Currently translated at 100.0% (348 of 348 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fr/

Translated using Weblate (Upper Sorbian)

Currently translated at 100.0% (348 of 348 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hsb/

Translated using Weblate (Hungarian)

Currently translated at 100.0% (348 of 348 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hu/

Translated using Weblate (Slovak)

Currently translated at 100.0% (348 of 348 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sk/

Translated using Weblate (Swedish)

Currently translated at 100.0% (348 of 348 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sv/

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (348 of 348 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/uk/

Translated using Weblate (Czech)

Currently translated at 100.0% (418 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/cs/

Translated using Weblate (Spanish)

Currently translated at 100.0% (418 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/es/

Translated using Weblate (French)

Currently translated at 100.0% (418 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/fr/

Translated using Weblate (Ukrainian)

Currently translated at 62.6% (262 of 418 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/uk/

Translated using Weblate (Bulgarian)

Currently translated at 100.0% (107 of 107 strings)

Translation: Collabora Online/Android app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/bg/

Translated using Weblate (Czech)

Currently translated at 100.0% (107 of 107 strings)

Translation: Collabora Online/Android app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/cs/

Translated using Weblate (Welsh)

Currently translated at 100.0% (107 of 107 strings)

Translation: Collabora Online/Android app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/cy/

Translated using Weblate (Esperanto)

Currently translated at 98.1% (105 of 107 strings)

Translation: Collabora Online/Android app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/eo/

Translated using Weblate (French)

Currently translated at 100.0% (107 of 107 strings)

Translation: Collabora Online/Android app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/fr/

Translated using Weblate (Hungarian)

Currently translated at 100.0% (107 of 107 strings)

Translation: Collabora Online/Android app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/hu/

Translated using Weblate (Swedish)

Currently translated at 100.0% (107 of 107 strings)

Translation: Collabora Online/Android app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/sv/

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (107 of 107 strings)

Translation: Collabora Online/Android app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/uk/

Translated using Weblate (Hungarian)

Currently translated at 100.0% (13 of 13 strings)

Translation: Collabora Online/Android lib
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/hu/

Translated using Weblate (German)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/CODE welcome text
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/de/

Translated using Weblate (Spanish)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/CODE welcome text
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/es/

Translated using Weblate (French)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/CODE welcome text
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/fr/

Translated using Weblate (Hungarian)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/CODE welcome text
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/hu/

Translated using Weblate (Indonesian)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/CODE welcome text
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/id/

Translated using Weblate (Polish)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/CODE welcome text
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/pl/

Translated using Weblate (Russian)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/CODE welcome text
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/ru/

Translated using Weblate (Turkish)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/CODE welcome text
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/tr/

Translated using Weblate (Spanish)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/iOS app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/es/

Translated using Weblate (Catalan)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/iOS app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ca/

Translated using Weblate (Asturian)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/iOS app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ast/

Translated using Weblate (Catalan)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/CODE welcome text
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/ca/

Translated using Weblate (Aragonese)

Currently translated at 20.0% (1 of 5 strings)

Translation: Collabora Online/iOS app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/an/

Translated using Weblate (Hungarian)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/iOS app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/hu/

Translated using Weblate (Afrikaans)

Currently translated at 100.0% (5 of 5 strings)

Translation: Collabora Online/iOS app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/af/
2020-10-08 23:03:44 +02:00
Tor Lillqvist
bbb737951a Unconditionally print any debug messages posted from the JS
We don't have any such messages permanently in the code anyway, so we
don't win anything by doing it through the LOOL loggin mechanism at
level "trace".

Change-Id: I2c18e1cd561f797d2c4c20b403d5faedce695062
2020-10-08 20:33:57 +03:00
Allan Nordhøy
c59fce896d Added translation using Weblate (Norwegian Bokmål)
Added translation using Weblate (Norwegian Bokmål)

Translated using Weblate (Norwegian Bokmål)

Currently translated at 98.8% (344 of 348 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nb_NO/
2020-10-08 14:53:08 +02:00
Andras Timar
53f5e98ec3 Add BOM (Weblate needs it?)
Change-Id: Ia61c7bd23c43739303f02e2d36f13e333cf6a804
2020-10-07 13:43:36 +02:00
Andras Timar
0002fdfd6c fix license headers
Change-Id: I8623770b32d278a45357dc7f757fabfadd2b4af7
2020-10-01 11:56:43 +02:00
Tor Lillqvist
d0edfeabbd tdf#133279: Use CollaboraOnlineWebViewKeyboardManager also for hw keyboards
In theory, this doesn't make sense. In practice, it helps.

Change-Id: I34d03a812c543e1b112851c9e9ff512f2482a20c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103714
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-09-30 21:57:11 +02:00
Tor Lillqvist
2375cccad5 Change CFBundleShortVersionString to 6.4.0
Change-Id: I953474692323b52a87994e8b30f4a4ea87ce859f
2020-09-28 17:34:39 +03:00
Andras Timar
209313f41c Very minimal empty ODF templates for iOS
These files contain no data at all. This guarantees that when the
user opens a new document in the app, the language of paragraph,
page size, cell date format, currency, etc. will be according to
the current locale.

Change-Id: If1804ad4c63b8eb76c229a9e683d207191c385c5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102284
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-09-11 10:05:38 +02:00
Tor Lillqvist
3df718aac7 tdf#133284: Improve hardware and on-screen keyboard in the iOS app
This is a quite complicated change that should both fix tdf#133284
(cursor keys on a hardware keyboard do not work in a spreadsheet
document) and also improve the interaction with
CollaboraOnlineWebViewKeyboardManager that manages the on-screen
keyboard. We need to jump through complicated hoops in order to get
the hardware cursor keys handled right after loading a spreadsheet
document.

In the CollaboraOnlineWebViewKeyboardManager case we try harder to
keep loleaflet's _textArea buffer in sync with what the UITextView in
CollaboraOnlineWebViewKeyboardManager uses to provide suggestions
above the on-screen keyboard.

Also merges in related changes from today to
CollaboraOnlineWebViewKeyboardManager.

Change-Id: Ic4acb54bd4e815aa8bfb2bf40b08493446ae5ab0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101878
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-09-01 17:24:36 +02:00
Tor Lillqvist
2a8db1b5ab Use CollaboraOnlineWebViewKeyboardManager
For now, just copy its source files here. When/if I figure out what is
the appropriate way to package that framework for use in other
products (like the Collabora Office iOS app) I will use that instead.

Change-Id: If808f96b6a72c80e54dc84fce80a551503c96335
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101268
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-08-25 13:41:20 +02:00
Tor Lillqvist
377e9266c9 tdf#134832: Clear the cache directory if it is for another version of the app
We don't want to use cached scaled icons (and other stuff that might
be in the cache?) if from a potentially incompatible version of the
app. Store the core and online hashes in files in the cache to be able
to compare.

Change-Id: I593ece5dae71f91f204d4c040bd9f744b3bc498f
2020-07-23 19:18:55 +03:00
Tor Lillqvist
e64bbeb819 Pass rendered tiles as uncompressed BMP files in the iOS app
Avoids the need for PNG encoding (takes significant amount of CPU
time) and Base64 encoding in the app process, transfer to JavaScript
(running in a WebKit process of its own), and corresponding decoding
(in the WebKit process). Instead simply pass the URL of each tile file
to the JavaScript. Remove each BMP file once it has been loaded.

Change-Id: I6e7b9450691679c64813979976c59f1763ec104c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98710
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-07-14 17:00:35 +02:00
Tor Lillqvist
ef7e79a20b Use LOG_INF_NOFILE() for the FakeSocket logging callbacks
(Why not call LOG_INF directly in FakeSocket.cpp instead? Good
question. I guess my idea was originally to keep FakeSocket separately
testable without all the Online logging stuff.)

Change-Id: I1e6b730a9742ad653d431774d88fec6a36d98850
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98736
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-14 16:55:12 +02:00
Tor Lillqvist
ea4a657573 Use a separate temp directory for each document during the iOS app lifetime
This prevents an assertion failure when you quickly open the same
document again after closing it.

Change-Id: I26b8c53d57bd1d33f0473a3c5a332ec02c37455d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98263
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-07 16:01:19 +02:00
Tor Lillqvist
3edc4d2201 Move the setupKitEnvironment() function into a file of its own
A small re-factoring to help planned re-plumbing of the iOS app.

Change-Id: I21f09216a7c5adf965179765a75f5a0d521cd7f3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97771
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-03 08:40:49 +02:00
Szymon Kłos
11965d083e notebookbar: early init
- read settings from loolwsd.xml
- in case of notebookbar activated send :notebookbar parameter
- for mobile apps I left empty parameter in setupKitEnvironment calls

Change-Id: I5813589564b37eecc1e77c5d0eb737eca5f92f04
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97233
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-06-30 08:15:25 +02:00
Tor Lillqvist
7f25109f72 tdf#128502: Chunk of work to enable "multi-tasking" in the iOS app
Seems to not cause any serious regressions in the iOS app or in "make
run", but of course I am not able to run a comprehensive check of all
functionality.

Change-Id: I44a0e8d60bdbc0a885db88475961575c5e95ce88
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93037
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-06-26 13:09:51 +02:00
Tor Lillqvist
9c517608be Bump the internal iOS app version to 4.2.6
Build 4.2.5 (57) was released (as 4.2.4).

Change-Id: I76a49b7851c2d8fa68f623c08ae211d2ac549d26
2020-06-23 16:46:13 +03:00
Tor Lillqvist
2bd05d68f7 tdf#133278: Don't overwrite the copy of the document that we are editing
When exporting a copy, let core write the copy to a temp subdirectory
before invoking UIDocumentPickerViewController to select where to
store it permanently.

Change-Id: I3d2292414a3c824515ba6d98ad09b296e543cea9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95295
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-06-01 17:08:38 +02:00
Tor Lillqvist
fe9edb5e8b Bin leftover unused variable
Change-Id: I21eaec0f070698db119d396f4b24c6d3b785c1f3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93107
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-28 22:13:16 +02:00
Tor Lillqvist
edf217e1e4 Re-order to be in same order (alphabetical) as Xcode writes
Change-Id: I2e0999a11206f2f212534941a81abaab6dcc87df
2020-04-27 13:13:01 +03:00
Tor Lillqvist
b068e556de Make the Info.plist.in more like what Xcode writes
If you edit the Info.plist in Xcode, it is written with TABs and
eight-column indentation steps. Make the Info.plist.in the same to
make it easier to compare what changes in case you do some intentional
change in Xcode first.

This commit has only whitespace changes.

Change-Id: I0878eac5e19f666426ab67dd8e3c425027036756
2020-04-27 13:12:55 +03:00
Andras Timar
33000dfded typo fixes in comments and code
Change-Id: I6f31e050aab701e31064e1abc9429dce0a50c279
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92953
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-26 23:19:52 +02:00
Tor Lillqvist
909734e261 Implement the "download as" functionality properly in the iOS app
We need to catch the downloadas message already in
-[DocumentViewController
userContentController:didReceiveScriptMessage:] and use an
UIDocumentPickerViewController to let the user choose where to
download (or export) the document. The iOS-specific code in
ChildSession::downloadAs() can go away.

Change-Id: I626b9986ec6156f7e83bda02b04e65f7819f8017
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92112
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-13 15:35:13 +02:00
Tor Lillqvist
34c27a6b9b Bump the internal iOS app version number to 4.2.4
Change-Id: I087b2ab81f4b3c8b3b85e9419743e5ce72dd398c
2020-04-13 11:00:46 +03:00
Tor Lillqvist
0930286e2d Fix problems after my 293f4913d2
It is enough to call the -[UIDocument
saveToURL:forSaveOperation:completionHandler:] only in
DocumentBroker::sendUnoSave(). And on the other hand, in
-[DocumentViewController bye] we can't want for the
LOOLWSD::lokit_main_mutex as the main queue is needed for parts of
what the saveToURL does.

Also, use a separate copy of the document as the file that is actually
edited by LO core. This matches what the Android app does. I think it
is useful to do this in order to avoid some hangs that I noticed. They
probably were caused by both LO core and the system frameworks
occasionally accessing the same document file at the same time.

Change-Id: Idb65be23a7cb6ad1288fbbd23c7471e0fb8d52f4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91851
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-08 00:01:30 +02:00
Jan Holesovsky
61ad718671 Revert "Force portrait for the moment also for iPhone in the iOS app"
Landscape is supposedly working fine now.

This reverts commit d474f06040.

Change-Id: I28e6d521ee0c4906e07b99b8cc6c24761b20f2b3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91849
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-07 21:04:08 +02:00
Tor Lillqvist
312caf918b Add comment
Change-Id: I452b1d6fc150d014a5d55df71e9dae96288e67de
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91740
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-06 12:49:18 +02:00
Tor Lillqvist
05a29a19d5 Fix typo in comment and elaborate
Change-Id: I2e5560a27d8471188ebb159efd29192a10295547
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91739
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-06 12:48:01 +02:00
Tor Lillqvist
95de5a74cc Rename our Objective-C Document class to CODocument
There are already several classes called Document on the C++ side.
Let's reduce confusion a bit. (Also, we might need to use the
Objective-C Document class from some of the Online C++ code (which is
actually compiled as Objective-C++).)

Change-Id: I34347ba0161c067b14bb125c3410eefd89bbca31
2020-04-04 00:07:35 +03:00
Tor Lillqvist
4dd95f833d Propagate core and online git hashes to the Settings for the iOS app
The git hashes now show up in the Settings app, without having to run
the Collabora Office app, open a document, and check the About dialog.

The core git hash is taken from the core build directory's
instdir/program/setuprc.

Also, drop the fairly pointless lone Finnish localisation of the
Settings strings.

Change-Id: I56631f8facde017ed99038209c55f516386eab99
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91073
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-26 00:26:58 +01:00
Miklos Vajna
6890d2fdaa ios: fix opening hyperlinks
This was added in commit 2174206de1 (android:
Don't hang after returning from a hyperlink., 2020-02-14), but the new command
was only handled on Android. Handle HYPERLINK on iOS, too.

Change-Id: I8c942c1a64c8a52462a749989e312d0d9899a841
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90917
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-23 17:33:45 +01:00
Tor Lillqvist
16fbe5441d Bump the internal iOS app version number to 4.2.3
Change-Id: I083ed1dd96aba75da1fc6d6d47c8cbd7b1d62a24
2020-03-23 12:55:14 +02:00
Tor Lillqvist
d474f06040 Force portrait for the moment also for iPhone in the iOS app
Change-Id: I1def28e7969cea753e7fc36094fe6514c17d61af
2020-03-20 16:03:19 +02:00
Andras Timar
a66083de9b Try to delete language information from templates...
... in order to have languages agnostic templates.
fo:language="en" fo:language="US" was removed from styles.xml

Change-Id: I680809d33cb902fc447ea5393d7f8dad3d83cbfc
2020-03-14 22:29:17 +01:00
Tor Lillqvist
2004a0198d Bump the internal iOS app version number to 4.2.2
Otherwise, when one validates (or uploads) a new build, even just for
TestFlight purposes, one gets an error in Xcode: "The value for key
CFBundleShortVersionString [4.2.1] in the Info.plist file must contain
a higher version than that of the previously approved version
[4.2.1]."

(cherry picked from commit 585cf6be86c6535a9cf6b2ab45e9e606788433d2)

Change-Id: I2ea1342980384a8eb81312734747be5e686da347
2020-03-11 14:08:36 +02:00
Andras Timar
fdc05239af Remove hardcoded tab name Sheet1 from iOS spreadsheet template
Change-Id: I0916e968b33395cf682bf4ddc313c959526e7adf
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89171
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-21 11:34:21 +01:00
Tor Lillqvist
624b42d58a Hackaround for on-screen keyboard problem
We want to be able to force the on-screen keyboard to be displayed
(when there is no external hardware keyboard) from our JavaScript.

Change-Id: I0678d84ca941a03316ffb68cfd9c3e93a6ea7e57
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89023
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-02-19 15:17:56 +01:00
Michael Meeks
6bdf561049 Share the Kit environment setup code.
Particularly configuration layers so we can tweak mobile config
easily.

Add core source files from configmgr for breakpointing convenience in
the iOS project. Add loolkitconfig.xcu to the iOS app bundle. Use
${BRAND_BASE_DIR} instead of a compile-time LOOLWSD_CONFIGDIR literal
on iOS (because there is no compile-time constant path to the app
bundle). No "registry" directory directly in the app bundle any longer
on iOS, a corresponding change in core.git moved that stuff to be
under "share", like on other platforms.

Change-Id: I6672efc0505abf27297c4758118a20992b10ceb3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88765
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-17 14:49:06 +01:00
Tor Lillqvist
58205c9818 Bump version to 4.2.1
As a build of 4.2 has been approved for release in the App Store, we must bump
this before any new build can be uploaded, even just for TestFlight.

Change-Id: I60de542eaf6d10776ad287c8c9c5d36e0feed70c
2020-02-13 16:14:59 +02:00
Jan Holesovsky
ad32888d7c mobile: Unify the mutex usage that protects the main lokit thread.
Effectively both approaches were doing the same thing, let's unify to
the iOS way to minimize the platform-specific code.

Change-Id: I11290410a536c26db054ffcb87e3b64cc2a11c07
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/84589
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-06 09:44:26 +01:00
Tor Lillqvist
56d310636d tdf#129380: Don't show the "shortcut bar" if a hardware keyboard is used
Change-Id: If1138185e52b7240ff6190ddf3f7af01d2a47115
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87769
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2020-01-31 15:52:27 +01:00
Tor Lillqvist
26860d8f35 Add public.content to the UTTypeConformsTo arrays of the exported UTIs
The Nextcloud app looks for that.

Change-Id: I91d26f7dced0b0ca35275db7ebabf322e50e734d
(cherry picked from commit 481f498dfb31ad364c4dfae179c1a2baef8118ab)
2019-11-21 10:24:17 +02:00
Tor Lillqvist
9d6c174462 tdf#128577: Close an already open document when asked to open a new one
Add a "singleton" class method to DocumentViewController to return the
(as for now) singleton DocumentViewController.

Change-Id: I0b8a8def558cfe7f9469b6062a86311dfa63f549
Reviewed-on: https://gerrit.libreoffice.org/82007
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit 2807f907d947549a17c5bae586b85d412d552a09)
Reviewed-on: https://gerrit.libreoffice.org/82021
2019-11-04 15:25:54 +01:00
Tor Lillqvist
ed4558001f Set CFBundleShortVersionString to 4.2
Change-Id: I9115a9dc571c1b27e6b80181ec38732cb91ec799
Reviewed-on: https://gerrit.libreoffice.org/82019
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-11-04 15:24:41 +01:00
Tor Lillqvist
0c9bc2159b Add LSSupportsOpeningDocumentsInPlace
Probably a good idea, although doesn't seem to have much effect? At
least not on tdf#128577.

Change-Id: I7b66a2e9ba44bd4cef583c0861883edfae11eb1d
Reviewed-on: https://gerrit.libreoffice.org/82006
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit 2990203dff05f977dfdc77b493deca051b54ca79)
Reviewed-on: https://gerrit.libreoffice.org/82020
2019-11-04 15:24:22 +01:00
Andras Timar
2efdb2016a Remove Lotus WordPro support
... because lotuswordpro filter is not present in MPLv2-only core builds

Change-Id: I100e886273f8b7fd38887576c2d29fad4c69b2e7
Reviewed-on: https://gerrit.libreoffice.org/79683
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit d7813989913e95cefc8484d6d2af965ed5752588)
2019-10-25 14:39:29 +03:00
Tor Lillqvist
fdb91bf15e tdf#123733: Keep the WebKit view until the lokit_main thread has finished
Otherwise, if you close a document before it has been rendered
completely, the plumbing of threads and FakeSocket connections gets
confused and opening the next document hangs or runs into an assertion
failure. This typically happened for large presentations where
rendering the slide previews takes significant time.

Change-Id: I0f586bec021c4c045a129b3f179ddb3942915c58
Reviewed-on: https://gerrit.libreoffice.org/80882
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-10-16 13:20:38 +02:00
Tor Lillqvist
07986199ad Just call lok_init_2() and LibreOfficeKit::setLanguageTag() once on iOS
... when the app starts.

Change-Id: Icac4a9e1074fb6c5f3c9b5282e20a4513717a323
Reviewed-on: https://gerrit.libreoffice.org/80881
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-10-16 13:16:42 +02:00
Tor Lillqvist
1cf3bec303 tdf#123741: Call LibreOfficeKit::setLanguageTag() also when loading a template
Sadly I have no understanding why not doing that caused such a
mysterious end result. But I am glad I thought of trying this simple
thing before spending any more time trying to understand what is going
on.

Change-Id: I129f8fffa32fa087e21c444f9657394de0e255a1
2019-10-10 19:35:30 +03:00