Commit graph

3171 commits

Author SHA1 Message Date
Szymon Kłos
6108fabea3 Multiple annotations switching active class
Change-Id: I54ab4660842b069d5198a7b4933d46e3078484f1
Reviewed-on: https://gerrit.libreoffice.org/73652
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-06-07 12:20:38 +02:00
Szymon Kłos
d3aed5b6df Add annotation-active class when active
Change-Id: I53768271de756c2ea0c741996ebec9e0845bd47c
Reviewed-on: https://gerrit.libreoffice.org/73644
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit a22e652db40dd06d9a707e2debd9c37e56711ba7)
Reviewed-on: https://gerrit.libreoffice.org/73645
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-06-07 10:30:21 +02:00
Michael Meeks
3bd0aea90f Be more aggressive about updating last active time.
Change-Id: I5d269dfe0114fadf41359baa90ceeac4726171e5
2019-06-06 20:45:49 +01:00
Michael Meeks
5b6b59309f When dismissing a dialog use afterClose to re-focus map.
It seems beforeClose is used by vex itself to emit the callback.
2019-06-06 12:36:49 +01:00
Jan Holesovsky
3c45a0abab Introduce Download_As postmessage & a CheckFileInfo entry to enables that.
The Download_As is emitted when the user chooses 'Print' or 'Show
slideshow' or 'Download As [some type'] and the integration indicates
via DownloadAsPostMessage in the CheckFileInfo that it wants to handle
the downloading of pdf for printing or svg for slideshows or experted
document.

This is particularly useful in situations when the integration cannot
rely on browser's support for downloading like in mobile apps that use
the Online in a WebView.

Change-Id: Iefdf214937c0c0dafd7462340a1c5e88df94e716
Reviewed-on: https://gerrit.libreoffice.org/73449
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-06-04 14:54:36 +02:00
Michael Meeks
54eaf51685 Document Grab_Focus.
Change-Id: Ic3deb0aeac9782250f50cb975cfb67712f032c2d
2019-06-04 09:15:38 +01:00
Samuel Mehrbrodt
43f09f284c Use LO branding colors for loading progress bar
From https://wiki.documentfoundation.org/Marketing/Branding

Change-Id: I7d3d5932ef67ae5c1a522d03e1d1a0a8960b0816
Reviewed-on: https://gerrit.libreoffice.org/73107
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-06-04 09:10:12 +02:00
Samuel Mehrbrodt
3f31de251e Add API method to remove elements from statusbar
Change-Id: Ie45d67e642fdd72afb79391cce88c9e25f0b53b8
Reviewed-on: https://gerrit.libreoffice.org/72851
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-06-04 09:10:00 +02:00
Samuel Mehrbrodt
e4b39f6811 Add dropdown to switch doc language to statusbar
instead of just having a label displaying the current language.

Change-Id: Ib3068e6001fc86cc129f7817300de4e8a991c8c6
Reviewed-on: https://gerrit.libreoffice.org/73086
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-06-04 09:09:26 +02:00
Samuel Mehrbrodt
0576a3cced Add "Show ruler" menu entry
Also add some space between the ruler and the document frame

Change-Id: I75a3e4668d03cf44b235082cd7d8c24672209262
Reviewed-on: https://gerrit.libreoffice.org/72339
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-06-04 09:08:30 +02:00
Tor Lillqvist
291d9dd101 tdf#122572: Avoid thin rectangular border around context toolbar on iOS
Change-Id: Ifaf710b03eb860455ffb99473d82898c1de8190c
2019-06-03 14:10:45 +03:00
Tor Lillqvist
fd3fa85426 tdf#122572: Don't underline the entries in the iOS selection context menu
The entries in the native edit menus appeared underlined for me
because I had turned on “Button Shapes” in Settings > General >
Accessibility. They are not supposed to be underlined normally.

Change-Id: I9b85774f3c8300e014092f6ea08953a404156899
2019-06-03 14:10:40 +03:00
Andras Timar
76dc5358f1 loleaflet: updated translations from Pootle + Slovenian
Change-Id: If34b3ca5d71171d2831a6b70e82e6c6d92f24b4f
2019-06-02 20:37:02 +02:00
Tor Lillqvist
4249722b12 tdf#122572: Use the _UNO() function instead of duplicating what it does
Change-Id: I54f7f49c2b4b82c3b8450b4475c2ea1267125df5
2019-05-31 20:47:35 +03:00
Tor Lillqvist
532e70db8d tdf#122572: Use a context toolbar in the iOS app that looks more native
Not icons, but white text on black background, etc. This is how the
native context toolbar (whatever it actually is called in iOS) looks
in Notes and Pages and in text input fields in general.

Change-Id: Ibfa149fa8a951046de25c71022ea5c5684cfcc02
2019-05-31 19:51:34 +03:00
Tor Lillqvist
0f5ff84b46 tdf#122542: In the mobile apps, keep aspect ratio when dragging corner handles
I didn't have the clout to chage the behaviour for normal online.

Change-Id: Icf790ceba4b6e23ade2fe1e106a740aeeb38c082
2019-05-31 14:46:11 +03:00
Tor Lillqvist
946cf67119 Add an Emacs mode line to set the appropriate js-indent-level
Change-Id: Ie9e554faf269b41f277236e9b74a964456a5f7f8
2019-05-31 14:46:03 +03:00
Michael Meeks
c522dbf6da Add interoperable Grab_Focus PostMessage.
Change-Id: I42cd24bfd502f46bb3f41cd6cf2f551263d57687
2019-05-30 16:02:43 +01:00
Tor Lillqvist
6478015ccb tdf#125389: Guard against exception if e.touches is zero length
For a touchend event, the touches property will be a zero-length
array. At least in WebKit on iOS or Safari. Work around that. The
proper fix would probably be to not even call the getMousePosition()
function for touchend events?

Change-Id: I1c4cdb26b293e551c3c6f51208f73ee5a8044ecb
2019-05-30 16:31:42 +03:00
Jan Holesovsky
51a63c0e76 Deprecate Views_Added and Views_Removed; implement Views_List instead.
This helps avoiding the situation when the state in the Online and in
the integration get out of sync.

The integration should always get the most current state via Views_List,
and if they want to implement eg. notification what view has joined or
has left, they should just compare the old and the new state.

Change-Id: I841f77419bf86a57f77e16f8c0bd08063f31f68a
Reviewed-on: https://gerrit.libreoffice.org/73103
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-05-28 19:58:16 +02:00
Tor Lillqvist
a494b4f8d5 tdf#124752: Do post the UNO clipboard commands in a mobile app
No reason to show the warn-copy-paste message in a mobile app. The
native code of the app has access to the system clipboard just fine.

This does not at such make the Edit>Copy etc menu entries work in the
iOS app (the LibreOffice core code does not yet have system clipboard
functionality for iOS, I am working on that), but this is one
necessary step.

This is a bit complicated, I don't like how the 'mobileappuno'
properties have to be "manually" propagated from one data structure to
another in the _createMenu function, but OTOH it's the same for the
'id' properties.

Change-Id: I0ebe964e6eb6e4a902118714c1779451004c751f
Reviewed-on: https://gerrit.libreoffice.org/72888
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-05-28 08:59:59 +03:00
Jan Holesovsky
69518ed92a Enable the Share and Print buttons even in the View mode.
The user should be able to access these even in the initial View mode on
Android.

Change-Id: Id0631b7560c1ed0fda5f228f0c621cfa989b4cf7
Reviewed-on: https://gerrit.libreoffice.org/73038
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-05-27 18:28:07 +02:00
merttumer
6b0f0432cb Send postMessage after renaming the document
Signed-off-by: merttumer <mert.tumer@collabora.com>
2019-05-27 16:48:21 +03:00
merttumer
e386427639 Send postMessage after renaming the document
Signed-off-by: merttumer <mert.tumer@collabora.com>
2019-05-27 16:42:01 +03:00
Andras Timar
777bc97126 add back l10n support to this dialog
Change-Id: I4e212cefb92cadc9a514e66f252ce19f05a8c114
2019-05-27 11:04:51 +02:00
Alexandru Vlăduţu
e1c2c2e3c5 loleaflet: add postmessage check
Checks if messages are coming from the parent only (the frame which
opened the editor) to avoid unwanted commands from 3rd parties.

Change-Id: Ieffe36169dcefbe130869596672c1628c76b6799
Reviewed-on: https://gerrit.libreoffice.org/72340
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-27 10:51:28 +02:00
Jan Holesovsky
fd18e490c5 Add textbox creation to the Impress toolbar.
Uses the newly added parameter to insert it directly, instead of using
the mouse to define the bounds first.

Change-Id: I3c10f379151b6789908585af02a8a18f3103e001
2019-05-24 17:43:54 +02:00
Samuel Mehrbrodt
2f861612e9 Some menubar folding/unfolding cleanups
Change-Id: I4e5abe59076a5dbd41b1c8d002c0f3c4e53569de
Reviewed-on: https://gerrit.libreoffice.org/72858
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-23 16:23:18 +02:00
Szymon Kłos
17dc46dcd1 Constraints for dialogs moving
Change-Id: If489126659684cd99f2a153135cb2c05b9312c02
Reviewed-on: https://gerrit.libreoffice.org/72855
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-05-23 15:08:14 +02:00
Szymon Kłos
5dc20e98d7 Allow to use pan gesture on desktop
Change-Id: Ifbc6102407add31f63b1be0173c5c8eeb3e8e2db
Reviewed-on: https://gerrit.libreoffice.org/72854
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-05-23 15:08:06 +02:00
Samuel Mehrbrodt
3c888d71d8 Move zoom selection dropdown to statusbar
No point having this in the toolbar when all zoom related functions are in the statusbar

Change-Id: Ia1ea8f724956eb2c521c60fb2360eb243190a76c
Reviewed-on: https://gerrit.libreoffice.org/72460
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-23 14:59:55 +02:00
Samuel Mehrbrodt
6167dc9c44 Disambiguate Highlight color vs background color
Highlighting is character level while background color is paragraph/cell level.
Use different uno commands/icons/texts for the two.

Change-Id: I79264fcdcd968734b68278f69450a377d6607323
Reviewed-on: https://gerrit.libreoffice.org/72786
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-23 14:33:52 +02:00
Samuel Mehrbrodt
e3bc157c0d Limit font name box to 150px
Otherwise this will get as big as the longest font name.
Seems this was intendend to be like this, but was broken at some point.

Change-Id: I2db29834f7fd9c53efa5ba9da4e6f7f292a2eb08
Reviewed-on: https://gerrit.libreoffice.org/72816
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-23 14:31:32 +02:00
Aron Budea
577d4a50a2 Display correct shortcut for paste
And use unsafeMessage dialog parameter to interpret HTML
tags.

After aa1d9ce196

Change-Id: Iba5a5dc2421c2eaf5ff217d825eac70da2fb1e0c
Reviewed-on: https://gerrit.libreoffice.org/72813
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-05-23 11:59:02 +02:00
Samuel Mehrbrodt
62850138fe Toolbar: Add IDs to breaks
Some of the breaks already had IDs, but not all.
This is useful to specify the button position via Insert_Button.

Change-Id: I97b0d3d0481f7f2edcdb2c0bbc617cd9ede32871
Reviewed-on: https://gerrit.libreoffice.org/72785
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-23 09:24:36 +02:00
Samuel Mehrbrodt
cc6c3607b5 Add postmessage method to remove toolbar buttons
Change-Id: I6ff2ee3008cf1915c18c2d971ffe1f9de1d926ae
Reviewed-on: https://gerrit.libreoffice.org/72727
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-23 09:24:23 +02:00
Samuel Mehrbrodt
584352dae4 PostMessage: Catch parsing errors
Change-Id: I844086c8641da5228e7dc817451456f0958be2a6
Reviewed-on: https://gerrit.libreoffice.org/72759
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-22 15:56:08 +02:00
Samuel Mehrbrodt
704a6e4cd7 Action_HideBusy: Move description to correct column
Change-Id: I12549e59553db5762227297a1ddc9762adb62232
Reviewed-on: https://gerrit.libreoffice.org/72760
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-22 15:55:48 +02:00
Samuel Mehrbrodt
45aaec3207 No more jake
Change-Id: I21187241142031cd324e63aebf03ce8ca949411d
Reviewed-on: https://gerrit.libreoffice.org/72757
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-22 15:55:21 +02:00
Samuel Mehrbrodt
575eb43871 Insert_Button: Add parameter to specify a uno command
Change-Id: Ibdb1ad1b25df38c12ab71386a5ab8fb92d3076d0
Reviewed-on: https://gerrit.libreoffice.org/72758
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-22 15:54:44 +02:00
Jan Holesovsky
720fffedf2 mobile: Avoid uncaught exceptions when some toolbars don't exist at all.
Change-Id: Ie29c2cdf83bce5d65bf64cd982917186f7adbc8e
2019-05-22 10:16:12 +02:00
Tor Lillqvist
936f3a1435 tdf#125410: Handle pasting of text/plain strings into the iOS app
Also, initialise this._keyHandled as true in L.Control.MobileInput, as
that is the value it has between key event sequences, so presumably it
should be so before the first key is hit, too.

Change-Id: Ie67e9fcdd14871e76f9d9487c14f03ae54476e60
2019-05-21 16:05:57 +03:00
Andras Timar
157e4bd680 loleaflet: updated pot files
Change-Id: I746741e060c9e995c58fd67a9542577231cf31ae
2019-05-20 22:02:07 +02:00
Jan Holesovsky
aa1d9ce196 The Internal Copy / Internal Cut / Internal Paste is just confusing.
Every user so far is confused of the existence of two clipboards - the
system one, and the Online internal one.

We are able to detect that the copy / paste is happening inside the
document and perform the "internal copy / paste" accordingly, so let's
do what the other online office suites do, and just warn when the user
tries to access copy / paste from the menu.

Change-Id: I904fc120fcf65b8ad4ba8fb5178803f976d707f4
Reviewed-on: https://gerrit.libreoffice.org/72614
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2019-05-20 21:50:30 +02:00
Tor Lillqvist
8c15d4f938 tdf#124906: Hack for dead keys in iOS app and iOS Safari against Online
Handle key events fairly separately for the iOS app and Mobile Safari
than for other mobile platforms. Use the key property of the keypress
event and avoid looking at the keyCode property of keyboard events.

There is still one problem left: After typing the dead key, it is not
displayed temporarily "waiting" for the following letter, as it
should. But that didn't work before either in the iOS app, as far as I
see.

Change-Id: I9df174ba294f855697df59dd016b39cd1b3d905b
2019-05-20 13:20:06 +03:00
Marco Cecchetti
ba4cd1563d loleaflet: constrained dragging for pie segment
The extra information for the graphic selection is now formatted
according to JSON syntax so that is easier to parse.

Dragging a pie segment now is constrained as on desktop and there is
also a preview of the pie segment while it is dragged.

On drag end a msg is sent to core with the new pie segment offset
from the pie center, which allows core to move the pie segment to
the correct position.

Change-Id: I7f76d21d622006fca5d0922c5932daec50b13836
Reviewed-on: https://gerrit.libreoffice.org/70573
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2019-05-20 10:39:52 +02:00
Marco Cecchetti
88e941c659 loleaflet: exploiting new selection handling properties
We use the new information sent by core through the graphic selection
message, for showing only the meaning handler for the current selected
object.

Change-Id: I20a2d59583b89701b0f61c27c469fa916eabe20a
Reviewed-on: https://gerrit.libreoffice.org/70572
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2019-05-20 10:39:40 +02:00
Marco Cecchetti
d3f8982944 leaflet: after resizing a shape, dragging cursor with mouse pans view
The problem was in Path.Transform._apply executed at scale/rotate end
which enabled map dragging unconditionally.

Change-Id: Id42dc7de397a2ca2774f9d31a698c32b5e1c8514
Reviewed-on: https://gerrit.libreoffice.org/70571
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2019-05-20 10:39:25 +02:00
Marco Cecchetti
3c3770e370 loleaflet: correct resize of rotated images in Writer.
A new format for selection extra properties has been introduced:
"x, y, width, height, angle, { property=value, ... }"

Change-Id: Ic03dbaba0af1b5c84bcd0f02587e907e799f66d8
Reviewed-on: https://gerrit.libreoffice.org/70570
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2019-05-20 10:38:55 +02:00
Samuel Mehrbrodt
f5954a015b Browsersync: Also sync html files
Change-Id: I55db923954fc0c59e1726640c980a539a12293ba
Reviewed-on: https://gerrit.libreoffice.org/72455
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-20 09:59:45 +02:00