[Libreoffice-commits] core.git: sc/source

Andrea Gelmini (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 12 09:17:12 UTC 2019


 sc/source/ui/unoobj/cellsuno.cxx    |    2 +-
 sc/source/ui/unoobj/cursuno.cxx     |    2 +-
 sc/source/ui/unoobj/dispuno.cxx     |    2 +-
 sc/source/ui/unoobj/docuno.cxx      |    2 +-
 sc/source/ui/unoobj/exceldetect.cxx |    8 ++++----
 sc/source/ui/unoobj/viewuno.cxx     |    2 +-
 sc/source/ui/vba/vbaborders.cxx     |    4 ++--
 sc/source/ui/vba/vbarange.cxx       |   14 +++++++-------
 sc/source/ui/view/dbfunc3.cxx       |    2 +-
 sc/source/ui/view/formatsh.cxx      |    2 +-
 10 files changed, 20 insertions(+), 20 deletions(-)

New commits:
commit 4dfce6d2b0f44d8aa55093302987da656a97da2c
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Sun Aug 11 18:46:43 2019 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Mon Aug 12 11:16:05 2019 +0200

    Fix typos
    
    Change-Id: I14e37e2920d69b1bd6d2f633f23f37feea104c01
    Reviewed-on: https://gerrit.libreoffice.org/77293
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index dcef6d854d05..a6237eb32731 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -5464,7 +5464,7 @@ void SAL_CALL ScCellRangeObj::filter( const uno::Reference<sheet::XSheetFilterDe
 {
     SolarMutexGuard aGuard;
 
-    //  This could be theoretically a unknown object, so only use the
+    //  This could be theoretically an unknown object, so only use the
     //  public XSheetFilterDescriptor interface to copy the data into a
     //  ScFilterDescriptor object:
     //! if it already a ScFilterDescriptor is, direct via getImplementation?
diff --git a/sc/source/ui/unoobj/cursuno.cxx b/sc/source/ui/unoobj/cursuno.cxx
index af8fa73a767f..196fef8c1c88 100644
--- a/sc/source/ui/unoobj/cursuno.cxx
+++ b/sc/source/ui/unoobj/cursuno.cxx
@@ -128,7 +128,7 @@ void SAL_CALL ScCellCursorObj::collapseToCurrentArray()
     }
     // that's a Bug, that this assertion comes; the API Reference says, that
     // if there is no Matrix, the Range is left unchanged; they says nothing
-    // about a exception
+    // about an exception
     /*if (!bFound)
     {
         OSL_FAIL("no matrix");
diff --git a/sc/source/ui/unoobj/dispuno.cxx b/sc/source/ui/unoobj/dispuno.cxx
index daaa70b2180a..2fc3f06c8313 100644
--- a/sc/source/ui/unoobj/dispuno.cxx
+++ b/sc/source/ui/unoobj/dispuno.cxx
@@ -62,7 +62,7 @@ ScDispatchProviderInterceptor::ScDispatchProviderInterceptor(ScTabViewShell* pVi
             m_xIntercepted->registerDispatchProviderInterceptor(
                         static_cast<frame::XDispatchProviderInterceptor*>(this));
             // this should make us the top-level dispatch-provider for the component, via a call to our
-            // setDispatchProvider we should have got an fallback for requests we (i.e. our master) cannot fulfill
+            // setDispatchProvider we should have got a fallback for requests we (i.e. our master) cannot fulfill
             uno::Reference<lang::XComponent> xInterceptedComponent(m_xIntercepted, uno::UNO_QUERY);
             if (xInterceptedComponent.is())
                 xInterceptedComponent->addEventListener(static_cast<lang::XEventListener*>(this));
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 067603d43531..7148fce0b323 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -317,7 +317,7 @@ ScPrintUIOptions::ScPrintUIOptions()
                                                     aChoices,
                                                     0 );
 
-    // create a an Edit dependent on "Pages" selected
+    // create an Edit dependent on "Pages" selected
     vcl::PrinterOptionsHelper::UIControlOptions aPageRangeOpt( aPrintRangeName, 1, true );
     m_aUIProperties[nIdx++].Value = setEditControlOpt("pagerange", OUString(),
                                                       ".HelpID:vcl:PrintDialog:PageRange:Edit",
diff --git a/sc/source/ui/unoobj/exceldetect.cxx b/sc/source/ui/unoobj/exceldetect.cxx
index 77270cc2b85a..41c5c01c9367 100644
--- a/sc/source/ui/unoobj/exceldetect.cxx
+++ b/sc/source/ui/unoobj/exceldetect.cxx
@@ -145,7 +145,7 @@ OUString ScExcelBiffDetect::detect( uno::Sequence<beans::PropertyValue>& lDescri
 
     if (aType == "calc_MS_Excel_97" || aType == "calc_MS_Excel_97_VorlageTemplate")
     {
-        // See if this stream is a Excel 97/XP/2003 (BIFF8) stream.
+        // See if this stream is an Excel 97/XP/2003 (BIFF8) stream.
         if (!hasStream(xInStream, "Workbook"))
             // BIFF8 is expected to contain a stream named "Workbook".
             return OUString();
@@ -155,7 +155,7 @@ OUString ScExcelBiffDetect::detect( uno::Sequence<beans::PropertyValue>& lDescri
 
     else if (aType == "calc_MS_Excel_95" || aType == "calc_MS_Excel_95_VorlageTemplate")
     {
-        // See if this stream is a Excel 95 (BIFF5) stream.
+        // See if this stream is an Excel 95 (BIFF5) stream.
         if (!hasStream(xInStream, "Book"))
             return OUString();
 
@@ -164,7 +164,7 @@ OUString ScExcelBiffDetect::detect( uno::Sequence<beans::PropertyValue>& lDescri
 
     else if (aType == "calc_MS_Excel_5095" || aType == "calc_MS_Excel_5095_VorlageTemplate")
     {
-        // See if this stream is a Excel 5.0/95 stream.
+        // See if this stream is an Excel 5.0/95 stream.
         if (!hasStream(xInStream, "Book"))
             return OUString();
 
@@ -173,7 +173,7 @@ OUString ScExcelBiffDetect::detect( uno::Sequence<beans::PropertyValue>& lDescri
 
     else if (aType == "calc_MS_Excel_40" || aType == "calc_MS_Excel_40_VorlageTemplate")
     {
-        // See if this stream is a Excel 4.0 stream.
+        // See if this stream is an Excel 4.0 stream.
         if (!isExcel40(xInStream))
             return OUString();
 
diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx
index b6f1db04c47a..a571ae8b4ad3 100644
--- a/sc/source/ui/unoobj/viewuno.cxx
+++ b/sc/source/ui/unoobj/viewuno.cxx
@@ -1804,7 +1804,7 @@ void SAL_CALL ScTabViewObj::setPropertyValue(
 
         //  Options are set on the view and document (for new views),
         //  so that they remain during saving.
-        //! In the app (module) we need a extra options to tune that
+        //! In the app (module) we need an extra options to tune that
         //! (for new documents)
 
         if ( aNewOpt != rOldOpt )
diff --git a/sc/source/ui/vba/vbaborders.cxx b/sc/source/ui/vba/vbaborders.cxx
index 7061bb6733ef..815f007676fa 100644
--- a/sc/source/ui/vba/vbaborders.cxx
+++ b/sc/source/ui/vba/vbaborders.cxx
@@ -89,7 +89,7 @@ private:
                 break;
             case XlBordersIndex::xlDiagonalDown:
             case XlBordersIndex::xlDiagonalUp:
-                // #TODO have to ignore at the momement, would be
+                // #TODO have to ignore at the moment, would be
                 // nice to investigate what we can do here
                 break;
             default:
@@ -132,7 +132,7 @@ private:
 
             case XlBordersIndex::xlDiagonalDown:
             case XlBordersIndex::xlDiagonalUp:
-                // #TODO have to ignore at the momement, would be
+                // #TODO have to ignore at the moment, would be
                 // nice to investigate what we can do here
                 break;
             default:
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index a6ef36ce12f2..4776e6750048 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -360,7 +360,7 @@ ScVbaRangeAreas::createCollectionObject( const uno::Any& aSource )
     return lcl_makeRange( mxParent, mxContext, aSource, mbIsRows, mbIsColumns );
 }
 
-// assume that xIf is infact a ScCellRangesBase
+// assume that xIf is in fact a ScCellRangesBase
 /// @throws uno::RuntimeException
 static ScDocShell*
 getDocShellFromIf( const uno::Reference< uno::XInterface >& xIf )
@@ -3355,7 +3355,7 @@ ScVbaRange::Sort( const uno::Any& Key1, const uno::Any& Order1, const uno::Any&
         DataOption3 >>= nDataOption3;
 
     // 1) #TODO #FIXME need to process DataOption[1..3] not used currently
-    // 2) #TODO #FIXME need to refactor this ( below ) into a IsSingleCell() method
+    // 2) #TODO #FIXME need to refactor this ( below ) into an IsSingleCell() method
     uno::Reference< table::XColumnRowRange > xColumnRowRange(mxRange, uno::UNO_QUERY_THROW );
 
     // set up defaults
@@ -4157,9 +4157,9 @@ ScVbaRange::ApplicationRange( const uno::Reference< uno::XComponentContext >& xC
     // wrt to named ranges.
     // If a named range "test" exists { Sheet1!$A1 } and the active sheet
     // is Sheet2 then the following will fail
-    // msgbox ActiveSheet.Range("test").Address ' failes
+    // msgbox ActiveSheet.Range("test").Address ' fails
     // msgbox WorkSheets("Sheet2").Range("test").Address
-    // but !!!
+    // but!!!
     // msgbox Range("test").Address ' works
     // msgbox Application.Range("test").Address ' works
 
@@ -4501,7 +4501,7 @@ ScVbaRange::AutoFilter( const uno::Any& aField, const uno::Any& Criteria1, const
             else // no value specified
                 bAll = true;
             // not sure what the relationship between Criteria1 and Operator is,
-            // e.g. can you have a Operator without a Criteria ? in openoffice it
+            // e.g. can you have an Operator without a Criteria? In LibreOffice it
             if ( Operator.hasValue()  && ( Operator >>= nOperator ) )
             {
                 // if it's a bottom/top Ten(Percent/Value) and there
@@ -4565,7 +4565,7 @@ ScVbaRange::AutoFilter( const uno::Any& aField, const uno::Any& Criteria1, const
                         sal_uInt16 nLength = aCriteria2.getLength();
                         if ( nLength )
                         {
-                            // For compatibility use only the last value form the sequence
+                            // For compatibility use only the last value from the sequence
                             lcl_setTableFieldsFromCriteria( aCriteria2[nLength - 1], xDescProps, sTabFilts[1] );
                         }
                     }
@@ -4618,7 +4618,7 @@ ScVbaRange::AutoFilter( const uno::Any& aField, const uno::Any& Criteria1, const
 void SAL_CALL
 ScVbaRange::Insert( const uno::Any& Shift, const uno::Any& /*CopyOrigin*/ )
 {
-    // It appears ( from the web ) that the undocumented CopyOrigin
+    // It appears (from the web) that the undocumented CopyOrigin
     // param should contain member of enum XlInsertFormatOrigin
     // which can have values xlFormatFromLeftOrAbove or xlFormatFromRightOrBelow
     // #TODO investigate resultant behaviour using these constants
diff --git a/sc/source/ui/view/dbfunc3.cxx b/sc/source/ui/view/dbfunc3.cxx
index 476b1a322110..e2add0b814b0 100644
--- a/sc/source/ui/view/dbfunc3.cxx
+++ b/sc/source/ui/view/dbfunc3.cxx
@@ -2147,7 +2147,7 @@ void ScDBFunc::RepeatDB( bool bRecord )
         {
             // sort without subtotals
 
-            aSubTotalParam.bRemoveOnly = true;      // is resetted below
+            aSubTotalParam.bRemoveOnly = true;      // is reset below
             DoSubTotals( aSubTotalParam, false );
         }
 
diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx
index 0d31afcaccd9..a28f95f4d2cb 100644
--- a/sc/source/ui/view/formatsh.cxx
+++ b/sc/source/ui/view/formatsh.cxx
@@ -924,7 +924,7 @@ void ScFormatShell::ExecuteStyle( SfxRequest& rReq )
                         pStylePool->Remove( pStyleSheet );
                     else
                     {
-                        // If in the mean time something was painted with the
+                        // If in the meantime something was painted with the
                         // temporary changed item set
                         pDocSh->PostPaintGridAll();
                     }


More information about the Libreoffice-commits mailing list