Commit Graph

366 Commits (master)

Author SHA1 Message Date
Tor Lillqvist 6507b8b3fe Fix warning: MobileCoreServices has been renamed to CoreServices
Change-Id: I352a4a00c6ad0e80a6769a93fe6f5999aadf3128
Signed-off-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit 5b598f13c7)
2020-11-05 23:42:39 +02:00
Tor Lillqvist 471dad998c Bump iOS deployment target to 13.0
Upcoming changes will introduce use of APIs that require iOS 13.

Change-Id: Idd4b1e1235ca7ab19eea8aa58f72784b946d50f8
Signed-off-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit fcdc3b2f89)
2020-11-05 23:42:39 +02:00
tamer dab b5ca282a1a Translated using Weblate (Hebrew)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Hebrew)

Currently translated at 70.5% (12 of 17 strings)

Translated using Weblate (Hebrew)

Currently translated at 100.0% (107 of 107 strings)

Co-authored-by: tamer dab <dabsantamer@yahoo.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/he/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/he/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/he/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/iOS app
Change-Id: I501b597ee8721c3b493d945f31be3f0af51d1f40
2020-10-28 17:36:19 +01:00
Tor Lillqvist 2d6c83cff9 Add logging when the WebContent process has died
See https://github.com/CollaboraOnline/online/issues/403

Change-Id: I59012565ac6376d03872fe6e4cd78a5d14be1319
Signed-off-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit 3a4169a9eb)
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2020-10-28 10:50:33 +02:00
Tor Lillqvist 0ad957a548 Even better app name suggestion
Change-Id: I3aa266342f20754cd26bedc4f0744eda7b7390cc
2020-10-23 13:15:49 +03:00
Tor Lillqvist 5de91a9707 Use correct branding
Change-Id: I3eda38c27e809dd73fa3d39b5e704a211b66fd6c
2020-10-23 13:14:12 +03:00
Tor Lillqvist a115168f46 Remove the ca-VALENCIA localisation for the Settings.bundle in the iOS app
It leads to the app being rejected when uploaded to App Store Connect.
The rejection email says:

    ITMS-90176: Unrecognized Locale - The locale names used in
    localization directories at ('Payload/Mobile.app/Settings.bundle/ca-VALENCIA.lproj')
    are invalid. iTunes supports BCP47 but not the UN M.49
    specification. Refer to the Language and Locale Designations guide
    at https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html
    for more information on naming your language-specific directories.

Change-Id: I0ede85c5cc65c203e93ff4b75e898a3faaef20e2
2020-10-22 09:24:29 +02:00
Tor Lillqvist a57df6387f Use the notebookbar in the iOS app on iPad
(But not on iPhone.)

Change-Id: I0589fd914b2ccdd7a62981ab76c02363d7dcf114
2020-10-22 09:24:20 +02:00
日陰のコスモス d8fd91da86 Translated using Weblate (Japanese)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Japanese)

Currently translated at 23.5% (4 of 17 strings)

Translated using Weblate (Japanese)

Currently translated at 19.6% (21 of 107 strings)

Co-authored-by: 日陰のコスモス <baffclan@yahoo.co.jp>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ja/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/iOS app
Change-Id: I254a098eef9a19da19ebec759459a93f7b6a9034
2020-10-21 14:38:32 +02:00
Andras Timar c614216d46 remove 3 more 0% languages
Change-Id: I307c0b1506f6a540ebd46220c175dfda30b7cac1
2020-10-17 10:12:01 +02:00
koffevar d4788acfe1 Translated using Weblate (Russian)
Currently translated at 60.0% (3 of 5 strings)

Translated using Weblate (Russian)

Currently translated at 94.1% (16 of 17 strings)

Translated using Weblate (Russian)

Currently translated at 47.1% (197 of 418 strings)

Translated using Weblate (Russian)

Currently translated at 89.0% (310 of 348 strings)

Co-authored-by: koffevar <egor.kafisov@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/ru/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ru/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ru/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ru/
Translation: Collabora Online/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
2020-10-13 23:21:25 +02:00
Nnamani Ezinne Martina 230b70cc51 Translated using Weblate (Upper Sorbian)
Currently translated at 100.0% (5 of 5 strings)

Co-authored-by: Nnamani Ezinne Martina <nnamani.ezinne@collabora.co.uk>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/hsb/
Translation: Collabora Online/iOS app
Change-Id: I898facdceda255893afb2ed3957eaefc2c631e54
2020-10-12 09:28:50 +02:00
Rob Pearson dcf903a4ef Translated using Weblate (English (South Africa))
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (418 of 418 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (348 of 348 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (13 of 13 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (English (South Africa))

Currently translated at 100.0% (13 of 13 strings)

Translated using Weblate (English (South Africa))

Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (French)

Currently translated at 100.0% (418 of 418 strings)

Translated using Weblate (English (South Africa))

Currently translated at 100.0% (418 of 418 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (418 of 418 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (418 of 418 strings)

Translated using Weblate (English (South Africa))

Currently translated at 100.0% (348 of 348 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (348 of 348 strings)

Added translation using Weblate (English (South Africa))

Added translation using Weblate (English (United Kingdom))

Added translation using Weblate (English (South Africa))

Added translation using Weblate (English (New Zealand))

Added translation using Weblate (English (New Zealand))

Added translation using Weblate (English (New Zealand))

Added translation using Weblate (English (New Zealand))

Added translation using Weblate (English (New Zealand))

Added translation using Weblate (English (New Zealand))

Translated using Weblate (English (Australia))

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (13 of 13 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (418 of 418 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (348 of 348 strings)

Added translation using Weblate (English (Australia))

Added translation using Weblate (English (Australia))

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/en_ZA/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/en_ZA/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_ZA/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/fr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/en_ZA/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
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/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Change-Id: Ie4076aeaf880c730a7ae836e41496fcc1c38cbd1
2020-10-12 09:25:21 +02:00
Andras Timar 5325a93ec7 Update from Weblate
Translated using Weblate (Chinese (Simplified))

Currently translated at 70.3% (294 of 418 strings)

Translated using Weblate (Dutch)

Currently translated at 62.6% (262 of 418 strings)

Translated using Weblate (Upper Sorbian)

Currently translated at 64.1% (268 of 418 strings)

Translated using Weblate (Basque)

Currently translated at 100.0% (418 of 418 strings)

Translated using Weblate (Greek)

Currently translated at 99.7% (417 of 418 strings)

Translated using Weblate (Danish)

Currently translated at 99.2% (415 of 418 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (418 of 418 strings)

Translated using Weblate (Asturian)

Currently translated at 9.8% (41 of 418 strings)

Added translation using Weblate (Upper Sorbian)

Translated using Weblate (Catalan)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Norwegian Bokmål)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Turkish)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Russian)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Indonesian)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Hungarian)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (French)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (5 of 5 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/ca/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/es/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/fr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/hu/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/nb_NO/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/pl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/ru/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/tr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ast/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ca_VALENCIA/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/da/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/eu/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/hsb/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/zh_Hans/
Translation: Collabora Online/CODE welcome text
Translation: Collabora Online/Help
Change-Id: Ifd1e16a4ae1ad2afc16f21640759e65576d14398
2020-10-12 09:25:21 +02:00
Nnamani Ezinne Martina 67142e0e04 Added iOS translations from Weblate
Translated using Weblate (Amharic)

Currently translated at 40.0% (2 of 5 strings)

Translated using Weblate (Albanian)

Currently translated at 20.0% (1 of 5 strings)

Translated using Weblate (Japanese)

Currently translated at 40.0% (2 of 5 strings)

Translated using Weblate (Hebrew)

Currently translated at 40.0% (2 of 5 strings)

Translated using Weblate (Gaelic)

Currently translated at 40.0% (2 of 5 strings)

Translated using Weblate (Finnish)

Currently translated at 40.0% (2 of 5 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Welsh)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Turkish)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Swedish)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Slovenian)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Slovak)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Russian)

