Commit graph

1661 commits

Author SHA1 Message Date
Tor Lillqvist
ed348677f2 Add "Close document" menu entry (or corresponding button) to the iOS app
In the JS, send the special "BYE" message to the app code.

In the iOS app code, handle that message by closing the fake socket
connection to the Online code, which eventually will cause the
corresponding thread to exit etc, and the app to return to displaying
the DocumentBrowserViewController. (Currently it causes the whole app
to exit which is wrong of course; an iOS should never exit
intentionally.)
2018-10-12 17:48:45 +03:00
Tor Lillqvist
a083c1451f Silence eslint warning: error 'i' is already defined 2018-10-10 14:38:37 +03:00
Tor Lillqvist
e9293f6954 Silence eslint warning: error 'map' is not defined
Not sure why it has worked anyway (says kendy), but presumably using
this._map instead, like at the beginning of the function, works
identically. Yay for static syntax analysis of a very dynamic
language.
2018-10-10 14:38:37 +03:00
Jan Holesovsky
4cce0e8d0a Cleanup the debugging logging.
Change-Id: I52ba4be4017a1b4d7a2464c078ec2144511f11f7
Reviewed-on: https://gerrit.libreoffice.org/61338
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
(cherry picked from commit 6baa59678c34ec1e618ba0a2ac2b74983fbbd858)
2018-10-10 14:38:37 +03:00
Jan Holesovsky
f3d7e5c6c2 android chrome: Make the insertion of . , ! $ and similar chars work.
The trick is that actually the 'onInput' (the 'input') event decides
what data we should actually use - if those from compose event, or from
the text input event.

With this, things finally seem to work reasonably well - I am able to
insert even emoji :-)

Change-Id: I9f19d1e56e4e638cf88b8497abb8eefd24e82cee
Reviewed-on: https://gerrit.libreoffice.org/61337
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
(cherry picked from commit 10bfc4b449577590c4de82cb15d73204be053a3c)
2018-10-10 14:38:37 +03:00
Jan Holesovsky
2bb3e5955c android chrome: Move the onTextInput handling to a separate method.
Change-Id: I1cf091ed9bf82b719ff7bd5170b9e75ecb999d01
Reviewed-on: https://gerrit.libreoffice.org/61336
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
(cherry picked from commit ea5165794338a05837cc14257ebfcf0fa437c2ab)
2018-10-10 14:38:37 +03:00
Jan Holesovsky
bd2bd13749 android chrome: Stop composing when we get an actual key event.
So that it is possible to press Enter while still in composition.
It is necessary to stop the composing itself, because otherwise the word
gets duplicated on the new line as soon as the user presses a key.

Change-Id: I78951a423715e71533f1a73d5bbe3b0f0f05e6cd
Reviewed-on: https://gerrit.libreoffice.org/61334
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
(cherry picked from commit f42e0bb4d1c99c1d229a638e59061ef7985d01e8)
2018-10-10 14:38:37 +03:00
Jan Holesovsky
d99736cc9a android chrome: We have to delete the interim results sometimes.
When we are autocorrecting a word, we get a deleteContentBackward event;
in that case we have to delete everything we have composed so far.

Change-Id: I36f3d1afcb9b74ac75dee7d64832cc5a3d346045
Reviewed-on: https://gerrit.libreoffice.org/61333
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
(cherry picked from commit f176bb1e81b5f3769cb56752c7102f93f2eca024)
2018-10-10 14:38:37 +03:00
Jan Holesovsky
a346d690fa android chrome: When autocompleting a word, don't enter it twice.
Most of the text input on Android in Chrome works via the composition;
only the space has to be entered via textInput.

Change-Id: Icd6cea54a962f324215bb6438265e6500f28421d
Reviewed-on: https://gerrit.libreoffice.org/61332
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
(cherry picked from commit 04b858d90fb1de00f312efcbf131bacda5479e7c)
2018-10-10 14:38:37 +03:00
Michael Meeks
8211bef32f Hide other view cursors on zoom.
Change-Id: I9e953f841b5c526b499f9170aef9b2682011947e
2018-10-09 21:48:17 +01:00
Michael Meeks
70a99202fa cursor simplify.
Don't show cursor when graphics are selected either.

Change-Id: I0a604d73bd1818317a2b04d8bdd392d1d6472627
2018-10-09 21:48:17 +01:00
Michael Meeks
1f54217261 First attempt to simplify cursor visibility.
Removes race conditions between kit messages and browser.
Avoid storing old state wherever possible.

