Commit graph

134 commits

Author SHA1 Message Date
Tamás Zolnai
1fcf34ecf5 Make the presentation toolbar completely hidden
Change-Id: I7f70fbc86f6e38f952c65d14e43da6ac45e25bb9
2018-12-07 12:39:28 +01:00
Jan Holesovsky
b15c81087d toolbar: Make the spreadsheet toolbars completely hidden (Writer, Impress).
Change-Id: I5ee3955d3cc4883153b9811b05e61d3c78dd8884
2018-12-07 12:39:28 +01:00
Szymon Kłos
b95bd06505 Updates related to the close button.
Change-Id: Ied1effd99ae7ae2c57ab2659b1851bf4ba81e9d8
2018-12-07 12:39:27 +01:00
Szymon Kłos
64170351af ui: move menu to the top
Change-Id: I0d2aa53efef34455e90f2eb721f482a1aadca0aa
2018-12-07 12:39:27 +01:00
Henry Castro
21fafe1e58 loleaflet: add a document type logo
Change-Id: Id02191e5070c10affb9157fdafa1a6fe8905517c
2018-12-07 12:39:27 +01:00
Henry Castro
556959dbc8 loleaflet: change the position of the document name label
Change-Id: Ibae74062d79d7ec08a996f927e168c44ad3cf5a3
2018-12-07 12:39:27 +01:00
Tomaž Vajngerl
2861299c77 make vereign server configurable, dynamically show sign. infobar
document_signing_url in loolwsd now accepts a vereign server URL
endpoint. If not provided, the signing functionallity won't be
available.

The document signing infobar is now shown dynamically so by
default it is not shown, but when the users clicks in menu the
"sign document", the infobar is shown (the document-content is
css "top" value is adjusted via JQuery).

Change-Id: I9d5f6b68ba3612eeeb9de28c9c0333b4d1bf41d8
Reviewed-on: https://gerrit.libreoffice.org/64298
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2018-11-29 22:46:07 +01:00
Tomaž Vajngerl
15b8f96009 Vereign login logic and dialogs
This adds various Vereign login dialogs:
- pin code dialog
- QR dialog
- email/sms dialog

Change-Id: I2400c76a7dbbb44ead10f6baaac561a71d3acd7f
Reviewed-on: https://gerrit.libreoffice.org/63837
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2018-11-29 21:47:23 +01:00
Samuel Mehrbrodt
40f80ea149 Change url to work in any version
Change-Id: Ie11c91d36d39b3a3ecc8eda01f556d25d3ef847a
2018-11-29 09:34:37 +01:00
Samuel Mehrbrodt
1dd1865286 framed.html: Use better defaults for URL
so that only the hash code needs to be changed (in normal setups)

Change-Id: Idde78ecc030573612128f0ee8d50ad95333fa72b
2018-11-28 16:46:24 +01:00
Tor Lillqvist
ab67cb58f9 Fix m4 problem introduced by me a month ago
MOBILEAPP does of course not expand to empty if it is not defined as
an m4 macro, it stays as is.

Thanks to samuel_m for noticing.

Change-Id: Ia76062b347627289adab0c1d6635f03850a0f2b3
2018-11-27 13:28:58 +02:00
Tor Lillqvist
fe3832f3c6 Use --with-iosapp-name to set the name displayed in the Help>About dialog
Change-Id: I04b0e7c152ee69b038ec30549c203a54eecf4780
2018-11-27 00:35:57 +02:00
Tor Lillqvist
e7523c9888 Factor out tile pixel size to a global setting
For now the same as before, 256, for both normal Online and mobile
app. If you want to experiment with another value, you only need to
change it in loleaflet.html.m4. I hope.

Note the FIXME in loleaflet/src/core/Socket.js.

Change-Id: Ic881758d7fa70bbfebcf932b7ed6a1da352e375d
2018-11-21 19:42:27 +02:00
Miklos Vajna
a514abff88 document signing: fix disabled case for Calc/Impress
If the document-container has an explicit style attribute, then this
breaks Calc (only Writer was tested before). This restores the correct
Writer/Calc/Impress behavior when the setting is false and keeps correct
behavior with Writer when the setting is true.

Change-Id: I310660e88af4407e521529ec41b5dcb604108bd9
2018-11-12 11:53:42 +01:00
Tor Lillqvist
e0bfd8271b Fix MOBILEAPP fallout from c74c9e39c8
In the mobile app, we don't run loleaflet.html through any filter that
would replace strings like <!--%DOCUMENT_CONTAINER_TOP%-->. We need to
produce a proper loleaflet.html at build time, using m4 for MOBILEAPP
conditionals.

Without this small fix, the loleaflet.html page ended up looking
extremely weird (all white document area), with nothing working.
2018-11-10 00:04:28 +02:00
Tor Lillqvist
4a6120d69b Bin dead code
In a script snippet that is inside an m4 ifdef for the non-MOBILEAPP
case the window.ThisIsTheiOSApp can never be true.
2018-11-09 19:05:33 +02:00
Miklos Vajna
c74c9e39c8 Disable document signing via config setting
It's not too easy to customize CSS, so move the top position of the
document container to loleaflet.html, where it's convenient to handle
this.