Currently translated at 40.0% (2 of 5 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Norwegian Nynorsk)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Nepali)

Currently translated at 40.0% (2 of 5 strings)

Translated using Weblate (Lower Sorbian)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Korean)

Currently translated at 40.0% (2 of 5 strings)

Translated using Weblate (Kannada)

Currently translated at 20.0% (1 of 5 strings)

Translated using Weblate (Kabyle)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Italian)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Indonesian)

Currently translated at 100.0% (5 of 5 strings)

Added translation using Weblate (Venda)

Added translation using Weblate (Amharic)

Added translation using Weblate (Albanian)

Added translation using Weblate (Japanese)

Added translation using Weblate (Hebrew)

Added translation using Weblate (Gaelic)

Added translation using Weblate (Finnish)

Added translation using Weblate (Catalan)

Added translation using Weblate (Welsh)

Added translation using Weblate (Ukrainian)

Added translation using Weblate (Turkish)

Added translation using Weblate (Swedish)

Added translation using Weblate (Slovenian)

Added translation using Weblate (Slovak)

Added translation using Weblate (Russian)

Added translation using Weblate (Portuguese (Brazil))

Added translation using Weblate (Portuguese)

Added translation using Weblate (Polish)

Added translation using Weblate (Norwegian Nynorsk)

Added translation using Weblate (Nepali)

Added translation using Weblate (Lower Sorbian)

Added translation using Weblate (Korean)

Added translation using Weblate (Kannada)

Added translation using Weblate (Kabyle)

Added translation using Weblate (Italian)

Added translation using Weblate (Indonesian)

Translated using Weblate (Icelandic)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (German)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Galician)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (French)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Esperanto)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Danish)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Croatian)

Currently translated at 40.0% (2 of 5 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (5 of 5 strings)

Added translation using Weblate (Icelandic)

Added translation using Weblate (Greek)

Added translation using Weblate (German)

Added translation using Weblate (Galician)

Added translation using Weblate (French)

Added translation using Weblate (Esperanto)

Added translation using Weblate (English (United Kingdom))

Added translation using Weblate (Dutch)

Added translation using Weblate (Danish)

Added translation using Weblate (Czech)

Added translation using Weblate (Croatian)

Added translation using Weblate (Chinese (Traditional))

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Bulgarian)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Bosnian)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Basque)

Currently translated at 100.0% (5 of 5 strings)

Added translation using Weblate (Chinese (Simplified))

Added translation using Weblate (Bulgarian)

Added translation using Weblate (Bosnian)

Translated using Weblate (Basque)

Currently translated at 20.0% (1 of 5 strings)

Added translation using Weblate (Basque)

Co-authored-by: Nnamani Ezinne Martina <nnamani.ezinne@collabora.co.uk>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/am/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/bg/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/bs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ca_VALENCIA/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/cy/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/da/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/de/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/dsb/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/eo/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/eu/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/fi/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/fr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/gd/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/gl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/he/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/is/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/it/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/kab/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/kn/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ko/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ne/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/nn/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/pl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/pt/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ru/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/sk/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/sl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/sq/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/sv/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/tr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/uk/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/zh_Hant/
Translation: Collabora Online/iOS app
Change-Id: I7614a5fefd0559648c470728836153a07b28d33a
2020-10-12 09:25:21 +02:00
Tor Lillqvist f847897e77 Drop the pressesEnded method that did just logging
It didn't even call the method in the superclass, which surely was
wrong.

Change-Id: I081e3d6650a71c8527b31f1b3fc5f5df9b41379b
2020-10-09 12:33:14 +03:00
Tor Lillqvist 3101e45c21 Fix the describeUIPresses debug output
Change-Id: I806a232e9ec0922b42c5405f707295a05dbf5cd8
2020-10-09 12:33:14 +03:00
Tor Lillqvist 91957175b0 Introduce @available check for -[UIPress key] which is from iOS 13.4
Change-Id: I661a4a57a4e5422f7e5f45d81635d54ea0f330e1
2020-10-09 12:33:14 +03:00
Tor Lillqvist 301c76354c tdf#133279: More hacks to improve keyboard functionality in tunnelled dialogs
When keyboard input has been directed to one text field in a tunnelled
dialog, and the user taps in another field, we (for some unclear
reason) then get a UIKeyboardDidHideNotification, but we do want the
keyboard to stay usable, so make sure that happens.

Change-Id: I6d0ba9ab65027ad1f687b2bc98b2294e061376d5
2020-10-09 10:34:30 +03:00
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 4eea5bd4e8 tdf#129371: Handle Cmd-A, Cmd-C, etc in _COWVKMKeyInputControl
We can't let the normal UIResponder and UITextView mechanism try to
handle the clipboard (well, "pasteboard" is what it is called on iOS
and macOS) commands as the UITextView has no idea about the *real*
document being edited. The paste command in theory might work, but
best to let LibreOffice core handle that, too.

Change-Id: Id130708ceb5718660af26367538a17a14238843b
2020-10-08 20:33:57 +03: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
Andrea Gelmini 9d01540680 Fix typos
Change-Id: I7d487f32ca43e19023760ef3c6bb1683607f93d1
2020-10-07 12:51:08 +02:00
Andras Timar 34bc966d68 change product name
Change-Id: Ic34d324c952364442d3f4f9f0758676ab57c8a9a
2020-10-02 14:18:28 +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 c8b1b8623a tdf#133279: Add another workaround for loleaflet weirdness
Ignore a hide command that quickly followed a display command.

Change-Id: I7be71dbc3ccdffb9db78de4a6b70d59baee14457
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103713
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-09-30 21:28:52 +02:00
Tor Lillqvist a8bee952f2 Add source files from toolkit/source/awt for debugging goodness
Change-Id: I3e912221d6acf4712602ed11e3575d5ed8af6ca7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103705
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103712
2020-09-30 19:06:45 +02:00
Tor Lillqvist 894c51d6d4 Fix warning: block implicitly retains 'self'; explicitly mention 'self' ...
... to indicate this is intended behavior.

