diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-10-09 20:29:10 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-10-09 22:38:36 +0200 |
commit | 25c9f041ad078c94321e18361d6df52894865b7f (patch) | |
tree | 6398f1b3f9afbdb42cd93606a95be892493fe5b0 /sc | |
parent | df0592cfb16c28b22c0c0331306dd072e7678fce (diff) |
Typo: *adress* -> *address* (except from not translated German parts)
Change-Id: I62e12aed5bc67119433c39ff333f69b79944dca3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123318
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/check_data_pilot_field.cxx | 28 | ||||
-rw-r--r-- | sc/qa/extras/check_data_pilot_table.cxx | 28 |
2 files changed, 28 insertions, 28 deletions
diff --git a/sc/qa/extras/check_data_pilot_field.cxx b/sc/qa/extras/check_data_pilot_field.cxx index bde647232839..bd21856c15c3 100644 --- a/sc/qa/extras/check_data_pilot_field.cxx +++ b/sc/qa/extras/check_data_pilot_field.cxx @@ -87,18 +87,18 @@ uno::Reference<uno::XInterface> CheckDataPilotField::init() uno::Reference<sheet::XSpreadsheetDocument> xSheetDoc(mxComponent, uno::UNO_QUERY_THROW); // the cell range - table::CellRangeAddress sCellRangeAdress; - sCellRangeAdress.Sheet = 0; - sCellRangeAdress.StartColumn = 1; - sCellRangeAdress.StartRow = 0; - sCellRangeAdress.EndColumn = mMaxFieldIndex - 1; - sCellRangeAdress.EndRow = mMaxFieldIndex - 1; + table::CellRangeAddress sCellRangeAddress; + sCellRangeAddress.Sheet = 0; + sCellRangeAddress.StartColumn = 1; + sCellRangeAddress.StartRow = 0; + sCellRangeAddress.EndColumn = mMaxFieldIndex - 1; + sCellRangeAddress.EndRow = mMaxFieldIndex - 1; // position of the data pilot table - table::CellAddress sCellAdress; - sCellAdress.Sheet = 0; - sCellAdress.Column = 7; - sCellAdress.Row = 8; + table::CellAddress sCellAddress; + sCellAddress.Sheet = 0; + sCellAddress.Column = 7; + sCellAddress.Row = 8; // Getting spreadsheet uno::Reference<sheet::XSpreadsheets> xSpreadsheets = xSheetDoc->getSheets(); uno::Reference<container::XIndexAccess> oIndexAccess(xSpreadsheets, uno::UNO_QUERY_THROW); @@ -135,8 +135,8 @@ uno::Reference<uno::XInterface> CheckDataPilotField::init() // cell of data uno::Any oChangeCell; oChangeCell <<= oSheet->getCellByPosition(1, 5); - int x = sCellAdress.Column; - int y = sCellAdress.Row + 3; + int x = sCellAddress.Column; + int y = sCellAddress.Row + 3; // cell of the data pilot output uno::Any oCheckCell; oCheckCell <<= oSheet->getCellByPosition(x, y); @@ -144,7 +144,7 @@ uno::Reference<uno::XInterface> CheckDataPilotField::init() uno::Reference<sheet::XDataPilotTablesSupplier> DPTS(oSheet, uno::UNO_QUERY_THROW); uno::Reference<sheet::XDataPilotTables> DPT = DPTS->getDataPilotTables(); uno::Reference<sheet::XDataPilotDescriptor> DPDsc = DPT->createDataPilotDescriptor(); - DPDsc->setSourceRange(sCellRangeAdress); + DPDsc->setSourceRange(sCellRangeAddress); uno::Any oDataPilotField = DPDsc->getDataPilotFields()->getByIndex(0); uno::Reference<beans::XPropertySet> fieldPropSet(oDataPilotField, uno::UNO_QUERY_THROW); @@ -160,7 +160,7 @@ uno::Reference<uno::XInterface> CheckDataPilotField::init() //Insert the DataPilotTable if (DPT->hasByName("DataPilotField")) DPT->removeByName("DataPilotField"); - DPT->insertNewByName("DataPilotTField", sCellAdress, DPDsc); + DPT->insertNewByName("DataPilotTField", sCellAddress, DPDsc); uno::Reference<container::XIndexAccess> IA = DPDsc->getDataPilotFields(); uno::Reference<uno::XInterface> xDataPilotFieldObject; diff --git a/sc/qa/extras/check_data_pilot_table.cxx b/sc/qa/extras/check_data_pilot_table.cxx index 261fa23b303c..a38185bb97a1 100644 --- a/sc/qa/extras/check_data_pilot_table.cxx +++ b/sc/qa/extras/check_data_pilot_table.cxx @@ -85,18 +85,18 @@ uno::Reference< uno::XInterface > CheckDataPilotTable::init() uno::Reference< sheet::XSpreadsheetDocument > xSheetDoc(mxComponent, uno::UNO_QUERY_THROW); // the cell range - table::CellRangeAddress sCellRangeAdress; - sCellRangeAdress.Sheet = 0; - sCellRangeAdress.StartColumn = 1; - sCellRangeAdress.StartRow = 0; - sCellRangeAdress.EndColumn = MAX_FIELD_INDEX-1; - sCellRangeAdress.EndRow = MAX_FIELD_INDEX - 1; + table::CellRangeAddress sCellRangeAddress; + sCellRangeAddress.Sheet = 0; + sCellRangeAddress.StartColumn = 1; + sCellRangeAddress.StartRow = 0; + sCellRangeAddress.EndColumn = MAX_FIELD_INDEX-1; + sCellRangeAddress.EndRow = MAX_FIELD_INDEX - 1; // position of the data pilot table - table::CellAddress sCellAdress; - sCellAdress.Sheet = 0; - sCellAdress.Column = 7; - sCellAdress.Row = 8; + table::CellAddress sCellAddress; + sCellAddress.Sheet = 0; + sCellAddress.Column = 7; + sCellAddress.Row = 8; // Getting spreadsheet uno::Reference< sheet::XSpreadsheets > xSpreadsheets = xSheetDoc->getSheets(); uno::Reference< container::XIndexAccess > oIndexAccess(xSpreadsheets, uno::UNO_QUERY_THROW); @@ -133,8 +133,8 @@ uno::Reference< uno::XInterface > CheckDataPilotTable::init() // cell of data uno::Any oChangeCell; oChangeCell<<= oSheet->getCellByPosition(1, 5); - int x = sCellAdress.Column; - int y = sCellAdress.Row + 3; + int x = sCellAddress.Column; + int y = sCellAddress.Row + 3; // cell of the data pilot output uno::Any oCheckCell; oCheckCell<<= oSheet->getCellByPosition(x, y); @@ -142,7 +142,7 @@ uno::Reference< uno::XInterface > CheckDataPilotTable::init() uno::Reference< sheet::XDataPilotTablesSupplier> DPTS(oSheet, uno::UNO_QUERY_THROW); uno::Reference< sheet::XDataPilotTables> DPT = DPTS->getDataPilotTables(); uno::Reference< sheet::XDataPilotDescriptor> DPDsc = DPT->createDataPilotDescriptor(); - DPDsc->setSourceRange(sCellRangeAdress); + DPDsc->setSourceRange(sCellRangeAddress); uno::Any oDataPilotField = DPDsc->getDataPilotFields()->getByIndex(0); uno::Reference<beans::XPropertySet> fieldPropSet(oDataPilotField, uno::UNO_QUERY_THROW); @@ -158,7 +158,7 @@ uno::Reference< uno::XInterface > CheckDataPilotTable::init() //Insert the DataPilotTable if (DPT->hasByName("DataPilotTable")) DPT->removeByName("DataPilotTable"); - DPT->insertNewByName("DataPilotTable", sCellAdress, DPDsc); + DPT->insertNewByName("DataPilotTable", sCellAddress, DPDsc); uno::Reference<uno::XInterface> xDataPilotTableObject; data = DPT->getByName( DPT->getElementNames()[0] ); |