Commit graph

17880 commits

Author SHA1 Message Date
Tor Lillqvist
e50f243897 Let's not over-complicate this 2015-05-19 07:52:42 +03:00
Mihai Varga
c2f0b5b17d Pressing enter always searcheas forward 2015-05-18 18:03:26 +03:00
Mihai Varga
51bbdd91ed Prevent document from jumping when zooming 2015-05-18 17:40:55 +03:00
Mihai Varga
a4391c1017 Fix for stack size limit exceded 2015-05-18 16:10:24 +03:00
Mihai Varga
428f6dbe6f Match the background color with what LOkit provides 2015-05-18 15:34:21 +03:00
Tor Lillqvist
058416b9d7 Handle arbitrarily large tile: messages from child to parent
The parent currently uses a fixed-size 100000 byte buffer to receive
messages. Even with a tile size of 256x256 pixels, that is not enough for some
tiles that compress badly as PNG. Add a nextmessage: message that gives the
size of the immediately following message. Send a such before each tile:
message, and handle it appropriately. The nextmessage: message is used only
from child to parent process, it is never sent to the Websocket client.

Once Poco 1.6.1 is released, this will not be necessary.
2015-05-18 11:24:32 +03:00
Mihai Varga
40552d424c Clear selections when the search string is modified 2015-05-18 10:37:20 +03:00
Mihai Varga
249d8fdaf6 Finished the parts control 2015-05-18 10:30:51 +03:00
Mihai Varga
e55d216708 No search result -> the search bar flashes red
This still needs work because the search bar will flash
if the user clicks on the map and doesn't select anything.
This will need a proper 'no-result-found' message from the server
2015-05-18 09:15:23 +03:00
Mihai Varga
b482dabe37 Alert when there is a connection error 2015-05-15 18:35:05 +03:00
Mihai Varga
cb33fd5035 Added selection border and set the selection color to: #43ACE8 2015-05-15 17:00:43 +03:00
Mihai Varga
94396cf87b Searh next/prev searches the latest enterd value 2015-05-15 16:19:59 +03:00
Mihai Varga
40172d3dd5 'Part' command is now parsed and interpreted 2015-05-15 15:14:02 +03:00
Tor Lillqvist
2d9c526ed0 Build 1.0.4 tarball and bump version to 1.0.5 2015-05-15 14:37:48 +03:00
Tor Lillqvist
230e0ff451 Check whether we need to explicitly link with -lpcre
For instance on Debian, poco is built to use the system pcre.
2015-05-15 14:37:48 +03:00
Mihai Varga
ed5491921a Update scrollbars on window resize 2015-05-15 14:37:14 +03:00
Tor Lillqvist
7cb553841c Build 1.0.2 tarball and bump version to 1.0.3 2015-05-15 13:39:10 +03:00
Tor Lillqvist
f4eccc714a Include also headers in the tarball 2015-05-15 13:39:10 +03:00
Tor Lillqvist
5c6cb156f9 Delete those bundled LOKit headers we don't actually use 2015-05-15 13:39:10 +03:00
Mihai Varga
fe40e3d592 Less space between the toolbar and the document 2015-05-15 13:07:05 +03:00
Mihai Varga
a3cc8784fb Text mouse cursor (editing cursor) 2015-05-15 13:06:43 +03:00
Mihai Varga
ab86440cb2 Prevent img drawing on mozilla 2015-05-15 12:46:01 +03:00
Mihai Varga
c057a42063 Working text selection by mouse dragging 2015-05-15 12:12:11 +03:00
Mihai Varga
c2c379ac69 Removed unnecessary variables 2015-05-15 12:12:11 +03:00
Tor Lillqvist
d1b7bfeaae Bump loolwsd version to 1.0.1
I have made a pseudo-release tarball (for internal testing purposed) with the
version 1.0.0.

Use the following policy for versioning: When doing a release tarball, bump
the version in configure.ac so that the third (micro) version number is
even. Don't commit that to git, but do run make dist. After you have the
tarball, bump the micro version number again to an odd number. Commit. This
way, anything from git will always have an odd micro version number.
2015-05-15 10:18:48 +03:00
Tor Lillqvist
4bff5fef73 Include LibreOfficeKit headers from today for optional use
Useful when building loolwsd on a system that doesn't have new enough
LibreOfficeKit headers available. (It makes sense to use them only if the
resulting loolwsd will then be run on a system with a new enough LibreOffice
installation anyway.)