Change-Id: Id5318bb20b8066364c5e2fd3b704b5a73bac1b42
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103711
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-09-30 18:36:33 +02:00
Tor Lillqvist 2375cccad5 Change CFBundleShortVersionString to 6.4.0
Change-Id: I953474692323b52a87994e8b30f4a4ea87ce859f
2020-09-28 17:34:39 +03:00
Tor Lillqvist 9b4d246366 Compile C++ for the iOS app as C++17
Needed by headers in core:master now.

Change-Id: I997bcf267ffd74479c04d83c8703e7f520046aa2
2020-09-23 00:02:38 +03:00
Tor Lillqvist 233cc39cf8 Link with the system libsqlite3 (for nss)
Change-Id: I889e87bd288fdf9e4d9f0a02033ef7cd14e5135b
2020-09-22 12:06:04 +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 67c2ca90da Update CollaboraOnlineWebViewKeyboardManager
Update to latest commit, d7f8383603aa156611d901f5f073666ab45d5e6a.

Change-Id: I24c2bf8fed7d692ba8ea747f3384c8e154f7c8af
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101556
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-08-28 19:14:31 +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 f0350a6fa1 We don't check ENABLE_SETCAP in any source so no need to AC_DEFINE it
AC_DEFINE causes it to be in config.h, but there is no code that would
use its definition from there.

It is enough to have AM_CONDITIONAL for it (to enable having 'if
ENABLE_SETCAP' in Makefile.am files) and AC_SUBST it (to enable having
'@ENABLE_SETCAP@' in Makefile.am and *.in files).

Change-Id: Ia00b624114c8139d81bb173c92800ae0a62fec35
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99287
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-23 16:42:36 +02:00
Tor Lillqvist b12ef81626 Add CORE_VERSION_HASH
Change-Id: I9552c742c2c29dddae353e40ab7669fac1197ea5
2020-07-23 15:36:27 +03:00
Tor Lillqvist 14d98c6181 Add a bunch of source files from vcl for breakpointing convenience
Change-Id: I4730ecda8ab7b05fd46b8568dc750d85a8ffa804
2020-07-23 14:04:43 +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
Tor Lillqvist 4a4c5eb7a8 Update the first step
Won't bother with renaming the Objective-C classes I think, just to
keep changes minimal.

Change-Id: I683479fc32275a5ee2a1bc9c28275bc887c42474
2020-07-02 15:40:00 +03:00
Tor Lillqvist 38ea7a44b7 Add musings about a "second generation" of the iOS app 2020-07-01 15:48:44 +03:00
Tor Lillqvist 6971cf578d Add Authorization.cpp and hpp
Surely no point in using that code for the iOS app, though. Hopefullly
eventually some clean way to bypass it wil emerge. Note that this is
just one step towards making the iOS app even build again.

Change-Id: Ia5a8e31fc6195394f02cbf43f2b5291bcfbb398d
2020-07-01 13:02:54 +03:00
Tor Lillqvist 99c96aa263 Add USER_INTERFACE_MODE here, too
Change-Id: Ib029847ba70f709abbb5e2d9d8361b50289523dd
2020-07-01 12:49:20 +03: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 48a5397ff4 Run the 'npm install' at configure time only on Linux
I don't want to make it necessary to have npm on macOS (in the case of
building the iOS app, otherwise Online is Linux-only). I still want to
use the method where the JS bits are built on a Linux machine and
loleaflet/dist is copied over to the Mac where you build the iOS app.

Remove the apparently never seriously used instructions for the other
way from ios/README. If somebody actually *uses* that way for real,
for a longer time, then please reinstate them, and modify
configure.ac, etc.

Change-Id: I22a8ca4746907bb11aad11d7c995b0de2fdbc157
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94815
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-05-26 09:02:14 +02:00
Tor Lillqvist 56afddaba0 Add RequestDetails.cpp and hpp
Change-Id: I084ce2e731073ab69a806d5053c27987b2a8244c
2020-05-15 23:34:01 +03:00
Tor Lillqvist ee99423387 Add an "export options" plist for providing .ipa archives
Change-Id: If8309bf2548290ef9e4edd15eea2287253ffde17
2020-05-15 14:00:56 +03:00
Tor Lillqvist 459cdc9c73 Add source files from framework/source/services
Change-Id: Ic1d905dfbb65d42da577a3d536742ad7c3893db3
2020-05-07 13:44:42 +03: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
Muhammet Kara f507302993 Welcome: Add config for enabling the dismiss button
Change-Id: Ia2fbf066493d91a2b10866e66d11332b5cfc10fa
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92593
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-04-20 20:35:08 +02:00
Tor Lillqvist 4bc181e6c6 Use '#define FOO 0' instead of '#undef FOO' for stuff that is checked with #if
Change-Id: I8141022fc5cb622eeb63e5b28a99f0cd0a7affc4
2020-04-17 17:21:13 +03:00
Tor Lillqvist 53ef0936c1 Add ENABLE_WELCOME_MESSAGE
Change-Id: I54900694bd729419bd9c81ae2e7866b6597c3109
2020-04-17 17:21:13 +03: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 c05f7a4ad0 Argh, had forgotten to commit the s/Document/CODocument/ in the project file
Change-Id: I795d78cddbfbca2d9df17a662ec4800c40b68ace
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91742
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-06 12:54:28 +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
Jan Holesovsky 9978752258 mobile detection: Create a separate device-*.css for the phone/tablet/desktop.
The problem is that the @media-based detection often disagrees with the
JS-based detection which then leads to many problems - most notably that
part of the UI behaves as if it was a tablet, and the other part as if
was a mobile phone, leading to a terrible user experience.

This commit changes it so that there is only one way how to detect if
we are on mobile phone, tablet or desktop: using the JavaScript, and we
will load the appropriate css accordingly.

Only one @media-based rule is converted as an example, the rest will
follow.

Change-Id: Id7bfb58ca12264904b3329db1542ae6b54893f11
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91416
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-31 20:31:49 +02: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 585cf6be86)

Change-Id: I2ea1342980384a8eb81312734747be5e686da347
2020-03-11 14:08:36 +02:00
Tor Lillqvist c6573a08d2 Add StringVector.{cpp,hpp}
Change-Id: I568d4136824fe0b4fcdd0f4bccd15a7c15a5248b
2020-03-10 14:17:31 +02:00
Tor Lillqvist 3de577d2c2 Use the loolkitconfig-mobile.xcu on iOS, too
We can't rename a file in the Xcode project, so copy it to
ios/Mobile/loolkitconfig.xcu in the configure script, and use from
there.

