From da40cac540e7d735edbe9069b3c8ec6af4530208 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Mon, 10 Nov 2014 15:05:25 +0100 Subject: Fix common typos. No automatic tools. Handmade… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sc/inc/column.hxx | 2 +- sc/inc/compiler.hxx | 2 +- sc/inc/compressedarray.hxx | 2 +- sc/inc/document.hxx | 6 +++--- sc/inc/rangeseq.hxx | 2 +- sc/qa/unit/filters-test.cxx | 12 ++++++------ sc/qa/unit/ucalc.hxx | 2 +- sc/qa/unit/ucalc_formula.cxx | 2 +- sc/qa/unit/ucalc_sort.cxx | 2 +- sc/source/core/data/attarray.cxx | 2 +- sc/source/core/data/column2.cxx | 2 +- sc/source/core/data/column3.cxx | 2 +- sc/source/core/data/dptabres.cxx | 4 ++-- sc/source/core/data/drwlayer.cxx | 2 +- sc/source/core/data/funcdesc.cxx | 4 ++-- sc/source/core/tool/compiler.cxx | 2 +- sc/source/core/tool/interpr1.cxx | 2 +- sc/source/core/tool/token.cxx | 6 +++--- sc/source/filter/excel/excform.cxx | 8 ++++---- sc/source/filter/excel/excform8.cxx | 10 +++++----- sc/source/filter/excel/excrecds.cxx | 2 +- sc/source/filter/excel/xestream.cxx | 2 +- sc/source/filter/excel/xlstyle.cxx | 4 ++-- sc/source/filter/html/htmlpars.cxx | 2 +- sc/source/filter/inc/xichart.hxx | 2 +- sc/source/filter/xml/XMLTableShapeImportHelper.cxx | 2 +- sc/source/filter/xml/XMLTableShapeResizer.cxx | 2 +- sc/source/filter/xml/xmlexprt.cxx | 2 +- sc/source/ui/app/inputhdl.cxx | 2 +- sc/source/ui/app/inputwin.cxx | 4 ++-- sc/source/ui/inc/AccessibleContextBase.hxx | 2 +- sc/source/ui/inc/output.hxx | 2 +- sc/source/ui/miscdlgs/simpref.cxx | 2 +- sc/source/ui/vba/vbaborders.cxx | 2 +- sc/source/ui/vba/vbachart.cxx | 2 +- sc/source/ui/vba/vbarange.cxx | 2 +- sc/source/ui/vba/vbawindow.cxx | 2 +- sc/source/ui/vba/vbaworkbooks.cxx | 2 +- sc/source/ui/vba/vbawsfunction.cxx | 2 +- sc/source/ui/view/printfun.cxx | 2 +- sc/source/ui/view/viewfunc.cxx | 6 +++--- 41 files changed, 63 insertions(+), 63 deletions(-) (limited to 'sc') diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 4ff3c9eb1501..1877a93fc610 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -586,7 +586,7 @@ public: * Reset column position of formula cells within specified row range. * Reference positions are also adjusted to reflect the new position so * that the formula cells still reference the same cells or ranges after - * the the position change. The position of a formula cell before the + * the position change. The position of a formula cell before the * call is interpreted as the old position of that cell. * * Caller needs to ensure that no formula groups cross the top and bottom diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx index ce117564cab1..85e9cc07eb69 100644 --- a/sc/inc/compiler.hxx +++ b/sc/inc/compiler.hxx @@ -330,7 +330,7 @@ private: bool mbRewind; // whether symbol is to be rewound to some step during lexical analysis std::vector maExternalFiles; - std::vector maTabNames; /// sheet names mangled for the current grammer for output + std::vector maTabNames; /// sheet names mangled for the current grammar for output std::vector &GetSetupTabNames() const; /// get or setup tab names for the current grammar bool NextNewToken(bool bInArray = false); diff --git a/sc/inc/compressedarray.hxx b/sc/inc/compressedarray.hxx index 0a2f776fa1d4..4be04c9a3964 100644 --- a/sc/inc/compressedarray.hxx +++ b/sc/inc/compressedarray.hxx @@ -144,7 +144,7 @@ const D& ScCompressedArray::GetNextValue( size_t& nIndex, A& nEnd ) const } // ScBitMaskCompressedArray -/** The data type represents bits, managable by bitwise operations. +/** The data type represents bits, manageable by bitwise operations. */ template< typename A, typename D > class ScBitMaskCompressedArray : public ScCompressedArray diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 47387bde32b1..40ca14dc4c3f 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -527,7 +527,7 @@ public: * @param rName name for the expression. * @param rPos base position. * @param rExpr formula expression to be associated with the name. The - * current grammer is used to compile this expression. + * current grammar is used to compile this expression. * * @return true if inserted successfully, false otherwise. */ @@ -746,7 +746,7 @@ public: SC_DLLPUBLIC const ScMatrix* GetDdeLinkResultMatrix( size_t nDdePos ) const; /** Tries to find a DDE link or creates a new, if not extant. - @param pResults If not 0, sets the matrix as as DDE link result matrix (also for existing links). + @param pResults If not 0, sets the matrix as DDE link result matrix (also for existing links). @return true = DDE link found; false = Unpredictable error occurred, no DDE link created. */ SC_DLLPUBLIC bool CreateDdeLink( const OUString& rAppl, const OUString& rTopic, const OUString& rItem, sal_uInt8 nMode, ScMatrixRef pResults ); /** Sets a result matrix for the specified DDE link. @@ -1598,7 +1598,7 @@ public: SCROW GetNextDifferentChangedRow( SCTAB nTab, SCROW nStart, bool bCareManualSize = true) const; // returns whether to export a Default style for this col or not - // nDefault is setted to one possition in the current row where the Default style is + // nDefault is setted to one position in the current row where the Default style is bool GetColDefault( SCTAB nTab, SCCOL nCol, SCROW nLastRow, SCROW& nDefault); bool UpdateOutlineCol( SCCOL nStartCol, SCCOL nEndCol, SCTAB nTab, bool bShow ); diff --git a/sc/inc/rangeseq.hxx b/sc/inc/rangeseq.hxx index 533a1f3f287d..4f15a811ac08 100644 --- a/sc/inc/rangeseq.hxx +++ b/sc/inc/rangeseq.hxx @@ -48,7 +48,7 @@ public: /** @param bDataTypes Additionally to the differentiation between string and double allow - differentiation between other types such as as boolean. Needed for + differentiation between other types such as boolean. Needed for implementation of XFormulaParser. If , boolean values are treated as ordinary double values 1 (true) and 0 (false). */ diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx index f8a911f422b2..618fd94057c3 100644 --- a/sc/qa/unit/filters-test.cxx +++ b/sc/qa/unit/filters-test.cxx @@ -473,11 +473,11 @@ void ScFiltersTest::testLegacyCellAnchoredRotatedShape() // ensure the imported legacy rotated shape is in the expected position // when a shape is fully hidden reloading seems to result is in some errors, usually // ( same but different error happens pre-patch ) - we should do better here, I regard it - // as a pre-existing bug though ( #FIXME ) + // as a pre-existing bug though (#FIXME) //Rectangle aRect( 6000, -2000, 8000, 4000 ); // proper dimensions Rectangle aRect( 6000, -2000, 7430, 4000 ); - // ensure the imported ( and converted ) anchor ( note we internally now store the anchor in - // terms of the rotated shape ) is more or less contains the correct info + // ensure the imported (and converted) anchor (note we internally now store the anchor in + // terms of the rotated shape) is more or less contains the correct info ScDrawObjData aAnchor; aAnchor.maStart.SetRow( 0 ); aAnchor.maStart.SetCol( 5 ); @@ -486,7 +486,7 @@ void ScFiltersTest::testLegacyCellAnchoredRotatedShape() rDoc.ShowRows(0, 9, 0, true); // show relavent rows rDoc.SetDrawPageSize(0); // trigger recalcpos - // apply hefty ( 1 mm ) tolerence here, as some opensuse tinderbox + // apply hefty (1 mm) tolerance here, as some opensuse tinderbox // failing impl_testLegacyCellAnchoredRotatedShape( rDoc, aRect, aAnchor, 100 ); @@ -500,8 +500,8 @@ void ScFiltersTest::testLegacyCellAnchoredRotatedShape() CPPUNIT_ASSERT(&rDoc); // ensure the imported legacy rotated shape is in the expected position Rectangle aRect( 6000, 3000, 8000, 9000 ); - // ensure the imported ( and converted ) anchor ( note we internally now store the anchor in - // terms of the rotated shape ) is more or less contains the correct info + // ensure the imported (and converted) anchor (note we internally now store the anchor in + // terms of the rotated shape) more or less contains the correct info ScDrawObjData aAnchor; aAnchor.maStart.SetRow( 3 ); diff --git a/sc/qa/unit/ucalc.hxx b/sc/qa/unit/ucalc.hxx index 0e58c1861f26..41416bd2973d 100644 --- a/sc/qa/unit/ucalc.hxx +++ b/sc/qa/unit/ucalc.hxx @@ -265,7 +265,7 @@ public: /** * Test for pivot table that include field with various non-default field - * refrences. + * references. */ void testPivotTableFieldReference(); diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index f96c07bea6d5..becbd3437af6 100644 --- a/sc/qa/unit/ucalc_formula.cxx +++ b/sc/qa/unit/ucalc_formula.cxx @@ -4506,7 +4506,7 @@ void Test::testExternalRef() val = 96; rExtDoc.SetValue(1, 4, 2, val); - // Test external refernces on the main document while the external + // Test external references on the main document while the external // document is still in memory. m_pDoc->InsertTab(0, OUString("Test Sheet")); m_pDoc->SetString(0, 0, 0, OUString("='file:///extdata.fake'#Data1.A1")); diff --git a/sc/qa/unit/ucalc_sort.cxx b/sc/qa/unit/ucalc_sort.cxx index a1189dd023a4..e6ff96e19a2a 100644 --- a/sc/qa/unit/ucalc_sort.cxx +++ b/sc/qa/unit/ucalc_sort.cxx @@ -360,7 +360,7 @@ void Test::testSortSingleRow() m_pDoc->DeleteTab(0); } -// regression test fo fdo#53814, sorting doens't work as expected +// regression test fo fdo#53814, sorting doesn't work as expected // if cells in the sort are referenced by formulas void Test::testSortWithFormulaRefs() { diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx index 4ab6d2abbb32..65af7f6f2814 100644 --- a/sc/source/core/data/attarray.cxx +++ b/sc/source/core/data/attarray.cxx @@ -2372,7 +2372,7 @@ SCsROW ScAttrArray::SearchStyle( } } - OSL_ENSURE( bFound || !ValidRow(nRow), "Internal failure in in ScAttrArray::SearchStyle" ); + OSL_ENSURE( bFound || !ValidRow(nRow), "Internal failure in ScAttrArray::SearchStyle" ); return nRow; } diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index a88f31664406..c2068671ed01 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -1798,7 +1798,7 @@ const ScPostIt* ScColumn::GetCellNote( sc::ColumnBlockConstPosition& rBlockPos, void ScColumn::SetCellNote(SCROW nRow, ScPostIt* pNote) { - //pNote->UpdateCaptionPos(ScAddress(nCol, nRow, nTab)); // TODO notes usefull ? slow import with many notes + //pNote->UpdateCaptionPos(ScAddress(nCol, nRow, nTab)); // TODO notes useful ? slow import with many notes maCellNotes.set(nRow, pNote); } diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index f3c7a5adf362..d37120c7b8ce 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -1078,7 +1078,7 @@ bool lcl_DoFunction( double& rVal1, double nVal2, sal_uInt16 nFunction ) bOk = SubTotal::SafePlus( rVal1, nVal2 ); break; case PASTE_SUB: - nVal2 = -nVal2; // FIXME: Can we do this alwyas without error? + nVal2 = -nVal2; // FIXME: Can we do this always without error? bOk = SubTotal::SafePlus( rVal1, nVal2 ); break; case PASTE_MUL: diff --git a/sc/source/core/data/dptabres.cxx b/sc/source/core/data/dptabres.cxx index 154e266effcf..818da533f0f5 100644 --- a/sc/source/core/data/dptabres.cxx +++ b/sc/source/core/data/dptabres.cxx @@ -1027,7 +1027,7 @@ void ScDPResultMember::InitFrom( const vector& ppDim, const vect // skip child dimension if details are not shown if ( GetDPMember() && !GetDPMember()->getShowDetails() ) { - // Show DataLayout dimention + // Show DataLayout dimension nMemberStep = 1; while ( nPos < ppDim.size() ) { @@ -1071,7 +1071,7 @@ void ScDPResultMember::LateInitFrom( // skip child dimension if details are not shown if ( GetDPMember() && !GetDPMember()->getShowDetails() ) { - // Show DataLayout dimention + // Show DataLayout dimension nMemberStep = 1; while ( !rParams.IsEnd( nPos ) ) { diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index ae224ceac3f1..23e0de35a36f 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -782,7 +782,7 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, ScDrawObjData& rData, bool bNegati // associated rotated shape ( note: we do this by actually setting the LogicRect for the shape temporarily to the // *full* size then grabbing the SnapRect ( which gives the transformed rotated dimensions ), it would be // wonderful if we could do this mathematically without having to temporarily tweak the object... othoh this way - // is gauranteed to get consistent results ) + // is guaranteed to get consistent results ) ResizeLastRectFromAnchor( pObj, rData, true, bNegativePage, bCanResize, false ); // aFullRect contains the unrotated size and position of the shape ( regardless of any hidden row/columns ) Rectangle aFullRect = rData.maLastRect; diff --git a/sc/source/core/data/funcdesc.cxx b/sc/source/core/data/funcdesc.cxx index b871c6a10c03..ded0bf590840 100644 --- a/sc/source/core/data/funcdesc.cxx +++ b/sc/source/core/data/funcdesc.cxx @@ -398,8 +398,8 @@ ScFunctionList::ScFunctionList() : boost::scoped_ptr pBlock( new ScResourcePublisher( ScResId( nDescBlock[k] ) ) ); // Browse for all possible OpCodes. This is not the fastest method, but // otherwise the sub resources within the resource blocks and the - // resource blocks themselfs would had to be ordered according to - // OpCodes, which is utopian.. + // resource blocks themselves would had to be ordered according to + // OpCodes, which is utopian... for (sal_uInt16 i = 0; i <= SC_OPCODE_LAST_OPCODE_ID; ++i) { ScResId aRes(i); diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index cfe4d18e9ae6..5320d7e9bd9b 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -233,7 +233,7 @@ void ScCompiler::SetGrammar( const FormulaGrammar::Grammar eGrammar ) } // Unclear how this was intended to be refreshed when the -// grammer or sheet count is changed ? Ideally this would be +// grammar or sheet count is changed ? Ideally this would be // a method on Document that would globally cache these. std::vector &ScCompiler::GetSetupTabNames() const { diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index a2743f0319b6..327b5edddee8 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -1965,7 +1965,7 @@ void ScInterpreter::ScIsLogical() case svMatrix: // TODO: we don't have type information for arrays except // numerical/string. - // Fall thru + // Fall through default: PopError(); if ( !nGlobalError ) diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index 9d86b3e4f36f..6bf5f4cc9ea8 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx @@ -1037,7 +1037,7 @@ void ScMatrixFormulaCellToken::SetUpperLeftDouble( double f ) xUpperLeft = new FormulaDoubleToken( f); break; } - // fall thru + // fall through default: { OSL_FAIL("ScMatrixFormulaCellToken::SetUpperLeftDouble: not modifying unhandled token type"); @@ -2143,7 +2143,7 @@ void ScTokenArray::ReadjustRelative3DReferences( const ScAddress& rOldPos, rRef2.SetAddress(aAbs, rNewPos); } } - //! fallthru + //! fall through case svSingleRef : { ScSingleRefData& rRef1 = *pCode[j]->GetSingleRef(); @@ -2160,7 +2160,7 @@ void ScTokenArray::ReadjustRelative3DReferences( const ScAddress& rOldPos, ScAddress aAbs = rRef2.toAbs(rOldPos); rRef2.SetAddress(aAbs, rNewPos); } - //! fallthru + //! fall through case svExternalSingleRef : { ScSingleRefData& rRef1 = *pCode[j]->GetSingleRef(); diff --git a/sc/source/filter/excel/excform.cxx b/sc/source/filter/excel/excform.cxx index 3a0236a416be..eda413421f82 100644 --- a/sc/source/filter/excel/excform.cxx +++ b/sc/source/filter/excel/excform.cxx @@ -568,7 +568,7 @@ ConvErr ExcelToSc::Convert( const ScTokenArray*& pErgebnis, XclImpStream& aIn, s case 0x25: // Area Reference [320 270] case 0x4B: case 0x6B: - case 0x2B: // Deleted Area Refernce [323 273] + case 0x2B: // Deleted Area Reference [323 273] { sal_uInt16 nRowFirst, nRowLast; sal_uInt8 nColFirst, nColLast; @@ -594,7 +594,7 @@ ConvErr ExcelToSc::Convert( const ScTokenArray*& pErgebnis, XclImpStream& aIn, s { case 0x4B: case 0x6B: - case 0x2B: // Deleted Area Refernce [323 273] + case 0x2B: // Deleted Area Reference [323 273] // no information which part is deleted, set all rSRef1.SetColDeleted( true ); rSRef1.SetRowDeleted( true ); @@ -1109,7 +1109,7 @@ ConvErr ExcelToSc::Convert( _ScRangeListTabs& rRangeList, XclImpStream& aIn, sal break; case 0x4B: case 0x6B: - case 0x2B: // Deleted Area Refernce [323 273] + case 0x2B: // Deleted Area Refernece [323 273] nIgnore = 6; break; case 0x4C: @@ -1467,7 +1467,7 @@ bool ExcelToSc::GetAbsRefs( ScRangeList& rRangeList, XclImpStream& rStrm, sal_Si case 0x28: // Incomplete Constant Reference Subexpr.[331 281] case 0x4B: case 0x6B: - case 0x2B: // Deleted Area Refernce [323 273] + case 0x2B: // Deleted Area Reference [323 273] nSeek = 6; break; case 0x40: diff --git a/sc/source/filter/excel/excform8.cxx b/sc/source/filter/excel/excform8.cxx index 19f8cb5d73f7..a4f3bf634e94 100644 --- a/sc/source/filter/excel/excform8.cxx +++ b/sc/source/filter/excel/excform8.cxx @@ -519,7 +519,7 @@ ConvErr ExcelToSc8::Convert( const ScTokenArray*& rpTokArray, XclImpStream& aIn, case 0x25: // Area Reference [320 270] case 0x4B: case 0x6B: - case 0x2B: // Deleted Area Refernce [323 273] + case 0x2B: // Deleted Area Reference [323 273] { sal_uInt16 nRowFirst, nRowLast; sal_uInt16 nColFirst, nColLast; @@ -545,7 +545,7 @@ ConvErr ExcelToSc8::Convert( const ScTokenArray*& rpTokArray, XclImpStream& aIn, { case 0x4B: case 0x6B: - case 0x2B: // Deleted Area Refernce [323 273] + case 0x2B: // Deleted Area Reference [323 273] // no information which part is deleted, set all rSRef1.SetColDeleted( true ); rSRef1.SetRowDeleted( true ); @@ -785,7 +785,7 @@ ConvErr ExcelToSc8::Convert( const ScTokenArray*& rpTokArray, XclImpStream& aIn, if (aExtInfo.mbExternal) { - // nTabFirst and nTabLast are the indices of the refernced + // nTabFirst and nTabLast are the indices of the referenced // sheets in the SUPBOOK record, hence do not represent // the actual indices of the original sheets since the // SUPBOOK record only stores referenced sheets and skips @@ -1100,7 +1100,7 @@ ConvErr ExcelToSc8::Convert( _ScRangeListTabs& rRangeList, XclImpStream& aIn, sa break; case 0x4B: case 0x6B: - case 0x2B: // Deleted Area Refernce [323 273] + case 0x2B: // Deleted Area Reference [323 273] aIn.Ignore( 6 ); break; case 0x4C: @@ -1569,7 +1569,7 @@ bool ExcelToSc8::GetAbsRefs( ScRangeList& r, XclImpStream& aIn, sal_Size nLen ) case 0x1F: // Number [315 266] case 0x4B: case 0x6B: - case 0x2B: // Deleted Area Refernce [323 273] + case 0x2B: // Deleted Area Reference [323 273] nSeek = 8; break; case 0x5D: diff --git a/sc/source/filter/excel/excrecds.cxx b/sc/source/filter/excel/excrecds.cxx index 2273c8f97958..7bbe5559f446 100644 --- a/sc/source/filter/excel/excrecds.cxx +++ b/sc/source/filter/excel/excrecds.cxx @@ -506,7 +506,7 @@ void XclExpSheetProtection::SaveXml( XclExpXmlStream& rStrm ) it != end; ++it) { SAL_WARN_IF( (*it).maSecurityDescriptorXML.isEmpty() && !(*it).maSecurityDescriptor.empty(), - "sc.filter", "XclExpSheetProtection::SaveXml: loosing BIFF security descriptor"); + "sc.filter", "XclExpSheetProtection::SaveXml: losing BIFF security descriptor"); rWorksheet->singleElement( XML_protectedRange, XML_name, (*it).maTitle.isEmpty() ? NULL : XclXmlUtils::ToOString( (*it).maTitle).getStr(), XML_securityDescriptor, (*it).maSecurityDescriptorXML.isEmpty() ? NULL : XclXmlUtils::ToOString( (*it).maSecurityDescriptorXML).getStr(), diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx index 9d1adb00f8f2..e5ff50c431c7 100644 --- a/sc/source/filter/excel/xestream.cxx +++ b/sc/source/filter/excel/xestream.cxx @@ -1108,7 +1108,7 @@ bool XclExpXmlStream::exportDocument() } PopStream(); - // Free all FSHelperPtr, to flush data before commiting storage + // Free all FSHelperPtr, to flush data before committing storage maOpenedStreamMap.clear(); commitStorage(); diff --git a/sc/source/filter/excel/xlstyle.cxx b/sc/source/filter/excel/xlstyle.cxx index 405c6016a9c6..fef4e2c92836 100644 --- a/sc/source/filter/excel/xlstyle.cxx +++ b/sc/source/filter/excel/xlstyle.cxx @@ -99,10 +99,10 @@ XclDefaultPalette::XclDefaultPalette( const XclRoot& rRoot ) : // 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 the note text colour was picked from the system tooltip + // 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 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 ae6ca2cb4036..246528afc127 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -1597,7 +1597,7 @@ void ScHTMLLayoutParser::ProcToken( ImportInfo* pInfo ) // Do not set bInCell to true, TableDataOn does that pActEntry->aItemSet.Put( SvxWeightItem( WEIGHT_BOLD, ATTR_FONT_WEIGHT) ); - } // fall thru + } // fall through case HTML_TABLEDATA_ON: // Opens cell { TableDataOn( pInfo ); diff --git a/sc/source/filter/inc/xichart.hxx b/sc/source/filter/inc/xichart.hxx index 06ac771e5a12..f21f77b164fc 100644 --- a/sc/source/filter/inc/xichart.hxx +++ b/sc/source/filter/inc/xichart.hxx @@ -1058,7 +1058,7 @@ private: XDataSeriesRef xSeries, sal_Int32 nApiAxesSetIdx ) const; /** Creates all data series of any chart type except stock charts. */ void CreateDataSeries( XChartTypeRef xChartType, sal_Int32 nApiAxesSetIdx ) const; - /** Creates all data series of of a stock chart. */ + /** Creates all data series of a stock chart. */ void CreateStockSeries( XChartTypeRef xChartType, sal_Int32 nApiAxesSetIdx ) const; private: diff --git a/sc/source/filter/xml/XMLTableShapeImportHelper.cxx b/sc/source/filter/xml/XMLTableShapeImportHelper.cxx index 32a9fe0b761e..ed6e28d6f807 100644 --- a/sc/source/filter/xml/XMLTableShapeImportHelper.cxx +++ b/sc/source/filter/xml/XMLTableShapeImportHelper.cxx @@ -192,7 +192,7 @@ void XMLTableShapeImportHelper::finishShape( else //this are grouped shapes which should also get the layerid { uno::Reference< drawing::XShapes > xGroup( rShape, uno::UNO_QUERY ); - // ignore the group ( within group ) object it it exists + // ignore the group ( within group ) object if it exists if ( !bOnTable && !xGroup.is() ) { // For cell anchored grouped shape we need to set the start diff --git a/sc/source/filter/xml/XMLTableShapeResizer.cxx b/sc/source/filter/xml/XMLTableShapeResizer.cxx index 6f3ce9045385..dc9ba8556e9c 100644 --- a/sc/source/filter/xml/XMLTableShapeResizer.cxx +++ b/sc/source/filter/xml/XMLTableShapeResizer.cxx @@ -92,7 +92,7 @@ void ScMyOLEFixer::CreateChartListener(ScDocument* pDoc, //for loading binary files e.g. //if we have the flat filter we need to set the dirty flag thus the visible charts get repainted - //otherwise the charts keep their first visual representation which was created at a moment where the calc itself was not loaded completely and is incorect therefor + //otherwise the charts keep their first visual representation which was created at a moment where the calc itself was not loaded completely and is therefore incorrect if( (rImport.getImportFlags() & IMPORT_ALL) == IMPORT_ALL ) pCL->SetDirty( true ); else diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 8b382c919f9e..f82e0b474710 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -3654,7 +3654,7 @@ void ScXMLExport::exportAnnotationMeta( const uno::Reference < drawing::XShape > if (pNote) { // TODO : notes - //is it still usefull, as this call back is only called from ScXMLExport::WriteAnnotation + //is it still useful, as this call back is only called from ScXMLExport::WriteAnnotation // and should be in sync with pCurrentCell SdrCaptionObj* pNoteCaption = pNote->GetOrCreateCaption(pCurrentCell->maCellAddress); Reference xCurrentShape( pNoteCaption->getUnoShape(), uno::UNO_QUERY ); diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index eff6c2902049..1e9a82e88cd7 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -1585,7 +1585,7 @@ void ScInputHandler::NextAutoEntry( bool bBack ) void ScInputHandler::UpdateParenthesis() { // Find parentheses - //TODO: Can we disable parentheses highlighting per paranthesis? + //TODO: Can we disable parentheses highlighting per parentheses? bool bFound = false; if ( bFormulaMode && eMode != SC_INPUT_TOP ) { diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 3e72f643ab3c..534a921df464 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -1086,7 +1086,7 @@ void ScInputBarGroup::TriggerToolboxLayout() SfxViewFrame* pViewFrm = SfxViewFrame::Current(); // Capture the vertical position of this window in the toolbar, when we increase - // the size of the toolbar to accomadate expanded line input we need to take this + // the size of the toolbar to accommodate expanded line input we need to take this // into account if ( !nVertOffset ) nVertOffset = rParent.GetItemPosRect( rParent.GetItemCount() - 1 ).Top(); @@ -2420,7 +2420,7 @@ void ScPosWnd::DoEnter() } else { - // for all selection types, excecute the SID_CURRENTCELL slot. + // for all selection types, execute the SID_CURRENTCELL slot. if (eType == SC_NAME_INPUT_CELL || eType == SC_NAME_INPUT_RANGE) { // Note that SID_CURRENTCELL always expects address to diff --git a/sc/source/ui/inc/AccessibleContextBase.hxx b/sc/source/ui/inc/AccessibleContextBase.hxx index 04d867e227e3..7cad584e7a09 100644 --- a/sc/source/ui/inc/AccessibleContextBase.hxx +++ b/sc/source/ui/inc/AccessibleContextBase.hxx @@ -306,7 +306,7 @@ protected: private: /** Description of this object. This is not a constant because it can - be set from the outside. Furthermore, it changes according the the + be set from the outside. Furthermore, it changes according to the draw page's display mode. */ OUString msDescription; diff --git a/sc/source/ui/inc/output.hxx b/sc/source/ui/inc/output.hxx index 8a9649848ba4..ffb6bea95872 100644 --- a/sc/source/ui/inc/output.hxx +++ b/sc/source/ui/inc/output.hxx @@ -158,7 +158,7 @@ private: SCCOL nX2; SCROW nY2; SCCOL nVisX1; // Start-/End coordinates - SCROW nVisY1; // ( visable range ) + SCROW nVisY1; // ( visible range ) SCCOL nVisX2; SCROW nVisY2; ScOutputType eType; // Screen/Printer ... diff --git a/sc/source/ui/miscdlgs/simpref.cxx b/sc/source/ui/miscdlgs/simpref.cxx index a150b8646c66..93cb3e06d96d 100644 --- a/sc/source/ui/miscdlgs/simpref.cxx +++ b/sc/source/ui/miscdlgs/simpref.cxx @@ -52,7 +52,7 @@ ScSimpleRefDlg::ScSimpleRefDlg(SfxBindings* pB, SfxChildWindow* pCW, vcl::Window get(m_pBtnOk, "ok"); get(m_pBtnCancel, "cancel"); - // in order to keep the the Strings with the FixedTexts in the resource: + // in order to keep the Strings with the FixedTexts in the resource: Init(); SetDispatcherLock( true ); // activate modal mode } diff --git a/sc/source/ui/vba/vbaborders.cxx b/sc/source/ui/vba/vbaborders.cxx index 1bd506dabdd0..1056713f03ef 100644 --- a/sc/source/ui/vba/vbaborders.cxx +++ b/sc/source/ui/vba/vbaborders.cxx @@ -43,7 +43,7 @@ static const sal_Int16 supportedIndexTable[] = { XlBordersIndex::xlEdgeLeft, Xl static const char sTableBorder[] = "TableBorder"; -// Equiv widths in in 1/100 mm +// Equiv widths in 1/100 mm const static sal_Int32 OOLineThin = 35; const static sal_Int32 OOLineMedium = 88; const static sal_Int32 OOLineThick = 141; diff --git a/sc/source/ui/vba/vbachart.cxx b/sc/source/ui/vba/vbachart.cxx index 4f495e669da3..f9f8db7e93d4 100644 --- a/sc/source/ui/vba/vbachart.cxx +++ b/sc/source/ui/vba/vbachart.cxx @@ -68,7 +68,7 @@ const OUString HASLEGEND("HasLegend"); ScVbaChart::ScVbaChart( const css::uno::Reference< ov::XHelperInterface >& _xParent, const css::uno::Reference< css::uno::XComponentContext >& _xContext, const css::uno::Reference< css::lang::XComponent >& _xChartComponent, const css::uno::Reference< css::table::XTableChart >& _xTableChart ) : ChartImpl_BASE( _xParent, _xContext ), mxTableChart( _xTableChart ) { mxChartDocument.set( _xChartComponent, uno::UNO_QUERY_THROW ) ; - // #TODO is is possible that the XPropertySet interface is not set + // #TODO is it possible that the XPropertySet interface is not set // code in setPlotBy seems to indicate that this is possible? but // additionally there is no check in most of the places where it is used // ( and therefore could possibly be NULL ) diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index a06ca8e24423..3768613a3a08 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -4190,7 +4190,7 @@ ScVbaRange::getWorksheet() throw (uno::RuntimeException, std::exception) uno::Reference< excel::XRange > ScVbaRange::ApplicationRange( const uno::Reference< uno::XComponentContext >& xContext, const css::uno::Any &Cell1, const css::uno::Any &Cell2 ) throw (css::uno::RuntimeException) { - // Althought the documentation seems clear that Range without a + // Although the documentation seems clear that Range without a // qualifier then it's a shortcut for ActiveSheet.Range // however, similarly Application.Range is apparently also a // shortcut for ActiveSheet.Range diff --git a/sc/source/ui/vba/vbawindow.cxx b/sc/source/ui/vba/vbawindow.cxx index 85729b5612d5..13226103cdcc 100644 --- a/sc/source/ui/vba/vbawindow.cxx +++ b/sc/source/ui/vba/vbawindow.cxx @@ -329,7 +329,7 @@ ScVbaWindow::getCaption() throw (uno::RuntimeException, std::exception) static const char sDot[] = "."; // starts with title if ( sName.startsWith( sTitle ) ) - // extention starts immediately after + // extension starts immediately after if ( sName.match( sDot, sTitle.getLength() ) ) sTitle = sName; } diff --git a/sc/source/ui/vba/vbaworkbooks.cxx b/sc/source/ui/vba/vbaworkbooks.cxx index fc36732a557b..1446bea2a8d8 100644 --- a/sc/source/ui/vba/vbaworkbooks.cxx +++ b/sc/source/ui/vba/vbaworkbooks.cxx @@ -105,7 +105,7 @@ ScVbaWorkbooks::getElementType() throw (uno::RuntimeException) uno::Reference< container::XEnumeration > ScVbaWorkbooks::createEnumeration() throw (uno::RuntimeException) { - // #FIXME its possible the WorkBookEnumImpl here doens't reflect + // #FIXME its possible the WorkBookEnumImpl here doesn't reflect // the state of this object ( although it should ) would be // safer to create an enumeration based on this objects state // rather than one effectively based of the desktop component diff --git a/sc/source/ui/vba/vbawsfunction.cxx b/sc/source/ui/vba/vbawsfunction.cxx index c3f066c4f70f..76a49b8c9894 100644 --- a/sc/source/ui/vba/vbawsfunction.cxx +++ b/sc/source/ui/vba/vbawsfunction.cxx @@ -186,7 +186,7 @@ ScVbaWSFunction::invoke(const OUString& FunctionName, const uno::Sequence< uno:: aRet = xFunctionAccess->callFunction( FunctionName, aParamTemp ); } - /* Convert return value from double to to Boolean for some functions that + /* Convert return value from double to Boolean for some functions that return Booleans. */ typedef uno::Sequence< uno::Sequence< uno::Any > > AnySeqSeq; if( (eOpCode == ocIsEmpty) || (eOpCode == ocIsString) || (eOpCode == ocIsNonString) || (eOpCode == ocIsLogical) || diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx index ac8365df13b1..3560e0bb7182 100644 --- a/sc/source/ui/view/printfun.cxx +++ b/sc/source/ui/view/printfun.cxx @@ -1670,7 +1670,7 @@ void ScPrintFunc::MakeEditEngine() pEditEngine = new ScHeaderEditEngine( EditEngine::CreatePool(), true ); pEditEngine->EnableUndo(false); - //fdo#45869 we want text to be positioned as it would be for the the + //fdo#45869 we want text to be positioned as it would be for the //high dpi printed output, not as would be ideal for the 96dpi preview //window itself pEditEngine->SetRefDevice(pPrinter ? pPrinter : pDoc->GetRefDevice()); diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx index b06a8b6f7cdc..d9fc03a3519f 100644 --- a/sc/source/ui/view/viewfunc.cxx +++ b/sc/source/ui/view/viewfunc.cxx @@ -129,7 +129,7 @@ bool ScViewFunc::TestFormatArea( SCCOL nCol, SCROW nRow, SCTAB nTab, bool bAttrC return false; // Test: treat input with numberformat (bAttrChanged) always as new Attribute - // (discard old Area ). If not not wanted, discard if-statement + // (discard old Area ). If not wanted, discard if-statement if ( bAttrChanged ) { StartFormatArea(); @@ -2137,7 +2137,7 @@ void ScViewFunc::SetMarkedWidthOrHeight( bool bWidth, ScSizeMode eMode, sal_uInt void ScViewFunc::ModifyCellSize( ScDirection eDir, bool bOptimal ) { //! step size adjustable - // step size is also minumum + // step size is also minimum sal_uInt16 nStepX = STD_COL_WIDTH / 5; sal_uInt16 nStepY = ScGlobal::nStdRowHeight; @@ -2553,7 +2553,7 @@ void ScViewFunc::ChangeNumFmtDecimals( bool bIncrement ) if (nPrecision) --nPrecision; // decrement else - bError = true; // 0 is minumum + bError = true; // 0 is minimum } } -- cgit