Commit graph

7637 commits

Author SHA1 Message Date
Andras Timar
2d067f3887 loleaflet: updated UI pot
Change-Id: Ifa21bf72df9a18de9ad4b824871a7bdb901fa1ab
2018-12-20 16:29:26 +01:00
Jan Holesovsky
2cf0907bff Document /hosting/capabilities.
Change-Id: Ib18d2cc44f0e6b36d9628039457dc09f1d1b4f62
2018-12-20 12:40:35 +01:00
Jan Holesovsky
21e9749d90 capabilities: Encourage use on mobile devices.
Change-Id: Ia090503220d659b5a5daf422eaa7580630bde444
2018-12-20 12:40:35 +01:00
Jan Holesovsky
a877885d9c TemplateSaveAs: Don't forward to the client if not specified.
So that we don't attempt saving as the first thing after opening.

Change-Id: I30864ccdc766ec8843a60b40e991461f1be9cf8f
2018-12-20 12:40:35 +01:00
Jan Holesovsky
f2fcf49b3b checkfileinfo: TemplateSaveAs to trigger PutRelativeFile...
...as the first thing after load.

Change-Id: I8c372ebe0228682d4f1d7cb89fe80ea59455c5bb
2018-12-20 12:40:35 +01:00
Miklos Vajna
bf9a8edcb9 SnapshotData: make members private
Change-Id: Id3ee800cb27f0d536ec1e34a8790aeffa74986af
2018-12-20 08:54:42 +01: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
300b883dc0 Make the 'closemobile' button (at left, looks like '<') work in the mobile app
We now have two places, the handler for the 'closemobile' button and
the handler for the 'closedocument' menu entry, where we have an if
statement that checks window.ThisIsAMobileApp and if so posts the "BYE"
message to the webkit message handler in the app. Possibly we could
move that conditional code into just one place, down into the 'close'
function in L.Socket instead?

Change-Id: Ib8c6adf621945b266fa4ea5f6d66b0022c2ca373
2018-12-19 13:10:19 +02:00
Andras Timar
e3bb12ae92 loleaflet: fix localizable strings in Signing.js
Change-Id: I64a7861e389f2f6be8447aeab476ea253909c47b
Reviewed-on: https://gerrit.libreoffice.org/65409
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2018-12-19 10:09:21 +01:00
Miklos Vajna
a65a528220 TraceFileRecord: make members private
Change-Id: Ie83077b248185d7748423f512b7b61b4945bd779
2018-12-19 09:12:36 +01:00
Tomaž Vajngerl
97512787e3 use the library from the bundle provided by verign
Change-Id: I423bcf788b52a08006c14833ffdadae7bdd6522a
2018-12-19 09:02:17 +01:00
Tomaž Vajngerl
78fb9cca30 vereign upload: use wopi ifilename or create a random one
Change-Id: I0f4b294e6c517459835731c6afcc39f932477c0f
2018-12-19 08:40:27 +01:00
Tomaž Vajngerl
7fcc48cd51 select what format to upload to vereign
Change-Id: I058b2ccd07664c6c4aa00f10f1cd0ac9d8b4dc8c
2018-12-19 07:43:49 +01: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
Tomaž Vajngerl
be9346ddf6 on auth. event check session and list of idents., log known events
Change-Id: Ie668defffa6f3450571df708db27f163789aa848
2018-12-18 17:39:21 +01:00
Tomaž Vajngerl
0c28b32069 additional WOPI endpoint parameter for vereign client library
Change-Id: Iddae25824ca00dcfca8e602c02a72cc60d03431a
2018-12-18 17:39:21 +01:00
Tomaž Vajngerl
1187d5800b Logout even if logout command doesn't return success
It is possible the user is already logged out and the logout
command doesn't return success.

Change-Id: I3f164ad96a388d5c94126540aceaf078082fb9a4
2018-12-18 17:39:21 +01:00
Tomaž Vajngerl
ad1abaaa67 update vereign client library: additional parameter
Change-Id: I1a0dca92ec5b46ce942a68f947cc318f83fd10c5
2018-12-18 17:39:21 +01:00
Miklos Vajna
1dd2f823e9 UnitFuzz: avoid manual std::move()
std::move() is implemented with release + reset in fact.

Change-Id: If5f0dc8f10066a7ee1ca37f7c5039fcd0affb755
2018-12-18 09:14:43 +01: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
Szymon Kłos
323627a8b2 Don't show '>>' in calc's toolbar
Change-Id: I780967325655d25d1a1484c9ffbfb98b2dd5197e
Reviewed-on: https://gerrit.libreoffice.org/65279
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2018-12-17 17:27:30 +01:00
Jan Holesovsky
6c08d7e3c8 capabilities: Add 'version' and 'hasTemplateSaveAs'.
hasTemplateSaveAs is not supported yet.

Change-Id: Ic4af44a38ce6a36fd0bbd63f5d94a860280283cd
Reviewed-on: https://gerrit.libreoffice.org/65260
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-12-17 13:05:14 +01:00
Miklos Vajna
daa3384b53 UnitHTTPServerRequest: make members private
None of this was used by subclasses.

