Commit graph

429 commits

Author SHA1 Message Date
Miklos Vajna
cdc0783c27 LOOLWSD: put file we get from convert-to to a temp. dir
Having a URL like file:///tmp/tmp13630baaaaa/test.txt allows retaining
the filename given by the user and still work with a URL.

We could try carrying around a memory buffer, but we would still have to
send it over the WS, so it's easier if we always work with URLs instead.
2015-10-20 15:00:20 +02:00
Miklos Vajna
847c65cb1c LOOLSession: handle file:// in the ToPrisoner saveas input handler 2015-10-20 14:45:00 +02:00
Miklos Vajna
dc56637e11 loolwsd: don't try to exclude jails from tags
Don't pretend that we know where jails will be, the may be elsewhere. If
indexing jails/systemplate is problem, configure them outside the build
tree instead.
2015-10-20 14:18:02 +02:00
Miklos Vajna
4feb29d1df LOOLSession: inform to-client session about completed save-as 2015-10-20 14:03:39 +02:00
Miklos Vajna
cc18cc702f loolwsd: extraft filename from convert-to parameters 2015-10-19 16:03:55 +02:00
Miklos Vajna
f0ba09f3dd LOOLSession: check for 0 _ws 2015-10-19 16:03:55 +02:00
Mihai Varga
0ea00afb99 loolwsd: allow the specification of the mime type 2015-10-16 19:45:57 +03:00
Mihai Varga
d7ceedac54 drop 'part' from downloadas protocol as it is no longer needed 2015-10-16 19:35:31 +03:00
Miklos Vajna
fed0cbc77c loolwsd: -Werror=unused-parameter 2015-10-16 17:45:03 +02:00
Miklos Vajna
9212c1c321 loolwsd: convert-to handler skeleton 2015-10-16 17:38:24 +02:00
Miklos Vajna
63bf9a1329 loolwsd: invert this condition, so it's possible to add other cases 2015-10-16 15:47:39 +02:00
Miklos Vajna
700b7d08b7 loolwsd: allow frame size of 200K
I got:

WebSocketException: Insufficient buffer for payload size 113579

So double the allocated size: that seems to help.
2015-10-16 15:24:19 +02:00
Mihai Varga
84b7b128a0 loleaflet: fullscreen slideshow
We request svg exports for each slide which we then display in fulscreen
2015-10-16 14:07:45 +03:00
Tor Lillqvist
c639e76ac2 bugs.ccu#1248: Copy also locale data into systemplate
Let's hope the files I list is enough to cover both openSUSE 13.2 and
Debian 8.
2015-10-16 12:55:47 +03:00
Miklos Vajna
2cf417f863 loolwsd: update the bundled headers 2015-10-14 16:13:30 +02:00
Mihai Varga
0708e4440f added a part parameter to the 'downloadas' command
We need it to export a specific slide to svg
2015-10-13 20:58:45 +03:00
Tor Lillqvist
7e78f3f0c6 bugs.ccu#1248: If locale is C, set it to en_US.utf8 2015-10-13 20:05:42 +03:00
Miklos Vajna
677de915ff loolwsd: remove redundant LOK_CALLBACK_SEARCH_RESULT_COUNT handling 2015-10-13 14:54:59 +02:00
Miklos Vajna
d19f483085 loolwsd: update the bundled headers 2015-10-13 14:53:30 +02:00
Mihai Varga
c4825f5492 loolwsd: allow cross origin requests 2015-10-12 20:33:29 +03:00
Mihai Varga
51505e1934 add an ID parameter to the downloadas command
We need it to know wheter the user wants to download the file or just
print it, etc
2015-10-09 17:20:18 +03:00
Mihai Varga
676c6d60d1 tdf#94607 downloadAs command that generates an URL for the doc
When requested, the document is exported under
/jail_path/CHILD_ID/user/thedocument/RANDOMDIR/filename
and CHILD_ID, RANDOMDIR and the filename are communicated to the client.