Change-Id: I1e50235c06f528dd24d0d968aaccc994418b57d8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89466
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-02-25 21:40:03 +01: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
Tor Lillqvist 0e797eeb3f Add some more core source files for breakpointing convenience
Change-Id: I829534011e037aac1297a41cdb0e6bf008e1b28b
2020-02-07 09:57:53 +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 cad472f796 Add some more core source files for breakpointing convenience
Change-Id: Ia0f08bca84d98f45484162017bd3019876ab8604
2020-01-27 10:52:29 +02:00
Tor Lillqvist d39a9f84d5 Add sources in sd/source/ui/slidesorter/view for breakpointing convenience
Change-Id: I1f8919f86b64dd6a9f6befec90b13956b2b845d3
2020-01-22 13:39:55 +02:00
Tor Lillqvist 7254183877 Add some source files from sd for easier breakpointing
Change-Id: I2797b8fb8fbeebe73b6536a27733ad5fe2123d50
2020-01-14 13:21:04 +02:00
Tor Lillqvist 948069632d Add source files from svx/source/tbxctrls and svtools/source/config
... to iOS project, for breakpointing convenience.

Change-Id: I3652afe8b833dbe3ec5aff006ef58424626a15a8
2019-12-21 03:37:41 +02: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 481f498dfb)
2019-11-21 10:24:17 +02:00
Tor Lillqvist 6aca28d0f1 Add some more source files to the Xcode project for debugging convenience
(It is, sadly, apparently possible to set breakpoints in advance
(before the code has reached that file) only in files that are listed
in the project.)

Also drop the nonexistent "filter" directory in Resources. (It is
config/filter.)

Change-Id: I96ec9dd8dc4591db9d640b01fb07e807565670cb
2019-11-07 08:45:05 +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 2807f907d9)
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 2990203dff)
Reviewed-on: https://gerrit.libreoffice.org/82020
2019-11-04 15:24:22 +01:00
Tor Lillqvist 1fac53764e Bump iOS Deployment Target to 12.2
Change-Id: Ie4df6293f80bc7568ac76244e9eb4e05cc712d76
(cherry picked from commit 9953f25f55)
2019-11-01 13:00:13 +02: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 d781398991)
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
Tor Lillqvist 39ddc5242d tdf#126974: When we are about to be killed, just exit bluntly
Letting the system call exit() will cause destructors of global C++
objects to be called, and doing that at an arbitrary point in time
will cause a crash. So just call std::_Exit() in the AppDelegate's
applicationWillTerminate: method.

Change-Id: I15d7a761db931a6b7aed588bb407fa0d3b4a9465
(cherry picked from commit 4c2cb838ff)
2019-10-09 14:30:20 +03:00
Tor Lillqvist 0e49800418 tdf#127942: Avoid the WKWebView popup with "Share...", "Add to Photos" etc
Seems that setting allowsLinkPreview to NO for the WKWebView affects
this functionality, too. Was just an educated guess, and it worked!
Single-line fixes to what initially seems like a hard problem are the
best.

Change-Id: Ic88bf53b883d857338c0316188e079e6797a4d76
Reviewed-on: https://gerrit.libreoffice.org/80208
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit c7e38e6348)
2019-10-05 11:41:18 +03:00
Tor Lillqvist a04ddab0bf Set the Presentation of the Document View Controller to fullScreen
Otherwise, on iPadOS 13.1, the document will show up in a view that
doesn't cover all the screen, which looks weird, and also makes our
JavaScript code not realize it is on a tablet, so it uses the
phone-style UI, with toolbar at the bottom, no permanently visible
menu bar etc.

This also contains some other changes made by Xcode to the storyboard
file. The only intentional change was changing the Presentation to
"Full Screen", which added a modalPresentationStyle attribute to the
viewController element of the Document View Controller scene.

Change-Id: If33b53981ce40948c54b9adfe791b88a24c4e97d
Reviewed-on: https://gerrit.libreoffice.org/79558
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit 0ee9b408cd)
Reviewed-on: https://gerrit.libreoffice.org/79565
2019-09-25 18:00:30 +02:00
Tor Lillqvist 18ac97913a There should not be a "filter" directory directly at the top level
Change-Id: Icfc86d57924f655d5d3f3f1245aa011012d898f1
Reviewed-on: https://gerrit.libreoffice.org/78143
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit 48ac27e694)
2019-09-23 11:48:01 +03:00
Tor Lillqvist 02746c398a Add Lotus WordPro Document, the .lwp extension
Note that this is just one step, work is needed elsewhere, too, for
the app to actually manage to open a .lwp document correctly. (Desktop
Collabora Office opens such documents without problems.) As we can't
save this format, set the CFBundleTypeRole to "Viewer".

Change-Id: I5f818bf915a1a9ee607a97424b2437655f8a9d79
(cherry picked from commit 38e6ace9a6)
Reviewed-on: https://gerrit.libreoffice.org/79384
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-09-23 10:44:30 +02:00
Tor Lillqvist cc87beb06b The UTExportedTypeDeclarations for fodt was missing its UTTypeDescription
Change-Id: I1b35b1c1663e59409662eda905c351c7c54ee18a
(cherry picked from commit 0a134d888b)
Reviewed-on: https://gerrit.libreoffice.org/79383
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-09-23 10:44:10 +02:00
Tor Lillqvist f9ed656c19 Fix some indentation glitches and add some comments
Change-Id: I352be04f9ca464f6306269da7263ba7f0a9c490e
(cherry picked from commit 8343d6ac02)
Reviewed-on: https://gerrit.libreoffice.org/79382
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-09-23 10:43:53 +02:00
Tor Lillqvist 94799fbce3 Try to unify the list of localisations with what I use to build LO core
(In the tree where I building the core branch used for the app as
distributed, that is.)

Change-Id: Ice622c79ff9c7f56f4e58f68fe65e5d89696681b
(cherry picked from commit 21dc19f7a2)
Reviewed-on: https://gerrit.libreoffice.org/79381
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-09-23 10:43:01 +02:00
Tor Lillqvist d1087aec26 Prevent the user from zooming the WebView
Does not fix tdf#125383, though. The WebView still can become zoomed
by manipulating a tunnelled dialog as described in the bug report's
comments.

Change-Id: I9af8d826c58e2065e54b42bc35f74436b0d34a90
2019-06-11 17:33:48 +03:00
Tor Lillqvist f94a00ddc9 No need for the emptyTileCache-related setting string here either now
The disk tile cache is now gone also in the collabora-online-4 branch,
so no need to keep the string here in master just to be translated.

