Commit graph

23 commits

Author SHA1 Message Date
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