Commit graph

478 commits

Author SHA1 Message Date
Henry Castro
21035bf438 loleaflet: Mimic gtktiledviewer editing
gtktiledviewer is the reference code to enable
editing for calc, writer and impress.
2015-06-11 19:48:08 -04:00
Henry Castro
ba6663d445 loleaflet: Added onkeyup event. 2015-06-10 21:59:09 -04:00
Jan Holesovsky
73974f7397 Fix JavaScript part of the tiles invalidation.
Now it is possible to type in in some cases, but for the full functionality,
tuning together with the server is necessary.
2015-06-10 18:58:34 +02:00
Jan Holesovsky
ecfe65b37f Don't actually create the tiles until after we get them from the server.
When a tile is requested, don't create anything yet, just send the request.
Create the tile after we actually get it from the server.

This is in preparation for the cancellation of the tiles requests.
2015-06-10 18:13:34 +02:00
Tor Lillqvist
f09991e6c8 Don't use TABs for variable assignment lines 2015-06-09 19:34:32 +03:00
Tor Lillqvist
692b971a55 Add tsqueue.h 2015-06-09 19:34:24 +03:00
Tor Lillqvist
6804750463 Don't bother with storing a ref to Application::instance() in a variable in some places 2015-06-09 18:30:21 +03:00
Tor Lillqvist
d3f4ddd355 Use a queue also in the child processes 2015-06-09 18:30:12 +03:00
Tor Lillqvist
8a2329d698 Log the number of tiles requests and replies 2015-06-09 18:30:04 +03:00
Tor Lillqvist
70b1e58f4c Typo 2015-06-09 18:29:55 +03:00
Tor Lillqvist
629ba87139 Add a "canceltiles" message to the protocol and handle it
Implementing this Was harder than I first expected. The basic idea is as
follows: The master process puts each message arriving from a client that
isn't "canceltiles" into a (client-specific) queue. A separate thread that
pulls messages from the queue at its own pace and handles them as
before. Incoming "canceltiles" messages are handled specially, though: The
queue is emptied of "tile" messages.

