Commit graph

9330 commits

Author SHA1 Message Date
Pedro
ecacf1752b Impress: Style scrollbar when on mobile
Change-Id: I0d99afc18835445e9b072f69d761aa6f72b287cc
Reviewed-on: https://gerrit.libreoffice.org/80772
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-15 10:33:55 +02:00
Pedro
1c58942259 Hamburger menu: create and add repair icon
Change-Id: Ide7f1f036993d0664a94cdd66467f0602f8ee83b
Reviewed-on: https://gerrit.libreoffice.org/80781
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-15 10:32:37 +02:00
Ashod Nakashian
77e7cae689 wsd: fix password-protect file loading from multiple views
With password-protected files, the first loading attempt
always fails due to missing password. At that point the
client is notified of the missing password and the user
is prompted. The second attempt includes a (hopefully)
correct password and the document loading commences.

Due to the fact that an exception is raised when
the loading fails, this left the loading latch
triggered, which blocked subsequent attempts.

Change-Id: I7cc257a36eb1cc080f460aac8cdb7030783a5914
2019-10-14 21:35:27 +01:00
Tamás Zolnai
a4fb071ecf menu-to-mobile-wizard: Show a blue overlay on "active" main menu button
Change-Id: Ief09e5352a404ad8da486198c3f03b4e4cfce92f
2019-10-14 20:22:25 +02:00
Szymon Kłos
80ecaa60f6 jsdialogs: send events to the core
Change-Id: I23a5a14b93bda205c9c276a697e58d1dc4147f0c
2019-10-14 19:18:07 +02:00
Tamás Zolnai
2d3cfba22f menu-to-mobile-wizard: Fix menu panel height
Change-Id: If3a453ebaa75717cc2fb9f195b56c0bf5c6ade17
2019-10-14 15:15:42 +02:00
Tamás Zolnai
9810a905a2 Fix title for mobile wizard
Change-Id: I0c22b4a550d8cabdc72a8b7f843bb4b14caefc2b
2019-10-14 15:15:42 +02:00
Szymon Kłos
1037b8adb8 jsdialogs: add unit translations
Change-Id: I260cca656e2a08395549012f83d8607a14b0c612
2019-10-14 13:29:22 +02:00
Szymon Kłos
a5d7e2e349 jsdialogs: add possibility to change unit presentation
Change-Id: I6f3afdbd6c7a4708f3a1e17239811fd213f0ac9b
2019-10-14 12:06:44 +02:00
Miklos Vajna
bba5b1e7e4 test: don't validate ssl certificates while running unit tests
Which was the case before commit
5d57f5aef3 (storage.ssl.enable should be
in sync with ssl.enable by default, 2019-10-11), otherwise we fail to
connect to the test wsd, since its certificate is typically not trusted.

With this

	make check CPPUNIT_TEST_NAME="unit-copy-paste"

passes again.

Change-Id: If3a8a293831313e74eacc1cbc092922d2c72f08c
2019-10-14 10:04:36 +02:00
Tamás Zolnai
fb4a44b311 This is not needed here.
Change-Id: Ib3775bdaa0ea2ca570152cb59dd604346cf0d0a8
2019-10-13 12:03:45 +02:00
Tamás Zolnai
6b0b1c3d52 menu-to-mobile-wizard: Add sub menu arrow for every levels of menus
Change-Id: Ie4ea6dfba664a8d39d1e5d7f973426563447f330
2019-10-12 16:44:58 +02:00
Tamás Zolnai
b35920eb83 menu-to-mobile-wizard: Trigger mobile menu wizard by hamburger menu button
Change-Id: I731548722c6b294cd6e2c244ea7abbcad91fdd4a
2019-10-12 16:44:58 +02:00
Tamás Zolnai
0ce410e16c menu-to-mobile-wizard: Make the new menu wizard to take full heigh.
Up to the top toolbar.

Change-Id: I7f35e94bf491e7fd7032b42eefe47e6170cfecf3
2019-10-12 16:44:58 +02:00
Tamás Zolnai
a85a6354f5 menu-to-mobile-wizard: Hide menu items which are hidden conditionally.
Change-Id: I8a56af70c0836a0332f2beab9e2006310dcf17e0
2019-10-12 16:44:58 +02:00
Tamás Zolnai
241ddc8d5c menu-to-mobile-wizard: Create JSON for the whole menu
Change-Id: I93ca728be31f37714bf64665f1f07edb84c33fbd
2019-10-12 16:44:58 +02:00
Tamás Zolnai
e34e5d2171 mobile: There is no 'mobile-wizard' menu item any more.
Change-Id: I781d37a0d75d39f63fce1cbe572278e8a30895b3
2019-10-12 16:44:58 +02:00
Andras Timar
5d57f5aef3 storage.ssl.enable should be in sync with ssl.enable by default
storage.ssl.enable=false by default is not good. loolwsd default config should
work, e.g. in case of snapshot docker images. When ssl.enable=true, this implies
storage.ssl.enable=true, because browsers do not allow mixed content, so it is
not possible to connect to the storage with plain HTTP, while the content from
loolwsd is served with HTTPS.

