Commit graph

985 commits

Author SHA1 Message Date
Miklos Vajna
31982808f4 loolwsd: disable -Wshadow with self-built poco
poco itself isn't warning-free wrt. -Wshadow, so we can only use it if
it's at a location where the system suppresses such warnings.
2015-10-28 16:38:57 +01:00
Andrzej Hunt
acb39fc057 fdo#94610 autoscroll document for selection
This works for both the selection "handles"/cursors, and also
for normal (desktop-like?) click+drag selection.
2015-10-28 11:27:02 +01:00
Andrzej Hunt
c249317743 Implement scrollvelocity
This is needed for e.g. fdo#94610
2015-10-28 11:27:02 +01:00
Andrzej Hunt
c10713fac2 Make currently dragged cursor follow map scroll
Previously the cursor would become offset from the mouse position
if the window was scrolled during dragging.

Related: fdo#94610
2015-10-28 11:27:02 +01:00
Miklos Vajna
0fe05e6d91 loolwsd: -Werror=shadow 2015-10-28 10:55:27 +01:00
Miklos Vajna
3d613a443f loolwsd: add paste testcase
Fails with commit cc24463f08 (loolwsd:
wrap lok::Document::paste(), 2015-10-27) reverted.
2015-10-28 10:42:29 +01:00
Miklos Vajna
b5ed22c4d9 loolwsd: avoid filtering out "duplicated" uno commands
Problem since commit 8f48dabf28 (loolwsd:
discard requests that are in the queue already, 2015-07-21), e.g.
"select-all, paste, select-all" doesn't have the same meaning as
"select-all, paste".

Quite possibly the condition should be inverted, and filtering out
should be done only for a few commands, like "tile"; but at least
filtering out "uno" is definitely problematic.
2015-10-28 10:28:27 +01:00
László Németh
b7b9f76007 tdf#94245 fix refused resizing of pictures anchored as characters 2015-10-28 10:12:11 +01:00
Miklos Vajna
094f07af7f loleaflet: add undo/redo buttons to the toolbar 2015-10-27 15:41:15 +01:00
Miklos Vajna
e0409ad20f loleaflet: document the source of icons 2015-10-27 15:10:21 +01:00
Miklos Vajna
8dffdaf949 loleaflet: fix pasting in firefox, too 2015-10-27 14:42:26 +01:00
Mihai Varga
6cd136d526 loleaflet: fixed copying in firefox 2015-10-27 15:38:28 +02:00
Miklos Vajna
3588a2c260 loleaflet: map JS paste to loolwsd paste message 2015-10-27 12:16:33 +01:00
Miklos Vajna
cc24463f08 loolwsd: wrap lok::Document::paste() 2015-10-27 11:53:32 +01:00
Miklos Vajna
c2a681ff4d loolwsd: update the bundled headers 2015-10-26 17:21:15 +01:00
Andrzej Hunt
8ab0b88550 loleaflet: onScrollBy: add support for horizontal scrolling too 2015-10-26 10:36:51 +01:00
Mihai Varga
f03459611a loleaflet: file insert control 2015-10-22 18:40:43 +03:00
Mihai Varga
6e8bd4fdf0 loleaflet: file insert handler
It sends a file to the server to the /insertfile endpoint,
once the file has been saved in the loolwsd choot, loolwsd is then
notified to insert it in the document

TODO: avoid the last roundtrip
2015-10-22 18:38:35 +03:00
Mihai Varga
e5d1d856aa loleaflet: getchildid msg handler 2015-10-22 18:36:38 +03:00
Mihai Varga
58d7c99f19 loolwsd: added getChildId and insertFile methods
getChildId is used to get the chroot's name and insertFile inserts a the
/user/thedocument/insertfile/file_name file in the document
2015-10-22 18:32:19 +03:00
Mihai Varga
28f3555180 loolwsd: insert file HTTP request handler
The client send a file through an http post request, the handler saves
the file in a temporary directory then moves it in the specified chroot
2015-10-22 18:27:29 +03:00
Mihai Varga
e6ce519f1c loleaflet: added a map.print() method
Also renamed the print handler so that it does not interfere with the
new method
2015-10-21 18:49:45 +03:00
Mihai Varga
0fa8f60094 loleaflet: stick the parts preview to the left 2015-10-21 18:49:45 +03:00
Miklos Vajna
011b9092bb loleaflet: fix copying non-ASCII content 2015-10-21 14:51:16 +02:00
Miklos Vajna
9917dd733f HTTPPostTest::testConvertTo: fix accidentel copy&paste 2015-10-21 13:58:50 +02:00
Miklos Vajna
3ed78cce6f loolwsd: add HTTP POST convert-to testcase
Fails with 8f90c38844 (loolwsd convert-to:
implement actual conversion, 2015-10-20) reverted.
2015-10-21 13:51:30 +02:00
Miklos Vajna
443486117a loolwsd: cppunit skeleton 2015-10-21 12:06:02 +02:00
Miklos Vajna
71ce604adb loolwsd: add initial reference.txt to document HTTP POST API 2015-10-20 18:10:40 +02:00
Miklos Vajna
8f90c38844 loolwsd convert-to: implement actual conversion 2015-10-20 15:41:42 +02:00
Miklos Vajna
355362f519 loolwsd convert-to: clean up temp directory in case format would be empty 2015-10-20 15:35:43 +02:00
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
Mihai Varga
7785694d64 loleaflet: downloadAs unit test 2015-10-20 11:54:23 +03:00
Mihai Varga
4ebcc3d2d2 loleaflet: remove event listeners after each test 2015-10-20 11:54:23 +03:00
Mihai Varga
701f0a1ea2 loleaflet: better handle map.remove() 2015-10-20 11:54:23 +03:00
Mihai Varga
7d1918e367 loleaflet: add id paramater to downloadAs method 2015-10-20 11:54:22 +03:00
Mihai Varga
0f9263d76f loleaflet: if window's protocol is file: add http: to download url 2015-10-20 11:54:22 +03:00
Mihai Varga
80c34db3d1 loleaflet: removed unused variable from unit test 2015-10-20 11:54:22 +03:00
Mihai Varga
9b06a0df77 loleaflet: removed the old unit test 2015-10-20 11:54:22 +03:00
Mihai Varga
03ffa4e740 loleaflet: search unit tests 2015-10-20 11:54:22 +03:00
Mihai Varga
7143b86849 loleaflet: parse the integer in the search result message 2015-10-20 11:54:22 +03:00
Mihai Varga
38718c1915 loleaflet: parts and pages unit tests 2015-10-20 11:54:22 +03:00
Mihai Varga
285e625acc loleaflet: initialize the part/page rectangles arrays 2015-10-20 11:54:22 +03:00
Mihai Varga
e5ba1f3860 loleaflet: permissions unit tests 2015-10-20 11:54:22 +03: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
62184cffb4 loleaflet: documented the print event 2015-10-19 11:31:20 +03:00
Mihai Varga
05e81a0edb loleaflet: allow the disabling of the print handler 2015-10-19 11:24:30 +03:00