Commit graph

232 commits

Author SHA1 Message Date
Patrick Luby
bb6fea0bea Set window.savedUIState to false in iOS app
When building the iOS app, the %SAVED_UI_STATE% does not get
replaced with a quoted string during the build and the resulting
unquoted string causes document loading to stop.

Also, eliminate warnings when running in Xcode by adding missing
CFBundleTypeRole entries in the iOS app's Info.plist.

Signed-off-by: Patrick Luby <guibomacdev@gmail.com>
Change-Id: Ie398955241a078be45af28e54c49387ff673870b
2024-01-01 09:59:40 +01:00
Andras Timar
e29934b944 Bump version to 23.05.6.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If3f6bd3a6b1418d0d1f96308a9356549922ba972
2023-12-04 16:39:02 +01:00
Michael Meeks
b45f4b8f93 spdx: improve machine and human readability of headers.
Change-Id: I71f1421debf31b8c6cd0fd75c0cb45e2563b8a5a
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-11-20 14:30:02 +00:00
DPE
bbb05dcff4 Translated using Weblate (Norwegian Bokmål)
Currently translated at 63.3% (340 of 537 strings)

Translated using Weblate (Norwegian Bokmål)

Currently translated at 61.6% (331 of 537 strings)

Translated using Weblate (Norwegian Bokmål)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Norwegian Bokmål)

Currently translated at 59.4% (319 of 537 strings)

Translated using Weblate (Norwegian Bokmål)

Currently translated at 100.0% (22 of 22 strings)

Co-authored-by: DPE <danpe_jobo@hotmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/nb_NO/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/nb_NO/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nb_NO/
Translation: Collabora Online/Android lib
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iaabb7ffb88433e624d58dad43f3fbadd5aacd681
2023-11-09 10:56:54 +01:00
Andras Timar
1fea2274fb Bump version to 23.05.5.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I54981e3b8ff71be9d47f5ce39ec435ea7a382ab3
2023-10-11 20:29:43 +02:00
Andras Timar
938b8e318b Bump iOS version to 23.05.4
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic77f62cd723dc3d03d7f95e8a7d6f9676646d980
2023-09-12 08:46:25 +02:00
Patrick Luby
805d0cec13 Handle special "direct-" formats
Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I73c2de73d60a444b6cdf3817d3e90e245f239075
2023-09-12 00:49:18 +02:00
Patrick Luby
e7bd50c967 Fix minor iOS build and runtime problems
This patch contains changes to iOS and/or Android code only.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: Ia1461b0b3ca374b682494a7e2e900b832c85ea9d
2023-09-12 00:49:18 +02:00
Andras Timar
85ee03f98f CollaboraOnline#6546 enable automatic color in default paragraph style
use the xml token "use-window-font-color" to toggle auto color on.

