Commit graph

744 commits

Author SHA1 Message Date
Jan Holesovsky
152a7bbb76 loleaflet: No need to ask for tiles for non-current parts.
LibreOffice may trigger invalidation of a part that is not current (eg. during
the part switch).  But as we don't need the old data, discard such requests.
2016-01-19 12:17:24 +01:00
Jan Holesovsky
3f35e2f3ad loleaflet: Share code for updating the parts. 2016-01-19 12:17:15 +01:00
Andras Timar
84bb9a2989 loleaflet: replaced the scrollbars with with version 3.1.3
This solves issues regarding cross-domain iframes.
2016-01-18 19:57:05 +01:00
Jan Holesovsky
ed3be25e01 loleaflet: connect() was actually renamed to initialize(). 2016-01-18 17:03:15 +01:00
Miklos Vajna
8845679d2f loleaflet: enable drop of images 2016-01-18 14:37:44 +01:00
Miklos Vajna
bcf0e2d81f loleaflet: don't attempt to log binary ws frames
There is no correct encoding to create log strings for e.g. binary image
data.
2016-01-18 14:37:44 +01:00
Jan Holesovsky
b632d4e858 loleaflet: Minor tweaks to the look of the column/rows headers. 2016-01-18 13:12:58 +01:00
Jan Holesovsky
dd5a8a7cb4 loleaflet: Fix insertfile after the L.Socket -> this._map.socket change. 2016-01-18 10:37:13 +01:00
Faruk Uzun
3fa796f26a loleaflet: Add dialog to confirm slide deletion
ccu#1423 related.

Change-Id: Ibf6ce88de2742b0277b2df63225f1a3f374de45d
Reviewed-on: https://gerrit.libreoffice.org/21461
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-01-17 19:21:22 +00:00
Henry Castro
3cbaded0d2 loleaflet: adjust document size to map size 2016-01-16 16:57:15 -04:00
Henry Castro
15414a90a0 leaflet: fixed js lint erros in layer/tile/TileLayer.js 2016-01-16 15:36:43 -04:00
Henry Castro
f689dba693 loleaflet: fixed js lint errors misc files 2016-01-16 15:06:50 -04:00
Henry Castro
301bc6dad0 loleaflet: fixed js lint erros in layer/tile/ImpressTileLayer.js 2016-01-16 14:38:50 -04:00
Henry Castro
fc5af4eba2 loleaflet: fixed js lint erros in layer/tile/WriterTileLayer.js 2016-01-16 14:32:47 -04:00
Henry Castro
68a10e3976 loleaflet: fixed js lint erros in layer/tile/CalcTileLayer.js 2016-01-16 14:25:14 -04:00
Jan Holesovsky
42b25715f9 loleaflet: Update the row / column headers on part switch. 2016-01-15 20:42:07 +01:00
Jan Holesovsky
bfc5d4d51f loleaflet: Avoid indexOf, not supported everywhere apparently. 2016-01-15 19:38:15 +01:00
Andras Timar
287768c6bc loleaflet: L.Socket should not be global. (fixup) 2016-01-15 16:38:41 +01:00
Jan Holesovsky
c8a1e7cbca loleaflet: Better naming of the spreadsheet header styles. 2016-01-15 16:29:42 +01:00
Jan Holesovsky
72e12ecae5 loleaflet: Fix off-by-one in the spreadsheet row headers. 2016-01-15 16:29:33 +01:00
Jan Holesovsky
cb105b5e77 loleaflet: Simlify & beautify the column headers too. 2016-01-15 16:29:21 +01:00
Miklos Vajna
d91dd9774a loleaflet: prefer HTML over plain text for drop purposes
We iterate over an array provided by the browser, let's always use HTML
and not plain text, even if the array contains plain text first, and
only then HTML.
2016-01-15 16:06:52 +01:00
Miklos Vajna
82e12a199c loleaflet: fix plain text drop
I don't know yet how to test HTML drop, but probably it needs the same
fix.
2016-01-15 15:51:13 +01:00
Jan Holesovsky
a29a9d37d6 loleaflet: Simlify & beautify the row headers. 2016-01-15 14:44:21 +01:00
Miklos Vajna
1977f07d5c paste: handle data containing newlines
By changing the protocol, so that instead of "paste ... data=<data>",
the client is now expected to send "paste ...\n<data>".
2016-01-15 14:43:59 +01:00
Tomaž Vajngerl
033a066ba7 Don't send unneccesary "tilecombine" on multiple invalidates
It usually happens that we get more "invalidateTiles" requests
from LO for one change. To avoid unnecessary tile rerenders we
remember (in transientInvalidationKeys) all tile keys which we
send to the server for rerendering and don't send the request
for the same tile. This is effective until we get back a
rerendered tile from the server (transientInvalidationKeys is
cleared).