JS can dynamically query if the menu item should be there, similar to
the about dialog.

Change-Id: I4b2799a41f8ad31e3a9b4983fd1947d2e0363a2b
2018-11-09 13:56:02 +01:00
Tomaž Vajngerl
1a954fa44d add sign infobar below the toolbar
Change-Id: I7def928b0cacf54f008c9402a9df229423042f48
Reviewed-on: https://gerrit.libreoffice.org/63153
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2018-11-09 09:06:23 +01:00
Henry Castro
c0643e1421 loleaflet: mobile: move button (hamburger/x icon)
Change-Id: If552c5f77cb56818f6762b77f34498eabc267d1a
2018-10-21 12:53:16 -04:00
Tor Lillqvist
61e0d72982 Move framed.doc.html so that it doesn't get removed by 'make clean' 2018-10-17 23:44:59 +03:00
Tor Lillqvist
15bd1dc48c Fix typo 2018-10-17 11:00:28 +03:00
Tor Lillqvist
e15dc044d7 Handle the GTKAPP case, too, in loleaflet
In loleaflet.html.m4, define a macro MOBILEAPP as true if either
IOSAPP or GTKAPP is true.

Set a window.ThisIsAMobileApp property in either case, and
window.ThisIsTheGtkApp in the GTKAPP case.

The checks for ThisIsTheiOSApp in the JS could in fact all be changed
to check for ThisIsAMobileApp instead, as they were all equally valid
for the gtk+ testbed app. For instance, sending WebKit messages to the
app code works the same way in JavaScript both for iOS and
webkit-gtk+. Which is not surprising, I guess, as the underlying
WebKit is the same.
2018-10-17 02:10:14 +03:00
Henry Castro
f94c5e25f6 loleaflet: mobile: fix scrolling the menu bar
Change-Id: Ic0bdbfb825507ab3b09f56627e0218a40fd95172
2018-10-15 12:20:36 -04:00
Tor Lillqvist
7159fcb54d Add Base64ToArrayBuffer() JavaScript function
Used for use sending tiles from the iOS app code to the JavaScript.
2018-09-19 01:06:41 +03:00
Tor Lillqvist
e1978621f3 No need for WOPI stuff in iOS app 2018-09-18 18:07:59 +03:00
Tor Lillqvist
b636098cae Some minor iOS (or mobile in general) app tweaks 2018-09-12 13:34:27 +03:00
Jan Holesovsky
c5259eb7b6 ServiceRoot: Add the serviceRoot to various html and js files.
Change-Id: Ibd9093afa3d1f014c70328446ee42189dd0c2117
2018-09-08 00:12:20 +02:00
Jan Holesovsky
9d07230f8a ServiceRoot: Allow prefixing all the URI paths with a given prefix.
For instances that has to run in a deeper path like
https://server/something/blah/loleaflet/HASH/loleaflet.html.

Change-Id: Idacdaf9087d682fd527c3af2ea45d6b51a33908e
2018-09-08 00:12:15 +02:00
Tor Lillqvist
fb7cc57b0f Work in Progress: Check window.ThisIsTheiOSApp and behave accordingly
First steps to modify behaviour in the app case. No query parameters
or WebSocket messages in that case.

Change-Id: I170d46830bb940c5164af3f62b873672373d8f17
2018-09-07 17:37:54 +03:00
Tor Lillqvist
1ae4a32067 Factor out loleaflet/dist construction for iOS app building
The idea is that on a Linux box you have a tree of online that you
configure with --enable-iosapp. Then running 'make' there will only
create the stuff in loleaflet/dist. That loleaflet/dist can then be
copied to the Mac where you build the iOS app.

(To me, this approach seemed for now simpler than to get all the
PKG_CONFIG etc stuff working that running configure normally requires,
and run all the node, npm, and associated crack, on a Mac.)

Change-Id: Id2e495d0521922d0666fdab5fdcb5fcd460136f1
2018-09-03 17:10:19 +03:00
Andras Timar
199b32fc0f loleaflet: fix Keyboard Shortcuts help localization
Change-Id: I1bbe88a37127fb13cba7c065ce03cb6799c6b7fa
2018-07-31 09:24:50 +02:00
Andras Timar
3984206b69 No need to load l10n framework for a page that appears for fragment of a second
Change-Id: Id23ab66fadb714316cdf73e93501b0cea870880d
Reviewed-on: https://gerrit.libreoffice.org/55850
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2018-06-15 12:34:16 +02:00
Henry Castro
9f456079e1 loleaflet: remove the script tags that they already were bundled them
Change-Id: I791c6c6850b39d5327c5c3c521138531f3a6f148
2018-05-27 09:19:36 -04:00
Henry Castro
8618885b31 use Makefile to build loleaflet
Concatenate and minify all javascript files in the release build but not
in the debug build. Also, it is enabled to use a build directory

Change-Id: Ia120447a827cfe236241ddf188bf43a088f877a7
Reviewed-on: https://gerrit.libreoffice.org/52802
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2018-05-10 20:30:16 +02:00