Commit graph

6448 commits

Author SHA1 Message Date
Marco Cecchetti
89f37b5dd5 calc: drop down button marker
Change-Id: Ic069ad40e6749f43709760e7f4f0d96b39d5a4ce
Reviewed-on: https://gerrit.libreoffice.org/51598
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2018-04-03 21:42:27 +02:00
Marco Cecchetti
fac61cb01c online: set jquery dialog min width explicitly
Default jquery dialog min width is 150px, if the dialog width in core
is less than 150 pixel, the dialog looks ugly in online.

Since the dialog is not resizable it's fine to set width and minWidth
to the same value.

Change-Id: Ieba2e4d12b6c9f5b328091c453c7e09b10ac1422
Reviewed-on: https://gerrit.libreoffice.org/51597
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2018-04-03 21:42:05 +02:00
Marco Cecchetti
d887b08d60 calc: added support for hidden sheets and validation of cell content
Change-Id: I5db971b8826de7d5be2f88354925cd107082da77
Reviewed-on: https://gerrit.libreoffice.org/49112
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2018-04-03 21:41:22 +02:00
Tor Lillqvist
602923d1f8 Add CallPythonScript and CallPythonScript-Result
Change-Id: I95162cbf30a539be76a922a7b15f7db334b23d15
2018-04-03 16:35:16 +03:00
Tor Lillqvist
89c67b87e4 Add vnd.sun.star.script example
Change-Id: I4c8cc8606612afae0070a7db518d3db5d8269447
2018-04-03 16:25:17 +03:00
ozturkemre
d990423011 tdf#116406 insert sheet now jump to correct sheet
Change-Id: I0bd6b35a3086283202a155bead6d666b42f0502c
Reviewed-on: https://gerrit.libreoffice.org/51368
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2018-04-02 17:09:04 +02:00
Pranav Kant
2f620c3a31 600px is enough
Change-Id: Iff6036a708b2109e79ba57ef2766168e6e8cad57
2018-03-30 19:49:11 +05:30
Pranav Kant
7b16ab5f94 Ask to save unsaved changes to a new file
... when document is changed externally.

Change-Id: Ieaad5f0ed5cd4ee3bf5385f2a5cd297b7758a43e
2018-03-30 19:45:51 +05:30
Pranav Kant
49bc55e2a7 loleaflet: Don't close dialog on just getting the focus
User should explicitly click on individual buttons to be able to close
the dialog.

Change-Id: Ie78e057a92677c392fd97c637248c1da5597ad84
2018-03-30 18:54:44 +05:30
Pranav Kant
2f92e1da9c New home for hidden input field
Change-Id: I534b8d3dc9ac9ec4f37aa0ec929a9cd6a98558b4
2018-03-30 12:46:52 +05:30
Pranav Kant
54272b274d loleaflet: don't allow scrollbars to popup
Change-Id: Id018a91dac21ea7b81c57a1628b6e3c61f9c1ec4
Reviewed-on: https://gerrit.libreoffice.org/52069
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-03-30 12:46:19 +05:30
Pranav Kant
16590158b8 Ignore 'scroll' event on map container
Cherry-picked from:

commit 558f8c3a065e8fafa2d8912fd9c88625a8c3de97
Author: Iván Sánchez Ortega <ivan@mazemap.no>
Date:   Mon Mar 30 14:34:39 2015 +0200

    Fix #3333 by catching the onScroll event on the map container

from upstream Leaflet.

Thanks a lot to Kendy and Aron for extensive debugging.

Change-Id: I940cdf43b5d7d8f8368b4a01dcfc3417085eb4c7
2018-03-30 12:46:19 +05:30
Pranav Kant
2210fd63e5 Revert "loleaflet: avoid getting browser scrollbar"
This reverts commit 5437eee548.
2018-03-29 15:27:38 +05:30
Tor Lillqvist
e9ea5e8bc7 Python is also a special snowflake
Change-Id: I1689f992494e1abe50c45b1ae975b76b00e1b080
2018-03-28 20:17:32 +03:00
Tor Lillqvist
16aa8d58e9 Add more documentation
Change-Id: Ib4514b3a2551d47b5402b7baa12877046ff9f7ac
2018-03-28 19:25:02 +03:00
Michael Meeks
50a28669aa Disable limit tests for now.
Broken by 96292dc873

Change-Id: I954a06e5b964f522901c8a778c6bc0510208a3a2
2018-03-28 16:38:10 +01:00
Michael Meeks
ad21717498 Avoid copying most code into the chroot jail.
Last lingering bits are the xpdfimport import support and
some horrors required for NSS.

