diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2021-01-01 16:23:29 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-01-01 22:31:36 +0100 |
commit | 9c5f2dc85d0af714058ffc84d86ebc7d5c4dd6a7 (patch) | |
tree | 732c064d7feff0949c1fc119a2b840b7d2077dc7 /scripting | |
parent | f400e883044143f999c460375a293647b4a57244 (diff) |
Fix typos
Change-Id: I085ff68b4550468eb163d88978c81d8b5335e6ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108561
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/examples/python/NamedRanges.py | 6 | ||||
-rw-r--r-- | scripting/examples/python/SetCellColor.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scripting/examples/python/NamedRanges.py b/scripting/examples/python/NamedRanges.py index f4d4d32a1e05..5a28e2b5da57 100644 --- a/scripting/examples/python/NamedRanges.py +++ b/scripting/examples/python/NamedRanges.py @@ -54,7 +54,7 @@ def NamedRanges(): smgr = ctx.ServiceManager desktop = smgr.createInstanceWithContext("com.sun.star.frame.Desktop", ctx) - # Create a blank spreadsheet document, instead of damanging the existing document. + # Create a blank spreadsheet document, instead of damaging the existing document. doc = desktop.loadComponentFromURL("private:factory/scalc", "_blank", 0, ()) # Create a new sheet to store our output information @@ -114,11 +114,11 @@ def NamedRanges(): infoSheet.getCellRangeByName("A8").String = "Sum of test_range1:" infoSheet.getCellRangeByName("B8").Formula = "=SUM(test_range1)" - # Calcualte sum of test_range2 + # Calculate sum of test_range2 infoSheet.getCellRangeByName("A9").String = "Sum of test_range2:" infoSheet.getCellRangeByName("B9").Formula = "=SUM(test_range2)" - # Calcualte the difference between the two ranges + # Calculate the difference between the two ranges infoSheet.getCellRangeByName("A10").String = "sum(test_range2) - sum(test_range1):" infoSheet.getCellRangeByName("B10").Formula = "=B9-B8" diff --git a/scripting/examples/python/SetCellColor.py b/scripting/examples/python/SetCellColor.py index 22d86edbbeff..7319d621dd1a 100644 --- a/scripting/examples/python/SetCellColor.py +++ b/scripting/examples/python/SetCellColor.py @@ -38,7 +38,7 @@ def SetCellColor(): # Call the above helper function to set color (in hex number). # To get the hex number: - # 1. go to Calc, click toolbar dropdown "Background Color" > Custome Color; + # 1. go to Calc, click toolbar dropdown "Background Color" > Custom Color; # 2. Pick a color, copy the hex number and prefix it with "0x". _SetCellColor(sheet, "C3:C21", 0x4021c9) _SetCellColor(sheet, "D18:E21", 0x4021c9) |