Commit graph

7617 commits

Author SHA1 Message Date
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
Szymon Kłos
30c06fab33 Fix toolbars position
Change-Id: Ib48bc53ebb5230f198de27d80ecffd3e0c4eec2f
2018-12-12 13:39:14 +02:00
Miklos Vajna
d390d646a6 WhiteBoxTests: clean up redundant member initialization
Change-Id: I7b9a4453a94df0a9311bfdb6c0ea3bf8c8e74208
2018-12-12 09:03:15 +01:00
Szymon Kłos
375a1a6078 Don't show '<<' button in the signing toolbar
Change-Id: Ie178add1812735ac4653b0aedab58f70a8b6f0e8
2018-12-11 21:30:18 +01:00
Andras Timar
279301e51d New configure switch --enable-vereign to set the default document signing url
Change-Id: I65225fc5f94a8ad49b75d31ef3535e8479484e69
2018-12-11 12:55:16 +01:00
Miklos Vajna
e9e1db61cc HTTPWSTest::testRenderShapeSelection: this test expects an SVG generated by core 6.0
So avoid the test with newer core, which generates a slightly different
SVG.

Change-Id: I9357530735640a40a176140e26ddeb334cd7e89f
2018-12-11 09:10:43 +01:00
Tor Lillqvist
cd389cb6b0 Update from core master
Change-Id: Iae9ae1d0227a40bfc6de95557bd99210c7e437fa
2018-12-11 00:23:25 +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
Samuel Mehrbrodt
02e7a2680a Remove reference to wrong function name
Change-Id: I7ee24cacfd7facb96419167643202a04ee7adaad
2018-12-10 15:29:29 +01:00
Samuel Mehrbrodt
7047b9b681 Fix Show_Button / Hide_Button
Was broken with 131f3e9b6b

Change-Id: I88e607cb005e3acfc80c12e87db1ac3e1258fb5a
2018-12-10 15:26:47 +01:00
Miklos Vajna
0648d462ff signing: update end point URL suffix to work again
Server-side code was changed.

Change-Id: Icf784a261de66e519f1c6975b70820ef0b6888a0
2018-12-10 10:10:58 +01:00
Miklos Vajna
b1f06d1c0a FileUtil: make fs members private
Change-Id: I921118c42a20117725074169f6425e9ff87bc54b
2018-12-10 08:55:39 +01:00
Andras Timar
d9dee9793b id of Close button on Document signing bar should be unique
Change-Id: Ib4f9d044d8e943de27f36029ce54100d29553604
2018-12-09 23:13:35 +01:00
Andras Timar
9539c212ef loleaflet: enable l10n of Signing Identities dialog
Change-Id: I4b6f5c998c649c6bfe89fc6af1e1f32f39053cbe
2018-12-09 21:53:49 +01:00
Andras Timar
d2dd7c697b Updated Slovenian translation
Change-Id: I136d57aec54487f15762cd2487924c5b8991a133
2018-12-09 17:33:23 +01:00
Andras Timar
60027d3b31 loleaflet: add dsb, fy, and kab translations
Change-Id: I470865ef5cf9d5f239313ae339c23bba36012637
2018-12-09 15:18:57 +01:00
Andras Timar
80597abe3d loleaflet: update pot files
Change-Id: I89c9fd2d98d165a42b31d171cd46e9e35bdb0b34
2018-12-08 16:10:11 +01:00
Andras Timar
8092c3eabd docker: do not install system libpixman, fix RPATH of libcairo
Change-Id: I28c6ee71bca80d1dd65daa02af5d719a94d55034
2018-12-08 16:08:03 +01:00
Jan Holesovsky
e0e55832d0 ui: Unfortunately we have to start with the 'styles' visible even in calc.
The 'hidden: true' is causing trouble, just toolbarUp.show('styles') is
not enough to make them visible ex-post, so for the moment, default to
visible.

Change-Id: If49bcaea3813ae9bcb299b8ab70750d32986a3fe
2018-12-08 00:08:17 +01:00
Szymon Kłos
c984e6c321 Make the toolbar white
Change-Id: I9bcec2ed9c162b84f3f53f9abbeb3616ed1c35c9
2018-12-07 21:52:40 +01:00