Commit graph

9876 commits

Author SHA1 Message Date
Pedro Pinto Silva
adc46c7ab1 Mobile: Toolbar-up: checked state: Add webkit-only rule to fix weird behavior on some webkit browsers
Change-Id: Ia29bce6ab4e26c63d7f3bf25bb3750d680e7c022
Reviewed-on: https://gerrit.libreoffice.org/84607
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-12-06 11:03:03 +01:00
Szymon Kłos
c6c49d52cc jsdialog: dont animate while restoring the last path
Change-Id: Ia8fc4c69318a5644b77cfef47f7f540f9ac37026
2019-12-06 10:45:56 +01:00
Szymon Kłos
49e1103067 jsdialog: scroll to last used element
Change-Id: I58f88ced08263fb1cad75c60937ba4e90a424bfa
2019-12-06 10:13:19 +01:00
Tor Lillqvist
ec686a3d5f Don't show a link for the product name in Help>About on iOS
The app's WKWebView is not configured to allow opening web pages, so
it won't work anyway. When clicking the link the app will crash with
"Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: 'Returned WKWebView was
not created with the given configuration.'"

Change-Id: Iac05b74087331d6f3a0405e76f4323316af4729a
Reviewed-on: https://gerrit.libreoffice.org/84595
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-12-06 09:33:56 +01:00
Tor Lillqvist
b28b310e6e There is no "server" in a mobile app
Thus no "served by" information to display in Help>About.

Change-Id: Ia4f91431536f5261c6cb0ee26398b9c33c0d0ea3
Reviewed-on: https://gerrit.libreoffice.org/84596
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-12-06 09:32:52 +01:00
Jan Holesovsky
f2d017a74a android: Fix crash on the 2nd editing start.
The failing scenario was reproducible on my old phone:

* start editing the document from the shell
* add a word
* leave the editing using the '<' in the top left
* start editing the document again => boom!