Change-Id: I56aa57df22a4190881c8d197df8445ca542d4fc1
2018-10-09 21:48:17 +01:00
Henry Castro
1cc4acd95c loleaflet: mobile: ensure to not create the ruler
Change-Id: I7f985f93d8282533aa6cb32bff455b08011d7dfc
Reviewed-on: https://gerrit.libreoffice.org/61281
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-10-09 15:55:37 -04:00
Henry Castro
278904ef80 loleaflet: mobile fix after hitting back, on-screen keyboard...
"permanently" disappears

This forces to blur and focus the text area even it is focused
because there is no way to determine when the soft on-screen keyboard
disappears

Change-Id: Ib89ecc42fb795e34032564a62715463dd944c588
Reviewed-on: https://gerrit.libreoffice.org/61277
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-10-09 15:52:56 -04:00
Henry Castro
95b10e27b4 loleaflet: mobile: fix the dragging of the map when the size ...
fits with the maximum bounds

Change-Id: Ib30afed8f8a8538a438b70e3983fb1c55baf9d42
2018-10-09 15:46:35 -04:00
Jan Holesovsky
250ffe6f83 calc: We currently cannot paste text/rtf or text/html via LOK...
Change-Id: Ic699dddb2cbeaab4c13d030c2f8f3c71eeddac4f
Reviewed-on: https://gerrit.libreoffice.org/61258
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-10-02 17:44:01 +02:00
Aron Budea
0e52cab664 Menu: Add Hyperlink to Insert menu in Calc
Change-Id: I1401315e0a679adfe074d68a8e3ac2ee45df5e80
Reviewed-on: https://gerrit.libreoffice.org/60980
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-10-02 11:01:58 +02:00
Tamás Zolnai
b7f76d24fb loleaflet: Reset invalid counter when request new tiles by view change
This invalidCount does not work perfectly, since we don't always
send tile after every invalidation message (e.g. tile deduplication
on severs side, wireID handling). So this invalidCount usage should
be reconsidered. Now just avoid to have a tile still invalid after
we requested (and get) the newest tile when we are changing the view.

Change-Id: I249be63611767af02b04e142bb1c2afcb3a8eebb
2018-09-29 09:27:06 +02:00
Henry Castro
d1b7f10e8f loleaflet: remove docLayer precondition when the map is focused
Change-Id: Id7fb2e9d7823a788cb40cd3a953b3f024dd22ee5
2018-09-27 09:51:44 -04:00
Henry Castro
c47a27b49b loleaflet: mobile: fix non composition input
Change-Id: I6f72f888314baaef00549bb08bcfa78854a0b610
2018-09-27 09:51:02 -04:00
Henry Castro
c95f319f94 loleaflet: mobile: fix input text composition events
Change-Id: I04446f8c29c4901ebe67e49ae8dffcfac286f300
2018-09-27 09:49:23 -04:00
Henry Castro
a25aefaaee loleaflet: mobile: add to layer if and only if the cursor marker is created
Change-Id: Ida69eeceddcc0a3f223b724fb31d48f7722e21bf
2018-09-27 09:48:48 -04:00
Henry Castro
91c074a1f2 loleaflet: update cursor position
to fix IME pop up window

Change-Id: Ied2ca0b7518a20f6114f7e8f628bc3c352d7326f
2018-09-27 09:48:16 -04:00
Henry Castro
5e65d5f491 loleaflet: hide the mobile input cursor
Change-Id: I978e388eb1066374bd0174e35211bd3bd5a6743b
2018-09-27 09:47:22 -04:00
Aron Budea
132fc22f2b Revert "loleaflet: mobile: disable scroll bars"
This reverts commit 4d5fa8f833.

Change-Id: I2938818bff98dec862ef3137aca4766dc9d1af20
Reviewed-on: https://gerrit.libreoffice.org/60872
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
2018-09-21 14:27:02 +02:00
Aron Budea
14c6562455 Revert "loleaflet: mobile: fix row/column headers"
This reverts commit c7a62fb304.

Change-Id: Ib565080314564255c39874c38066734911348432
Reviewed-on: https://gerrit.libreoffice.org/60871
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
2018-09-21 14:25:35 +02:00
Tor Lillqvist
a149320239 Fix accidental unconditional use of iOS-specific API
Change-Id: Ia82ba76ca7b52173540c7c78522ad36fb68e0995
2018-09-18 22:49:10 +03:00
Tor Lillqvist
7ea91e1c6b More hacking on the FakeWebSocket for the iOS app 2018-09-18 18:07:59 +03:00
Tamás Zolnai
5fdc049a79 Create a method which invalidates and requests all the tiles
Used after reconnection for example.