TODO: find out what to do in case of upgrade, when the user has an old config
file. Probably storage.ssl.enable should default to ssl.enable when it is not
present in config file.

Change-Id: Ifdcb070745d649dd9840dccf2e5641058a13d4e4
Reviewed-on: https://gerrit.libreoffice.org/80660
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2019-10-11 23:43:09 +02:00
Szymon Kłos
9b0aa58e5b jsdialogs: spinfield units and buttons in row
Change-Id: I4bcf688c2de548ab6c27c06105743c05bdfaf3b2
2019-10-11 21:53:47 +02:00
Szymon Kłos
2d5874a19e Use vex for annotations in all mobile apps
Change-Id: I29194c0322c5258f9e074af4f3b3985470496300
2019-10-11 19:32:20 +01:00
Szymon Kłos
dbdfd19d19 Fix mobile detection in Impress
Before we used css based screen width detection.
Delete condition which is not working in Impress,
use explicit JS check added before.

Change-Id: I06819391bd470fd2185bc64318afbe5d9614f0a8
2019-10-11 19:32:20 +01:00
Szymon Kłos
c8962910a5 Use vex dialog on mobile when inserting a comment
Change-Id: Ibe089c810edba7696fd6e707e4a757ee83fdf99d
2019-10-11 19:32:20 +01:00
Henry Castro
ae89da611d iloleaflet: mobile: add a button to insert a slide in the Impress ...
document

A file is created Control.MobileSlide.js for the purpose to create a
button control at the bottom right of the Impress document only if the client
browser is identified as Mobile. The button has the function to create a new
Slide.

Change-Id: I494687a91cf4dc06d08e98c6844b06fb69b2448e
Reviewed-on: https://gerrit.libreoffice.org/80665
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-10-11 17:17:30 +02:00
Michael Meeks
08201ac80e mobile: disable chart insert in writer.
Avoids the need for a mobile data-table editing UI (as of now).

Change-Id: I2d6b71697eadaacdcd7fbd09baf516a2877050f6
2019-10-11 11:55:17 +01:00
Tor Lillqvist
1cf3bec303 tdf#123741: Call LibreOfficeKit::setLanguageTag() also when loading a template
Sadly I have no understanding why not doing that caused such a
mysterious end result. But I am glad I thought of trying this simple
thing before spending any more time trying to understand what is going
on.

Change-Id: I129f8fffa32fa087e21c444f9657394de0e255a1
2019-10-10 19:35:30 +03:00
Szymon Kłos
4ca6a57ca5 jsdialog: close after click on document
and uncheck toolbar item

Change-Id: I8e427fa9697132add9bd0b9e5c06970ab7e9f850
2019-10-10 17:51:11 +02:00
Szymon Kłos
9d98ed11c6 Be sure sidebar is not shown on mobile
Change-Id: I776c87754979dbfcea66dc067f07e5474e2872aa
2019-10-10 17:51:11 +02:00
Henry Castro
30f37ef7b0 loleaflet: debug: use unique name for document container
I had a not good debugging session trying to find out when
the CSS properties of the document container are changing dynamically.
The best scenario is to use the unique name documentContainer, so we can
track all CSS properties dynamic changes, and it can set breakpoint in a
suspicious change for deeper analysis.

Change-Id: I3accef1c374689f04da336cd0a84047b498540b1
Reviewed-on: https://gerrit.libreoffice.org/80610
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-10-10 15:41:56 +02:00
Gabriel Masei
0ca4d204bb Add basic support for kubernetes deploy
Change-Id: I695f412570339a6225b198bcd3fd3b4f29fb4bd3
2019-10-10 15:48:21 +03:00
Szymon Kłos
60962aadda Don't show insert chart in mobile Writer
Requires complex dialog...

Change-Id: I7c515821f2a400cb7d0e7519eb35fa317e929a2c
2019-10-10 13:21:53 +02:00
Szymon Kłos
5d3cc19358 jsdialogs: hide toolbar-down if tool palette visible
Change-Id: I4f1dc4b06dd916e65be808ddd98fd6b49d67e5cc
2019-10-10 12:13:55 +02:00
Tamás Zolnai
3f710955ba mobile_wizard: Simplify code
We don't need to return with two children in _removeStylesPanelAndGetContent()
method if we use only the first one in _addChildrenToTextPanel() method.