This requires a reasonably new core.

Change-Id: I2e08b841668722af0e3b947cf2b06687cca73b53
2018-03-28 16:38:10 +01:00
Tor Lillqvist
629bf09417 Clarification of comment: there are several forms now
Change-Id: If5154056c5abbd0786581741db8c217b0ec234ef
2018-03-28 17:05:36 +03:00
Tor Lillqvist
660c3fa255 Add deletion of named range
Change-Id: I31ffb07bef9d7244d1b8501f7a0abc0b144eaaf3
2018-03-28 16:51:59 +03:00
Tor Lillqvist
2e422d8fa2 Add some instructions
Change-Id: Ib5c1b4edc1c6290cc1165d2b8b4abd7faca8bf3f
2018-03-28 16:06:05 +03:00
Tor Lillqvist
d31415e89d For some reason the small patch to wsd/FileServer.cpp is not needed any more
At least not for me, on Safari, against online master 'make run'
running on Linux.

Change-Id: Idd8c4b8e5db8540b85173b9c01859cce59bfe707
2018-03-28 16:02:15 +03:00
Tor Lillqvist
790069ecbc Add input field for the name of the named range to add
Change-Id: I37fdb1a3e28ef0b3cc298ec4d5dc8620ba919190
2018-03-28 14:33:40 +03:00
Tor Lillqvist
1d6d01a928 Add a comment and drop some console logging 2018-03-28 14:32:52 +03:00
Tor Lillqvist
5cf40f3ba1 Add form fields to define the named range to add
Change-Id: I2a8f90391907cf1150a128744b0895186b81c862
2018-03-28 14:32:25 +03:00
Tor Lillqvist
0b728090f6 Adapt to change to the Python GetNamedRanges()
Receive and display also the range definitions.

Change-Id: I69bd1bf2659fd382fb0f3307119eef5fffb7b6bd
2018-03-28 14:31:52 +03:00
Tor Lillqvist
e87af96268 Fix HTML syntax error 2018-03-28 14:31:07 +03:00
Tor Lillqvist
fc9a463044 Add another demo for the Python script in iframe thing: Add a named range
(FIXME: Add input fields for the position, size, and name of the range
and pass them to the Python script.)

Change-Id: I56125e60f4266587297e2f06b00d666d442f270b
2018-03-28 14:29:59 +03:00
Tor Lillqvist
6eef0bd90b Add another demo for the iframe thing: Get list of named ranges in document
Change-Id: I3a8f4c05999a8c76df77686ecf55b6a49124c0cf
2018-03-28 14:27:48 +03:00
Tor Lillqvist
fdaa96cff0 Clarification 2018-03-28 14:26:48 +03:00
Tor Lillqvist
a0158a1432 Be more generic in the calling of a Python script code
Hardcode SetCellColor just in the framed.html.

