Fix typos

Change-Id: I085ff68b4550468eb163d88978c81d8b5335e6ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108561
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini
2021-01-01 22:31:36 +01:00
committed by Julien Nabet
parent f400e88304
commit 9c5f2dc85d
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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"
+1 -1
View File
@@ -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)