Commit graph

763 commits

Author SHA1 Message Date
Ashod Nakashian
22e129702e loleaflet: extended loadtest timeout to 6s
Change-Id: I6779cf37a9e320369b6dc06be2c691e9f6b99088
Reviewed-on: https://gerrit.libreoffice.org/21756
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-24 21:09:54 +00:00
Marco Cecchetti
a698d6a2d1 loleaflet - fix for multi-line text selection issues
Steps for reproducing the problem:
1) try to select some multi-line text
2) still holding the mouse button pressed move the mouse pointer
outside the browser window
3) release the mouse button
4) move the cursor back over the map.

Expected result: the selection should not change any more after the
mouse button has been released.
Real result: the selection changes when you move the mouse.

The same happens when you move the mouse pointer out of the tiles
covering, even if we are still inside the html document element area
where the map is embedded.

A similar issue occurs in view only mode when you drag the document: in
this case the problem occurs only when you move the mouse pointer out of
the tiles covering, but still inside the html document element area
where the map is embedded.

The behaviour described above is due to the fact that the map container
receives mouse events only when the mouse pointer is over the map.
The implemented fix checks for mouseout events which occur between a
tile element and a non-tile element (such as the the resize-detector
iframe, the scroll-bar container, the selection cursor marker). When
such an event occurs handlers for mousemove and mouseup events are
attached to the HTML document element and to the resize-detector iframe.
In the same way when a mouseover event occurs between a tile element and
a non-tile element such handlers are removed.

It was needed to attach handlers to the resize-detector iframe too since
the HTML document element seems to not be able to receive mouse events
that occur inside the iframe area.

A side effect of this fix is that now the text selection goes on
changing as far as the mouse button is not released even when the mouse
pointer is moved out of the tiles covering.

Since for an iframe the coordinates embedded in a mouse event are
relative to the iframe area, it was needed to implement a workaround in
order to avoid sudden changes in the current selection or in the
document position when the mouse pointer moves out of the map.
2016-01-24 20:19:48 +01:00
Marco Cecchetti
47aeaa62e0 text doc - search - normal search does not discard highlighting
Improved search behavior for text documents:now when a normal search is
performed with the same search string utilized by a previous searchAll
action, search results highlighting is not removed.
2016-01-24 20:19:13 +01:00
Ozcan Esen
b281819ab1 loleaflet: new searchAll for presentation
does not affect regular searches since it caches results only if
(this._docType === 'presentation' && count > 1) and clears cache on
mousedown

Change-Id: I5569424df6e463da0c63166eef36842fa7d32f0e
2016-01-24 20:18:02 +01:00
Andras Timar
bc98b0194e loleaflet: fix Cmd+C / Cmd+X / Cmd+V on OS X Safari 2016-01-24 18:20:30 +01:00
Andras Timar
7e50b73f50 loleaflet: fix Cmd+C / Cmd+X / Cmd+V on OS X Firefox and Chrome 2016-01-24 17:42:19 +01:00
Henry Castro
620fdaf3fb loleaflet: update button modifier on mouse event 2016-01-22 22:17:37 -04:00
Henry Castro
74b92c775c loleaflet: fixed js lint errors in src/core/Socket.js 2016-01-22 21:41:26 -04:00
Jan Holesovsky
1da4769924 loleaflet: Implement rich copy / paste inside the document. 2016-01-22 16:30:44 +01:00
Tomaž Vajngerl
6c152a595a loleaflet: dedup - move clipboard func. to Compatibility class
(cherry picked from commit 125e445a6b00b04e5581ce156d2d79f3558bcb80)
2016-01-21 21:00:22 +01:00
Tomaž Vajngerl
2152c1420a loleaflet: use IE11 clipboard function for cutting too
(cherry picked from commit a71d245f284873fe37951851889ed31e4a22898c)
2016-01-21 20:34:31 +01:00
Tomaž Vajngerl
58c12c9e5c loleaflet: IE11 has his own way to access the clipboard
(cherry picked from commit 26f061248ddd57cb9ab23307daa2a8f3cb6e3e8f)
2016-01-21 20:28:35 +01:00
Miklos Vajna
6fb558741c leaflet: position cursor before image drop
So we insert the image (close to or even exactly) at the drop position,
instead of the last cursor position, which may be far away.

With this, we're closer to the desktop image drop behavior in the
browser.
2016-01-21 16:56:44 +01:00
Jan Holesovsky
729928cda4 loleaflet: Implement the 'cut' functionality. 2016-01-21 10:55:25 +01:00
Jan Holesovsky
baf936d1b8 loleaflet: Document .uno:Name and .uno:Remove. 2016-01-21 00:53:38 +01:00
Tomaž Vajngerl
424a5aee42 loleaflet: specific tile update function when changing parts
_updateOnChangePart includes duplicated and changed _update and
_addTile functions. Deduplication will be done later..
2016-01-20 23:19:22 +01:00
Jan Holesovsky
35a7ac691d loleaflet: Document the spreadsheet-related rows / columns commands. 2016-01-20 19:19:32 +01:00
Jan Holesovsky
09e69b17a9 loleaflet: Move the spreadsheet headers / footers css to spreadsheet.css 2016-01-20 12:51:41 +01:00
Miklos Vajna
aed9e61c2e loleaflet: document .uno:ModifiedStatus 2016-01-19 17:07:10 +01:00
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