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
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
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
Currently translated at 100.0% (457 of 457 strings)
Translated using Weblate (Czech)
Currently translated at 100.0% (429 of 429 strings)
Translated using Weblate (Czech)
Currently translated at 100.0% (22 of 22 strings)
Translated using Weblate (Czech)
Currently translated at 100.0% (110 of 110 strings)
Translated using Weblate (Czech)
Currently translated at 100.0% (5 of 5 strings)
Translated using Weblate (Czech)
Currently translated at 100.0% (22 of 22 strings)
Translated using Weblate (Czech)
Currently translated at 100.0% (110 of 110 strings)
Co-authored-by: Pavel Borecki <pavel.borecki@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6e0a781c1be42438c4cd6cf760532d7f78381c49
Currently translated at 62.9% (279 of 443 strings)
Translated using Weblate (Finnish)
Currently translated at 62.3% (276 of 443 strings)
Translated using Weblate (Finnish)
Currently translated at 60.0% (3 of 5 strings)
Co-authored-by: Petri Heinämäki <heinamakipetri@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/fi/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fi/
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2bb7145870bbd061155d41e80b6a2f98ed011778
Currently translated at 80.0% (4 of 5 strings)
Translated using Weblate (Arabic)
Currently translated at 100.0% (457 of 457 strings)
Translated using Weblate (Arabic)
Currently translated at 100.0% (457 of 457 strings)
Translated using Weblate (Hungarian)
Currently translated at 100.0% (443 of 443 strings)
Translated using Weblate (Arabic)
Currently translated at 100.0% (443 of 443 strings)
Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ar/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ar/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ar/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hu/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I90e2cf54c52c16645d580f87887433092a95fa88
Just clean out the whole tmp folder.
This gets rid of copies of edited documents left behind if the app is
killed (or crashes) while editing a document. It also gets rid of
files that NSS loves to leave around. Plus empty folders that are left
even when the app dies normally, i.e. while it isn't editing any
document.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: If1caf8ace666eafc58df981d792f8fbfda8f9ff4
We don't want leaking tiles to take up valuable space on the device.
Not even just while a document is open.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I761c2bb2ab121ee76b5535e96bd5702d0fce6856
Normally (ideally), tiles (.bmp files) are removed as soon as the JS
has displayed them. But occasionally something goes wrong and they are
left behind. (For instance, it seems to happen if the user closes the
document immediately when it shows up.)
Do not leave them on disk until the app starts the next time.
Change-Id: I0c764280a69a16ad3b7b67c329832fd5331c2e1e
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Remove the app's copy of the document after core has saved it and we
have stored the edited version at its real location.
Remove possible leftover tile bitmaps when the app starts.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ibc41be38c2cfb689c532640d148116bc06a248ab
Trying to remove such a "file" caused a crash.
Sure, loleaflet should ideally not send such REMOVE messages at all.
No idea why the image for a tunnelled dialog shows up as a data: URL
and not as a file: URL pointing to a BMP file, like the document
tiles.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I4866ae2c94c626f1947a14353803a9c3d75d5ffa
Modelled on how it is done in core. ProfileZone is derived from
NamedEvent which is derived from TraceEvent. Here we don't keep any
separate ProfileZone.hpp, though.
This was needed to introduce generation of "instant" events here, too.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I6583134e96001641c50339deb4197fca6ab7d5d5
Used for comments added to documents by the user.
The setting, like templateListURL, can be set through a mobile device
management system.
There is no trivial way on iOS for an app to programmatically find out
the name of the user, and that is good from a privacy point of view.
Fixes https://github.com/CollaboraOnline/online/issues/1843
Change-Id: Ie68fcbacf886ec8f1c74021a71879b38d4180c15
Signed-off-by: Tor Lillqvist <tml@collabora.com>