Change-Id: I4461e19191028637037338fe0e7c5621258b5d37
2018-03-28 14:23:15 +03:00
Tor Lillqvist
d43c3ec859 Add more documentation
Change-Id: Ie18d34378e237e56f9223df614d05e0c69916734
2018-03-28 14:20:50 +03:00
Tor Lillqvist
05917b9a46 Add the HTML of the iframe loleaflet proof of concept
Change-Id: I3dcc79fe58b14533b41ace05c14263097b69717b
2018-03-28 14:13:05 +03:00
Tor Lillqvist
0b77d1b176 Add handling of the SetCellColor proof-of-concept postMessage event
When we receive such a message, we forward it to the corresponding
Python script (from core's scripting/examples/python/SetCellColor.py).
We also save the event's source so that we can send the return value
of the script back to its window.

[Later addition, when pushing upstream: This commit will be reverted
at least partially by later commits. I didn't bother with squashing
them all into one. So sue me. Also, it might be of interest to see in
the commit log how my ideas for how to implement this stuff evolved.]

Change-Id: I1f54a90000937d6c9b91fb15cdfde329223cf8db
2018-03-28 14:02:10 +03:00
Tor Lillqvist
f7f07f50bb Check for the proof-of-concept case with no WOPI but loleaflet in an iframe
In that case we still want to run the postMessage event handling.

Change-Id: I147aa670e7833156ae7374676aaf3a1802b2906d
2018-03-28 13:13:52 +03:00
Tor Lillqvist
890c52b622 Add a notWopiButIframe property to the options object
Set to true iff the URL for the enclosing document had a non-empty
parameter called NotWOPIButIframe, as in for example
http://snorken.local:9980/loleaflet/94781ec6/loleaflet.html?file_path=file:///home/tml/lo/internal-online/test/data/empty.ods&NotWOPIButIframe=true
. In this case the enclosing document (i.e. loleaflet.html) should be
displayed in an iframe of an enclosing HTML document.

Change-Id: I202e2a726ce15a23785b6d9accba4c123517197a
2018-03-28 13:13:07 +03:00
Tor Lillqvist
630d8d736c We want notifications from vnd.sun.star.script: thingies, too
Change-Id: Ic407bcc1a2534854812c2732cc262f859d4adfe5
2018-03-28 12:28:13 +03:00
Tor Lillqvist
bb4c1a7fa7 Don't filter out all scripts, just Java and JavaScript ones
Change-Id: I3054a3f36ae1777b162fb5a1b9a456f1bce9248b
Reviewed-on: https://gerrit.libreoffice.org/51991
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2018-03-28 11:18:43 +02:00
Aron Budea
c20c51d8a5 Fix unused-result warning.
Change-Id: I31fa4edd68e8a5ba973c159599e71e74406b8e6e
Reviewed-on: https://gerrit.libreoffice.org/51947
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-03-28 10:16:29 +02:00
Jan Holesovsky
3304e90935 The return value of system() shouldn't be ignored.
Change-Id: I7422bfb3997c205333a8558884c65f2ff3795e38
2018-03-28 09:30:27 +02:00
Henry Castro
472cae55e7 loeaflet: debug w2toolbar
avoid minify w2toolbar for debugging purposes

Change-Id: I6a24f498511d4b03a04e68af0aa3715bb8c1b48b
2018-03-27 23:05:07 -04:00
Pranav Kant
b2fd459486 missing semi-colons
Change-Id: Ic783fde87b8939152b76264626ec9476df81b2ff
2018-03-27 18:16:06 +05:30
Pranav Kant
5437eee548 loleaflet: avoid getting browser scrollbar
while keeping the position of hidden input field to be around the
cursor.

Change-Id: I5539cc5c8e99526b771be0e11336dd6d77e5b02c
2018-03-27 18:15:55 +05:30
Miklos Vajna
684d730221 ChildSession: use NoFileSync as default during convert-to as well
This already worked for normal save, but not for convert-to.

Depends on core.git commit 0518bb5c3a98d973c3675fdd4cb8c52a669a3507
(desktop lok: handle NoFileSync in saveAs(), 2018-03-26).

Change-Id: Iec1a92fba2094f3954cc1a4ed6ee3372076fddc5
2018-03-27 09:20:50 +02:00
Jan Holesovsky
aaf76a13ba loolconfig: Create a shortcut for running the systemplate update.
Change-Id: I082cf6e3f560a9c1880f0680ad4d2876d055dbc4
Reviewed-on: https://gerrit.libreoffice.org/51315
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2018-03-26 23:13:33 +02:00
Pranav Kant
6bb38614bd Some helpful logging
Change-Id: I75e5e6cbbecf1e1af94a6710ecab4ced5637f14f
2018-03-23 16:50:28 +05:30
Pranav Kant
82ec190692 Don't bore the map while user is playing with the dialog
Change-Id: I2aa466ec66b71fc7d65218a200638de142e99eea
2018-03-21 21:40:54 +05:30
Pranav Kant
8481689f93 update bundled headers - clipboard_changed
Change-Id: Idad3aef64acb01928f6f70010a0e9d7ed297aede
2018-03-21 21:40:37 +05:30
Miklos Vajna
0f4da16aec Fix -Werror=switch warning
Change-Id: I9542ec33df7a2c141055264cb09dc58cb3ad7593
2018-03-21 11:05:13 +01:00
Jan Holesovsky
77c45d456c Use a 'breeze' icon for the insert chart toolbar button.
Change-Id: I8a4a8a45a634f44f8cc600c5c30232c9451c533c
Reviewed-on: https://gerrit.libreoffice.org/51659
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
(cherry picked from commit e641e524d3356a89126ce743f402fb023154e4ea)
Reviewed-on: https://gerrit.libreoffice.org/51689
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-03-21 10:02:44 +01:00
Pranav Kant
2d9d2b585f lokdialog: Avoid flickering of dialog's child window
Setting canvas's width, height unnecessarily have a bad effect - it
flickers.

Change-Id: Ic00a7ab392b03ee7a66099255e21ebb7c8973314
2018-03-20 14:53:43 +05:30