Change-Id: I11137ce0620e86ad7d2c5ebcaba752f3171b96e0
2019-10-10 12:06:42 +02:00
Tamás Zolnai
357f802051 mobile-wizard: sidebar relayout: Keep the structure of the JSON as it was
Extend the box under the panel when insert the styles panel's content.
Also change the id to 'box42' to have it unique in the current context.

Change-Id: I51a6975bd1da3b36b81e2783050910b781177c5c
2019-10-10 12:00:13 +02:00
Marco Cecchetti
dfff83fb2b lok: jsdialogbuilder: explorable entry: support for both title and value
Change-Id: I4f300507349b64972d0a961f0c4063352810675a
2019-10-10 09:29:44 +02:00
Pedro
041ba36b45 Style impress slide sorter
Change-Id: Ic3fbc8b9d7404c822fe67c70b0e7b282c3d06db5
Reviewed-on: https://gerrit.libreoffice.org/80562
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-10-09 19:33:33 +02:00
Pedro
2da2de5302 Added active state for spinfieldcontainer controls
Change-Id: Ie1dcfbfbfb83df4d54a9fe9dc85f6bb14e355dce
Reviewed-on: https://gerrit.libreoffice.org/80561
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-10-09 19:33:25 +02:00
Pedro
159bb23b43 Add checked state to ui-combobox-text
Change-Id: Id7444f893e94c8186a4a151c0f18c257617f902a
2019-10-09 18:33:05 +01:00
Marco Cecchetti
e7f79f4f1c loleaflet: icons for expandable entries
Change-Id: I1698b540226e8342a59300b640c7113e48f6f1b3
2019-10-09 19:04:44 +02:00
Szymon Kłos
1455f45cc3 jsdialogs: add arrows to explorable items
Change-Id: If2d0cab069241c907512ad39dbb6127ff6b434cf
2019-10-09 18:03:33 +02:00
Henry Castro
e660491383 loeaflet: remove empty HTML elements
The document type is detected when 'doclayerinit' event is fired.
At that point we know the document type so we can remove safely
the empty elements that they are useless to the document and
of course a clean document to debug. I hope in the near future
the server side can remove these unwanted elements,
anyway how is useful an empty html element?

Change-Id: I25f5b8cbcd176c4cc66abcb37b7d0d4b588d1d96
Reviewed-on: https://gerrit.libreoffice.org/80557
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-10-09 17:42:59 +02:00
Szymon Kłos
76f2be67e5 jsdialogs: fix tabs / title bar switching
Change-Id: If708cf47a8766803f6c9bb5aa1baf67a39bd0ce3
2019-10-09 17:39:03 +02:00
Szymon Kłos
9cf13e86b0 jsdialogs: make combobox items different style
Change-Id: I1e1c1a2b211ab1c1f4fa5f298c480ced293fe53e
2019-10-09 17:35:59 +02:00
Szymon Kłos
f142f2d374 jsdialogs: use header style for all p, align XLineColor
Change-Id: Ida3be2f264b8f640f093db5260a3bba881e01bef
2019-10-09 17:31:37 +02:00
Marco Cecchetti
632506105b lok: impress: more icons for the properties mobile wizard
Change-Id: Ie9c7d438b70cc3890ff61e13c2ecf0c162c8c048
2019-10-09 17:26:59 +02:00
Szymon Kłos
8211e9058e jsdialogs: inject chart type selector
Change-Id: Ib6a6fe192107d2847e69953e3ab55307eefd3f21
2019-10-09 17:23:36 +02:00
Michael Meeks
ea3a782f0a mobile: simplify impress quick-toolbar.
Change-Id: I097cd1a91fa9d0f5423999238a5cce471df58608
2019-10-09 16:06:50 +01:00
Szymon Kłos
f3b546d24b jsdialogs: avoid operation on undefined
Change-Id: Iba7a0d0d7e7ba335e04503284c0affd0e0a35cb0
2019-10-09 16:56:05 +02:00
Michael Meeks
f3363723c6 mobile: simplify calc quick toolbar, add row insert/remove.
Change-Id: I1bd8ca5a952bfe720dfaea82513917121ce74f6e
2019-10-09 15:35:45 +01:00
Szymon Kłos
2bd0f9b70b jsdialogs: style icon in number field
Change-Id: Iea35ee612248d4d76117a0154b427630d7728ee5
2019-10-09 16:29:42 +02:00
Szymon Kłos
7905c20888 jsdialogs: add +/- buttons for number field
Change-Id: I029ca937ab182306a3d5d218470a14938f3fd231
2019-10-09 16:27:45 +02:00