https: //github.com/CollaboraOnline/online/issues/6546
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib14b144ce6f593114a8130f5816f479d5cd4fe85
2023-08-10 12:22:26 +02:00
Aron Budea
bfdac84db2 Bump version to 23.05.2.1
Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I5716d9d6556f45185b7b78fa05277403855d0353
2023-07-20 13:32:00 +02:00
Andras Timar
d0149b1426 Bump version to 23.05.1.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I39740fe9b1c30c0a56056435d58eabd3121698bf
2023-06-23 18:55:31 +02:00
Patrick Luby
094183e279 Fix issue #5876 by closing the document if the content process dies
Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I6fc887dd30328395d424a6371ba3603d2c09b607
2023-05-16 09:43:29 +02:00
Patrick Luby
48ddd7c589 Related to issue #5876: don't autorelease large NSStrings
The +[NSString string...] selectors won't be released until
an enclosing autorelease pool is released. But since we use
ARC, we don't know where the compiler has inserted the
autorelease pool so JS messages may not be released until
after a very long time potentially causing an out of memory
crash. So, use the -[[NSString alloc] init...] selectors
instead.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: Iff0be8ee5b322347e746dc030948b82d117c43a1
2023-05-16 09:43:29 +02:00
Patrick Luby
aad344f8a5 Suppress or fix all iOS compiler warnings without changing any code
Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I3a7693ad1d4a7b4873e462a26a9628454884c8c2
2023-05-16 09:43:29 +02:00
Patrick Luby
94469d7b61 Replace deprecated calls
Also, don't set webView.configuration.userContentController to nil as it
generates a "nil not allowed" compiler warning.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: Ibb49228a65f102fa6d97d4e5affafae8ad528c0d
2023-05-16 09:43:29 +02:00
Patrick Luby
0ffa5dc7c1 Reserve the maxiumum possible length after encoding
This avoids an excessive number of reallocations. This is overkill
for non-binary messages, but most non-binary messages appear to be
under 1K bytes in length. In contrast, it appears that binary
messags routinely use at least 75% of the maximum possible length.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I522fe74bc355a78b6b561ec9475a1afb27cf54b2
2023-05-16 09:43:29 +02:00
Patrick Luby
9b2a3d8cc7 Related to issue #5876: reduce excessive copying of message data
Many .png tile messages are very large so avoid using
-[NSString stringByAppendingString:] calls to create the JavaScript
string.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I8163ef93da315122f938c9ed2b66b49a443f283f
2023-05-16 09:43:29 +02:00
Patrick Luby
59de67f0f6 Fix assert failure when running "My Mac (Designed for iPad)" in Xcode
LANG values such as en_US.UTF-8 trigger an assert in the LibreOffice
code so replace all "_" characters with "-" characters.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: Icba29a8e647eaf0887cc801d4b8763ffd821ffbf
2023-05-16 09:43:29 +02:00
Weblate
f9c12c81b1 Added translation using Weblate (Odia)
Added translation using Weblate (Odia)

Added translation using Weblate (Odia)

Added translation using Weblate (Odia)

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib4650906b5ec4b8e707a74f6437c6fa542210f5c
2023-04-21 12:26:49 +02:00
Ram
809dbc5eb3 Translated using Weblate (Malayalam)
Currently translated at 41.8% (46 of 110 strings)

Translated using Weblate (Malayalam)

Currently translated at 40.0% (2 of 5 strings)

Translated using Weblate (Malayalam)

Currently translated at 50.0% (11 of 22 strings)

Co-authored-by: Ram <airavatam@tutanota.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ml/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/ml/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ml/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1eeefe755010bbccb6f70f766883d6206cb09e99
2023-04-17 19:34:40 +02:00
Hamid Mir-Mostafa
e031b1da43 Translated using Weblate (Persian)
Currently translated at 13.6% (3 of 22 strings)

Translated using Weblate (Persian)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Persian)

Currently translated at 10.9% (12 of 110 strings)

Co-authored-by: Hamid Mir-Mostafa <hamidmirmostafa.personal@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/fa/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/fa/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/fa/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4e53a2a35d2c34d03aa1672817cdca21e2a83d4e
2023-04-17 19:34:40 +02:00
Patrick Luby
595076bac9 Move labels and images a little to the right in the "create document" view
Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: Ida0eae13f6b68058a4875a589de7bcbc4b3ab079
2023-03-21 20:56:32 +01:00
Patrick Luby
a2e8d41898 Fix issue #1962 Use UINavigationController to add a cancel button
Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I212cc1c57783731be7cafbcc7efbf926be6b7b1b
2023-03-21 20:56:32 +01:00
Patrick Luby
41bf536169 Partial fix for issue #1962 Dismiss view by tapping outside of the view
Setting modalInPresentation to YES will ignore all events outside of
the view so set self.modalInPresentation to NO.

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I5e886079edec6f7e37676be29bfaa3061e8eb4ae
2023-03-21 20:56:32 +01:00
Patrick Luby
7dd1e505e6 Fix issue #5841 welcome, feedback, and buy product URLs are empty on mobile
Mobile apps don't substitute these values so set them to zero length
strings.

Also, the iOS app sets the base text direction via the "dir" parameter
so add handling of that parameter in cool.html. TODO: check if the
Android and GTK apps need to implement the "dir" parameter to handle
RTL layout.

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: Ied8268ec256011281961ef610d53baeee0efe9cd
2023-03-15 09:29:56 +01:00
Patrick Luby
54ad0f173b Another fix for issue #5843
Limit escaping of non-ASCII text and splitting on the first newline to
only certain message types on iOS.