Change-Id: Iaaa3e726e9aabec581f2c0599f65d7513e0a0e07
2018-12-17 09:15:05 +01:00
Andras Timar
3cb37c8607 loleaflet: do not register event handlers multiple times
E.g. users were counted 2x in desktop mode, 3x in mobile mode.

Change-Id: Ia7215558a5f1bef2c053e16b61a02c0f9d96d9c1
2018-12-15 21:53:39 +01:00
Andras Timar
854330b934 loleaflet: when we hide userlist, we should hide userlistbreak, too
Change-Id: I54e85a601b0200ab4f9a1c1e3d4dbd1d7e41a631
2018-12-15 21:30:30 +01:00
Szymon Kłos
a0b31751e3 Fix show/hide toolbar items mechanism
Change-Id: I4afa61123b4b1ed98e67d2b3cac08544b7b99bdb
2018-12-15 20:27:37 +01:00
Jan Holesovsky
768ea32913 toolbar: Allow the mobile / tablet items start in the hidden state.
Change-Id: Iae2dc8a71f729ed0d31bbf3a0428f7010abe9c50
2018-12-15 20:23:43 +01:00
Jan Holesovsky
ad3af4fe9a mobile: Re-introduce the user list in the mobile version.
Revert "loleaflet: remove user list" and several other bits that are
needed for the users list functionality.

Change-Id: Iee294630c2af5240394a848bbce0156d691ef7a0
2018-12-15 19:43:26 +01:00
Andras Timar
d1c019841d loleaflet: use onRemoveView function
Change-Id: I5f2ffda6ee45810fc063b57e8dd9f7a0174a5055
2018-12-15 19:31:05 +01:00
Andras Timar
982777ec38 loleaflet: two missing functions: deselectUser, onRemoveView
Change-Id: I99354e1667baba5f0f1ce10d64e597364057d46c
2018-12-15 16:11:00 +01:00
Andras Timar
2e33cdb9c1 fixup of 892117eb37
Change-Id: I071cb197ebdc9b39026a0ef100720809779bfb2b
2018-12-15 15:57:57 +01:00
Andras Timar
892117eb37 _hideUserList is private
Change-Id: I1cded189783d897fa7aa1c65853dc506518b125e
2018-12-15 15:23:58 +01:00
Szymon Kłos
c5b98a7c89 Don't show 'null' in IE, Correct isArray test
Change-Id: Ic1a34aebc989dd2bf7ab55097f2edf77189883e8
2018-12-15 15:01:19 +01:00
Szymon Kłos
45282b1d59 Replace 'includes' with 'jQuery.isArray'
Change-Id: Idf5a0bc9cbb6850164b21c90bcf98876bc62db68
2018-12-15 14:59:57 +01:00
Szymon Kłos
41413542ce Fix typo in the timeago.js languages
Change-Id: I1776d749fc6a03f70279897285688deafbe71d59
2018-12-15 14:58:25 +01:00
Szymon Kłos
e2b464b237 WOPI: Extend HideUserList property
Added "mobile" | "tablet" | "desktop" values support.
"," is used as a delimiter

Change-Id: Idfa4670f229725dfedfb2d55b622263cbcfd6fc2
2018-12-15 14:55:35 +01:00
Szymon Kłos
f626618882 WOPI: Added HideUserList to CheckFileInfo
Change-Id: Id0f9597d52fb339162a9ce4f622aa39694d1a25e
2018-12-15 14:50:30 +01:00
Tamás Zolnai
abfb9c8ffa Revert "Fix up _addTiles method to handle existing tiles correctly"
This reverts commit 1fd9242dbe.
2018-12-14 18:00:04 +01:00
Tamás Zolnai
209e1cd7ee Handle Special character toolbar item state correctly
The toolbar item should have the same names as the UNO command in lower case.

Change-Id: I68264e7d58cca829084965fb5ea9686a85ccd9cd
2018-12-14 17:59:00 +01:00
Tamás Zolnai
1fd9242dbe Fix up _addTiles method to handle existing tiles correctly
Change-Id: Ic5507d27c7bb0111fcfa2e366018cb67bb9248f8
2018-12-14 16:21:28 +01:00
Miklos Vajna
f38ac3d8ba UnitWOPIDocumentConflict: no c_str() when it'll be converted back to std::string
Change-Id: Ia87598c35f5c8423b22cab0fe8e39fbd1e0818ff
2018-12-14 09:07:22 +01: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
07155e3b53 Revert "Update from core master"
Was reverted in core, too.

This reverts commit cd389cb6b0.
2018-12-13 15:05:32 +02:00
Andras Timar
53394dd3cf PIN code input field should be 'password' type
Change-Id: Ia811eb8b8b410c799034cb1ae6905797dfb32a0b
2018-12-13 09:27:01 +01:00
Miklos Vajna
b773f11bdb WopiTestServer: make members private
Change-Id: If042fab5b69faf7c7dff975a95810cb96d8f02b0
2018-12-13 08:49:09 +01:00
Tamás Zolnai
6c6eaaadf0 Now we need gallery for inserting some special shapes
So copy it from the lotemplate.

Change-Id: I84d1514e5e06ec194e549b36f8db2dc6fdd04f38
(cherry picked from commit 66dcff38a7248fb7facc6d459ac8788882262bb1)
Reviewed-on: https://gerrit.libreoffice.org/65018
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2018-12-12 13:18:48 +01:00