From a486bdeef2786b6ac80e5fe7ce796eeebaa15c21 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Tue, 8 Sep 2026 22:13:40 +0200 Subject: [PATCH] Fix typos Change-Id: Ieb4e85c582ae37b6d83411b5e76303453bf8ea35 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210570 Tested-by: Jenkins Reviewed-by: Julien Nabet --- sc/source/core/tool/callable.cxx | 2 +- sc/source/core/tool/dbdata.cxx | 10 +++++----- sc/source/filter/excel/xedbdata.cxx | 4 ++-- sc/source/filter/excel/xlstyle.cxx | 4 ++-- sc/source/filter/html/htmlpars.cxx | 2 +- sc/source/filter/inc/xeescher.hxx | 6 +++--- sc/source/filter/inc/xichart.hxx | 2 +- sc/source/filter/oox/stylesbuffer.cxx | 2 +- sc/source/filter/oox/tablecolumnsbuffer.cxx | 4 ++-- sc/source/filter/oox/workbookhelper.cxx | 2 +- sc/source/filter/orcus/interface.cxx | 4 ++-- .../ui/Accessibility/AccessiblePageHeaderArea.cxx | 2 +- sc/source/ui/app/uiitems.cxx | 4 ++-- sc/source/ui/cctrl/checklistmenu.cxx | 2 +- sc/source/ui/dbgui/sfiltdlg.cxx | 2 +- sc/source/ui/dbgui/sortdlg.cxx | 2 +- sc/source/ui/docshell/arealink.cxx | 2 +- sc/source/ui/docshell/externalrefmgr.cxx | 2 +- sc/source/ui/docshell/impex.cxx | 2 +- sc/source/ui/docshell/servobj.cxx | 2 +- 20 files changed, 31 insertions(+), 31 deletions(-) diff --git a/sc/source/core/tool/callable.cxx b/sc/source/core/tool/callable.cxx index d9a0aebfe072..fabb939c705e 100644 --- a/sc/source/core/tool/callable.cxx +++ b/sc/source/core/tool/callable.cxx @@ -108,7 +108,7 @@ ScMacroFunction::ScMacroFunction(const ScInterpreter& rInterpreter, const OUStri maMacroStr = pObject->GetName() + "." + mpModule->GetName() + "." + mpMethod->GetName(); if (pRoot && bUseVBAObjects) { - // just here to make sure the VBA objects when we run the macro during ODF import + // just here to make sure the VBA objects are initialized when we run the macro during ODF import pRoot->getVBAGlobals(); } if (pObject->GetParent()) diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx index bb648ad30339..5937033d6fba 100644 --- a/sc/source/core/tool/dbdata.cxx +++ b/sc/source/core/tool/dbdata.cxx @@ -1511,7 +1511,7 @@ void ScDBData::RefreshTableColumnNames( ScDocument* pDoc ) } // Never leave us with empty names, try to remember previous name that - // might had been used to compile formulas, but only if same number of + // might have been used to compile formulas, but only if same number of // columns and no duplicates. if (bHaveEmpty && aNewNames.size() == maTableColumnNames.size()) { @@ -1703,11 +1703,11 @@ OUString ScDBData::GetStringFromSubTotalFunc(ScSubTotalFunc eFunc) else if (eFunc == SUBTOTAL_FUNC_CNT2) return u"count"_ustr; else if (eFunc == SUBTOTAL_FUNC_PROD) - return u"custom"_ustr; // ooxml not support in Total row + return u"custom"_ustr; // ooxml not supported in Total row else if (eFunc == SUBTOTAL_FUNC_AVE) return u"average"_ustr; else if (eFunc == SUBTOTAL_FUNC_MED) - return u"custom"_ustr; // ooxml not support in Total row + return u"custom"_ustr; // ooxml not supported in Total row else if (eFunc == SUBTOTAL_FUNC_MAX) return u"max"_ustr; else if (eFunc == SUBTOTAL_FUNC_MIN) @@ -1715,7 +1715,7 @@ OUString ScDBData::GetStringFromSubTotalFunc(ScSubTotalFunc eFunc) else if (eFunc == SUBTOTAL_FUNC_STD) return u"stdDev"_ustr; else if (eFunc == SUBTOTAL_FUNC_STDP) - return u"custom"_ustr; // ooxml not support in Total row + return u"custom"_ustr; // ooxml not supported in Total row else if (eFunc == SUBTOTAL_FUNC_VAR) return u"var"_ustr; else @@ -1929,7 +1929,7 @@ void ScDBCollection::NamedDBs::initInserted( ScDBData* p ) if (mrDoc.IsClipOrUndo()) return; - p->StartTableColumnNamesListener(); // needs the container be set already + p->StartTableColumnNamesListener(); // needs the container to be set already if (!p->AreTableColumnNamesDirty()) return; diff --git a/sc/source/filter/excel/xedbdata.cxx b/sc/source/filter/excel/xedbdata.cxx index c1c042781cc2..d85fa4009eff 100644 --- a/sc/source/filter/excel/xedbdata.cxx +++ b/sc/source/filter/excel/xedbdata.cxx @@ -216,7 +216,7 @@ void XclExpTables::SaveTableXml( XclExpXmlStream& rStrm, const Entry& rEntry ) }); bool bExportTotals = rData.HasHeader() && rData.HasTotals() && !bAnyColumnHasUndescribedContent; - // if the Total row have ever been showed it will be true + // if the Total row has ever been shown it will be true bool hasAnySetValue = bExportTotals; pTableStrm->startElement( XML_table, @@ -264,7 +264,7 @@ void XclExpTables::SaveTableXml( XclExpXmlStream& rStrm, const Entry& rEntry ) const std::vector< TableColumnModel >& rTableColumnModel = rData.GetTableColumnModel(); if (!rColNames.empty()) { - // rColNames and aTotalValues size should always be equal + // rColNames and aTotalValues sizes should always be equal assert((rColNames.size() == aTotalValues.size()) && "XclExpTables::SaveTableXml - mismatch between column names and total values"); diff --git a/sc/source/filter/excel/xlstyle.cxx b/sc/source/filter/excel/xlstyle.cxx index 1cdafad5751a..dddc9803536f 100644 --- a/sc/source/filter/excel/xlstyle.cxx +++ b/sc/source/filter/excel/xlstyle.cxx @@ -99,14 +99,14 @@ XclDefaultPalette::XclDefaultPalette( const XclRoot& rRoot ) : // Don't use the system HelpBack and HelpText colours as it causes problems // with modern gnome. This is because mnNoteText and mnNoteBack are used // when colour indices ( instead of real colours ) are specified. - // Note: That this it is not an unusual scenario that we get the Note + // Note: it is not an unusual scenario that we get the Note // background specified as a real colour and the text specified as a // colour index. That means the text colour would be picked from // the system where the note background would be picked from a real colour. // Previously the note text colour was picked from the system tooltip // text colour, on modern gnome(e.g. 3) that tends to be 'white' with the // default theme. - // Using the Libreoffice defaults ( instead of system specific colours + // Using the LibreOffice defaults ( instead of system specific colours // ) lessens the chance of the one colour being an unsuitable combination // because by default the note text is black and the note background is // a light yellow colour ( very similar to Excel's normal defaults ) diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index 3075fbb18218..47cd951da694 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -1230,7 +1230,7 @@ void ScHTMLLayoutParser::TableOn( HtmlImportInfo* pInfo ) NextRow( pInfo ); } else - { // It start's in this cell or next to each other + { // It starts in this cell or next to each other bTabInTabCell = false; nColCntStart = nColCnt; nColOffset = nTmpColOffset; diff --git a/sc/source/filter/inc/xeescher.hxx b/sc/source/filter/inc/xeescher.hxx index b7f10acc304d..afe30fa45611 100644 --- a/sc/source/filter/inc/xeescher.hxx +++ b/sc/source/filter/inc/xeescher.hxx @@ -161,7 +161,7 @@ private: sal_uInt16 mnRecId; /// Record identifier for the IMGDATA record. }; -/** Helper class for form controls to manage spreadsheet links . */ +/** Helper class for form controls to manage spreadsheet links. */ class XclExpControlHelper : protected XclExpRoot { public: @@ -276,7 +276,7 @@ private: void WriteCellLinkSubRec( XclExpStream& rStrm, sal_uInt16 nSubRecId ); /** Writes the ftSbs sub structure containing scrollbar data. */ void WriteSbs( XclExpStream& rStrm ); - /** Writes an anchor, if empty calculates one form XShape */ + /** Writes an anchor, if empty calculates one from XShape */ void WriteAnchor( const sax_fastparser::FSHelperPtr& rTarget, bool bIsDrawing ) const; /** Writes the label's run properties, the DrawingML half of the label font. */ void WriteLabelFont(const sax_fastparser::FSHelperPtr& rTarget) const; @@ -422,7 +422,7 @@ public: virtual ~XclExpObjectManager() override; /** Creates a new DFF client anchor object. Caller takes ownership! May be - overwritten in derived classes. */ + overwritten in derived classes. */ virtual XclExpDffAnchorBase* CreateDffAnchor() const; /** Creates and returns the MSODRAWINGGROUP record containing global DFF diff --git a/sc/source/filter/inc/xichart.hxx b/sc/source/filter/inc/xichart.hxx index 3bb6844355ed..8c4c853cd009 100644 --- a/sc/source/filter/inc/xichart.hxx +++ b/sc/source/filter/inc/xichart.hxx @@ -787,7 +787,7 @@ public: /** Sets a data point or series format (CHDATAFORMAT group) for this series. */ void SetDataFormat( const XclImpChDataFormatRef& xDataFmt ); - /** Sets a label text (CHTEXT group) attached to a series or data point. */ + /** Sets a label text (CHTEXT group) attached to a series or data point. */ void SetDataLabel(const XclImpChTextRef& xLabel); /** Adds error bar settings from the passed series to the own series. */ void AddChildSeries( const XclImpChSeries& rSeries ); diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx index 70e835211cf2..0eff19e12fa0 100644 --- a/sc/source/filter/oox/stylesbuffer.cxx +++ b/sc/source/filter/oox/stylesbuffer.cxx @@ -2127,7 +2127,7 @@ void Xf::importXf( const AttributeList& rAttribs, bool bCellXf ) { maModel.mbCellXf = bCellXf; // tdf#70565 Set proper default value to "0" of xfId attribute - // When xfId is not exist during .xlsx import + // When xfId does not exist during .xlsx import // it must have values set to "0". // This doesn't impact spreadsheets created with MS Excel, // as xfId attribute is always created during export to .xlsx diff --git a/sc/source/filter/oox/tablecolumnsbuffer.cxx b/sc/source/filter/oox/tablecolumnsbuffer.cxx index ccd8701860a0..eb427e77b926 100644 --- a/sc/source/filter/oox/tablecolumnsbuffer.cxx +++ b/sc/source/filter/oox/tablecolumnsbuffer.cxx @@ -169,8 +169,8 @@ bool TableColumns::finalizeImport( ScDBData* pDBData, bool bQueryTable ) pDBData->SetTableColumnNames( std::move(aNames) ); // If table type is "queryTable" and `removeDataOnSave` attribute is set to true, - // Excel removes table data from sheet including headers - // We don't support Power Query connections, fill table headers in the sheet with table data. + // Excel removes table data from sheet, including headers. + // We don't support Power Query connections, so fill table headers in the sheet with table data. if (bQueryTable && pDBData->HasHeader()) { ScRange aRange; diff --git a/sc/source/filter/oox/workbookhelper.cxx b/sc/source/filter/oox/workbookhelper.cxx index e0cc128e3ff2..fe0226d97124 100644 --- a/sc/source/filter/oox/workbookhelper.cxx +++ b/sc/source/filter/oox/workbookhelper.cxx @@ -159,7 +159,7 @@ public: Reference< XStyle > getStyleObject( const OUString& rStyleName, bool bPageStyle ) const; /** Creates and returns a defined name on-the-fly in the Calc document. */ WorkbookHelper::RangeDataRet createNamedRangeObject(OUString& orName, sal_Int32 nIndex, sal_Int32 nNameFlags); - /** Creates and returns a defined name on the-fly in the correct Calc sheet. */ + /** Creates and returns a defined name on-the-fly in the correct Calc sheet. */ WorkbookHelper::RangeDataRet createLocalNamedRangeObject(OUString& orName, sal_Int32 nIndex, sal_Int32 nNameFlags, sal_Int32 nTab); /** Creates and returns a database range on-the-fly in the Calc document. */ rtl::Reference createDatabaseRangeObject( OUString& orName, const ScRange& rRangeAddr ); diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx index 3e84f3760518..3b257f5d9b66 100644 --- a/sc/source/filter/orcus/interface.cxx +++ b/sc/source/filter/orcus/interface.cxx @@ -605,7 +605,7 @@ void ScOrcusFactory::pushMatrixFormulaToken(const ScAddress& rPos, const OUStrin void ScOrcusFactory::pushFormulaResult(const ScAddress& rPos, double fValue) { // Formula result is expected to be pushed immediately following the - // formula token it belongs. + // formula token it belongs to. if (maCellStoreTokens.empty()) return; @@ -631,7 +631,7 @@ void ScOrcusFactory::pushFormulaResult(const ScAddress& rPos, double fValue) void ScOrcusFactory::pushFormulaResult(const ScAddress& rPos, const OUString& rValue) { // Formula result is expected to be pushed immediately following the - // formula token it belongs. + // formula token it belongs to. if (maCellStoreTokens.empty()) return; diff --git a/sc/source/ui/Accessibility/AccessiblePageHeaderArea.cxx b/sc/source/ui/Accessibility/AccessiblePageHeaderArea.cxx index d4e3e4def894..4df397fefd98 100644 --- a/sc/source/ui/Accessibility/AccessiblePageHeaderArea.cxx +++ b/sc/source/ui/Accessibility/AccessiblePageHeaderArea.cxx @@ -81,7 +81,7 @@ void SAL_CALL ScAccessiblePageHeaderArea::disposing() void ScAccessiblePageHeaderArea::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { - // only notify if child exist, otherwise it is not necessary + // only notify if children exist, otherwise it is not necessary if (rHint.GetId() == SfxHintId::ScAccVisAreaChanged) { if (mpTextHelper) diff --git a/sc/source/ui/app/uiitems.cxx b/sc/source/ui/app/uiitems.cxx index 5e90221fc5ac..e2042e669c1c 100644 --- a/sc/source/ui/app/uiitems.cxx +++ b/sc/source/ui/app/uiitems.cxx @@ -106,7 +106,7 @@ ScIndexHint::~ScIndexHint() } /** - * Create new EditView for Cursorposition + * Create new EditView for cursor position */ ScEditViewHint::ScEditViewHint( ScEditEngineDefaulter& rEngine, const ScAddress& rCurPos ) : SfxHint(SfxHintId::ScEditView), @@ -252,7 +252,7 @@ bool ScSubTotalItem::QueryValue( css::uno::Any& rVal, sal_uInt8 /* nMemberUd */ } /** - * Transporter for the UserLIst dialog + * Transporter for the UserList dialog */ ScUserListItem::ScUserListItem( sal_uInt16 nWhichP ) : SfxPoolItem ( nWhichP ) diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index 8073cbfc66a2..fda2a01505d3 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -864,7 +864,7 @@ namespace /* * in case marked members are to be included, we include * them at the end because we can see in the functions which call - * this function that the marked members will be disabled anyways + * this function that the marked members will be disabled anyway * if lock is checked. */ if (!bIncludeMarkedMembers || (!rMembers[i].mbMarked && !rMembers[i].mbHiddenByOtherFilter)) diff --git a/sc/source/ui/dbgui/sfiltdlg.cxx b/sc/source/ui/dbgui/sfiltdlg.cxx index 74e16d27e275..e644bde3ae44 100644 --- a/sc/source/ui/dbgui/sfiltdlg.cxx +++ b/sc/source/ui/dbgui/sfiltdlg.cxx @@ -279,7 +279,7 @@ IMPL_LINK(ScSpecialFilterDlg, EndDlgHdl, weld::Button&, rBtn, void) { /* * All edit fields contain valid areas. Now try to create - * a ScQueryParam from the filter area: + * an ScQueryParam from the filter area: */ ScRefFlags nResult = theFilterArea.Parse(theAreaStr, m_rDoc, eConv); diff --git a/sc/source/ui/dbgui/sortdlg.cxx b/sc/source/ui/dbgui/sortdlg.cxx index defb493f35f4..a2995dc7fe79 100644 --- a/sc/source/ui/dbgui/sortdlg.cxx +++ b/sc/source/ui/dbgui/sortdlg.cxx @@ -75,7 +75,7 @@ IMPL_LINK(ScSortWarningDlg, BtnHdl, weld::Button&, rBtn, void) { m_xDialog->response(BTN_EXTEND_RANGE); } - else if(&rBtn == m_xBtnCurSort.get()) + else if (&rBtn == m_xBtnCurSort.get()) { m_xDialog->response(BTN_CURRENT_SELECTION); } diff --git a/sc/source/ui/docshell/arealink.cxx b/sc/source/ui/docshell/arealink.cxx index 651182ede92b..b8bd66533b27 100644 --- a/sc/source/ui/docshell/arealink.cxx +++ b/sc/source/ui/docshell/arealink.cxx @@ -248,7 +248,7 @@ bool ScAreaLink::Refresh( const OUString& rNewFile, const OUString& rNewFilter, SfxMedium* pMed = ScDocumentLoader::CreateMedium( aNewUrl, pFilter, aOptions); - // aRef->DoClose() will be closed explicitly, but it is still more safe to use SfxObjectShellLock here + // aRef->DoClose() will be closed explicitly, but it is still safer to use SfxObjectShellLock here rtl::Reference pSrcShell = new ScDocShell(SfxModelFlags::EMBEDDED_OBJECT | SfxModelFlags::DISABLE_EMBEDDED_SCRIPTS); pSrcShell->DoLoad(pMed); diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx index f0de47d2ddcc..be7581902af7 100644 --- a/sc/source/ui/docshell/externalrefmgr.cxx +++ b/sc/source/ui/docshell/externalrefmgr.cxx @@ -177,7 +177,7 @@ public: if (pCell->IsValue()) { - // Turn this into value cell. + // Turn this into a value cell. mpDoc->SetValue(aPos, pCell->GetValue()); } else diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx index 2b6f1e8ea644..c09f3bf22b0b 100644 --- a/sc/source/ui/docshell/impex.cxx +++ b/sc/source/ui/docshell/impex.cxx @@ -118,7 +118,7 @@ ScImportExport::ScImportExport( ScDocument& r ) pExtOptions = nullptr; } -// Insert am current cell without range(es) +// Insert at current cell without range(es) ScImportExport::ScImportExport( ScDocument& r, const ScAddress& rPt ) : pDocSh( r.GetDocumentShell() ), rDoc( r ), aRange( rPt ), diff --git a/sc/source/ui/docshell/servobj.cxx b/sc/source/ui/docshell/servobj.cxx index 0a4ffb1b9b9a..30ca7c0ddff0 100644 --- a/sc/source/ui/docshell/servobj.cxx +++ b/sc/source/ui/docshell/servobj.cxx @@ -210,7 +210,7 @@ void ScServerObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) // don't access DocShell anymore for EndListening etc. } } - else if (dynamic_cast( &rBC) != nullptr) + else if (dynamic_cast(&rBC) != nullptr) { if ( !aItemStr.isEmpty() && rHint.GetId() == SfxHintId::ScAreasChanged ) {