Commit graph

9501 commits

Author SHA1 Message Date
Pedro Pinto Silva
ae119a4102 impress:mobilewizard:paragraph: fix icon arrangements and hide labels
Change-Id: I5c7d1be30fcbdecefe894c27c46bce29a0f082c2
Reviewed-on: https://gerrit.libreoffice.org/82081
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-11-06 16:30:11 +01:00
Pedro Pinto Silva
526056f630 Fix search on mobile (including in the meadia query)
Change-Id: I4384bc1c29b5081ed5c1b40bad68567c208aa574
Reviewed-on: https://gerrit.libreoffice.org/82080
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-11-06 16:30:00 +01:00
Andras Timar
88565f3d88 Updated Slovenian translation
Change-Id: I1bd235c872c97058fe33d8aa30b885d649438959
2019-11-06 15:54:56 +01:00
Marco Cecchetti
545b85fb1d loleaflet: color picker: more shades
Change-Id: If231683caa1678f3391429b10762ed800790574a
2019-11-06 15:46:49 +01:00
Ashod Nakashian
d902160dd5 leaflet: use uno command for button id to toggle the buttons when active
(cherry picked from commit 9c2baffc0e20db5e5ff4ba86bb1dc0543b6a4662)

Change-Id: Id48d739d10eac90785ba89a06613b89d3b615300
Reviewed-on: https://gerrit.libreoffice.org/82115
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-11-06 03:49:12 +01:00
Ashod Nakashian
f1398335d8 leaflet: label server-id in the about box and open in new page
This adds a label 'Served by:' before the server-id in the
about box, and opens the discovery page in a new page to
preserve the document page.

Change-Id: I3f934f7e25743e400f9e38f7604b5cc7d0c850ca
Reviewed-on: https://gerrit.libreoffice.org/82022
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-11-06 03:44:06 +01:00
Ashod Nakashian
7a976488f0 wsd: cleanup the global flag accessors
The following flags are affected:
ShutdownRequestFlag
TerminationFlag
DumpGlobalState

Since it's common to grep for all places
that set or reset these global flags, it
makes more sense to have explicit functions
for each operation. Now we have set and reset
accessors where appropriate and get is reserved
for read-only access.

This changes the getters to only return
the boolean value of these flags rather than
a reference to the atomic object, now that
they are read-only.

Also, a few Mobile-specific cases were folded
either with other Mobile-specific sections, or
they were now identical to the non-Mobile case
and therefore deduplicated, making the code
cleaner and more readable.

Change-Id: Icc852aa43e86695d4e7d5962040a9b5086d9d08c
Reviewed-on: https://gerrit.libreoffice.org/81978
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-11-06 03:43:45 +01:00
Ashod Nakashian
887ecdb8d3 wsd: leaflet: Insert background
This adds support for .uno:SelectBackground
which inserts slide background image.

(cherry picked from commit 30a77e7e490e4e83bb6423f41388ee9adbccfae3)

Change-Id: I587b31f67d518aba348ae7e8d058ada23a61e858
Reviewed-on: https://gerrit.libreoffice.org/67500
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-11-06 03:43:02 +01:00
Ashod Nakashian
f86a1cb016 leaflet: add impress menus for sidebars
(cherry picked from commit 3309b8b637488b0b20894f4d16be3e132efa8bee)

Change-Id: Idc51426994cdbf679592c397122c1e4dfc314abe
Reviewed-on: https://gerrit.libreoffice.org/81975
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-11-06 03:42:49 +01:00
Ashod Nakashian
35fdc48e28 wsd: upload to storage when per_document.always_save_on_exit is set
Saving the document on exit is not enough, we also need
to send it to the storage. We now force doing that,
even when there is no modifiction to the document
(i.e. a new version wasn't really saved).

Reviewed-on: https://gerrit.libreoffice.org/81336
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit f2913f20b03e916ce8a70f927ca3f5655a3768a8)

Change-Id: Ic4e1b1424f32d3141e98c936a51e47c9e4b9f753
Reviewed-on: https://gerrit.libreoffice.org/81576
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2019-11-06 03:41:44 +01:00
Michael Meeks
967d3a4156 Mend touch sizing of rows & columns.
Change-Id: I6bcd8a24972845fd37d8c7eafbcc0124fcd1a25c
2019-11-06 01:20:30 +00:00
Michael Meeks
0a8c8d7fc5 Enable spreadsheet pinch to zoom.
Change-Id: If8e4b87a78eeed6bb6a543d9acd532d5e096c540
2019-11-06 00:57:20 +00:00
Michael Meeks
a8924e6e6f avoid crash prior to load when _tileCache is not yet created.
Change-Id: Ic8b3b25af23df7638f0ccf48740f2267612e4e8b
2019-11-06 00:33:37 +00:00
Michael Meeks
80f9017acd calc: repair context menus.
Change-Id: I8efc4bf9d1dee745ddd31167cae3342ff9122d2e
2019-11-05 20:47:07 +00:00
Michael Meeks
edb3a3043a avoid hyperlink related exception.
Change-Id: I40663320dede76f6ebb6ead381b10cbb5fd8f2c5
2019-11-05 20:32:59 +00:00
Michael Meeks
84e67f6237 avoid exception accessing non-existent options.
introduced in 30f37ef7b0, oh for
sensible types.

