Commit Graph
8 Commits
Author SHA1 Message Date
Andrea Gelmini 9c5f2dc85d Fix typos
Change-Id: I085ff68b4550468eb163d88978c81d8b5335e6ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108561
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-01-01 22:31:36 +01:00
Kevin Suo 6b57cfb71a tdf#128463: Revert the change to license information
per comment by Tor Lillqvist in:
https://bugs.documentfoundation.org/show_bug.cgi?id=128463#c18

The Apache part of the license was added by commit
8c9cc54bd7 due to misunderstanding.

Change-Id: I861e7b13e1900de9287c768a4da8740fdb2e517f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108537
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-01-01 07:37:47 +01:00
Kevin Suo 8c9cc54bd7 tdf#128463: Rewrite NamedRanges.py to make it work when run from UI
This commit:
1. Updated the license header;
2. Added docstrings and notes to help the users to understand the API and code.
3. Make the code to create a new sheet named "data", define named ranges in it,
   modify the named range, define another named range, fill values in the cells
   related to the named ranges, the calcualte sum of each named range, and also
   calculate the difference between the two named ranges. The results are stored
   in the sheet named "information".
4. Cell alignment and background color methods are also used in this example.
5. Only show the parent function in the UI.

Change-Id: Iba6111dc3754f054deeb0baf902dbff1eb3bfa2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108530
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-12-31 08:47:32 +01:00
Kevin Suo 5fb0e0f68b Improve example python code in scripting.
* Modified the code to be more pythonic.
* If "len(theString) == 0", then "not theString" evaluates to True.
* "theString[0].isupper()" and "theString[1].isupper()" can be combined.
* Remove unused imported string module
* Wrap long lines
* run autopep8 to prettify
* ...

Change-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104136
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-10-10 14:11:27 +02:00
Tor Lillqvist 79fa6ac73c Use the . separator between sheet name and cell range instead of ! to match UI
Also put a dollar in front of the sheet name.

Change-Id: I93d610dad8ad085718b0fe389e460b588939e5d2
2018-05-09 15:20:31 +03:00
Tor Lillqvist 850b401eba Add mode lines and license blurb
Change-Id: Ifc319e6954665b71f8a98d6ec849a71bbf2b7318
2018-03-28 17:02:28 +03:00
Tor Lillqvist f21e341d0f Add DeleteNamedRange function
Change-Id: I081614cb34aee704c9162f58c78dbaa6a350d30b
2018-03-28 16:52:46 +03:00
Tor Lillqvist e32b4c8a07 Add another sample Python script, to handle named ranges in spreadsheets
Change-Id: Ibe11ab2c3513a05b9aec574602b24df70270908c
Reviewed-on: https://gerrit.libreoffice.org/51968
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2018-03-28 02:01:08 +02:00