The above sounds simple but there are several details that were a bit tricky
to get right.
2015-06-09 18:29:48 +03:00
Tor Lillqvist
1954d95e91 Clarify usage message 2015-06-09 18:29:35 +03:00
Tor Lillqvist
a7f2e5aa29 The buffer parameter to handleInput() can be const 2015-06-08 17:56:10 +03:00
Henry Castro
007ebda88c Fixed cursor position. 2015-06-06 18:17:37 -04:00
Jan Holesovsky
6df02b89d2 Enable editing in master again. 2015-06-05 16:03:06 +02:00
Tor Lillqvist
391d17831d Bump minor number in this master branch 2015-06-05 16:28:49 +03:00
Tor Lillqvist
316bfe487d Correct documentation for _docURL 2015-06-05 13:05:51 +03:00
Tor Lillqvist
ea2141ffe7 Take the tile cache directory as an option, too 2015-06-04 17:09:19 +03:00
Tor Lillqvist
314a9ba826 We want --localstatedir=/var on Debian 2015-06-04 15:53:19 +03:00
Tor Lillqvist
28d28dd67c Bump version after tarball 2015-06-04 14:20:11 +03:00
Tor Lillqvist
41c5359d82 Bump version for tarball 2015-06-04 14:19:48 +03:00
Tor Lillqvist
6b0ab577ce Add Debian packaging 2015-06-04 13:08:01 +03:00
Tor Lillqvist
9ab0aaed03 Bump version after tarball 2015-06-04 13:08:00 +03:00
Tor Lillqvist
5985d86642 Bump version for tarball 2015-06-03 20:05:15 +03:00
Tor Lillqvist
f1732ba96d Avoid global dtors, just _Exit() 2015-06-03 09:13:22 +03:00
Tor Lillqvist
2312d9a962 Just use Requires instead of PreReq
They mean the same.
2015-06-03 09:13:22 +03:00
Henry Castro
43425c406d The keycode RETURN it is converted to click.
The keypress and keycode = 13 are converted to click event,
so Calc Application does not receive keypress RETURN, It is needed
to commit changes into cell.
2015-06-02 23:49:51 -04:00
Henry Castro
87ea674177 Convert Javascript keycode to UNO keycode 2015-06-02 23:43:18 -04:00
Henry Castro
78764623d8 Added blinking cursor 2015-06-02 23:38:00 -04:00
Henry Castro
afa848cf79 Disable fade animation, it does not work Calc.
When tile invalidation the fade animation set opacity to 0
so the tile is gray out.
2015-06-02 23:13:01 -04:00
Tor Lillqvist
d3ba2cae5b Post-release bump 2015-06-01 20:18:53 +03:00
Tor Lillqvist
3f0bd39a12 Bump version for tarball 2015-06-01 20:17:15 +03:00
Tor Lillqvist
ec681d2cc8 For some reason I can't get the $LOOLWSD_NUMPRESPAWNS to work
Even though it is set in /etc/sysconfig/loolwsd, it expands to nothing when
used in the loolwsd.services file. Oh well. Let's hardcode a value of 5 for
now.
2015-06-01 20:14:40 +03:00
Tor Lillqvist
7848cca80c Try to make this handled by systemd 2015-06-01 19:53:29 +03:00
Tor Lillqvist
bbf844f8da Fix copy/paste error in help message 2015-06-01 19:52:48 +03:00
Tor Lillqvist
a8bbebb4b2 Drop more too specific dependencies 2015-06-01 18:32:04 +03:00
Tor Lillqvist
74b5227dec Drop a few too specific dependencies 2015-06-01 17:55:12 +03:00
Tor Lillqvist
1e8a22d4d6 Bump version to 1.0.31 after "release" 2015-06-01 16:36:42 +03:00
Tor Lillqvist
a59f176929 Bump version to 1.0.30 for tarball 2015-06-01 16:36:42 +03:00
Tor Lillqvist
b317bfb9a0 Add the packages that the TDF build of LO should require (but doesn't)
LibreOffice from TDF, packaged in RPM, does not have proper dependencies as it
is supposed to be usable on different distros and can't know what names are
used for packages for system libraries used, like the one containing
libdbus-glib. But we must have all dependent libraries installed when running
the loolwsd-systemplate-setup command in the %post phase. As this spec file de
facto is for openSUSE 13.2 only anyway, we can find out the package names and
depend on them...

Add the list from running:

rpm -qf --queryformat '%{NAME} ' `find /opt/libreofficedev5.1 -name '*.so' -o -name '*.so.[0-9]*' | while read file; do ldd $file; done | grep -v dynamic | cut -d " " -f 3 | grep -E '^(/lib|/usr)/' | sort -u`
2015-06-01 16:34:58 +03:00
Jan Holesovsky
def78817b0 TiledLayer should not clear the search bar's not found indication. 2015-05-31 21:47:15 +02:00
Jan Holesovsky
4342c5c9fb Don't switch parts when we are in the correct one already. 2015-05-31 14:02:29 +02:00
Jan Holesovsky
0f9e24f77d Disable invalidation for the moment, breaks slides. 2015-05-31 00:38:22 +02:00
Jan Holesovsky
6b743655cc Small addition. 2015-05-31 00:37:20 +02:00
Jan Holesovsky
29ba14178e Kill _abortLoading, causes loss of tiles in various scenarios.
loleaflet only triggers the loading of the tile, and the tile comes sooner or
later whatever we do, so the idea of aborting the loading does not work until
we have server support for that anyway - let's just kill that for now.
2015-05-30 23:34:32 +02:00
Jan Holesovsky
128bfcec10 Never ignore scroll.
After 'make clear-cache', sometimes causes losing scroll events (the user
moves the scrollbar, but the document does not move).
2015-05-30 04:12:03 +02:00
Tor Lillqvist
58e4e15c6a Post-release bump to 1.0.29 2015-05-29 18:36:37 +03:00
Tor Lillqvist
9076ba8a75 Bump version to 1.0.28 for tarball 2015-05-29 18:35:42 +03:00
Tor Lillqvist
b54731fdce We do need to require the LO packages
They need to be installed before loolwsd is installed, because our %post
action needs to know where LO is installed so that it can create the
systemplate and child-roots directories on the same file system where LO
is. Oh this is crazy and over-engineered. I wonder if it makes sense at all to
even consider packaging this loolwsd in some generically useful way, or if it
should be considered a manual thing for customers / users to install and
configure.

Sadly the TDF builds of LO use the version number in the package names, so we
can't depend on *some* TDF build of LO (like >= 5.0), but must have a specific
version in this spec file. Sigh.
2015-05-29 18:31:53 +03:00
Mihai Varga
865f23d4e7 Use SearchItem.SearchStartPoint 2015-05-29 14:18:39 +03:00