Commit graph

379 commits

Author SHA1 Message Date
Henry Castro
6742cd8046 Capture invalidatetiles when keys are pressed
There is a problem with fade and opacity. they
are set to 0.
2015-05-26 23:51:52 -04:00
Henry Castro
9287074b75 Added cursor visible and invalidate cursor 2015-05-26 20:52:35 -04:00
Henry Castro
8d094fbf3f Added keypress function to send keys 2015-05-26 20:37:11 -04:00
Mihai Varga
bd642c3d37 Make the view/edit text in the control unselectable 2015-05-26 20:56:27 +03:00
Mihai Varga
22232e070f Dragging will be handled in the js code 2015-05-26 20:56:27 +03:00
Mihai Varga
77b8e0d126 Edit/View switching handler 2015-05-26 20:56:27 +03:00
Mihai Varga
7b79f0edd5 Control for switching between viewing and editing mode 2015-05-26 20:56:27 +03:00
Jan Holesovsky
029a41ba81 Fix non-debug build. 2015-05-26 10:11:06 +02:00
Jan Holesovsky
bc02be9812 Don't cycle the parts, stop at 0 / max. 2015-05-25 18:43:18 +02:00
Mihai Varga
29d4296d12 Disable prev/next part buttons for the first/last part 2015-05-25 17:52:36 +03:00
Mihai Varga
57cb4fe243 Prune tiles after switching parts 2015-05-25 17:36:18 +03:00
Mihai Varga
bcdf048d6d Merge adjacent selection rectangles into a single polygon
+ the document is scrolled to the average center of the rectangles
if that is out of the viewing area
2015-05-25 16:54:29 +03:00
Henry Castro
d33d1afcf3 Added missing rectangle to invalidate cursor. 2015-05-25 00:40:08 -04:00
Tor Lillqvist
c97b4d4994 Mention the 'help' command, too 2015-05-23 12:02:05 +01:00
Tor Lillqvist
54d1ee6d42 Take the part number too in the 'tile' command and switch to it 2015-05-23 12:01:24 +01:00
Tor Lillqvist
0053f18e2d Handle LOK_CALLBACK_PAGE_COUNT_CHANGED 2015-05-23 11:26:11 +01:00
Tor Lillqvist
25ecb6ce16 Update from latest master 2015-05-23 11:25:42 +01:00
Tor Lillqvist
f7d001ed45 Bin the uid debug output 2015-05-22 17:43:45 +01:00
Tor Lillqvist
180f8fcba0 Pass the --uid option to the child too 2015-05-22 17:42:36 +01:00
Tor Lillqvist
94e29dab1e This approach will not work...
The amount of system frameworks (both public and private) needed by
the LO libraries is staggering. It will not work to try to list them
here. If you are crazy enough to want to run this on OS X, use some
other tool than this script to set up the system template for the
chroot jail. Like mkjail from https://github.com/glvnst/shlibs.
2015-05-22 16:55:05 +01:00
Tor Lillqvist
73505aa550 On OS X libsofficeap.dylib is in Frameworks 2015-05-22 14:40:09 +01:00
Tor Lillqvist
9af39d189a Add some fairly hackish things to make this run better on OS X 2015-05-22 14:34:21 +01:00
Tor Lillqvist
99b7fcdfa8 Include dynamic loader and more system libraries on OS X 2015-05-22 14:34:13 +01:00
Tor Lillqvist
0440a908fa For some reason linking the PkgInfo file fails in OS X
No idea. Does not even work from the command line...  But after
"fixing" this, we run into other weird problems anyway. (Maybe one
needs to use lower-level (Mach) APIs for esoteric stuff like chroot?)
So, getting loolwsd to work on OS X seems unexpectedly hard even
before considering what changes might be needed to LibreOfficeKit. Oh
well.
2015-05-22 12:43:00 +01:00
Mihai Varga
139bae53c1 Fixed the incorrect tile rendering after zooming problem
Leaflet originally discarded tiles from different zoom levels
and I initially thought setting the opacity to 0 will be enough
and this way tiles will remain in cache.
But this does not work so tiles are now removed from the dom tree
and added in a cache to be later reused
2015-05-22 14:35:06 +03:00
Tor Lillqvist
6b12d9e1a8 Make the script work on OS X
Note: No idea yet whether this stuff will work on OS X.
2015-05-22 11:37:40 +01:00
Tor Lillqvist
8612aab7c4 Make this build on OS X
Note that I said build, not work.
2015-05-22 10:57:17 +01:00
Tor Lillqvist
f44b2b4471 Add configure options for where to look for libpng, too 2015-05-22 10:53:43 +01:00
Tor Lillqvist
95b25f2de7 Add a spec file for leaflet to package it
Ugly hack.
2015-05-20 20:46:12 +03:00
Tor Lillqvist
c3e48af0fa Bump version to 1.0.15
Accidentally committed the bump to 1.0.14 on the master branch, too.
2015-05-20 20:14:47 +03:00
Tor Lillqvist
2721706168 Generate the "upstream" loolwsd.spec here from an .in file
So that the version doesn't need to be manually maintained. Downstream
packagers will then have to add release information etc.
2015-05-20 20:12:54 +03:00
Mihai Varga
a59dd5d278 Forgot to remove debugging output 2015-05-20 18:51:15 +03:00
Mihai Varga
19e94da931 Handle 'searchnotfound' command 2015-05-20 16:54:40 +03:00
Mihai Varga
531cccc026 Mouse handlers
It works for: click, dblclick and dragging
2015-05-20 16:54:40 +03:00
Mihai Varga
c62ee92519 Search not found callback handler 2015-05-20 16:54:40 +03:00
Tor Lillqvist
12e0a880f6 Revert "We want 'make dist' to actually create a *source* tarball"
Nah. Trying to package this JS crack in RPM so that it is buildable from
source on openSUSE does not seem easy. Let's just package the deliverables for
now. Those who want to look at sources can use git.