Also, fix mangled UTF-8 text on iOS in jsdialogs when using languages
like Greek and Japanese by only setting the image bytes for only the
same set of message types.

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I9cd088509ba9724108da3c9457cd3d098b45723f
2023-03-14 21:55:12 +01:00
Patrick Luby
650438283e Fix issue #5843 escape non-ASCII characters only for image data
Passing non-ASCII, UTF-8 text from native to JavaScript works
fine, but images become corrupted if any non-ASCII bytes are
not escaped.

The Socket._extractTextImg() JavaScript function assumes that,
in the iOS app, the first newline separates text from image data
so assume all bytes after the first new line are image data.

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I06f4377bb3b7002a76041a198076decfee9e3733
2023-03-06 18:01:39 +01:00
Patrick Luby
8d15281d35 Partial fix #5885 Close the font picker when a font is tapped
This is a near duplicate of pull request #5898

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: Ib05a285f3642ec0ca745b0c74157190fda5bd3ed
2023-03-06 18:01:39 +01:00
Patrick Luby
23d449b978 Remove template list URL from application settings
Copy pull request #5890 but completely remove the old code in the master
branch

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I69d03bb3f10e756823ba2e32aae0c099c54928c5
2023-03-06 18:01:07 +01:00
Weblate
6406cfc122 Added translation using Weblate (Persian)
Added translation using Weblate (Persian)

Added translation using Weblate (Persian)

Added translation using Weblate (Persian)

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I69ea7181f2ae9c640262866d436722bf3bc27810
2023-03-06 13:17:28 +01:00
Patrick Luby
24a74c7165 Bump version to 23.05.0
Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: Ib3ae781ec258583c9312459b59ce6aeecb005f47
2023-02-20 21:33:13 +01:00
Weblate
406251e4c0 Added translation using Weblate (Belarusian (latin))
Added translation using Weblate (Belarusian (latin))

Added translation using Weblate (Belarusian (latin))

Added translation using Weblate (Belarusian (latin))

Added translation using Weblate (Belarusian (latin))

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I89ef368a3db30a20d21494771ec00bcd97f7f419
2023-02-13 10:51:37 +01:00
Tor Lillqvist
be4dc66e00 Add a cross-referencing comment
Signed-off-by: Tor Lillqvist <tml@iki.fi>
2022-11-08 14:42:51 +02:00
Tor Lillqvist
3fe40c13d0 Bump CFBundleShortVersionString to match configure.ac
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I76e35aad4115ad4dd7ddcd60b579d16ee3aa58d2
2022-11-03 16:41:12 +02:00
이정희
7b952487f4 Translated using Weblate (Korean)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Korean)

Currently translated at 100.0% (110 of 110 strings)

Co-authored-by: 이정희 <daemul72@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ko/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ko/
Translation: Collabora Online/Android app
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I684e28d1b6257762ce4fe35a103226dfbea5032b
2022-10-18 21:57:44 +02:00
Besnik Bleta
d27f23b3a5 Translated using Weblate (Albanian)
Currently translated at 7.4% (34 of 459 strings)

Translated using Weblate (Albanian)

Currently translated at 14.6% (67 of 457 strings)

Translated using Weblate (Albanian)

Currently translated at 100.0% (5 of 5 strings)

