Commit graph

3177 commits

Author SHA1 Message Date
Miklos Vajna
9ec45224d3 WriterTileLayer: allow inserting comments when having a graphic selection
This requires core.git 351b9aefe3de7c68e907fdc7926d9b508560320e (sw:
implement inserting comments when an as-char image is selected,
2019-06-18).

Change-Id: I16142d949e97305adf692730bf697c7cd23d3ee7
2019-06-20 09:43:25 +02:00
Tomaž Vajngerl
fc8ab3fe7e tdf#124907 enable pan gesture for the dialogs
Also move panning the dialog to 2 finger pan, so that 1 finger
pan can send pan gesture event to the core.

Change-Id: I72e204d31ae12932bc18f63380475e45f0ccc065
Reviewed-on: https://gerrit.libreoffice.org/74088
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2019-06-17 12:19:58 +02:00
kaishu-sahu
5a699dcf23 android: add slideshow support in the document viewer.
Change-Id: I33cb9b1591d98088bc8cf1fd13d710fa6ee131b3
Reviewed-on: https://gerrit.libreoffice.org/73727
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-06-14 20:39:27 +02:00
kaishu-sahu
3209a8c368 android: add print feature to the document viewer.
Change-Id: I9de03347bde73faac1e9285f775e9584bb48a08d
Reviewed-on: https://gerrit.libreoffice.org/73268
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-06-14 20:35:50 +02:00
Samuel Mehrbrodt
c52a951cd9 Remove remnants of insert footnote toolbar entry
The removal was snuggled in with

commit 63ecdd5d40
Author: Henry Castro <hcastro@collabora.com>
Date:   Thu Aug 30 15:59:29 2018 -0400

    loleaflet: update toolbar with new images
    
    ...and entries


Change-Id: Iaec8812f2944217ef996af25fa4f0ebec5874b2f
Reviewed-on: https://gerrit.libreoffice.org/73827
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2019-06-12 14:20:24 +02:00
Tor Lillqvist
07b6d7ee5e Avoid unhandled exception
Change-Id: I2a168a79f334ca5048a85f98350aaa5c08bd1ad8
2019-06-11 17:33:54 +03:00
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