Pass the --with-lokit-path=bundled/include configure option to use them.
2015-05-15 10:12:50 +03:00
Mihai Varga
7122e97382 Fixed an unused result compiler error 2015-05-15 09:23:21 +03:00
Tor Lillqvist
e2dc523b11 Bin one pointless line of debugging output 2015-05-13 17:52:20 +03:00
Tor Lillqvist
6d5fb333ee It's url=, not uri= 2015-05-13 17:52:20 +03:00
Tor Lillqvist
1e17966bb9 Drop super-user privileges if using sudo by necessity when debugging
It doesn't work to debug a program that has file capabilities set, it seems,
so to debug the loolwsd master process, one in practice needs to run sudo gdb
on it. But it is not necessarily a good idea to run all of the code as
root. When configured for debugging (--enable-debug), reset real and effective
uid to a non-root one, either one given with an --uid option (typically that
of the developer), or "nobody".
2015-05-13 17:52:20 +03:00
Tor Lillqvist
efd750d2ee Add ENABLE_DEBUG to the config.h 2015-05-13 17:52:20 +03:00
Tor Lillqvist
60801cd014 Be less verbose: don't log messages received 2015-05-13 17:52:20 +03:00
Tor Lillqvist
72304b1593 Send the part number, too (always 0 for now) 2015-05-13 17:52:20 +03:00
Tor Lillqvist
5ea8efe602 Loop through tiles in x direction, too 2015-05-13 17:52:20 +03:00
Mihai Varga
1f073e6219 Fixed unused result compile error 2015-05-13 13:00:33 +03:00
Mihai Varga
906e9e28fc Search scrolls to result if it's out of the viewing area 2015-05-13 12:39:57 +03:00
Mihai Varga
5e4225c860 In fact, it is better not to prefix the url 2015-05-13 12:05:13 +03:00
Mihai Varga
04d2b531a1 Check if file:// is added in the url 2015-05-13 12:01:10 +03:00
Mihai Varga
0a7e20e851 Encode spaces in the URL 2015-05-13 11:54:12 +03:00
Mihai Varga
124de292d1 Updated the text selection handler
And also removed an unnecessary method
2015-05-13 11:17:34 +03:00
Mihai Varga
e4b1624d2b Updated the search bar to send the correct command to the server 2015-05-13 11:17:34 +03:00
Mihai Varga
bc23033537 Fixed tiwps->latlng and backwards conversion 2015-05-13 11:17:33 +03:00
Tor Lillqvist
b6c36e23f3 Improve error handling for documents that can't be opened
Catch IOException when trying to copy the document and send error message.
Otherwise, the exception will just propagate up to handleRequest() and the
connection will be silently closed. Closing the connection is fine as such, I
think, but we need to send an error message first.
2015-05-12 12:44:19 +03:00
Mihai Varga
d78642806a Removed URL tiles specific methods 2015-05-11 17:55:38 +03:00
Mihai Varga
47e301cc92 Parts command from the server is parsed but not yet interpreted 2015-05-11 17:05:03 +03:00
Mihai Varga
4c6d87231c Parts control for switching between parts 2015-05-11 17:05:03 +03:00
Mihai Varga
90b3b32bbc Renamed method to _parseServerCmd 2015-05-11 17:05:03 +03:00
Mihai Varga
13582c7f04 Fixed typo 2015-05-11 17:05:03 +03:00
Tor Lillqvist
c91d77c684 Check that the POCO version used is the one we want
Currently we require the current version, 1.6.0, and as soon as 1.6.1 is out,
I will start requiring that, because I want to use a feature I submitted to
it.

Surround most of configure.ac with AC_LANG_PUSH([C++]) while at it, as this is
all C++ code anyway.
2015-05-11 11:24:27 +03:00
Tor Lillqvist
6393cbfd7d Improve help for --port a bit
It must bit be the port number used for listening for the child processes
contacting the master process.
2015-05-08 21:30:32 +03:00