diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2014-11-10 15:05:25 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-11-12 11:04:11 +0000 |
commit | da40cac540e7d735edbe9069b3c8ec6af4530208 (patch) | |
tree | f2abda7281129e13f588c77b18780a7090c8405f /sc/source | |
parent | bb437029c1e5331bcc3f8fb2fc87837142a52f33 (diff) |
Fix common typos. No automatic tools. Handmade…
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959
Reviewed-on: https://gerrit.libreoffice.org/12164
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source')
32 files changed, 47 insertions, 47 deletions
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<ScDPDimension*>& 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<ScResourcePublisher> 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<OUString> &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<drawing::XShape> 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 } } |