Change-Id: Ibd496bee738f64152a5ca7a9634e439289b0cd80
2019-06-10 13:14:12 +03:00
Tor Lillqvist 13e99e83c3 Improve wording for NSCameraUsageDescription
Change-Id: If8fb70b2c87e6abc00cc706cb81c561e28edc254
2019-06-03 17:19:57 +03:00
Tor Lillqvist c2c7d098e5 Typo
Change-Id: Ic5b149f7d3f51c0095ffa975d477df0ed0f183d7
2019-06-03 17:19:52 +03:00
Tor Lillqvist 75347f27e7 Add NSPhotoLibraryUsageDescription, too
Change-Id: Ib46c36a18e84c2b88bed7aef3ec8235b32eb5332
2019-06-03 17:19:46 +03:00
Tor Lillqvist dc1f9a9955 Use a more specific NSCameraUsageDescription
Change-Id: Idc780a3b5dacf0bed5b8c49f758f3fc5696d7338
2019-06-03 17:19:40 +03:00
Tomaž Vajngerl 508a659232 Update ios/README
- instructions how to build POCO
    - fixes the changes made since

Change-Id: I157d23ce914b8afb06ccf6e6c33f8aa12661d1bb
2019-06-03 15:04:53 +09:00
Tor Lillqvist a9dabea550 Add Visio Document, extensions vdx, vsd, vsdm, and vsdx
Together with two one-line changes to core, Visio files now open
(read-only) in the app.

Change-Id: I7dde2f7a8d1960c8fb9154c23e489ccc00a17b2d
2019-05-31 12:52:44 +03:00
Tor Lillqvist ae88fc1052 tdf#124930: Look for settings also in the managed configuration thing
Could not test whether it works, but it is not complicated, so
hopefully yes. Followed the examples from
https://developer.apple.com/videos/play/wwdc2013/301/ and
https://developer.apple.com/library/archive/samplecode/sc2279/Introduction/Intro.html .

The Mobile.plist file is a sample only.

Note that here in the master branch there is no on-disk tile cache, so
no setting for emptying that or not.

Change-Id: I0b8cf8d35930cdf60808d14361378f050cf41037
2019-05-30 11:45:02 +03:00
Tor Lillqvist 2474166351 Add core source files from vcl/ios
Change-Id: I1ca8d3fbf7a63b1965abd6799642854e03c4952d
2019-05-30 11:41:38 +03:00
Tor Lillqvist 199c6e2918 Revert "Get rid of use of GNU libtool" and its follow-up
The change causes problems for people on various sad distros. Oh well,
whatever.

This reverts commit bd00d9fd05.
This reverts commit 054a9cdb04.

Change-Id: Ie439e4c655d02b6f34bdd1a9c1c5b6db6048b653
2019-05-27 10:25:51 +03:00
Tor Lillqvist bd00d9fd05 Get rid of use of GNU libtool
It is is complicated enough to build the iOS app. Requiring GNU
libtool brings with it the risk of polluting the command environment
as there already is a completely different command in macOS with the
same name, /usr/bin/libtool. And as GNU libtool was used only to build
the unit tests for the "normal" server-based Online that are built and
run only on Linux anyway, we don't really need any of the
"portability" that GNU libtool brings.

Without GNU libtool, we compile all the $(wsd_sources) (see
test/Makefile.am) that the unit-* tests use into a single object file,
WsdSources.o. (Because they need to be compiled as PIC we can't use
the already compiled object files for the Online server programs.)
This required some additional minor changes to a few source files.

Change-Id: I20a2c523170376fa4c1a0d9d8d6b693a9779376f
Reviewed-on: https://gerrit.libreoffice.org/72840
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-05-24 09:50:16 +02:00
Tor Lillqvist 058b68fc3e tdf#122281: Prevent the WebView from scrolling
It is presumably possible to do it in the JavaScript, too, and then
the same problem would go away for normal Online viewed in Mobile
Safari, too. But I couldn't figure out how. Googling turned up various
advice that suggested using '-webkit-overflow-scrolling: auto;' for
the body of the page but it didn't seem to help. (I tried adding that
to the style attribute of the body element in loleaflet.html.m4.)

Change-Id: Iac3487a73eca218130583dde9decdb89c316c1fc
2019-05-20 16:25:52 +03:00
Tor Lillqvist a31c7c851c Add some more core source files from sfx2/source/view
Change-Id: I3e7183ecea24ee0282cbd6fa6ad7d457fa5a781c
2019-05-20 16:25:52 +03:00
Tor Lillqvist 8ffd192856 Add also DocumentBroker.hpp for breakpointing convenience
Change-Id: I16e81ea16ad332b72f5af0df91c0249b5a2984f1
2019-05-16 14:59:41 +03:00
Tor Lillqvist d9e5a47058 Introduce new flag to speed up shutdown of the Online plumbing in the iOS app
Spent hours on trying to cleverly use the existing TerminationFlag
(with minor modifications to the code that checks it, and some
additional code to set and reset it), but could not get it to work.
This is simpler, but sure, using a global variable is ugly of course.
At least the new MobileTerminationFlag is very specific in semantics
and only used in the mobile apps.

Change-Id: I0775fdfa7880750ca12c6fd7ec41d3d3ceb2f0ad
2019-05-16 11:44:41 +03:00
Tor Lillqvist 32c1dd0a5d Add more core source files for breakpointing convenience 2019-05-16 11:39:32 +03:00
Tor Lillqvist 420bedaadc Edit ios/README
Point out that in my way, you will (sadly) need GNU libtool for the
running of the autogen.sh script, even if not actually at all
otherwise.

(We should really try to get rid of the need for libtool. A minor
amount of hacking to loleaflet/Makefile.am should be enough.)
2019-05-16 02:17:54 +03:00
Tor Lillqvist f21665f2ac tdf#124981: Fix a few object leaks
The pointer to the DocumentViewController object in the Document class
can be a weak property. This avoids a circular reference.

When the DocumentViewController is being dismissed, remove the script
message handlers and remove the view from its superview. Also, set the
webView property to nil.
2019-04-26 18:04:10 +03:00
Tor Lillqvist bf520d5fa5 Log the timestamp of the template file at its site and of its cached version 2019-04-26 12:04:28 +03:00
Tor Lillqvist db9208d364 tdf#124918: Don't crash on invalid URLs in the template list file 2019-04-26 12:04:20 +03:00
Tor Lillqvist d550944053 tdf#124918: More logging in template download error situations 2019-04-26 12:04:09 +03:00
Tor Lillqvist 4e2ad4d2bc tdf#124918: Allow empty lines in the template list file 2019-04-26 12:04:01 +03:00
Tor Lillqvist 05e4cf90f9 Remove leftovers of loading.html from iOS app project, too
Change-Id: Iecbbbc8ea42c0e26e6dde3f38a57482ad60135d5
2019-04-25 17:25:15 +03:00
Tor Lillqvist 824834dfa8 Turn on Unipoll for the iOS app, too
Change-Id: Ib0b7ac53b7c936e75446004c4581ace415b1dd5c
2019-04-24 13:24:53 +03:00
Tor Lillqvist 60581962af Add branding to the iOS app
A configure argument, --with-iosapp-branding, should point to a
directory containing a branding.css file and possibly other files that
branding.css references, to be bundled and used by the iOS app. The
directory structure ends upp in the app bundle as Branding. The
generated loleaflet.html for the iOS app references
Branding/branding.css unconditionally.
2019-04-22 17:23:20 +03:00
Tor Lillqvist 4cfd2e8744 Bin three unnecessary translatable strings that don't occur anywhere
They for some reason appear when one adds a Settings Bundle to the
project using Xcode, but are not needed, as far as I see