In the normali, non-crashing case, the order of destruction is that
~ChildSession is called first (and calls ChildSession::disconnect() that
consequently calls Document::onUnload() via _docManager->onUnLoad(...).
The Document::onUnload() then deregisters callbacks and all is fine.

The in the above described crashing case, the Document is destroyed
before ChildSession and calls resetDocManager() for all sessions.
Before this patch, this meant that the _docManager was set to nullptr,
leading to situation that later, in the ~ChildSession, the call of
onUnload() was avoided, the callbacks were not unregistered, and later,
on the next document load, the app crashed because it called stale
callbacks.

I suspect the change might be useful even for the non-mobile case, but
not 100% sure, so rather do it MOBILEAPP-only.

Change-Id: I279a160ccaab3080e84fe0437ed72684331b6e13
Reviewed-on: https://gerrit.libreoffice.org/84588
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-12-06 09:30:04 +01:00
Miklos Vajna
b5f78fe73d Convert some Calc tests to a new-style one
So that they are in-process, which means it's easier to debug when they
fail.

Also, in UnitLoad, give up on trying to avoid the sleep after
disconnecting, it seems the old condition was not reliable.

Change-Id: I972a3319887a70eeea2585104ed1e762830ca505
2019-12-06 08:51:51 +01:00
mert
c1788f94f8 Remove buttons that open popup menu on quickbar
Change-Id: I7fc0a633d1ba7488469caa486ff5f12d800bd6e7
Reviewed-on: https://gerrit.libreoffice.org/84400
Reviewed-by: Mert Tümer <mert.tumer@collabora.com>
Tested-by: Mert Tümer <mert.tumer@collabora.com>
2019-12-05 19:49:21 +01:00
Pedro Pinto Silva
1747d08974 Calc(desktop): Formula bar: Hide bottom blue line
Change-Id: If2547d8065d4158cffa8bee62ae78fc020e0b2b6
Reviewed-on: https://gerrit.libreoffice.org/84567
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-12-05 15:02:04 +01:00
Marco Cecchetti
4c3ef4c504 move shapes palette from vex dialog to mobile wizard
Change-Id: I76e136140e9268706f53ffc799703bbc72f70099
2019-12-05 13:44:45 +01:00
Miklos Vajna
5bf3fc86be test: fix UnitLoad::testConnectNoLoad()
Depending on timing, this failed with the following error:

wsd-14400-14411 [ docbroker_001 ] WRN  Will not load document marked to destroy. DocKey: [/tmp/connectNoLoad_27c61e41_hello.odt].| wsd/DocumentBroker.cpp:520

Make sure we don't try to load the same document again when the cleanup
for the previous session is not done yet.

Change-Id: I354999fa934df665b48dca314d2b77ab95c84ec0
2019-12-05 08:48:32 +01:00
Szymon Kłos
709b81246d jsdialog: temp fix color picker
Before other content was still visible after user entered color picker.
But still we will need container with id for updates of colorpicker
later.

Change-Id: Id7cb9d3a77afa6e2a226250f10917fcd454d15dc
2019-12-04 17:07:28 +01:00
Pedro Pinto Silva
3aa715260d Toolbar: background color and text color: Color appears now as a bottom stripe
Change-Id: If338b10ce3e117a8f43b9bb920820c3d1de324af
Reviewed-on: https://gerrit.libreoffice.org/84415
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-12-04 14:58:41 +01:00
mert
8af06d13fa Make quickbar color buttons open mobilewizard
Change-Id: I44f2f6d29b2d9830068cb37d6ab4975f8d971778
Reviewed-on: https://gerrit.libreoffice.org/84396
Reviewed-by: Mert Tümer <mert.tumer@collabora.com>
Tested-by: Mert Tümer <mert.tumer@collabora.com>
2019-12-04 12:07:52 +01:00
Michael Meeks
74af92df9d restore all zoom levels to the calc zoom pop-up.
Change-Id: Ib524d89c2059e23f5e42580141ee54b5fead0a33
2019-12-03 17:46:59 +00:00
Jan Holesovsky
e8b5f75ebe mobile: Don't show the user list in the native app.
Change-Id: I71df72e420f27e5bd10487a70545f24a5d93269b
Reviewed-on: https://gerrit.libreoffice.org/84365
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-12-03 17:22:00 +01:00
Ashod Nakashian
86a80a4cca wsd: handle http forbidden response from wopi put
Change-Id: I597e949cd1bea612400d623f30ea260036253e89
Reviewed-on: https://gerrit.libreoffice.org/84360
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-12-03 16:02:16 +01:00
Henry Castro
ca4fc29754 loleaflet: android: call a javascript interface, slideshow method
NextCloud Android Application is detected with the JavaScript Interface
"RichDocumentsMobileInterface" and the slideShow() is called when the
full screen slideshow is applied

Change-Id: I2559a1cdf452e77147892eddcde21ca472ef632e
Reviewed-on: https://gerrit.libreoffice.org/84118
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-12-03 15:00:27 +01:00
Jan Holesovsky
799cb25c06 android: When I want to quit, I mean it.
I hate when apps make it hard to exit them.

Change-Id: I31c73a70fff6a87512debc95cbd31ef0ba8c1f62
Reviewed-on: https://gerrit.libreoffice.org/84354
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-12-03 14:53:35 +01:00
Jan Holesovsky
d7fb42008c android: Don't crash in the shell's About dialog.
Change-Id: I12a7fcc789299f9b4efa035bb665afc6c89c04cc
Reviewed-on: https://gerrit.libreoffice.org/84353
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-12-03 14:52:49 +01:00
Jan Holesovsky
814a0c49ef android: Allow full version specification.
Change-Id: I2da4a7d1fc63cfd0df10a7e32f123af82e8be461
Reviewed-on: https://gerrit.libreoffice.org/84329
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-12-03 14:52:00 +01:00
Tamás Zolnai
2d84130f67 Spelling context menu: There is no icon for 'None' item.
Change-Id: Ia7dcb086eb4537ab08c23dfcceaa6c4fe63b3465
Reviewed-on: https://gerrit.libreoffice.org/84343
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2019-12-03 14:44:25 +01:00
Tamás Zolnai
2e9dfc2851 Context menu wizard: always close by clicking on an item.
Change-Id: Ie51b5266e41d488d93f74e5dcc547aa0f5f41aa5
Reviewed-on: https://gerrit.libreoffice.org/84342
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2019-12-03 14:44:17 +01:00
Tamás Zolnai
1e6ff55878 Spelling context menu: Fix execution of LanguageStatus
Change-Id: Ia309246ee37c6c598e518e66f96fc80e1320ce55
Reviewed-on: https://gerrit.libreoffice.org/84341
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2019-12-03 14:44:09 +01:00
Tamás Zolnai
3e6ea32f91 Spelling context menu, mobile: Show a tick mark next to the selected entry.
Change-Id: Id934e1608e3dccbbd0bf05cfdcaa1eb30dd90fe3
Reviewed-on: https://gerrit.libreoffice.org/84340
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2019-12-03 14:40:28 +01:00
Jan Holesovsky
d87f06adef android: Add possibility to brand the launcher icon.
Change-Id: I6cd531aab698236287eb7c20146caa61e34e8450
Reviewed-on: https://gerrit.libreoffice.org/84328
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-12-03 14:34:47 +01:00
Jan Holesovsky
5f9e088fe6 android: Replace the value in fonts with real name instead of 'null'.
Change-Id: Iefb5737662eb5463429951c815e5bb0891abd875
Reviewed-on: https://gerrit.libreoffice.org/84313
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-12-03 14:33:20 +01:00
Marco Cecchetti
f1776b9267 loleaflet: tunneled formula bar partially hidden by side-panel
Change-Id: I5ae3422ae33035d0bb6ffb1f6c75d659b4789932
Reviewed-on: https://gerrit.libreoffice.org/84332
Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Tested-by: Marco Cecchetti <marco.cecchetti@collabora.com>
2019-12-03 12:57:11 +01:00
Tamás Zolnai
f4d5e8e480 Context menus: Disable icon for menu items with command param.
It's the spelling context menu which have that so far.
For example
".uno:SpellCheckApplySuggestion?ApplyRule:string=Spelling_worldliness"
where worldliness is generated dynamically.

Change-Id: Id54b9053eb53fc435b501a05bf519e15e4eba37c
Reviewed-on: https://gerrit.libreoffice.org/84324
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2019-12-03 12:34:06 +01:00
Tamás Zolnai
98cbd80eb8 Context menus: Show a tick mark for checked menu item.
Change-Id: I390a69b9db1c58003d2008a4a62e331d1c2fc7ae
Reviewed-on: https://gerrit.libreoffice.org/84323
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2019-12-03 12:20:53 +01:00
Tamás Zolnai
f3f0b6d869 Mobile: Show context menus in mobile wizard.
Change-Id: I8c61faed63ca6c439ab59ec5678c6360cfb5f28c
Reviewed-on: https://gerrit.libreoffice.org/84239
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2019-12-02 18:16:36 +01:00
Marco Cecchetti
cd5f55dcf4 formula bar: move function wizard top when expanding the input box
Change-Id: I220b485876ede47b9c6ab4658f33ecbfab1af926
Reviewed-on: https://gerrit.libreoffice.org/84171
Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Tested-by: Marco Cecchetti <marco.cecchetti@collabora.com>
2019-12-02 17:35:12 +01:00
Marco Cecchetti
b228a160b9 formula bar: handling shift+enter correctly
In desktop shift + enter is used for inserting a new line (multiline
formula input box).
This patch makes that works for tunneled formula bar too.

Change-Id: Ib1b3fd6593b6361c725cff606925d110c8ac1c83
Reviewed-on: https://gerrit.libreoffice.org/84170
Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Tested-by: Marco Cecchetti <marco.cecchetti@collabora.com>
2019-12-02 17:34:47 +01:00
Marco Cecchetti
836ce7d636 formula bar: function complete
lok clients can request to complete a function name partially typed in
the formula input box.

Change-Id: If8e4485c5ed9f91a594dfcec04e0c0b10becdcd0
Reviewed-on: https://gerrit.libreoffice.org/83985
Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Tested-by: Marco Cecchetti <marco.cecchetti@collabora.com>
2019-12-02 17:34:13 +01:00
Miklos Vajna
fe04d685db Convert cursor tests to a new-style one
So that they are in-process, which means it's easier to debug when they
fail.

Change-Id: I0fb1e798875c479e0aeb5f709ef630def5349126
2019-12-02 09:11:39 +01:00
Ashod Nakashian
9e21931353 leaflet: improved sidebar closing
Change-Id: I547ef3e65b746c4b37176969db8eb766fc037aa9
Reviewed-on: https://gerrit.libreoffice.org/84181
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-12-02 04:42:59 +01:00
Ashod Nakashian
0cc3319b30 leaflet: properly handle sidebar id changes from Core
Change-Id: Ic8fceb097ce8d269bf957038d84bcb536cb3b250
Reviewed-on: https://gerrit.libreoffice.org/84180
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-12-02 04:42:49 +01:00
Ashod Nakashian
4595a40d9f leaflet: reuse postLaunch from the calc-input-bar
Change-Id: I9e64bded3a1a9eb70bd79f339e7b848a5474d6d1
Reviewed-on: https://gerrit.libreoffice.org/84179
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2019-12-02 04:33:45 +01:00
Ashod Nakashian
aa32811089 leaflet: split sidebar launch into three stages
We need to re-create the sidebar, so we need to
reuse the create portion and separate it from the
in-pace update logic. Similarly, the post-launch
logic is common and re-usable, so we isolate it too.

Change-Id: I5c72d19fd6e7f0f05c32b7bed186a562d19a8f24
Reviewed-on: https://gerrit.libreoffice.org/84178
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-12-02 04:33:36 +01:00
Ashod Nakashian
9b973d09fc leaflet: always setup #sidebar-dock-wrapper properties
No reason to set these properties as soon as possible.

Change-Id: Iee1f108c628f4e6ada640cde0c698246fe33729c
Reviewed-on: https://gerrit.libreoffice.org/84177
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-12-02 04:33:26 +01:00
Ashod Nakashian
e48c919fbb leaflet: safer sidebar and some cleanups
Change-Id: I360e4c106891a2db29b75eb50f07661fe39bea94
Reviewed-on: https://gerrit.libreoffice.org/84176
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2019-12-02 04:30:23 +01:00
Tamás Zolnai
92dfb147df SpellingPopup: Remove selection by closing the context menu.
Change-Id: I99c87375f19225aead1b2f94806cadd1d27abe89
Reviewed-on: https://gerrit.libreoffice.org/84157
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2019-12-01 16:33:31 +01:00
Tamás Zolnai
5aaca986d0 SpellingPopup: disable dialog items on mobile.
Change-Id: I7e48ccfbcf007db1b4310cad14d230360860a966
Reviewed-on: https://gerrit.libreoffice.org/84156
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2019-12-01 16:33:01 +01:00
Andras Timar
b77267d39c Update UNO command translations
Change-Id: Icf5c5b3f83316e674cb9e7dcffb3426e4792ea17
2019-12-01 15:22:47 +01:00
Andras Timar
983a493ca5 Update bundled LibreOfficeKit headers
Change-Id: I9a1864d6258cf9efa2dae9e150814c780e5054f2
2019-12-01 11:47:35 +01:00
Michael Meeks
1c1989ad77 insert image needs fps_office component these days.
Change-Id: I29a5d5a5c9c180f7cab3b008874f9f2a7ea323f0
2019-11-30 22:47:01 +00:00
Michael Meeks
8bb64b6554 lok: add viewId to window painting, to allow special-casing on render.
View switching should not cause the sidebar UX to re-build at all. So
pass the view-id into the render call so we can avoid this.

Change-Id: I194c1841df2cedfcdf82defb2712d20715d7ff1d
Reviewed-on: https://gerrit.libreoffice.org/84131
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-11-30 23:01:48 +01:00
Szymon Kłos
045c93cf13 jsdialogs: dont show empty controls from panel titlebars
Change-Id: I548d4280f90f7c271c44cbf279ece941b1fbed33
Reviewed-on: https://gerrit.libreoffice.org/84083
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-11-29 19:17:13 +01:00
Szymon Kłos
476aedb5ee jsdialog: process transparency type updates
Change-Id: I3cded8b48bd0bd57053242a7ffca8c34dfbb6110
Reviewed-on: https://gerrit.libreoffice.org/84058
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-11-29 19:16:41 +01:00
Szymon Kłos
d50f2b377f jsdialogs: hide widgets when visible set to False
Change-Id: Idc1bcf8436657d91c277951efea080d63f9c8cb7
Reviewed-on: https://gerrit.libreoffice.org/84082
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-11-29 19:15:46 +01:00