Change-Id: I411157e71e9ef03dd8305adbe9a1011bb76ed116
2019-11-05 20:32:59 +00:00
Muhammet Kara
0040da7dda Revert "jsdialogs: inject chart type selector"
This reverts commit 8211e9058e.

It is no longer needed as we now have the actual chart type
side bar panel.

Change-Id: I5c36fad1684f799bd85645008bb0177a2e9ba6bb
Reviewed-on: https://gerrit.libreoffice.org/82101
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-11-05 20:54:00 +01:00
Henry Castro
fccc7ac3bf loleaflet: mobile: add new id command to handle full presentation
Some actions do not have UNO commands, they require two step operation
like the 'fullscreen' action.

Change-Id: I657ffca0356853ced10eb20f7ad072e0ac96751e
Reviewed-on: https://gerrit.libreoffice.org/82100
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-05 20:46:47 +01:00
Muhammet Kara
435a5202e5 mobilewizard: Add some missing images for chart type panel
Also add them into the mobilewizard.css so that _valuesetControl
inside Control.JSDialogBuilder.js picks them up.

Will be adding more images in follow-up patches related to
the chart type panel. Might also be a good idea to generalize
the _valuesetControl function and add divs with proper/different
naming later.

Change-Id: Id8c48ae96664c11ea0e7d4f3e607f6c60903abf1
Reviewed-on: https://gerrit.libreoffice.org/82087
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-11-05 19:00:25 +01:00
Michael Meeks
8e7f64dc25 gaptick map - dealing in pixels internally solves rounding issues with zoom.
Change-Id: I8ee233a66bc7381200b966c22d8a2abd73403713
2019-11-05 17:42:59 +00:00
Grzegorz Araminowicz
76dadbeea0 display popup with address when cursor is over hyperlink
Change-Id: Icc480c8e9936af4abe500d78704a9b49c9426230
Reviewed-on: https://gerrit.libreoffice.org/81603
Reviewed-by: Grzegorz Araminowicz <grzegorz.araminowicz@collabora.com>
Tested-by: Grzegorz Araminowicz <grzegorz.araminowicz@collabora.com>
2019-11-05 17:44:06 +01:00
Szymon Kłos
dacfda2b1a jsdialogs: set current value for color picker
It works for font color and highlight now.

Change-Id: I253483eabe567b32f48bf47fbb8489e07d0f3a52
2019-11-05 16:41:46 +01:00
Tor Lillqvist
8c5b61b41e tdf#126973: Don't do anything in the tooltip show and hide functions on iOS
I have no understanding of what this code does and how it works but
this seems to fix the problem described in the bug.

Change-Id: I7188745b5c77d9e065828336b7dd6524aedc1dce
Reviewed-on: https://gerrit.libreoffice.org/81079
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit b95a22a740bccbd50d6cf49ad0b5fdbd1d489a90)
2019-11-05 17:00:51 +02:00
Muhammet Kara
ba3bfe4cab Add Makecache to gitignore
Auto-generated by GNOME Builder

Change-Id: I4112f751ee45df3000dbab0aa00151eaaf803cb7
Reviewed-on: https://gerrit.libreoffice.org/82070
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-11-05 14:25:56 +01:00
Pedro Pinto Silva
ee6700463a Spreadsheet: spreadsheet-toolbar: add proper press states on mobile and disable desktop over states when on mobile
Change-Id: Id768d33e7267a17b25664a880333195fe28ce0ba
Reviewed-on: https://gerrit.libreoffice.org/82033
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-11-05 14:19:57 +01:00
Pedro Pinto Silva
e2206e12ac Fix white screen after user's inactivity:
- add different class to vex overlay
- add different css rules