(I already removed a fourth when I added the Finnish localisation.)
2019-04-12 23:06:29 +03:00
Tor Lillqvist bf676c8643 Add a string for translation from the collabora-online-4 branch
... even if it doesn't occur here in master, as the on-disk tile cache is gone.

Change-Id: I1ab5d5edde0386ca4c6c452b1cf4292c30a7e3df
2019-04-12 22:46:33 +03:00
Tor Lillqvist 095c4de38b Experiment with adding localisation of the Settings.bundle
Add a sample Finnish localisation. The localised Root.strings files
are supposed to come from some Pootle-based workflow eventually.

Apparently there is some new and improved way to do localisation in
Xcode 10, "Base localisation", but our project file was created in an
earlier Xcode version and I couldn't figure out how to do it the new
way for Settings.bundle, so I manually added the fi.lproj directory.

I changed the English Root.strings file to be in UTF-8 instead of
UTF-16 (and it still works). (The Finnish one is UTF-8, too.) I added
the strings to be translated from Root.plist into it. That is the file
that should be used as a base for Pootle work, no need to extract
strings from the Root.plist, I think.

Change-Id: I80f1c3199ee14678bb1438e218eb9c2475cd66f8
2019-04-12 21:26:37 +03:00
Jan Holesovsky ea659b3d99 Use the app name more generally, not only on iOS.
Preparation for using it on Android too.

Change-Id: Iee7778b2625a02a98daff5df87c39f4ab1d18144
Reviewed-on: https://gerrit.libreoffice.org/70651
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-04-12 13:44:40 +02:00
Tor Lillqvist e2f48faf14 tdf#123742: Fix lifecycle issues for the "Office" object
Because of the use of std::shared_ptr in lokit_main(), the (singleton)
lok::Office (or LibLibreOffice_Impl) object gets destroyed when
lokit_main() exits. We shouldn't keep our own copy of a raw pointer to
it around. Just call lok_init_2() to get the pointer where we need it.
We don't need to call lok_init_2() already in -[AppDelegate
application:didFinishLaunchingWithOptions:].
2019-03-28 17:28:26 +02:00
Tor Lillqvist 3264f39d48 Add all fonts from instdir/share/fonts
Change-Id: I02765079e34cd9cbc96aea9cf2b72f432473ad0a
2019-03-25 19:17:21 +02:00
Tor Lillqvist cbbb2496ca Truncate the JS expression for logging
Change-Id: Ia287f5e26a80bdf0547128b8b2c9c9aff2ef89cd
2019-03-22 16:37:32 +02:00
Tor Lillqvist ea43fb337a Add source files from sfx2/source/appl for convenience 2019-03-22 16:22:05 +02:00
Tor Lillqvist 25c8ed7897 For iOS, generate the data: URLs for the PNG tiles already in the Online code
(What we cache is also the textual data: URLs even if we store them
using .png file names.)

This avoids the current back-and-forth-encoding: First we
base64-encode the complete binary "tile:" message (one text line
followed by a newline and the binary PNG) to pass to WebKit, then in
the JavaScript snippet passed to WebKit we decode the base64 and turn
it into an ArrayBuffer, and then we unpack the ArrayBuffer and encode
the PNG part to use as a data: URL.
2019-03-22 16:21:51 +02:00
Tor Lillqvist eaa4a7838a Add references to source files from svl/source/items for debugging goodness 2019-03-20 15:21:14 +02:00
Tor Lillqvist 8dce313642 tdf#122543: Ignore duplicate calls to loadFromContents on same Document 2019-03-20 15:20:52 +02:00
Tor Lillqvist 949ca42221 The iOS app now works again
(Except that the tunnelled dialogs don't show up, but they don't show
up in a browser connected to a normal Online 'make run' either at the
moment.)

Change-Id: Ic054b415d5d78572338e20da711a4285584ba330
2019-03-15 09:48:51 +02:00
Tor Lillqvist f60618f0ba Add important note
Change-Id: I9f4a6c8f01c72ec40a38f44a7ac23d22a46d2d83
2019-03-08 13:24:54 +02:00
Tor Lillqvist 8d52cf2c9f Fix iOS build in Xcode: Add header search path for boost
(But note that the iOS app is now completely broken at run-time,
nothing sane shows up.)

Change-Id: I685580bbc0113a075d2cebc54c7af8a3bbca6bd6
2019-03-06 11:03:01 +02:00
Tor Lillqvist 3b2612c20d Add sal/rtl/bootstrap.cxx for breakpointing convenience
Change-Id: I915b714aec4212cff563832772111b804af2bbd3
2019-03-01 16:26:42 +02:00
Tor Lillqvist 5c5a9f5221 Add zcodec.cxx from tools
Change-Id: I6666f08b0bddab02277595190a7127d6f0c3f6f0
2019-02-28 11:22:03 +02:00
Tor Lillqvist 18ca7ee008 Remove superfluous empty line at end of file
Change-Id: Ibdb25392622a12cedc1923c2d88ffe6b6e4f798c
2019-02-26 17:52:58 +02:00
Tor Lillqvist 62ffd2c835 tdf#122584: Implement printing in the iOS app
I don't have an AirPrint printer so I couldn't verify that it actually
prints, but the system print dialog is displayed and shows a preview
correctly, so I am fairly sure it works.

Change-Id: I5e8a704386cd5053b8689dc63f26e545df323193
2019-02-26 17:45:39 +02:00
Tor Lillqvist 76058ac270 Fix crash in iOS app: Just use a raw pointer as the lok_document hack
The lok_document pointer will only be used when it is valid anyway.
Fixes a crash when you open a second document after closing the first.

Change-Id: I362db282e4eccf419b56bf790ea58181594ab0fe
2019-02-26 14:07:59 +02:00
Tor Lillqvist 73ad6c300a Bin some boilerplate comments
Change-Id: Ida0a8279f081d5b9c5d963d7d721e4c7c01f3a9e
2019-02-25 09:14:14 +02:00
Tor Lillqvist ce53efd880 Keep the iOS app bundle version in a file in the build folder, not in git
When you want to build a new version for distribution, bump the
build number in the BUNDLE-VERSION file.

Change-Id: I1e7e55528aef6d3526ce14d070ae96abc5931f38
2019-02-25 09:14:14 +02:00
Tor Lillqvist 4dc340972c tdf#122582: Add slideshow functionality
Requires a couple of corresponding commits in core to its filter
subdirectory.