This reverts commit 434550f352.
2015-05-20 16:00:47 +03:00
Tor Lillqvist
434550f352 We want 'make dist' to actually create a *source* tarball
Use 'git archive' of the loleaflet subdirectory.
2015-05-20 14:59:18 +03:00
Tor Lillqvist
3e9531f90a Create a 'lool' user and run the systemplate setup script upon installation
Not sure if this is the right thing to do, but should work for our purposes
for now. If and when somebody else wants to fine-tune this stuff, feel free.
2015-05-19 17:04:24 +03:00
Tor Lillqvist
873e7c5102 Add a Makefile to create a tarball
Not sure whether this makes sense, but for now...
2015-05-19 14:29:55 +03:00
Tor Lillqvist
70c934dd6d Forgot to rename the script in one place 2015-05-19 14:17:46 +03:00
Tor Lillqvist
316a9e8151 Add a spec file, works for openSUSE 13.2 at least
Wonder if it would be good style to expand the spec file from a .in one by the
configury, so that one could use autoconf expansions for the version number in
it?
2015-05-19 14:04:51 +03:00
Tor Lillqvist
d40ba38f9f Build 1.0.12 tarball and bump version to 1.0.13 2015-05-19 13:59:55 +03:00
Tor Lillqvist
92d7256b5d Use dist_bin_SCRIPTS, not bin_SCRIPTS
Otherwise we won't get loolwsd-systemplate-setup in the tarball.
2015-05-19 13:58:53 +03:00
Tor Lillqvist
1459b6956f Build 1.0.10 tarball and bump version to 1.0.11 2015-05-19 13:55:03 +03:00
Tor Lillqvist
bc49cccee2 Log the capabilities after dropping one 2015-05-19 13:54:12 +03:00
Tor Lillqvist
707f7f7f64 Build 1.0.8 tarball and bump version to 1.0.9 2015-05-19 13:51:25 +03:00
Tor Lillqvist
65ab397d34 We need CAP_FOWNER, too, on newer Linuxes to be able to hardlink the LO files
At least when not running as the owner of those files. Refactor the capability
dropping so that we can separately drop the CAP_FOWNER and CAP_SYS_CHROOT
capabilities. The child process never needs CAP_FOWNER and the parent process
never needs CAP_SYS_CHROOT.
2015-05-19 13:48:20 +03:00
Tor Lillqvist
0857397352 Rename the systemplate setup script to better name and install it
It was a bit misleading to have "chroot" in the name of the script as it isn't
a chroot jail as such that the script is setting up, but a *template* that
will be copied (hardlinked) into each chroot jail.

The script should be installed, so that a loolwsd package can include it. We
don't want to loolwsd use to depend on having the sources available,
obviously.
2015-05-19 13:20:16 +03:00
Tor Lillqvist
5cb5c1a935 Build 1.0.6 tarball and bump version to 1.0.7 2015-05-19 10:02:20 +03:00
Tor Lillqvist
e50f243897 Let's not over-complicate this 2015-05-19 07:52:42 +03:00