Co-authored-by: Besnik Bleta <besnik@programeshqip.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sq/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/sq/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sq/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I455691b982eedd8c88685d788e869d83d2bf05d6
2022-10-07 17:05:55 +02:00
Yunusemre Şentürk
796925d5d7 ios: Rule out LIBO_VERSION checking on master
Signed-off-by: Yunusemre Şentürk <yunusemre@collabora.com>
Change-Id: I28cdba1b82d391cf4d847c6e2e40f8e08d928519
2022-09-08 09:30:24 +03:00
Miklos Vajna
616e9200d1 ios: register our script message handler as 'lok', not 'cool'
core.git supports both since commit
4063dcdc7305177b167bd20b009b1dfede8b25ec (Revert naming back to lool to
fix break with LibreOffice Online, 2022-08-26), let's go with the API
name, not with the product name.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I204c4728628579edeb23d5ba76af4bb878130203
2022-09-06 20:30:25 +03:00
Andras Timar
a149398e97 Bump version to 22.05.5.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9813fc25355b766c82fc5723b906828bd98fe404
2022-08-01 09:03:28 +02:00
Tor Lillqvist
2b84a35fe8 Also binary data is now pased through send2JS
We store each byte as one character, i.e. UTF-16 unit, in the string.
Yes, this is inefficient.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I75cc211d7a8da98a4e0e5b5b3d000e7ed66c271e
2022-07-18 16:57:10 +01:00
Andras Timar
5f985bef68 Bump version to match configure.ac
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I80f38a205f3a3b66ecb698f7f7fb7af5824919db
2022-07-11 20:22:43 +02:00
Sebastiaan Veld
d1f6a55818 Translated using Weblate (Dutch)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (110 of 110 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/nl/
Translation: Collabora Online/Android app
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I30a8c5bd4f185a956b3ac0b31410c1bae2cd571d
2022-06-27 15:47:02 +02:00
Sebastiaan Veld
6f4c4a3738 Translated using Weblate (Dutch)
Currently translated at 100.0% (457 of 457 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (455 of 455 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (457 of 457 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (455 of 455 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4ad42f81a439d04a053b18b5669ba6f42f116d7b
2022-06-27 13:23:37 +02:00
Tor Lillqvist
dafe863c3a Make the TranslateId things compile against co-22.05
The ifdef conditions seems a bit over-complicated but as long as it
compiles it is good enough for me. I don't remember the details from
my earlier work on this.

Also move the inclusion of svtools/strings.hrc after the inclusion of
L10n.h so that TranslateId gets defined before it is used.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I9a1873dc3676c15c7fb4cde84c0e14bf56653443
2022-04-19 18:15:15 +03:00
Tor Lillqvist
9bae3960da Add ar, he, and sl to match what we use for core
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I4b24955c77807dd6004e8c4c6461b72e988f4b76
2022-04-12 19:10:20 +03:00
Tor Lillqvist
4b7ecde829 When opening an attachment from the Mail app make sure it is opened read-only
Luckily the UISceneOpenURLOptions has a property openInPlace that
seems to be good to use for this. If openInPlace is false, that means
we should open the document read-only.

This is a stopgap fix to avoid the situation where the user does
changes to a document that is an attachment in an email message. Those
changes won't be saved anywhere they could be found later. Better to
keep the document read-only.

The ideal solution would be to ask the user right away where they want
an editable copy of the document to be stored. Later.

Signed-off-by: Tor Lillqvist <tml@iki.fi>
Change-Id: Ifd7d824d4f73cbf458f8597cd0974cf171b35be7
2022-04-12 19:10:20 +03:00
Tor Lillqvist
6d37e4c004 Fix pointer type warning
Signed-off-by: Tor Lillqvist <tml@iki.fi>
Change-Id: I07da296f8ef1533dae0f379a39984609ecce2a76
2022-04-12 19:10:20 +03:00
Tor Lillqvist
46fff02d15 Make it possible again to open documents in this app from other apps like Mail
We keep open documents in the view controller stack. If you already
have one document loaded into this app, and then in Mail select an
attachment or in Files select a document to be opened in this app, it
will be loaded so that when you close it, you will be back editing the
earlier document.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I921907a2cbf8220a45b6dc0f304ba7eaec0befbc
2022-04-12 19:10:20 +03:00
Tor Lillqvist
9bb91a84b4 Comment out leftover NSLog() call
Signed-off-by: Tor Lillqvist <tml@iki.fi>
Change-Id: Ia84c03a68868bcce1aebab36b7da9db1da9e07c4
2022-04-12 19:10:20 +03:00
Tor Lillqvist
add0fe8d1d Give a storyboardIdentifier also to DocumentBrowserViewController
Signed-off-by: Tor Lillqvist <tml@iki.fi>
Change-Id: I4919cbbf26b1b0fba9b790de88725e95b99374ae
2022-04-12 19:10:20 +03:00