When the client requests
http://server:port/CHILD_ID/RANDOMDIR/filename, the exported document
is served and then RANDOMDIR is removed
2015-10-09 16:11:38 +03:00
Mihai Varga
a4003470e3 loolwsd: update the bundled headers 2015-10-08 16:49:46 +03:00
Mihai Varga
d8fa9d708b handle LOK_CALLBACK_SEARCH_RESULT_SELECTION callback 2015-10-06 18:05:44 +03:00
Mihai Varga
886cdc80df search result count callback handler 2015-10-05 16:44:40 +03:00
Mihai Varga
14dca89150 We now send the mouse button that has been pressed and also they key
modifiers for actions such as ctrl+click or shift+click
2015-10-05 15:04:19 +03:00
Mihai Varga
a0e74cb5c4 loolwsd: update page sizes when the doc size changes 2015-09-30 17:22:00 +03:00
Mihai Varga
34401c94f6 loolwsd: switch to editing dir when invalidating the cursor 2015-09-30 17:17:03 +03:00
Miklos Vajna
7441ffa21a loolwsd: document partpagerectangles command on both directions 2015-09-29 12:55:21 +02:00
Miklos Vajna
80ec8a5b4f loolwsd: parse the partpagerectangles command and cache the values 2015-09-29 12:51:19 +02:00
Miklos Vajna
5d5d41d619 loolwsd: update bundled LOK headers 2015-09-29 12:51:19 +02:00
Miklos Vajna
1feac82b21 loolwsd: implement a 'make tags' 2015-09-29 12:51:19 +02:00
Mihai Varga
eca5a95ecf Bump 'minor' number in version 2015-09-16 18:40:37 +03:00
Henry Castro
8a10a16855 loolwsd: restore interactive testing 2015-09-11 16:31:43 -04:00
Mihai Varga
b278554ba6 loolwsd: update bundled headers 2015-09-10 12:56:32 +03:00
Mihai Varga
d1ecdbc3df loolwsd: parse the commandvalues command and cache the values
The values are chaced in the file named
"cmdValues" + unoCmd + ".txt"
2015-09-09 20:23:49 +03:00
Mihai Varga
aad12a8f2b loolwsd: stop loolwsd service before installing .deb 2015-09-08 16:34:20 +03:00
Mihai Varga
8a371765bc loolwsd: copy /etc/localtime when running systemplate-setup 2015-09-08 13:03:43 +03:00
Mihai Varga
564572e561 loolwsd: also add /etc/host.conf in chroot 2015-09-08 13:03:14 +03:00
Mihai Varga
e17598e866 loolwsd: also copy /etc/nsswitch.conf 2015-09-08 11:31:49 +03:00
Mihai Varga
5396a83c26 loolwsd: copy /etc/hosts when running the server 2015-09-07 15:56:47 +03:00
Mihai Varga
515e6f7fea loolwsd: copy /etc/resolv.conf in the jail
Because sometimes the hostname is not resolved
2015-09-04 18:43:47 +03:00
Andras Timar
289b8646d2 loolwsd: workaround postinstall script failure in docker environment 2015-08-31 12:29:29 +02:00
Henry Castro
0c6c2c8da2 loolwsd: revert update status when switching parts 2015-08-28 01:28:14 -04:00
Henry Castro
b32b407714 loolwsd: add an optional parameter to load url= ...
load part=X url="http" is required to re-establish the connection
2015-08-27 00:18:44 -04:00
Henry Castro
90f790d7ad loolwsd: update status when switching parts 2015-08-27 00:07:11 -04:00
Mihai Varga
1cfd1352ce loolwsd: renamed getStatus/saveStatus to getTextFile/saveTextFile
And added a getStyles method that uses the above methods to cache
document styles
2015-08-19 11:48:49 +03:00
Henry Castro
38c40efbf3 loolwsd: update LibreOfficeKitInit.h
lok: namespace and re-work various types & helper functions.
by Michael Meeks.
2015-08-18 17:31:58 -04:00
Mihai Varga
12ebcd4038 loolwsd: .deb should depend on libreoffice5.0 2015-08-14 11:46:28 +03:00
Tor Lillqvist
baed263003 Check that the LO installation directory exists 2015-08-14 11:31:06 +03:00