(cherry picked from commit fdd76332db6b9c3b59864132578dc01ce19f0214)
2016-01-15 14:16:15 +01:00
Jan Holesovsky
be46817a6f loleaflet: JS part of the HTML and images dropping.
So far it is commented out, as it needs improvements on the loolwsd side too.
2016-01-15 11:11:14 +01:00
Jan Holesovsky
ce69617fb8 loleaflet: Support for 'drop', 'text/plain' only for now. 2016-01-15 09:24:22 +01:00
Jan Holesovsky
7009ee8e20 loleaflet: Fix paste in Firefox. 2016-01-15 09:00:02 +01:00
Jan Holesovsky
0eb0bec296 loleaflet: Really fire the event on 'this'. 2016-01-14 23:39:57 +01:00
Jan Holesovsky
95bc0d4ebb loleaflet: Fire 'hyperlinkclicked' when the user clicks hyperlink in the doc. 2016-01-14 22:32:18 +01:00
Jan Holesovsky
43417659ad loleaflet: Implement 'id' for errors.
Most of the errors are not interesting for the user (in the sense that they
couldn't do anything about them anyway), for those return just a general
'internal error'; details are still available through the 'cmd' and 'kind'.

The rest have their own 'id'.
2016-01-14 21:30:53 +01:00
Tomaž Vajngerl
c22842442b Send tilecombine command when invalidating tiles
(cherry picked from commit 2f58be7613f2bd663693b7022f7ca5e38f5c1f41)
2016-01-14 13:17:53 +01:00
Jan Holesovsky
9337f96ac5 loleaflet: L.Socket should not be global. 2016-01-14 10:05:04 +01:00
Jan Holesovsky
3cc15e88b9 loleaflet: Update the spreadsheet tabs after inserting a sheet. 2016-01-13 11:52:31 +01:00
Jan Holesovsky
2af63d4b2e loleaflet: Add more commands to the documentation. 2016-01-13 08:54:29 +01:00
Jan Holesovsky
ed7585e4ff loleaflet: Document how to insert a table via .uno: command. 2016-01-12 11:33:37 +01:00
Faruk Uzun
ca33f7e181 loleaflet: ccu#1368 add ctrl+f1 to view & hide comment on cell
In desktop version of Calc; Ctrl+F1 command toggles between
view and hide the comment attached to current cell. This adds
same shortcut to online.

Change-Id: I8d68ab935cc8a76ff8d288c58656c592bfa44eb1
Reviewed-on: https://gerrit.libreoffice.org/21359
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2016-01-12 08:20:23 +00:00
Jan Holesovsky
aca8d673b2 loleaflet: Don't crash on map.remove() when the underlying DOM is gone. 2016-01-11 16:43:40 +01:00
Jan Holesovsky
f646733006 loleaflet: Improve page up / page down handling when viewing only.
Without this, the first PgDown is ignored.

Not sure what the previous code was supposed to handle, but dealing with that
in the LO core seems to me as a better plan, so let's fix it there if
something special is still needed for the use case introduced in
97ac6736f8.
2016-01-09 23:52:40 +01:00
Jan Holesovsky
8043952c84 loleaflet: Strip trailing '/'s from options.webserver. 2016-01-08 12:05:20 +01:00
Miklos Vajna
20488cce86 loleaflet: document border shadow config option 2016-01-08 11:52:33 +01:00
Jan Holesovsky
4c3896c32e loleaflet: No need to use the last zoom in fitWithZoom().
This makes it a stable algorithm.

This reverts commit 749d707c2f2be64424c0f3f9e105f90e22592a41.
2016-01-07 22:56:12 +01:00
Ozcan Esen
f3778421b1 loleaflet: fix fitWidthZoom inconsistency
Change-Id: I511112d05de2b2734d7d2b2f905a3ba797dcca5f
2016-01-07 22:56:12 +01:00
Jan Holesovsky
07a3b6994e loleaflet: Add a button for testing fitWidthZoom(). 2016-01-07 22:56:12 +01:00
Jan Holesovsky
1d99285294 loleaflet: One more place that needs options.webserver. 2016-01-07 22:56:12 +01:00
Jan Holesovsky
558e08af58 loleaflet: Introduce a 'webserver' option for the http access to loolwsd.
When proxying, the websocket may be hidden behind another URL, so this allows
an explicit setting.
2016-01-07 12:36:16 +01:00
Ashod Nakashian
2d385d697e Protocol versioning added and documented
Change-Id: I6e1df89c7330052bd2d442a42c0b24c8ae4facf6
Reviewed-on: https://gerrit.libreoffice.org/21168
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-06 17:06:47 +00:00
Ashod Nakashian
04d263cba0 loleaflet: .gitignore load_test dirs
Change-Id: I03bee4676f50e1e88ffd29c84962d7e5f0977381
Reviewed-on: https://gerrit.libreoffice.org/21155
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-06 14:21:01 +00:00
Ozcan Esen
56ac4eac74 loleaflet: load tiles of the first slide before loading slide thumbnails
and show 180x135 white placeholder image in the thumbnail while waiting
for the actual thumbnail

Change-Id: I768815b5d54e02000718d5a443f820ac665dac60
Reviewed-on: https://gerrit.libreoffice.org/21049
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-04 21:51:04 +00:00