Change-Id: I89c971bd160a05a1c1fae20bbdecbf171c47f8ca
Reviewed-on: https://gerrit.libreoffice.org/82061
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-11-05 14:19:24 +01:00
Pedro Pinto Silva
ca7f7e5289 mobilewizard: impress: Hide top slide sorter when hamburger menu is open
Change-Id: I283282928ac73c32bbb62a017b0c4eeec52b47c3
Reviewed-on: https://gerrit.libreoffice.org/82009
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-11-05 14:18:49 +01:00
Pedro Pinto Silva
a023cc184c mobilewizard: impress: improve scrollbar and fix inconsistencies on the newly added slide sorter
Change-Id: Id889caf21de00b8bf6620a37066c4e40793226c6
Reviewed-on: https://gerrit.libreoffice.org/81994
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-11-05 14:18:23 +01:00
Pedro Pinto Silva
2cb592b560 mobilewizard: image: disable rotation label since it does not apply here
Change-Id: I83e5fbfd3377335b87a8d06b8570012e6c337ff2
Reviewed-on: https://gerrit.libreoffice.org/81986
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-11-05 14:17:36 +01:00
Pedro Pinto Silva
97c25ade86 mobileWizard: Center contents from impress: Layout tab without affecting other tabs
Change-Id: Ib0c989e5467b1f6fa9b0ed1d21281e14f75015ae
Reviewed-on: https://gerrit.libreoffice.org/81984
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-11-05 14:05:08 +01:00
Pedro Pinto Silva
a19f2faf2f mobile: toolbar-search:
- replace free text "Search:" with a proper label element
- give class to input group parent
- style search toolbar
- change font size to 16px so to avoid auto zooms from iOS devices

Change-Id: Iccbae8f7a932786acfde936e2002bd36b1fc564b
Reviewed-on: https://gerrit.libreoffice.org/81883
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-11-05 13:57:34 +01:00
Henry Castro
06b0bfe3e0 loleaflet: fix "Uncaught TypeError: Cannot set property 'invalid' of
undefined".

ImpressTileLayer.js:686 Uncaught TypeError: Cannot set property
'invalid' of undefined
    at NewClass._onInvalidateTilesMsg (ImpressTileLayer.js:686)
    at NewClass._onMessage (TileLayer.js:553)
    at NewClass._onMessage (ImpressTileLayer.js:604)
    at NewClass._onMessage (Socket.js:806)

Change-Id: Iea1272d8239a56731685597d022f63eb663bd6ea
Reviewed-on: https://gerrit.libreoffice.org/82044
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-04 22:27:54 +01:00
Henry Castro
7dbb6e4f38 loleaflet: mobile: recreate the scrollbar on 'orientationchange' event
The "mCustomScrollbar" was created the scrollbar dynamically, so when
the user change the orientation, it is necessary to destroy the scrollbar and
create again with the new respective axis.

Change-Id: Ic4d90de6e9989478f5d60254692b287c76368385
Reviewed-on: https://gerrit.libreoffice.org/82016
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-04 22:27:36 +01:00
Henry Castro
4db924d470 loleaflet: mobile: detect if device is in portrait orientation and
change axis of the scrollbar.

The "mCustomScrollbar" create the scrollbar dynamically, so it is
necessary to pass the axis property to show horizontal or vertical
scrollbar. If the device is in portrait orientation change the axis to
'x'.

Change-Id: Iefca4ca66efaf4f6cd1bfa12ebb70b90329aef73
Reviewed-on: https://gerrit.libreoffice.org/82015
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-04 22:27:01 +01:00
Henry Castro
35f2e56d82 loleaflet: mobile: apply CSS @media rule for portrait and landscape in
Impress document

When mobile device change orientation the client browser will apply the
corresponding @media rule.

Change-Id: I96b9d8fe7152833287de1be3a81d7423d22fc4c9
Reviewed-on: https://gerrit.libreoffice.org/82014
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-04 22:26:31 +01:00
Henry Castro
d8833d39d3 loleaflet: mobile: avoid hardcoding CSS bottom property
Use the CSS class selector to modify the bottom properties for
each tile layer document, so adjusting values for portrait or landscape
orientation not be so complicated.

Change-Id: I900ef5c4ec3f770fd802a23238fdd9e6eb838772
Reviewed-on: https://gerrit.libreoffice.org/81928
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-04 22:25:50 +01:00
Henry Castro
70d2a7b940 loleaflet: mobile: when the document tile layer was added also update
the sizes

When 'doclayerinit' is fired, a new document layer was added then it is
necessary to update the sizes and the default auto zoom.

Change-Id: Iece07bd5510789479f58e080b300525169539c6f
Reviewed-on: https://gerrit.libreoffice.org/81925
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-04 22:25:00 +01:00
Henry Castro
507dd08459 loleaflet: fire 'orientationchange' event
In order to detect if the orientation of the device has changed, it is
required to capture the window resize event. However, there is another
event attached from iframe element called resize-detector. I am not sure
how is used, but I do not want to cause any regression from desktop
version just let's add another event listener and it will be fired on
mobile case.