Change-Id: I3e6353752dd93e021fb6058fff5096f1d648d17e
2019-02-22 21:01:54 +02:00
Tor Lillqvist 6567f50abf Bin leftover declaration of now non-existent function
Change-Id: I62af01bd68657fbce60e4df9df5d3b4a4701d5e0
2019-02-22 21:01:54 +02:00
Jan Holesovsky 4f5e262344 Revert "android: Various fixes to make the sending from the core to JS..."
Lets leave this optimization for later, this is incomplete, and does not
fix the problem which it was originally supposed to address.

This reverts commit bce922e8fd.

Change-Id: I5d2ee19058261c7612d36014181f509604c8acde
2019-02-20 00:38:16 +01:00
Jan Holesovsky bce922e8fd android: Various fixes to make the sending from the core to JS working.
Change-Id: Idc22ccbae1effac9e2db5293703a768e033fd7e9
2019-02-19 10:56:58 +01:00
Michael Meeks b46f027101 iOS: add some alternative brew / pip instructions for local building.
Change-Id: Icefeb848537cefc618170d730d3c0b32e3898de6
2019-02-18 16:44:51 +01:00
Tor Lillqvist 3a43b1a02b Bump CFBundleVersion
Yeah, a bit silly to have to do git commit for these bumps. I should
change things so that CFBundleVersion is taken from some local file in
the build tree, not from a file in git.

Change-Id: I99d68490aa7f084e8cfb34896c3398486bc6f8a2
2019-02-18 12:27:11 +02:00
Tor Lillqvist 8f71365f0f Remove unnecessary leftovers after Michael's removal of the on-disk tile cache
Change-Id: I435679b48f90d2580bb9c5c86a26c9a1d43c5b59
Reviewed-on: https://gerrit.libreoffice.org/67885
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-02-15 21:36:16 +01:00
Tor Lillqvist d81fe29ad0 We don't need discovery.xml in the iOS app any longer either
Change-Id: Id592b58f091607cf2e8c5e951a95aa3a563e8def
2019-02-13 20:00:04 +02:00
Tor Lillqvist 938553b5f9 Put MOBILEAPP in the pre-canned config.h for iOS, too
Change-Id: Ic6a5f6cdf7b3102c8e926040311093a5a727ac3b
2019-02-12 14:39:16 +02:00
Tor Lillqvist f5a93b98cc Bump CFBundleVersion
Change-Id: Iec25e7bbcec101209822c413eb8728b93ce9bfd4
2019-02-04 14:56:27 +02:00
Tor Lillqvist a8de971a59 Fix a couple of typos
Change-Id: Icfaca47c14ad1c76ed45d2ccb362f5f7405c4ca4
2019-01-25 12:02:52 +02:00
Michael Meeks 3be0fd9621 Xcode advice.
Change-Id: Ic323bb2c640cc811250fb2d28e88d50b3d663a0d
2019-01-24 14:21:52 +00:00
Tor Lillqvist f2a2fd15ff Bump CFBundleVersion
Change-Id: Ia5f21b74c16ed40ae8c1b5fd3f4413f0c9152c92
2019-01-08 00:53:38 +02:00
Tor Lillqvist 60a6547085 Add some more core source files for easier breakpointing
Change-Id: I1b958c0fa9ec23aef963c0fc72e9991efe5e51b5
2019-01-07 12:26:19 +02:00
Tor Lillqvist ee2a08095f Add some source files from vcl/source/filter
Change-Id: Id6065ebc4ec40eeeb9f75db619df139d147b3f6f
2019-01-07 12:26:19 +02:00
Tor Lillqvist 3ec92f137e Be less fragile in case of missing resources when downloading templates
It is not enough ot look at the NSError* parameter. Need to check the
HTTP status code, too.

Change-Id: I8db146c77626d4080ef6606999d27e6bb845876c
2018-12-19 13:38:43 +02:00
Tor Lillqvist 9deb186102 Bump CFBundleVersion
Change-Id: I98233b5423e66ebca43426d5cc51af957e31d7b5
2018-12-19 00:13:07 +02:00
Tor Lillqvist b0b2c01a6c Don't crash if there is no WKJavaScriptExceptionMessage
Change-Id: I90b99ba13e06c511334bc085d43d85126808f42f
2018-12-18 20:39:18 +02:00
Tor Lillqvist c909bcd83c Need offapi headers, too, when building against a 6.0 branch or core
Change-Id: I4bce152cd286f66aaed1f8354a21c76a27e771b0
2018-12-18 20:03:52 +02:00
Tor Lillqvist 61bd04fefb Add a way to have templates specific to a customer deployment
Add two settings: One setting "Template list URL" is a string that
should either be empty (the typical case for a random user of the
app), or contain a https: URL. If this setting is empty, only the
templates bundled in the app are provided.

If the "Template list URL" is non-empty, it should be a https: URL
pointing to a text file (or dynamically generated text resource). That
file is downloaded and read when the app starts. Each line in the file
should either be a comment (starting with a hash '#'), or a https: URL
pointing to a template document, that is of type .ott, .ots, or .otp.
That document is downloaded if it hasn't been downloaded already, or
if its time stamp is newer than that of the already downloaded copy.
Also a thumbnail image for the template, formed by appending ".png" to
its URL, is downloaded, if available.

Any previously downloaded templates that aren't mentioned in the list
file are removed.

The intent is that in some managed mass deployment environment, the
mobile device management software would set up this setting, so that
the end-user devices would see the same templates.

Obviously, this URL does not have to point to a static file on a web
server, but could point to some dynamically generated resource on a
web server, that enumerates the templates available on the server and
returns their URLs as a text document.

Another setting is "Empty tile cache next time". This is a toggle. If
toggled on, the next time a document is opened in the app, the tile
cache is emptied (and the toggle is reset off). This is mostly for
potential problem solving, and might be removd later.

Various refactoring to support the new functionality.

Change-Id: Ie2ebf032acb9e43bb1c6f7ae4d0c449ae66eaa05
2018-12-17 22:56:14 +02:00
Tor Lillqvist 600c3a8969 Add a dummy VEREIGN_URL here, too
Change-Id: I01f22ec18a2e56286520bb1f14fcd02bd43352cb
2018-12-13 16:17:12 +02:00
Tor Lillqvist f3f1b1e228 Adapt to LibreOfficeKitClass no longer having the translateGet() method
This is a somewhat temporary quick solution. It bluntly uses the same
code here that I had added for a while as the implementation of
translateGet() for LibreOfficeKitClass in LO core.

Ideally we should have a script here in online to pick the needed
translation from the translations submodule of core and keep them
around even if a translation happens to evaporate from
core/translations. The same idea as in the scripts/unocommands.py, but
I did not yet start modifying or copying that.