Change-Id: Ie9a15ec1fdec71ca8aba7d9b7417b05005c6c69a
2018-09-12 22:18:34 +02:00
Henry Castro
c7a62fb304 loleaflet: mobile: fix row/column headers
Change-Id: I126ec8108b8d043477b96616f048bf12a2ce3b0f
2018-09-12 07:35:37 -04:00
Henry Castro
b29f75f49f loleaflet: delegate clip container to show the cursor
Change-Id: I80d556d9e29cfa2ced0afcf985d41862ecd98ba5
2018-09-12 07:15:15 -04:00
Tor Lillqvist
b636098cae Some minor iOS (or mobile in general) app tweaks 2018-09-12 13:34:27 +03:00
Tamás Zolnai
53cb932bbb loleaflet: Need to call _update after invalidatetiles-all
Earlier invalidatiles was requested the new tiles too, but now
invalidatetiles + _update makes to request all the visible tiles.

Change-Id: Ib3a07f748d270056d5f30cdb1731b6cf4e63c3ef
2018-09-12 11:23:22 +02:00
Henry Castro
9bb98ab9cf loleaflet: ensure map does not pan on resize
Change-Id: I4644fce70026266798282fbab135aa9c6435e671
2018-09-08 21:28:31 -04:00
Henry Castro
bc1d04c3ce loleaflet: fix cursor blinking
Change-Id: I5fa9b31a8c9186efd79c49faba40b9ad84730e4c
2018-09-08 09:21:53 -04:00
Jan Holesovsky
c5259eb7b6 ServiceRoot: Add the serviceRoot to various html and js files.
Change-Id: Ibd9093afa3d1f014c70328446ee42189dd0c2117
2018-09-08 00:12:20 +02:00
Tor Lillqvist
49da3c03a6 Move a few lines of code into the else branch they are relevant for
Change-Id: If0ce5236f1cd0daae6b213ed19d57820d25206e0
2018-09-07 17:37:54 +03:00
Tor Lillqvist
fb7cc57b0f Work in Progress: Check window.ThisIsTheiOSApp and behave accordingly
First steps to modify behaviour in the app case. No query parameters
or WebSocket messages in that case.

Change-Id: I170d46830bb940c5164af3f62b873672373d8f17
2018-09-07 17:37:54 +03:00
Jan Holesovsky
2a2281692c On desktop, focus immediately on startup to get the caret.
Change-Id: Ie33805341740e38bef657fbd7677ef7d0c14cee3
Reviewed-on: https://gerrit.libreoffice.org/60151
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-09-07 15:18:27 +02:00
Andras Timar
0ed8e569e2 loleaflet: don't use timeago, because it's hard to localize, use localized timestamps instead
Change-Id: Iae5cab6fe7f9b92f9098b66be48278c4fb293002
Reviewed-on: https://gerrit.libreoffice.org/60088
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2018-09-06 15:33:30 +02:00
Andras Timar
392e22e9df loleaflet: better to use short day and short month, long versions don't always fit in the box
Change-Id: I114d67aeca3797dde9eff854ea5b46676e487c08
2018-09-06 11:37:41 +02:00
Andras Timar
a82c2f4401 loleaflet: localize annotation/comment date
Change-Id: If29a3a84bc5a3aab31bf4f259345845cd9004467
Reviewed-on: https://gerrit.libreoffice.org/60076
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2018-09-06 10:44:47 +02:00
Tamás Zolnai
4b5bc1f202 Code deduplication and comment
Change-Id: I9deb8771b9ecf338fbafaacc41b0ad934ed287fd
2018-09-05 14:31:04 +02:00
Tamás Zolnai
af0a14f034 Reduce code deduplication
Change-Id: I5ed788d37ff8096557423095d3a7751f6d29e91c
2018-09-05 13:40:34 +02:00
Tamás Zolnai
8af096eb63 Reset client visible area members by connection lost / reloading
Change-Id: I28eb32d7c667a1a2b71de4bfcb348f5fab020123
2018-09-05 13:20:56 +02:00
Tamás Zolnai
ab7943edd6 Make tilerendering working again after connection lost 2018-08-29 23:34:05 +02:00
Henry Castro
c3db4078cb loleaflet: mobile: add control to handle events cut/copy/paste
Change-Id: I8f500b17d9479a846afd59c42775e11d3f298248
2018-08-26 14:30:31 -04:00
Henry Castro
62c5c2ff20 loleaflet: remove unused corner control
Change-Id: Iea7003a6542d704cdd8ec54e8e5f6b8fb3b275ad
2018-08-26 14:28:47 -04:00
Henry Castro
4d5fa8f833 loleaflet: mobile: disable scroll bars
Change-Id: I82b3872b7354717937e9adc4c8ae5e8d582834ea
2018-08-26 14:26:10 -04:00
Henry Castro
ccb20d551e loleaflet: mobile: remove more invalid focus
Change-Id: I10dd64d388dcf640ee2c2a7744408b13834ef044
2018-08-26 14:20:00 -04:00