Change-Id: I54b5ba9239a71216faae4757a0cc7d9826c443ff
Reviewed-on: https://gerrit.libreoffice.org/81923
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-04 22:24:31 +01:00
Henry Castro
93265844c6 loleaflet: add DOM util functions: "isPortrait" and "isLandscape"
It is necessary to detect the mobile browser orientation.

Change-Id: I3281e4abac453c4f6de27e8d5e54bb0506fecf66
Reviewed-on: https://gerrit.libreoffice.org/81922
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-04 22:24:07 +01:00
Henry Castro
ad15c61e9b mobileWizard: avoid showing toolbar if it is not allowed
In view mode the function hideWizard it is forced to show the toolbar

Change-Id: Ib49501730fde1da65925db68b0b98baac2f15473
Reviewed-on: https://gerrit.libreoffice.org/81921
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-04 22:23:43 +01:00
Henry Castro
d4e364255d loleaflet: initialize mobile toolbars before adding the layer
Occurs that the 'permission' event, it is fired before the mobile
toolbar are created.

Change-Id: Ib96082b249a3d4e509d996f7382fd00c870de6f0
Reviewed-on: https://gerrit.libreoffice.org/81920
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-04 22:23:08 +01:00
Andras Timar
b6372c4be6 Online Help: translate TOC
Change-Id: I5049f5dca534a6c1a3cf2a6947dd13f2d0958ab3
2019-11-04 21:53:40 +01:00
Andras Timar
04ff4c8f82 Online Help: Spanish translation
Change-Id: Ia2c795732eafb9c23ff662e46a6a4187e033e1d4
2019-11-04 21:53:40 +01:00
Andras Timar
d8992b8056 Online Help: more formatting and grammar fixes
Change-Id: Iff9dd62ef907d89392134558c864ed5e51f9010b
2019-11-04 21:53:40 +01:00
Muhammet Kara
5c641b93d5 mobilewizard: Remove remnants of pseudo chart type panel
Change-Id: Iae8746459a6e846222ae73695cc68346504932b5
Reviewed-on: https://gerrit.libreoffice.org/82041
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-11-04 19:49:06 +01:00
Pedro Pinto Silva
49bb017e5a mobileWizard: toolbar-down: overlay
- improve w2ui-tb-down interaction and change its appearance depending on its status
- Fix w2ui-overlay-editbar -> menu where two triangles were being drawn instead of just one
- Fix w2ui-overlay-editbar -> Apply the same border and shadow etc properties used in the color picker overlay

Change-Id: Ic90844613eae126b5efdb7da8930d4007639850f
Reviewed-on: https://gerrit.libreoffice.org/81855
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-11-04 18:07:01 +01:00
Iván Sánchez Ortega
e1f4825dea loleaflet: Simplify data structs for Calc column/row headers
This replaces the (undocumented) L.Control.Header.DataImp data structure
with the (documented) L.Control.Header.GapTickMap data struct.

This is done in preparation for further work that needs to handle row/col sizes.

As a side effect, all column/row indices for the headers are now absolute to
the sheet, as opposed to relative to the visible ones in the screen.

The impact of these changes on performance should be negligible.

Change-Id: I1688b84db7445e97ac4d75dd073e32cc20e29d9d
2019-11-04 15:05:37 +00:00
Tor Lillqvist
9d6c174462 tdf#128577: Close an already open document when asked to open a new one
Add a "singleton" class method to DocumentViewController to return the
(as for now) singleton DocumentViewController.

Change-Id: I0b8a8def558cfe7f9469b6062a86311dfa63f549
Reviewed-on: https://gerrit.libreoffice.org/82007
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit 2807f907d947549a17c5bae586b85d412d552a09)
Reviewed-on: https://gerrit.libreoffice.org/82021
2019-11-04 15:25:54 +01:00
Tor Lillqvist
2c8350b8a1 Don't require the Python modules unless on Linux
When building the iOS app my way, I do the J bits on a Linux box and
not on the Mac, thus I don't need any Python stuff on the Mac.

Change-Id: Ib8092870598fb3a8f304aefa8fab21fe7e3acc73
Reviewed-on: https://gerrit.libreoffice.org/82018
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-11-04 15:25:38 +01:00
Tor Lillqvist
36b126c745 Fix build for MOBILEAPP
Change-Id: I410359a8f2e6cda6e0857d370a3b18db68b619e2
Reviewed-on: https://gerrit.libreoffice.org/82013
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-11-04 15:25:01 +01:00