Commit graph

1000 commits

Author SHA1 Message Date
Jan Holesovsky
2691d88909 Revert "loolwsd: Update systemplate with every startup of the service."
This is not a good idea, it takes too long for systemd, and times out.

This reverts commit b42409c388.
2015-10-30 11:34:41 +01:00
Jan Holesovsky
b42409c388 loolwsd: Update systemplate with every startup of the service. 2015-10-30 10:40:22 +01:00
Andrzej Hunt
b394f337c7 loleaflet: tdf#94609 Support triple and quadruple click selection
Currently probably only supported on desktop (clicking) browsers.
2015-10-29 16:43:38 +01:00
Andrzej Hunt
2879547c67 loleaflet: Implement DomEvent trplclick and qdrplclick support
Browsers only support single and double click, so we need
to do our own trplclick and qdrplclick synthesis.
2015-10-29 16:43:38 +01:00
Andrzej Hunt
a7269e40c3 loleaflet: Cleanup dblclick handling
We only seem to need to send the dblclick event (nCount = 2)
and not an enclosing single click (nCount = 1) too - the single
click is effectively overridden by the double click.

The buttonup calls also had an erronous additional parameter, which
seems to have been added accidentally in:
14dca89150
2015-10-29 16:43:38 +01:00
László Németh
97ac6736f8 tdf#94608 PgUp/PgDown support and some new shortcuts
Ctrl-Home  Jump to the start of the document
Ctrl-End   Jump to the end of the document
Ctrl-Shift-Home  Select from the start of document
Ctrl-Shift-End   Select to end of document
Ctrl-Up arrow    Jump to the previous paragraph
Ctrl-Down arrow  Jump to the next paragraph
Ctrl-Alt-D Insert Endnote
2015-10-29 16:38:44 +01:00
Andras Timar
2d37bbcc20 skip make check for rpmbuild 2015-10-29 16:32:03 +01:00
Andras Timar
3310c03a1a loolwsd: bump version after tarball 2015-10-29 15:53:41 +01:00
Andras Timar
dd1c12fcd6 loolwsd: bump version before tarball 2015-10-29 15:50:46 +01:00
Andras Timar
cd787d50f8 loleaflet: bump version after tarball 2015-10-29 15:50:15 +01:00
Andras Timar
4f750e8b29 loleaflet: bump version before tarball 2015-10-29 15:49:44 +01:00
László Németh
2eaf45351c tdf#94608 Ctrl-Shift-Up/Down for paragraph start/end selections 2015-10-29 10:03:40 +01:00
László Németh
15812c889c tdf#94608 add Ctrl-Shift-Left/Right shortcuts for word selection 2015-10-28 23:53:54 +01:00
László Németh
519084aa37 tdf#94608 add more keyboard shortcuts
Ctrl-0  Text Body
Ctrl-1  Heading 1
Ctrl-2  Heading 2
Ctrl-3  Heading 3
Ctrl-4  Heading 4
Ctrl-5  Heading 5
Ctrl-, or Ctrl-Shift-b Subscript
Ctrl-. or Ctrl-Shift-p Superscript
Ctrl-Space or Ctrl-m   Clear direct formatting
Ctrl-Alt-F  Insert footnote
Ctrl-Alt-m or Ctrl-Alt-c  Insert comment
2015-10-28 19:33:10 +01:00
Miklos Vajna
1409ef11ec loolwsd: allow duplicate messages for all message types expect tile
To be on the safe side, I only allowed "uno" previously, but Mihai
confirmed that the intention was to filter out "tile" duplicates, so
filter out only that.
2015-10-28 17:29:51 +01:00
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