Change-Id: I455ad6044e321ef59873d60f8e5f3e7032f2447e
2018-12-13 16:14:42 +02:00
Tor Lillqvist 4d038dc3e4 Bin commented-out #import
Change-Id: I2dc64b95b99d62816be78b3fdf302280714a26f4
2018-12-13 16:14:02 +02:00
Tor Lillqvist 8f1ed48145 Use the new LibreOfficeKit API to localise the template category headers
Change-Id: Icc91138cbe5de290103a746c8797e647259d5009
2018-12-10 22:41:55 +02:00
Tor Lillqvist c65f3e43a1 Fetch the locale already in the AppDelegate's didFinishLaunchingWithOptions
It will be needed by code that runs before the Document object is
created.

Change-Id: I5c4646e08c670b88b6d3a4d38450cc80e11ec402
2018-12-10 22:41:55 +02:00
Tor Lillqvist 2768d8b9fd Bump CFBundleVersion
Change-Id: I0278c745924787fdf5f258bb7d334fa6eef14fc0
2018-12-07 15:28:11 +02:00
Tor Lillqvist deb92ad3ba Finally figured out how to get 200x200 cells in the template collection
Change-Id: Idd977ccf52b2dd0e0aaae08f54f6d902791bcc6d
2018-12-07 11:20:15 +02:00
Tor Lillqvist da45975a5a Make the template collection view look much better
Now it finally looks like I want, but oh boy was that a pain. I am not
sure at all I understand what I am doing in Xcode's Interface Builder.

I tried hard at first to use the cell size 200x220 for the cell size
of the UICollectionView, consisting of a 200x200 UIImageView and a
200x20 UILabel below. But that did not seem to work, it still used a
(default?) size of 150x150. Weird. Anyway, let's commit this state now
that seems to work.

Change-Id: I4021133619fbf62cd633392d93f19c2bbc81311a
2018-12-07 00:09:13 +02:00
Tor Lillqvist 8b106eb312 Look for thumbnails of the templates and show them in the template browser
Add such thumbnails. Rename the presentation templates to not have
colons in their name, as that seems to be problematic for macOS and/or
iOS, sigh. (Shadows of pre-OS X MacOS, where the coln was the path
component separator, not the slash.)

Hack on the storyboard scene for the template browser. More work is
needed there; the thumbnails aren't scaled down for some reason. I
need to make sure the aspect ratio is maintained, too. Maybe to get it
to look like I want I need to do some coding and not just tweak the
storyboard in the Xcode UI designer, sigh.

Change-Id: I959d051352c2f033c8563188155af5281961c7d8
2018-12-06 16:38:50 +02:00
Tor Lillqvist 4c8d0f2e25 Revert "Work in progress: Add .ott"
Using a template has been implemented to work in a way more
appropriate for the platform.

There is little reason to allow direct opening of a template in the
iOS app as long as it don't have any way to save it as an actual
document, based on the template, after editing, (with a different file
name) anyway.

This reverts commit f01a73fa92.

Change-Id: Iff4b2f299c6e6eda27c00e40a49374899af41cf0
2018-12-05 23:41:49 +02:00
Tor Lillqvist 1f0b0b6a0d Bin leftover dummy NSLog() call
Change-Id: I0597be90ff211dfb7f5fd2f321bfb36c9ec01308
2018-12-05 22:13:26 +02:00
Tor Lillqvist 296e0eb803 More work on template selection for a new document
It took quite some time for me to understand how to do it. Not sure if
this is The Right Way, but at least it now works better.

The trick was to store the importHandler block as a property of the
TemplateCollectionViewController and call it when the right template
has been selected.

There is no need to call the importHandler already in the
documentBrowser:didRequestDocumentCreationWithHandler: instance method
and it would not be possible anyway as there apparently is no way to
have the presentViewController:animated:completion: method work in a
truly modal way, so that it would not return until the selection has
been done.

Change-Id: Ia229500c181844fcd99f1f099b2e6744c22b5266
2018-12-05 22:02:59 +02:00
Tor Lillqvist a3b44f2b8b Work in progress on document creation using templates in the iOS app
When the "Create Document" button in the document browser is pressed,
we scan a set of ODF templates in the Templates subfolder of the app
bundle, and we display that list as a collection view. (So far that
view is not interactive, i.e. once it is displayed, you are stuck
there.)

Eventually, when the user chooses one of the templates, we will open
that and immediately, before the user has done any edits, do a Save As
of it as a real (not template) document in the app's document folder.
What name to use for it is unclear yet. Further saves will thus don't
need any dialog to choose the document name.

More work will be needed on i18n of the template support. Should we
have localised templates? At least localised template names. Etc.

Change-Id: I5675779a5b16bc4c70a943109aa0dd53cf4bd903
2018-12-04 22:12:39 +02:00
Tor Lillqvist 14cd0f4e2b Add source files from desktoi/source/lib for breakpointing convenience
Change-Id: I36408e7adcd30b1094c41b23254919df43e6542c
2018-12-04 00:58:53 +02:00
Tor Lillqvist f01a73fa92 Work in progress: Add .ott
Still need to figure out how to ask the user where to save the
documemnt and under what name when closing it.

Or actually, should ask right away, as iOS apps are supposed to be
crash-proof, there shouldn't be any need for any separate "save" or
"close" operation by the user, right?

Change-Id: I6d6b9933f5e21f7793837c7ed65049b82853a183
2018-12-04 00:58:53 +02:00
Tor Lillqvist 191a471e2d Add source files from cppuhelper for breakpointing convenience
Change-Id: I2b61c4b870f944760171a85818f7ecd7883c3e19
2018-12-04 00:58:53 +02:00
Tor Lillqvist e4ddfa313c Bump CFBundleVersion
Change-Id: Idee621d0fa41dd5a65157267da35e245405c125c
2018-11-29 21:13:21 +02:00
Tor Lillqvist e7ef0c29f9 Fix a problem when taking a photo to insert in a document in the iOS app
It turns out that the view of the DocumentViewController object is
removed from the view hierarchy when the camera is displayed, and
re-added after you choose to use the taken photo. Thus the
viewWillAppear: method is called again at that stage. The Document
object is stil quite intact, though. We should not call the Document
object's openWithCompletionHandler: method again, as that will cause
horrible brokenness.

Change-Id: Ib79bd8f292b01a19866278c4d95a2e816dcd9235
2018-11-29 19:21:49 +02:00
Tor Lillqvist d46854680c Also ios/config.h is generated at configure time
Change-Id: I285cadfe037f054a331d4513bf999f10c1ef1ed9
2018-11-29 11:01:50 +02:00
Tor Lillqvist b4e3110d7b Truncate for logging at a bit higher limit
Change-Id: I352ef6476a9cde767b4076ad9a2ab8cf3c9bdf2b
2018-11-29 01:07:03 +02:00
Tor Lillqvist efb883b21c Truncate received message string for logging if necessary
Change-Id: Id71968227236993e4d181370e68523f2bf6118a7
2018-11-29 01:07:03 +02:00
Tor Lillqvist d361c00937 Append an ellipsis if the JS string was truncated for logging
Change-Id: I0bc2efff31e5c8d448e07e2457588fc638fb7a8f
2018-11-29 01:02:28 +02:00