Commit Graph
5 Commits
Author SHA1 Message Date
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