summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorPedro Giffuni <pfg@apache.org>2014-04-29 19:25:03 +0000
committerPedro Giffuni <pfg@apache.org>2014-04-29 19:25:03 +0000
commit28206a7cb43aff5adb10f8235ad1680c3941ee3e (patch)
tree89886aa22af7483120081efc38a138d737651703 /sc
parentc3f20ae9a447f50517fe545a53de91d412c3337c (diff)
Many spelling fixes: directories r* - z*.
Attempt to clean up most but certainly not all the spelling mistakes that found home in OpenOffice through decades. We could probably blame the international nature of the code but it is somewhat shameful that this wasn't done before.
Notes
Notes: merged as: 820a29950b3085a713026995fdc43e32b6ded5f7
Diffstat (limited to 'sc')
-rw-r--r--sc/addin/datefunc/dfa.cl10
-rw-r--r--sc/addin/datefunc/dfa.src2
-rw-r--r--sc/addin/rot13/rot13.cl2
-rw-r--r--sc/addin/rot13/rot13.src2
-rw-r--r--sc/inc/attarray.hxx2
-rw-r--r--sc/inc/chgtrack.hxx2
-rw-r--r--sc/inc/column.hxx2
-rw-r--r--sc/inc/compressedarray.hxx2
-rw-r--r--sc/inc/document.hxx6
-rw-r--r--sc/inc/table.hxx2
-rw-r--r--sc/qa/complex/dataPilot/_XPropertySet.java44
-rw-r--r--sc/qa/complex/sc/CalcRTL.java2
-rw-r--r--sc/source/core/data/column.cxx2
-rw-r--r--sc/source/core/data/dpobject.cxx2
-rw-r--r--sc/source/core/data/dptablecache.cxx2
-rw-r--r--sc/source/core/data/dptabres.cxx6
-rw-r--r--sc/source/core/data/dptabsrc.cxx2
-rw-r--r--sc/source/core/data/global.cxx2
-rw-r--r--sc/source/core/data/validat.cxx2
-rw-r--r--sc/source/core/tool/chgtrack.cxx4
-rw-r--r--sc/source/core/tool/compiler.cxx2
-rw-r--r--sc/source/core/tool/interpr1.cxx2
-rw-r--r--sc/source/core/tool/interpr2.cxx2
-rw-r--r--sc/source/core/tool/interpr5.cxx2
-rw-r--r--sc/source/filter/excel/ooxml-export-TODO.txt2
-rw-r--r--sc/source/filter/excel/xeformula.cxx2
-rw-r--r--sc/source/filter/excel/xepivot.cxx2
-rw-r--r--sc/source/filter/excel/xestyle.cxx2
-rw-r--r--sc/source/filter/excel/xichart.cxx2
-rw-r--r--sc/source/filter/excel/xipivot.cxx2
-rw-r--r--sc/source/filter/excel/xlpivot.cxx2
-rw-r--r--sc/source/filter/inc/fapihelper.hxx2
-rw-r--r--sc/source/filter/inc/xehelper.hxx2
-rw-r--r--sc/source/filter/inc/xestream.hxx2
-rw-r--r--sc/source/filter/inc/xistream.hxx4
-rw-r--r--sc/source/filter/inc/xistyle.hxx4
-rw-r--r--sc/source/filter/xml/xmlimprt.cxx2
-rw-r--r--sc/source/filter/xml/xmlsubti.cxx2
-rw-r--r--sc/source/ui/Accessibility/AccessibleCell.cxx2
-rw-r--r--sc/source/ui/Accessibility/AccessibleContextBase.cxx2
-rw-r--r--sc/source/ui/Accessibility/AccessibleDataPilotControl.cxx6
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocument.cxx2
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx4
-rw-r--r--sc/source/ui/Accessibility/AccessibleEditObject.cxx2
-rw-r--r--sc/source/ui/Accessibility/AccessiblePreviewCell.cxx2
-rw-r--r--sc/source/ui/app/inputwin.cxx2
-rw-r--r--sc/source/ui/app/scmod.cxx2
-rw-r--r--sc/source/ui/docshell/docfunc.cxx6
-rw-r--r--sc/source/ui/docshell/docsh8.cxx2
-rw-r--r--sc/source/ui/drawfunc/fupoor.cxx2
-rw-r--r--sc/source/ui/miscdlgs/linkarea.cxx2
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx4
-rw-r--r--sc/source/ui/unoobj/dapiuno.cxx4
-rw-r--r--sc/source/ui/unoobj/dispuno.cxx2
-rw-r--r--sc/source/ui/unoobj/docuno.cxx4
-rw-r--r--sc/source/ui/unoobj/nameuno.cxx4
-rw-r--r--sc/source/ui/vba/vbacharacters.hxx2
-rw-r--r--sc/source/ui/vba/vbachartobject.cxx2
-rw-r--r--sc/source/ui/vba/vbaformatconditions.cxx2
-rw-r--r--sc/source/ui/vba/vbarange.cxx8
-rw-r--r--sc/source/ui/vba/vbarange.hxx2
-rw-r--r--sc/source/ui/vba/vbawindow.cxx2
-rw-r--r--sc/source/ui/vba/vbaworksheet.cxx2
63 files changed, 107 insertions, 107 deletions
diff --git a/sc/addin/datefunc/dfa.cl b/sc/addin/datefunc/dfa.cl
index 366011ee1a27..283aff9ecb8a 100644
--- a/sc/addin/datefunc/dfa.cl
+++ b/sc/addin/datefunc/dfa.cl
@@ -217,14 +217,14 @@ static void DaysToDate( long nDays,
* The International Standard IS-8601 has decreed that Monday
* shall be the first day of the week.
*
- * A week that lies partly in one year and partly in annother
+ * A week that lies partly in one year and partly in another
* is assigned a number in the the year in which most of its days lie.
*
* That means that week 1 of any year is the week that contains the 4. January
*
* The internal representation of a Date used in the Addin is the number of days based on 01/01/0001
*
- * A WeekDay can be then calculated by substracting 1 and calculating the rest of
+ * A WeekDay can be then calculated by subtracting 1 and calculating the rest of
* a division by 7, which gives a 0 - 6 value for Monday - Sunday
*
* Using the 4. January rule explained above the formula
@@ -234,7 +234,7 @@ static void DaysToDate( long nDays,
* calculates a number between 0-53 for each day which is in the same year as nJan4
* where 0 means that this week belonged to the year before.
*
- * If a day in the same or annother year is used in this formula this calculates
+ * If a day in the same or another year is used in this formula this calculates
* an calendar week offset from a given 4. January
*
* nWeek2 = ( nDays2 - nJan4 + ( (nJan4-1) % 7 ) ) / 7 + 1;
@@ -428,7 +428,7 @@ void CALLTYPE ScDate_DaysInMonth(double *r, double *d)
* The International Standard IS-8601 has decreed that Monday
* shall be the first day of the week.
*
- * A WeekDay can be calculated by substracting 1 and calculating the rest of
+ * A WeekDay can be calculated by subtracting 1 and calculating the rest of
* a division by 7 from the internal date represention
* which gives a 0 - 6 value for Monday - Sunday
*
@@ -508,7 +508,7 @@ void CALLTYPE GetFunctionCount( USHORT *nCount )
}
/**
- * Provides neccessary data for each new function to StarCalc
+ * Provides necessary data for each new function to StarCalc
*
* @param *nNo Input: Function number between 0 and nCount - 1
* @param *pFuncName Output: Functionname which should be called in the AddIn-DLL
diff --git a/sc/addin/datefunc/dfa.src b/sc/addin/datefunc/dfa.src
index d61fe7ca73dc..a03881d6504e 100644
--- a/sc/addin/datefunc/dfa.src
+++ b/sc/addin/datefunc/dfa.src
@@ -27,7 +27,7 @@
* legacy AddIn interface. The interface is still supported, but deprecated.
* The strings here were displayed in the function wizard. To prevent
* duplicated and useless translation effort (functions and strings are also
- * part of the new scaddin module), the strings here are now layed out as fixed
+ * part of the new scaddin module), the strings here are now laid out as fixed
* untranslatable strings. The entire mechanism with the ../util/cl2c.pl perl
* script merging the raw .cl and the .src during build time didn't work
* anymore anyway, since we switched from MS-LCIDs / telephone area codes to
diff --git a/sc/addin/rot13/rot13.cl b/sc/addin/rot13/rot13.cl
index a1bd601354bf..9f2dd4f8ea80 100644
--- a/sc/addin/rot13/rot13.cl
+++ b/sc/addin/rot13/rot13.cl
@@ -57,7 +57,7 @@ void CALLTYPE GetFunctionCount( USHORT *nCount )
}
/**
- * Provides neccessary data for each new function to StarCalc
+ * Provides necessary data for each new function to StarCalc
*
* @param *nNo Input: Function number between 0 and nCount - 1
* @param *pFuncName Output: Functionname which should be called in the AddIn-DLL
diff --git a/sc/addin/rot13/rot13.src b/sc/addin/rot13/rot13.src
index b7b29187a0b6..8bd75cc3b112 100644
--- a/sc/addin/rot13/rot13.src
+++ b/sc/addin/rot13/rot13.src
@@ -27,7 +27,7 @@
* legacy AddIn interface. The interface is still supported, but deprecated.
* The strings here were displayed in the function wizard. To prevent
* duplicated and useless translation effort (functions and strings are also
- * part of the new scaddin module), the strings here are now layed out as fixed
+ * part of the new scaddin module), the strings here are now laid out as fixed
* untranslatable strings. The entire mechanism with the ../util/cl2c.pl perl
* script merging the raw .cl and the .src during build time didn't work
* anymore anyway, since we switched from MS-LCIDs / telephone area codes to
diff --git a/sc/inc/attarray.hxx b/sc/inc/attarray.hxx
index 6771b7cd5cbd..488c6afbc841 100644
--- a/sc/inc/attarray.hxx
+++ b/sc/inc/attarray.hxx
@@ -167,7 +167,7 @@ public:
sal_Bool GetFirstVisibleAttr( SCROW& rFirstRow ) const;
sal_Bool GetLastVisibleAttr( SCROW& rLastRow, SCROW nLastData ) const;
/*
- Get the last cell's row number , which have visual atribute or visual data in attribute list
+ Get the last cell's row number , which have visual attribute or visual data in attribute list
*/
sal_Bool GetLastAttr( SCROW& rLastRow, SCROW nLastData ) const;
sal_Bool HasVisibleAttrIn( SCROW nStartRow, SCROW nEndRow ) const;
diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx
index 67b516bbd0e6..229560ecdcfb 100644
--- a/sc/inc/chgtrack.hxx
+++ b/sc/inc/chgtrack.hxx
@@ -593,7 +593,7 @@ public:
const ScChangeActionType eType,
const SCsCOLROW nD,
ScChangeTrack* pTrack); // only to use in the XML import
- // wich of nDx and nDy is set is depend on the type
+ // which of nDx and nDy is set is depend on the type
// ob dieses das unterste einer Reihe (oder
// auch einzeln) ist
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx
index e856bf803441..e4fa1216cbbd 100644
--- a/sc/inc/column.hxx
+++ b/sc/inc/column.hxx
@@ -172,7 +172,7 @@ public:
sal_Bool GetFirstVisibleAttr( SCROW& rFirstRow ) const;
sal_Bool GetLastVisibleAttr( SCROW& rLastRow ) const;
/*
- Get the last cell's row number , which have visual atribute or visual data in a column
+ Get the last cell's row number , which have visual attribute or visual data in a column
*/
sal_Bool GetLastAttr( SCROW& rLastRow ) const;
sal_Bool HasVisibleAttrIn( SCROW nStartRow, SCROW nEndRow ) const;
diff --git a/sc/inc/compressedarray.hxx b/sc/inc/compressedarray.hxx
index a34063925247..1fe2f4479d55 100644
--- a/sc/inc/compressedarray.hxx
+++ b/sc/inc/compressedarray.hxx
@@ -221,7 +221,7 @@ ScCompressedArray<A,D>::GetDataEntry( size_t nIndex ) const
/** Iterator for ScCompressedArray.
- @ATTENTION: the iterator is not persistant if the underlying
+ @ATTENTION: the iterator is not persistent if the underlying
ScCompressedArray happens to be changed by any means, for example by
setting new values or adding or removing or combining entries. If you do
such things inside a loop you MUST resynchronize the iterator by calling
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index d49f648023fe..9f53c034bc22 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -719,7 +719,7 @@ public:
/** 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).
- @return true = DDE link found; false = Unpredictable error occured, no DDE link created. */
+ @return true = DDE link found; false = Unpredictable error occurred, no DDE link created. */
SC_DLLPUBLIC bool CreateDdeLink( const String& rAppl, const String& rTopic, const String& rItem, sal_uInt8 nMode, ScMatrix* pResults = NULL );
/** Sets a result matrix for the specified DDE link.
@param nDdePos Index of the DDE link (does not include other links from link manager).
@@ -977,7 +977,7 @@ public:
void InvalidateTableArea();
/*
- Get the last cell's row number , which have visual atribute or visual data in specific table
+ Get the last cell's row number , which have visual attribute or visual data in specific table
*/
SC_DLLPUBLIC void GetLastAttrCell( SCTAB nTab, SCCOL& rEndCol, SCROW& rEndRow ) const;
@@ -1432,7 +1432,7 @@ public:
SCROW GetNextDifferentChangedRow( SCTAB nTab, SCROW nStart, bool bCareManualSize = true) const;
// returns whether to export a Default style for this col/row or not
- // nDefault is setted to one possition in the current row/col where the Default style is
+ // nDefault is setted to one position in the current row/col where the Default style is
sal_Bool GetColDefault( SCTAB nTab, SCCOL nCol, SCROW nLastRow, SCROW& nDefault);
sal_Bool GetRowDefault( SCTAB nTab, SCROW nRow, SCCOL nLastCol, SCCOL& nDefault);
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index 052f8733a3ee..445f2ef64327 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -422,7 +422,7 @@ public:
SCROW& rEndRow, sal_Bool bNotes ) const;
/*
- Get the last cell's postion, which has visual attribute or data and has max row number among all columns.
+ Get the last cell's position, which has visual attribute or data and has max row number among all columns.
*/
void GetLastAttrCell( SCCOL& rEndCol, SCROW& rEndRow ) const;
sal_Bool GetDataStart( SCCOL& rStartCol, SCROW& rStartRow ) const;
diff --git a/sc/qa/complex/dataPilot/_XPropertySet.java b/sc/qa/complex/dataPilot/_XPropertySet.java
index fab4bfa11e56..0711f05f1c18 100644
--- a/sc/qa/complex/dataPilot/_XPropertySet.java
+++ b/sc/qa/complex/dataPilot/_XPropertySet.java
@@ -201,19 +201,19 @@ public class _XPropertySet {
oObj.setPropertyValue(PTT.bound,
ValueChanger.changePValue(gValue));
} catch (com.sun.star.beans.PropertyVetoException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.bound+"'");
e.printStackTrace();
} catch (com.sun.star.lang.IllegalArgumentException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.bound+"'");
e.printStackTrace();
} catch (com.sun.star.beans.UnknownPropertyException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.bound+"'");
e.printStackTrace();
} catch (com.sun.star.lang.WrappedTargetException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.bound+"'");
e.printStackTrace();
} // end of try-catch
@@ -256,19 +256,19 @@ public class _XPropertySet {
oObj.setPropertyValue(PTT.constrained,
ValueChanger.changePValue(gValue));
} catch (com.sun.star.beans.PropertyVetoException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.constrained+"'");
e.printStackTrace();
} catch (com.sun.star.lang.IllegalArgumentException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.constrained+"'");
e.printStackTrace();
} catch (com.sun.star.beans.UnknownPropertyException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.constrained+"'");
e.printStackTrace();
} catch (com.sun.star.lang.WrappedTargetException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.constrained+"'");
e.printStackTrace();
} // end of try-catch
@@ -314,19 +314,19 @@ public class _XPropertySet {
oObj.setPropertyValue(PTT.normal, sValue);
sValue = oObj.getPropertyValue(PTT.normal);
} catch (com.sun.star.beans.PropertyVetoException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.normal+"'");
e.printStackTrace();
} catch (com.sun.star.lang.IllegalArgumentException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.normal+"'");
e.printStackTrace();
} catch (com.sun.star.beans.UnknownPropertyException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.normal+"'");
e.printStackTrace();
} catch (com.sun.star.lang.WrappedTargetException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.normal+"'");
e.printStackTrace();
} // end of try-catch
@@ -364,12 +364,12 @@ public class _XPropertySet {
try {
Object gValue = oObj.getPropertyValue(toCheck);
} catch (com.sun.star.beans.UnknownPropertyException e) {
- System.out.println("Exception occured while trying to get property '"+
+ System.out.println("Exception occurred while trying to get property '"+
PTT.normal+"'");
e.printStackTrace();
result = false;
} catch (com.sun.star.lang.WrappedTargetException e) {
- System.out.println("Exception occured while trying to get property '"+
+ System.out.println("Exception occurred while trying to get property '"+
PTT.normal+"'");
e.printStackTrace();
result = false;
@@ -407,19 +407,19 @@ public class _XPropertySet {
oObj.setPropertyValue(PTT.bound,
ValueChanger.changePValue(gValue));
} catch (com.sun.star.beans.PropertyVetoException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.bound+"'");
e.printStackTrace();
} catch (com.sun.star.lang.IllegalArgumentException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.bound+"'");
e.printStackTrace();
} catch (com.sun.star.beans.UnknownPropertyException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.bound+"'");
e.printStackTrace();
} catch (com.sun.star.lang.WrappedTargetException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.bound+"'");
e.printStackTrace();
} // end of try-catch
@@ -464,19 +464,19 @@ public class _XPropertySet {
oObj.setPropertyValue(PTT.constrained,
ValueChanger.changePValue(gValue));
} catch (com.sun.star.beans.PropertyVetoException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.constrained+"'");
e.printStackTrace();
} catch (com.sun.star.lang.IllegalArgumentException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.constrained+"'");
e.printStackTrace();
} catch (com.sun.star.beans.UnknownPropertyException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.constrained+"'");
e.printStackTrace();
} catch (com.sun.star.lang.WrappedTargetException e) {
- System.out.println("Exception occured while trying to change "+
+ System.out.println("Exception occurred while trying to change "+
"property '"+ PTT.constrained+"'");
e.printStackTrace();
} // end of try-catch
diff --git a/sc/qa/complex/sc/CalcRTL.java b/sc/qa/complex/sc/CalcRTL.java
index e80c9213f05b..21832ef549ee 100644
--- a/sc/qa/complex/sc/CalcRTL.java
+++ b/sc/qa/complex/sc/CalcRTL.java
@@ -336,7 +336,7 @@ public class CalcRTL /* extends ComplexTestCase */
worked = checkResult(set, pName, oldValue, pValue, resValue,
exception);
} catch (Exception e) {
- System.out.println("Exception occured while testing property '" +
+ System.out.println("Exception occurred while testing property '" +
pName + "'");
e.printStackTrace();
worked = false;
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 4989aede2b48..9240098196d7 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -726,7 +726,7 @@ sal_Bool ScColumn::Search( SCROW nRow, SCSIZE& nIndex ) const
i = (nLo+nHi) / 2; // no effort, no division by zero
else
{ // interpolating search
- long nLoRow = pItems[nLo].nRow; // no unsigned underflow upon substraction
+ long nLoRow = pItems[nLo].nRow; // no unsigned underflow upon subtraction
i = nLo + (long)((long)(nRow - nLoRow) * (nHi - nLo)
/ (pItems[nHi].nRow - nLoRow));
if ( i < 0 || static_cast<SCSIZE>(i) >= nCount )
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index ee4158201e3c..bbd19e259cd0 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -1724,7 +1724,7 @@ void lcl_FillOldFields( ScPivotFieldVector& rFields,
bool bDataFound = false;
rFields.clear();
- //! merge multiple occurences (data field with different functions)
+ //! merge multiple occurrences (data field with different functions)
//! force data field in one dimension
std::vector< long > aPos;
diff --git a/sc/source/core/data/dptablecache.cxx b/sc/source/core/data/dptablecache.cxx
index a1b07ca2fd91..01f7cfecfed1 100644
--- a/sc/source/core/data/dptablecache.cxx
+++ b/sc/source/core/data/dptablecache.cxx
@@ -623,7 +623,7 @@ bool ScDPTableDataCache::InitFromDataBase (const Reference<sdbc::XRowSet>& xRowS
sal_uLong ScDPTableDataCache::GetDimNumType( SCCOL nDim) const
{
DBG_ASSERT( IsValid(), " IsValid() == false " );
- DBG_ASSERT( nDim < mnColumnCount && nDim >=0, " dimention out of bound " );
+ DBG_ASSERT( nDim < mnColumnCount && nDim >=0, " dimension out of bound " );
if ( mpTableDataValues[nDim].size()==0 )
return NUMBERFORMAT_UNDEFINED;
else
diff --git a/sc/source/core/data/dptabres.cxx b/sc/source/core/data/dptabres.cxx
index b498484e2cea..5d4642b63d46 100644
--- a/sc/source/core/data/dptabres.cxx
+++ b/sc/source/core/data/dptabres.cxx
@@ -704,7 +704,7 @@ ScDPAggData* lcl_GetChildTotal( ScDPAggData* pFirst, long nMeasure )
ScDPAggData* pAgg = pFirst;
long nSkip = nMeasure;
- // subtotal settings are ignored - colum/row totals exist once per measure
+ // subtotal settings are ignored - column/row totals exist once per measure
for ( long nPos=0; nPos<nSkip; nPos++ )
pAgg = pAgg->GetChild(); // column total is constructed empty - children need to be created
@@ -1095,7 +1095,7 @@ void ScDPResultMember::InitFrom( const vector<ScDPDimension*>& ppDim, const vect
if ( GetDPMember() && !GetDPMember()->getShowDetails() )
{
// Wang Xu Ming -- 2009-6-16
- // Show DataLayout dimention
+ // Show DataLayout dimension
nMemberStep = 1;
while ( nPos < ppDim.size() )
{
@@ -1143,7 +1143,7 @@ void ScDPResultMember::LateInitFrom( LateInitParams& rParams/*const vector<ScDPD
{
// Wang Xu Ming -- 2009-6-16
// DataPilot Migration
- // Show DataLayout dimention
+ // Show DataLayout dimension
nMemberStep = 1;
while ( !rParams.IsEnd( nPos ) )
{
diff --git a/sc/source/core/data/dptabsrc.cxx b/sc/source/core/data/dptabsrc.cxx
index 2519f33b43b7..5f9bab302905 100644
--- a/sc/source/core/data/dptabsrc.cxx
+++ b/sc/source/core/data/dptabsrc.cxx
@@ -1002,7 +1002,7 @@ void ScDPSource::CreateRes_Impl()
pRowResRoot->UpdateDataResults( pColResRoot, pResData->GetRowStartMeasure() );
}
- // SortMembers does the sorting by a result dimension, using the orginal results,
+ // SortMembers does the sorting by a result dimension, using the original results,
// but not running totals etc.
pRowResRoot->SortMembers( pColResRoot );
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 79a98c6c9b33..714338b6aff1 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -1236,7 +1236,7 @@ ScFunctionList::ScFunctionList() :
::std::auto_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
+ // resource blocks themselves would had to be ordered according to
// OpCodes, which is utopian..
for (i = 0; i <= SC_OPCODE_LAST_OPCODE_ID; i++)
{
diff --git a/sc/source/core/data/validat.cxx b/sc/source/core/data/validat.cxx
index 10127d44ea4d..4c1c4349467e 100644
--- a/sc/source/core/data/validat.cxx
+++ b/sc/source/core/data/validat.cxx
@@ -654,7 +654,7 @@ bool ScValidationData::GetSelectionFromFormula( TypedScStrCollection* pStrings,
const ScMatrix *pValues = aValidationSrc.GetMatrix();
if (!pValues)
{
- // The somewhat nasty case of either an error occured, or the
+ // The somewhat nasty case of either an error occurred, or the
// dereferenced value of a single cell reference or an immediate result
// is stored as a single value.
diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx
index 2d8c692cea54..0e96b12d8972 100644
--- a/sc/source/core/tool/chgtrack.cxx
+++ b/sc/source/core/tool/chgtrack.cxx
@@ -934,7 +934,7 @@ ScChangeActionDel::ScChangeActionDel( const ScRange& rRange,
ScChangeActionDel::ScChangeActionDel(const sal_uLong nActionNumber, const ScChangeActionState eStateP, const sal_uLong nRejectingNumber,
const ScBigRange& aBigRangeP, const String& aUserP, const DateTime& aDateTimeP, const String &sComment,
- const ScChangeActionType eTypeP, const SCsCOLROW nD, ScChangeTrack* pTrackP) // wich of nDx and nDy is set is depend on the type
+ const ScChangeActionType eTypeP, const SCsCOLROW nD, ScChangeTrack* pTrackP) // which of nDx and nDy is set is depend on the type
:
ScChangeAction(eTypeP, aBigRangeP, nActionNumber, nRejectingNumber, eStateP, aDateTimeP, aUserP, sComment),
pTrack( pTrackP ),
@@ -1262,7 +1262,7 @@ void ScChangeActionDel::UndoCutOffInsert()
ScChangeActionMove::ScChangeActionMove(const sal_uLong nActionNumber, const ScChangeActionState eStateP, const sal_uLong nRejectingNumber,
const ScBigRange& aToBigRange, const String& aUserP, const DateTime& aDateTimeP, const String &sComment,
- const ScBigRange& aFromBigRange, ScChangeTrack* pTrackP) // wich of nDx and nDy is set is depend on the type
+ const ScBigRange& aFromBigRange, ScChangeTrack* pTrackP) // which of nDx and nDy is set is depend on the type
:
ScChangeAction(SC_CAT_MOVE, aToBigRange, nActionNumber, nRejectingNumber, eStateP, aDateTimeP, aUserP, sComment),
aFromRange(aFromBigRange),
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index a7fdd2e8bb62..e4d1d0fe96a0 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -1235,7 +1235,7 @@ struct ConventionXL
if( bStartHasDoc )
{
- // A ref across multipled workbooks ?
+ // A ref across multiplied workbooks ?
if( !bEndHasDoc )
return;
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 23be39911a7a..70afc97396df 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -6592,7 +6592,7 @@ void ScInterpreter::ScDBCount()
// existing cells, so if a query matches an empty cell there's
// nothing returned, and therefor not counted!
// Since this has ever been the case and this code here only came
- // into existance to fix #i6899 and it never worked before we'll
+ // into existence to fix #i6899 and it never worked before we'll
// have to live with it until we reimplement the iterators to also
// return empty cells, which would mean to adapt all callers of
// iterators.
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index f3bcb4719bcc..d382f38d01fc 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -325,7 +325,7 @@ void ScInterpreter::ScGetDiffDate360()
* 30" or "NASD 30" method (funny enough they also state that Excel is the
* only tool that does so).
*
- * Note that the definiton given in
+ * Note that the definition given in
* http://msdn.microsoft.com/library/en-us/office97/html/SEB7C.asp
* is _not_ the way how it is actually calculated by Excel (that would not
* even match any of the 7 methods mentioned above) and would result in the
diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx
index e1f9c0a5b788..bf668a582ed3 100644
--- a/sc/source/core/tool/interpr5.cxx
+++ b/sc/source/core/tool/interpr5.cxx
@@ -667,7 +667,7 @@ void ScInterpreter::MEMat(ScMatrix* mM, SCSIZE n)
* permutations (row exchanges).
*
* Returns 0 if a singular matrix is encountered, else +1 if an even number of
- * permutations occured, or -1 if odd, which is the sign of the determinant.
+ * permutations occurred, or -1 if odd, which is the sign of the determinant.
* This may be used to calculate the determinant by multiplying the sign with
* the product of the diagonal elements of the LU matrix.
*/
diff --git a/sc/source/filter/excel/ooxml-export-TODO.txt b/sc/source/filter/excel/ooxml-export-TODO.txt
index 011cf705686a..bab76067e8f9 100644
--- a/sc/source/filter/excel/ooxml-export-TODO.txt
+++ b/sc/source/filter/excel/ooxml-export-TODO.txt
@@ -147,7 +147,7 @@ Elements:
- Comments (§3.7):
- Note: Excel *requires* that there be a drawing object associated
with the comment before it will show it. If you _just_ generate the
- <comments/> XML part and create a <Relationship/> for it, Excell
+ <comments/> XML part and create a <Relationship/> for it, Excel
will NOT display the comment.
- As drawing is not currently implemented, comments support is
incomplete.
diff --git a/sc/source/filter/excel/xeformula.cxx b/sc/source/filter/excel/xeformula.cxx
index 1bdecee7d613..a9f374c83703 100644
--- a/sc/source/filter/excel/xeformula.cxx
+++ b/sc/source/filter/excel/xeformula.cxx
@@ -708,7 +708,7 @@ void XclExpFmlaCompImpl::RecalcTokenClass( const XclExpTokenConvInfo& rConvInfo,
case EXC_PARAMCONV_RPX:
/* If parent token has REF class (REF token in REFTYPE
function parameter), then RPX repeats the previous
- effective conversion (wich will be either ORG or ARR,
+ effective conversion (which will be either ORG or ARR,
but never VAL), otherwise falls back to ORG conversion. */
eClassConv = bWasRefClass ? ePrevClassConv : EXC_CLASSCONV_ORG;
break;
diff --git a/sc/source/filter/excel/xepivot.cxx b/sc/source/filter/excel/xepivot.cxx
index cf948afbfcb2..d629664afbd1 100644
--- a/sc/source/filter/excel/xepivot.cxx
+++ b/sc/source/filter/excel/xepivot.cxx
@@ -72,7 +72,7 @@ using ::rtl::OUStringBuffer;
namespace {
-// constants to track occurence of specific data types
+// constants to track occurrence of specific data types
const sal_uInt16 EXC_PCITEM_DATA_STRING = 0x0001; /// String, empty, boolean, error.
const sal_uInt16 EXC_PCITEM_DATA_DOUBLE = 0x0002; /// Double with fraction.
const sal_uInt16 EXC_PCITEM_DATA_INTEGER = 0x0004; /// Integer, double without fraction.
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx
index 9242445a2148..e519f563b4b9 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -524,7 +524,7 @@ XclListColor* XclExpPaletteImpl::SearchListEntry( const Color& rColor, sal_uInt3
rnIndex = mnLastIdx;
XclListColor* pEntry = mxColorList->GetObject( rnIndex );
- // search optimization for equal-colored objects occuring repeatedly
+ // search optimization for equal-colored objects occurring repeatedly
if( pEntry && (pEntry->GetColor() == rColor) )
return pEntry;
diff --git a/sc/source/filter/excel/xichart.cxx b/sc/source/filter/excel/xichart.cxx
index 70a9f94360ab..49604679c982 100644
--- a/sc/source/filter/excel/xichart.cxx
+++ b/sc/source/filter/excel/xichart.cxx
@@ -3786,7 +3786,7 @@ void XclImpChChart::ReadChDataFormat( XclImpStream& rStrm )
{
XclImpChDataFormatRef& rxMapFmt = maDataFmts[ xDataFmt->GetPointPos() ];
/* Do not overwrite existing data format group, Excel always uses the
- first data format group occuring in any CHSERIES group. */
+ first data format group occurring in any CHSERIES group. */
if( !rxMapFmt )
rxMapFmt = xDataFmt;
}
diff --git a/sc/source/filter/excel/xipivot.cxx b/sc/source/filter/excel/xipivot.cxx
index 6c4d450e9079..cf25d8d33c3a 100644
--- a/sc/source/filter/excel/xipivot.cxx
+++ b/sc/source/filter/excel/xipivot.cxx
@@ -1321,7 +1321,7 @@ void XclImpPivotTable::ReadSxdi( XclImpStream& rStrm )
if( XclImpPTField* pField = GetFieldAcc( aDataInfo.mnField ) )
{
maOrigDataFields.push_back( aDataInfo.mnField );
- // DataPilot does not support double data fields -> add first appearence to index list only
+ // DataPilot does not support double data fields -> add first appearance to index list only
if( !pField->HasDataFieldInfo() )
maFiltDataFields.push_back( aDataInfo.mnField );
pField->AddDataFieldInfo( aDataInfo );
diff --git a/sc/source/filter/excel/xlpivot.cxx b/sc/source/filter/excel/xlpivot.cxx
index 08c085ecd478..67257ae8f5c9 100644
--- a/sc/source/filter/excel/xlpivot.cxx
+++ b/sc/source/filter/excel/xlpivot.cxx
@@ -1027,7 +1027,7 @@ void XclPTViewEx9Info::Init( const ScDPObject& rDPObj )
else
{
// Report1 for now
- // TODO : sync with autoformat indicies
+ // TODO : sync with autoformat indices
mbReport = 2;
mnAutoFormat = 1;
mnGridLayout = 0x10;
diff --git a/sc/source/filter/inc/fapihelper.hxx b/sc/source/filter/inc/fapihelper.hxx
index 327be6da55fb..ede6675333d6 100644
--- a/sc/source/filter/inc/fapihelper.hxx
+++ b/sc/source/filter/inc/fapihelper.hxx
@@ -185,7 +185,7 @@ public:
{ UnoAny aAny; return GetAnyProperty( aAny, rPropName ) && (aAny >>= rValue); }
/** Gets the specified Boolean property from the property set.
- @return true = property contains true; false = property contains false or error occured. */
+ @return true = property contains true; false = property contains false or error occurred. */
bool GetBoolProperty( const ::rtl::OUString& rPropName ) const;
/** Gets the specified Boolean property from the property set.
diff --git a/sc/source/filter/inc/xehelper.hxx b/sc/source/filter/inc/xehelper.hxx
index 7364895aa765..cf2830e8377d 100644
--- a/sc/source/filter/inc/xehelper.hxx
+++ b/sc/source/filter/inc/xehelper.hxx
@@ -186,7 +186,7 @@ class XclExpHyperlink;
/** Helper to create HLINK records during creation of formatted cell strings.
In Excel it is not possible to have more than one hyperlink in a cell. This
- helper detects multiple occurences of hyperlinks and fills a string which
+ helper detects multiple occurrences of hyperlinks and fills a string which
is used to create a cell note containing all URLs. Only cells containing
one hyperlink are exported as hyperlink cells.
*/
diff --git a/sc/source/filter/inc/xestream.hxx b/sc/source/filter/inc/xestream.hxx
index 396075461f32..5afd245762b5 100644
--- a/sc/source/filter/inc/xestream.hxx
+++ b/sc/source/filter/inc/xestream.hxx
@@ -93,7 +93,7 @@ public:
/** Starts a new record: writes header data, stores calculated record size. */
void StartRecord( sal_uInt16 nRecId, sal_Size nRecSize );
- /** Checks and corrects real record length. Must be called everytime a record is finished. */
+ /** Checks and corrects real record length. Must be called every time a record is finished. */
void EndRecord();
/** Returns the position inside of current record (starts by 0 in every CONTINUE). */
diff --git a/sc/source/filter/inc/xistream.hxx b/sc/source/filter/inc/xistream.hxx
index 88f31761408a..65dacfe18971 100644
--- a/sc/source/filter/inc/xistream.hxx
+++ b/sc/source/filter/inc/xistream.hxx
@@ -461,9 +461,9 @@ private:
/** Initializes the decrypter to read a new record. */
void SetupDecrypter();
- /** Initializes all members after base stream has been seeked to new raw record. */
+ /** Initializes all members after base stream has been sought to new raw record. */
void SetupRawRecord();
- /** Initializes all members after base stream has been seeked to new record. */
+ /** Initializes all members after base stream has been sought to new record. */
void SetupRecord();
/** Returns true, if the passed ID is real or alternative continuation record ID. */
diff --git a/sc/source/filter/inc/xistyle.hxx b/sc/source/filter/inc/xistyle.hxx
index 0295546a2b8b..42011ad34bfa 100644
--- a/sc/source/filter/inc/xistyle.hxx
+++ b/sc/source/filter/inc/xistyle.hxx
@@ -210,7 +210,7 @@ private:
// FORMAT record - number formats =============================================
-/** Stores all user defined number formats occured in the file. */
+/** Stores all user defined number formats occurred in the file. */
class XclImpNumFmtBuffer : public XclNumFmtBuffer, protected XclImpRoot
{
public:
@@ -485,7 +485,7 @@ private:
// ----------------------------------------------------------------------------
-/** Contains all XF records occured in the file.
+/** Contains all XF records occurred in the file.
@descr This class is able to read XF records (BIFF2 - BIFF8) and STYLE records (BIFF8). */
class XclImpXFBuffer : protected XclImpRoot, ScfNoCopy
{
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index fd0150fc30c7..e460c31d682d 100644
--- a/sc/source/filter/xml/xmlimprt.cxx
+++ b/sc/source/filter/xml/xmlimprt.cxx
@@ -2054,7 +2054,7 @@ void ScXMLImport::ExamineDefaultStyle()
const SvNumberformat* pFormat = pFormatter->GetEntry(nKey);
if ( pFormat && pFormat->IsStandard() )
{
- // The standard format is all-latin if the decimal separator dosen't
+ // The standard format is all-latin if the decimal separator doesn't
// have a different script type
String aDecSep;
diff --git a/sc/source/filter/xml/xmlsubti.cxx b/sc/source/filter/xml/xmlsubti.cxx
index 2be8985bb5e9..b940a296b202 100644
--- a/sc/source/filter/xml/xmlsubti.cxx
+++ b/sc/source/filter/xml/xmlsubti.cxx
@@ -787,7 +787,7 @@ sal_Bool ScMyTables::IsPartOfMatrix(sal_Int32 nColumn, sal_Int32 nRow)
{
if (nCurrentSheet > aItr->aRange.Sheet)
{
- DBG_ERROR("should never hapen, because the list should be cleared in DeleteTable");
+ DBG_ERROR("should never happen, because the list should be cleared in DeleteTable");
aItr = aMatrixRangeList.erase(aItr);
}
else if ((nRow > aItr->aRange.EndRow) && (nColumn > aItr->aRange.EndColumn))
diff --git a/sc/source/ui/Accessibility/AccessibleCell.cxx b/sc/source/ui/Accessibility/AccessibleCell.cxx
index 084b42094892..0386581bbd2c 100644
--- a/sc/source/ui/Accessibility/AccessibleCell.cxx
+++ b/sc/source/ui/Accessibility/AccessibleCell.cxx
@@ -88,7 +88,7 @@ ScAccessibleCell::~ScAccessibleCell()
{
// increment refcount to prevent double call off dtor
osl_incrementInterlockedCount( &m_refCount );
- // call dispose to inform object wich have a weak reference to this object
+ // call dispose to inform object which have a weak reference to this object
dispose();
}
}
diff --git a/sc/source/ui/Accessibility/AccessibleContextBase.cxx b/sc/source/ui/Accessibility/AccessibleContextBase.cxx
index f8e9b14b6f75..5f9ab532543d 100644
--- a/sc/source/ui/Accessibility/AccessibleContextBase.cxx
+++ b/sc/source/ui/Accessibility/AccessibleContextBase.cxx
@@ -76,7 +76,7 @@ ScAccessibleContextBase::~ScAccessibleContextBase(void)
{
// increment refcount to prevent double call off dtor
osl_incrementInterlockedCount( &m_refCount );
- // call dispose to inform object wich have a weak reference to this object
+ // call dispose to inform object which have a weak reference to this object
dispose();
}
}
diff --git a/sc/source/ui/Accessibility/AccessibleDataPilotControl.cxx b/sc/source/ui/Accessibility/AccessibleDataPilotControl.cxx
index 661cece95055..a150f59c7251 100644
--- a/sc/source/ui/Accessibility/AccessibleDataPilotControl.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDataPilotControl.cxx
@@ -184,7 +184,7 @@ ScAccessibleDataPilotControl::~ScAccessibleDataPilotControl(void)
{
// increment refcount to prevent double call off dtor
osl_incrementInterlockedCount( &m_refCount );
- // call dispose to inform object wich have a weak reference to this object
+ // call dispose to inform object which have a weak reference to this object
dispose();
}
}
@@ -542,7 +542,7 @@ ScAccessibleDataPilotButton::ScAccessibleDataPilotButton(
::com::sun::star::accessibility::XAccessible>& rxParent,
ScPivotFieldWindow* pFieldWindow,
sal_Int32 nIndex)
-//change role frome PUSH_BUTTON to BUTTON_MENU
+//change role from PUSH_BUTTON to BUTTON_MENU
: ScAccessibleContextBase(rxParent, AccessibleRole::BUTTON_MENU),
mpFieldWindow(pFieldWindow),
mnIndex(nIndex)
@@ -555,7 +555,7 @@ ScAccessibleDataPilotButton::~ScAccessibleDataPilotButton(void)
{
// increment refcount to prevent double call off dtor
osl_incrementInterlockedCount( &m_refCount );
- // call dispose to inform object wich have a weak reference to this object
+ // call dispose to inform object which have a weak reference to this object
dispose();
}
}
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx
index 688ef34e93e0..2f262596b0f4 100644
--- a/sc/source/ui/Accessibility/AccessibleDocument.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx
@@ -960,7 +960,7 @@ sal_Bool ScChildrenShapes::FindSelectedShapesChanges(const uno::Reference<drawin
SortedShapes::const_iterator aFocusedItr = aDataEndItr;
while((aDataItr != aDataEndItr))
{
- if (*aDataItr) // is it realy a shape or only the sheet
+ if (*aDataItr) // is it really a shape or only the sheet
{
sal_Int8 nComp(0);
if (aXShapesItr == aXShapesEndItr)
diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
index 63096f78b462..374e172f5616 100644
--- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
@@ -1442,7 +1442,7 @@ ScAccessibleDocumentPagePreview::ScAccessibleDocumentPagePreview(
if (pViewShell)
pViewShell->AddAccessibilityObject(*this);
-// GetNotesChilds(); not neccessary and reduces the creation performance
+// GetNotesChilds(); not necessary and reduces the creation performance
// GetShapeChilds();
}
@@ -1452,7 +1452,7 @@ ScAccessibleDocumentPagePreview::~ScAccessibleDocumentPagePreview(void)
{
// increment refcount to prevent double call off dtor
osl_incrementInterlockedCount( &m_refCount );
- // call dispose to inform object wich have a weak reference to this object
+ // call dispose to inform object which have a weak reference to this object
dispose();
}
}
diff --git a/sc/source/ui/Accessibility/AccessibleEditObject.cxx b/sc/source/ui/Accessibility/AccessibleEditObject.cxx
index 1976dc8de9c2..ad602ff7c5a1 100644
--- a/sc/source/ui/Accessibility/AccessibleEditObject.cxx
+++ b/sc/source/ui/Accessibility/AccessibleEditObject.cxx
@@ -102,7 +102,7 @@ ScAccessibleEditObject::~ScAccessibleEditObject()
{
// increment refcount to prevent double call off dtor
osl_incrementInterlockedCount( &m_refCount );
- // call dispose to inform object wich have a weak reference to this object
+ // call dispose to inform object which have a weak reference to this object
dispose();
}
}
diff --git a/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx b/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx
index 3afda4f9f2c7..76c3d1baa34b 100644
--- a/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx
+++ b/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx
@@ -65,7 +65,7 @@ ScAccessiblePreviewCell::~ScAccessiblePreviewCell()
{
// increment refcount to prevent double call off dtor
osl_incrementInterlockedCount( &m_refCount );
- // call dispose to inform object wich have a weak reference to this object
+ // call dispose to inform object which have a weak reference to this object
dispose();
}
}
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 3351f9244b30..44fa6f55e613 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1759,7 +1759,7 @@ void ScPosWnd::DoEnter()
}
else
{
- // for all selection types, excecute the SID_CURRENTCELL slot
+ // for all selection types, execute the SID_CURRENTCELL slot
SfxStringItem aPosItem( SID_CURRENTCELL, aText );
SfxBoolItem aUnmarkItem( FN_PARAM_1, sal_True ); // remove existing selection
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index d4b3b188bc18..6306a70ee2ab 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -1847,7 +1847,7 @@ IMPL_LINK( ScModule, IdleHandler, Timer*, EMPTYARG )
bMore = bLinks || bWidth || bSpell; // ueberhaupt noch was?
- // While calculating a Basic formula, a paint event may have occured,
+ // While calculating a Basic formula, a paint event may have occurred,
// so check the bNeedsRepaint flags for this document's views
if (bWidth)
lcl_CheckNeedsRepaint( pDocSh );
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 16c9ce363281..581cd6f0bcd5 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -800,7 +800,7 @@ sal_Bool ScDocFunc::PutCell( const ScAddress& rPos, ScBaseCell* pNewCell, sal_Bo
sal_Bool bUndo (pDoc->IsUndoEnabled());
sal_Bool bXMLLoading(pDoc->IsImportingXML());
- // #i925#; it is not neccessary to test whether the cell is editable on loading a XML document
+ // #i925#; it is not necessary to test whether the cell is editable on loading a XML document
if (!bXMLLoading)
{
ScEditableTester aTester( pDoc, rPos.Tab(), rPos.Col(),rPos.Row(), rPos.Col(),rPos.Row() );
@@ -839,7 +839,7 @@ sal_Bool ScDocFunc::PutCell( const ScAddress& rPos, ScBaseCell* pNewCell, sal_Bo
aModificator.SetDocumentModified();
- // #i925#; it is not neccessary to notify on loading a XML document
+ // #i925#; it is not necessary to notify on loading a XML document
// #103934#; notify editline and cell in edit mode
if (bApi && !bXMLLoading)
NotifyInputHandler( rPos );
@@ -1229,7 +1229,7 @@ sal_Bool ScDocFunc::ApplyAttributes( const ScMarkData& rMark, const ScPatternAtt
pUndoDoc, bMulti, &rPattern ) );
}
- // While loading XML it is not neccessary to ask HasAttrib. It needs too much time.
+ // While loading XML it is not necessary to ask HasAttrib. It needs too much time.
sal_uInt16 nExtFlags = 0;
if ( !bImportingXML )
rDocShell.UpdatePaintExt( nExtFlags, aMultiRange ); // content before the change
diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx
index 7f64e543241f..e48acc24d7f4 100644
--- a/sc/source/ui/docshell/docsh8.cxx
+++ b/sc/source/ui/docshell/docsh8.cxx
@@ -612,7 +612,7 @@ void lcl_GetColumnTypes( ScDocShell& rDocShell,
if ( nPrecision && nFieldLen < nPrecision + 2 )
nFieldLen = nPrecision + 2; // 0. muss mit reinpassen
// 538 MUST: Sdb internal representation adds 2 to the field length!
- // To give the user what he wants we must substract it here.
+ // To give the user what he wants we must subtract it here.
//! CAVEAT! There is no way to define a numeric field with a length
//! of 1 and no decimals!
if ( nFieldLen == 1 && nPrecision == 0 )
diff --git a/sc/source/ui/drawfunc/fupoor.cxx b/sc/source/ui/drawfunc/fupoor.cxx
index 6ff13e599831..b4d0670d3867 100644
--- a/sc/source/ui/drawfunc/fupoor.cxx
+++ b/sc/source/ui/drawfunc/fupoor.cxx
@@ -166,7 +166,7 @@ IMPL_LINK_INLINE_START( FuPoor, ScrollHdl, Timer *, EMPTYARG )
Point aPosPixel = pWindow->GetPointerPosPixel();
// #95491# use remembered MouseButton state to create correct
- // MouseEvents for this artifical MouseMove.
+ // MouseEvents for this artificial MouseMove.
MouseMove(MouseEvent(aPosPixel, 1, 0, GetMouseButtonCode()));
return 0;
diff --git a/sc/source/ui/miscdlgs/linkarea.cxx b/sc/source/ui/miscdlgs/linkarea.cxx
index 7623af967f1f..8a64ea1f2140 100644
--- a/sc/source/ui/miscdlgs/linkarea.cxx
+++ b/sc/source/ui/miscdlgs/linkarea.cxx
@@ -130,7 +130,7 @@ IMPL_LINK( ScLinkedAreaDlg, FileHdl, ComboBox*, EMPTYARG )
String aFilter;
String aOptions;
// get filter name by looking at the file content (bWithContent = sal_True)
- // Break operation if any error occured inside.
+ // Break operation if any error occurred inside.
if (!ScDocumentLoader::GetFilterName( aEntered, aFilter, aOptions, sal_True, sal_True ))
return 0;
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index a9e8c1e772d2..1d00f58bfae0 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -1496,7 +1496,7 @@ ScChart2DataProvider::createDataSource(
pLabelTokens.reset(pChartMap->getLeftUpperCornerRanges());
Reference< chart2::data::XLabeledDataSequence > xCategories = lcl_createLabeledDataSequenceFromTokens(
- pValueTokens, pLabelTokens, m_pDocument, this, m_bIncludeHiddenCells ); //ownership of pointers is transfered!
+ pValueTokens, pLabelTokens, m_pDocument, this, m_bIncludeHiddenCells ); //ownership of pointers is transferred!
if ( xCategories.is() )
{
aSeqs.push_back( xCategories );
@@ -1520,7 +1520,7 @@ ScChart2DataProvider::createDataSource(
pLabelTokens.reset(pChartMap->getRowHeaderRanges(static_cast<SCROW>(i)));
}
Reference< chart2::data::XLabeledDataSequence > xChartSeries = lcl_createLabeledDataSequenceFromTokens(
- pValueTokens, pLabelTokens, m_pDocument, this, m_bIncludeHiddenCells ); //ownership of pointers is transfered!
+ pValueTokens, pLabelTokens, m_pDocument, this, m_bIncludeHiddenCells ); //ownership of pointers is transferred!
if ( xChartSeries.is() )
{
aSeqs.push_back( xChartSeries );
diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx
index 2febbb7b4532..f19b759055ad 100644
--- a/sc/source/ui/unoobj/dapiuno.cxx
+++ b/sc/source/ui/unoobj/dapiuno.cxx
@@ -2113,7 +2113,7 @@ void ScDataPilotFieldObj::setOrientation(DataPilotFieldOrientation eNew)
if ( pOneDim->GetOrientation() == DataPilotFieldOrientation_HIDDEN )
pNewDim = pOneDim; // use this one
else
- ++nFound; // count existing non-hidden occurences
+ ++nFound; // count existing non-hidden occurrences
}
}
@@ -2968,7 +2968,7 @@ void SAL_CALL ScDataPilotFieldGroupsObj::insertByName( const OUString& rName, co
if( !lclExtractGroupMembers( aMembers, rElement ) )
throw IllegalArgumentException();
- // create the new entry if no error has been occured
+ // create the new entry if no error has been occurred
maGroups.resize( maGroups.size() + 1 );
ScFieldGroup& rGroup = maGroups.back();
rGroup.maName = rName;
diff --git a/sc/source/ui/unoobj/dispuno.cxx b/sc/source/ui/unoobj/dispuno.cxx
index 1c30bdd2ef9c..f05253563aa0 100644
--- a/sc/source/ui/unoobj/dispuno.cxx
+++ b/sc/source/ui/unoobj/dispuno.cxx
@@ -83,7 +83,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 fullfill
+ // setDispatchProvider we should have got an 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 28e3dec5d5d6..4028d4e37f74 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -1918,7 +1918,7 @@ uno::Any SAL_CALL ScModelObj::getPropertyValue( const rtl::OUString& aPropertyNa
{
/* #i111553# This property provides the name of the constant that
will be used to store this model in the global Basic manager.
- That constant will be equivelant to 'ThisComponent' but for
+ That constant will be equivalent to 'ThisComponent' but for
each application, so e.g. a 'ThisExcelDoc' and a 'ThisWordDoc'
constant can co-exist, as required by VBA. */
aRet <<= rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ThisExcelDoc" ) );
@@ -2004,7 +2004,7 @@ uno::Reference<uno::XInterface> SAL_CALL ScModelObj::createInstance(
! ( nType == SC_SERVICE_CHDATAPROV &&
( pDocShell->GetCreateMode() == SFX_CREATE_MODE_INTERNAL ));
// this should never happen, i.e. the temporary document should never be
- // loaded, becuase this unlinks the data
+ // loaded, because this unlinks the data
OSL_ASSERT( bCreate );
if ( !xRet.is() && bCreate )
diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx
index 203603deb48c..64f561cbb4cb 100644
--- a/sc/source/ui/unoobj/nameuno.cxx
+++ b/sc/source/ui/unoobj/nameuno.cxx
@@ -239,7 +239,7 @@ void SAL_CALL ScNamedRangeObj::setName( const rtl::OUString& aNewName )
// GRAM_PODF_A1 for API compatibility.
Modify_Impl( &aNewStr, NULL, NULL, NULL, NULL,formula::FormulaGrammar::GRAM_PODF_A1 );
- if ( aName != aNewStr ) // some error occured...
+ if ( aName != aNewStr ) // some error occurred...
throw uno::RuntimeException(); // no other exceptions specified
}
rtl::OUString SAL_CALL ScNamedRangeObj::getScopeName() throw(uno::RuntimeException)
@@ -259,7 +259,7 @@ void SAL_CALL ScNamedRangeObj::setScopeAndRangeName( const rtl::OUString& aNewSc
// GRAM_PODF_A1 for API compatibility.
Modify_Impl( &aNewRangeStr, NULL, NULL, NULL, NULL,formula::FormulaGrammar::GRAM_PODF_A1, aNewScopeName.getLength() == 0 ? NULL : &aNewScopeStr);
- if ( aScopeName != aNewScopeStr || aName != aNewRangeStr ) // some error occured...
+ if ( aScopeName != aNewScopeStr || aName != aNewRangeStr ) // some error occurred...
throw uno::RuntimeException(); // no other exceptions specified
}
diff --git a/sc/source/ui/vba/vbacharacters.hxx b/sc/source/ui/vba/vbacharacters.hxx
index 8a11398c7721..1a4c4d5c3cef 100644
--- a/sc/source/ui/vba/vbacharacters.hxx
+++ b/sc/source/ui/vba/vbacharacters.hxx
@@ -41,7 +41,7 @@ private:
ScVbaPalette m_aPalette;
sal_Int16 nLength;
sal_Int16 nStart;
- // Add becuase of MSO has diferent behavior.
+ // Add because of MSO has different behavior.
sal_Bool bReplace;
public:
ScVbaCharacters( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const ScVbaPalette& dPalette, const css::uno::Reference< css::text::XSimpleText >& xRange, const css::uno::Any& Start, const css::uno::Any& Length, sal_Bool bReplace = sal_False ) throw ( css::lang::IllegalArgumentException );
diff --git a/sc/source/ui/vba/vbachartobject.cxx b/sc/source/ui/vba/vbachartobject.cxx
index 658e147f2209..642e64d04fd1 100644
--- a/sc/source/ui/vba/vbachartobject.cxx
+++ b/sc/source/ui/vba/vbachartobject.cxx
@@ -113,7 +113,7 @@ ScVbaChartObject::Activate() throw ( script::BasicErrorException )
{
try
{
- // #TODO #FIXME should be ThisWorkbook or equivelant, or in
+ // #TODO #FIXME should be ThisWorkbook or equivalent, or in
// fact probably the chart object should be created with
// the XModel owner
//uno::Reference< view::XSelectionSupplier > xSelectionSupplier( getXModel().getCurrentController());
diff --git a/sc/source/ui/vba/vbaformatconditions.cxx b/sc/source/ui/vba/vbaformatconditions.cxx
index 6f72f23c8b65..eb72369e2782 100644
--- a/sc/source/ui/vba/vbaformatconditions.cxx
+++ b/sc/source/ui/vba/vbaformatconditions.cxx
@@ -136,7 +136,7 @@ ScVbaFormatConditions::Add( ::sal_Int32 _nType, const uno::Any& _aOperator, cons
// #TODO
// #FIXME
// This method will NOT handle r1c1 formulas [*]and only assumes that
- // the formulas are _xlA1 based ( need to hook into calc work ths should
+ // the formulas are _xlA1 based ( need to hook into calc work this should
// address this )
// [*] reason: getA1Formula method below is just a hook and just
// returns whats it gets ( e.g. doesn't convert anything )
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index 7d8c7a773bcf..32dc27934f41 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -618,7 +618,7 @@ typedef ::std::vector< CellPos > vCellPos;
// #FIXME - QUICK
// we could probably could and should modify CellsEnumeration below
-// to handle rows and columns ( but I do this seperately for now
+// to handle rows and columns ( but I do this separately for now
// and.. this class only handles singe areas ( does it have to handle
// multi area ranges?? )
class ColumnsRowEnumeration: public CellsEnumeration_BASE
@@ -1174,7 +1174,7 @@ bool getScRangeListForAddress( const rtl::OUString& sName, ScDocShell* pDocSh, S
uno::Reference< beans::XPropertySet > xProps( pDocSh->GetModel(), uno::UNO_QUERY_THROW );
uno::Reference< container::XNameAccess > xNameAccess( xProps->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("NamedRanges") ) ), uno::UNO_QUERY_THROW );
// Strangly enough you can have Range( "namedRange1, namedRange2, etc," )
- // loop around each ',' seperated name
+ // loop around each ',' separated name
std::vector< rtl::OUString > vNames;
sal_Int32 nIndex = 0;
do
@@ -2151,7 +2151,7 @@ ScVbaRange::CellsHelper( const uno::Reference< ov::XHelperInterface >& xParent,
// Sometimes we might get a float or a double or whatever
// set in the Any, we should convert as appropriate
// #FIXME - perhaps worth turning this into some sort of
- // convertion routine e.g. bSuccess = getValueFromAny( nRow, nRowIndex, getCppuType((sal_Int32*)0) )
+ // conversion routine e.g. bSuccess = getValueFromAny( nRow, nRowIndex, getCppuType((sal_Int32*)0) )
if ( nRowIndex.hasValue() && !( nRowIndex >>= nRow ) )
{
uno::Reference< script::XTypeConverter > xConverter = getTypeConverter( xContext );
@@ -4132,7 +4132,7 @@ ScVbaRange::getWorksheet() throw (uno::RuntimeException)
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 its a shortcut for ActiveSheet.Range
// however, similarly Application.Range is apparently also a
// shortcut for ActiveSheet.Range
diff --git a/sc/source/ui/vba/vbarange.hxx b/sc/source/ui/vba/vbarange.hxx
index c8e382253e9b..bf2aaa5b5a7c 100644
--- a/sc/source/ui/vba/vbarange.hxx
+++ b/sc/source/ui/vba/vbarange.hxx
@@ -293,7 +293,7 @@ public:
// #TODO completely rewrite ScVbaRange, its become a hackfest
// it needs to be closer to ScCellRangeBase in that the underlying
// object model should probably be a ScRangelst.
-// * would be nice to be able to construct a range from an addres only
+// * would be nice to be able to construct a range from an address only
// * or a list of address ( multi-area )
// * object should be a lightweight as possible
// * we shouldn't need hacks like this below
diff --git a/sc/source/ui/vba/vbawindow.cxx b/sc/source/ui/vba/vbawindow.cxx
index 117add5bb7bf..516ecbba6a9e 100644
--- a/sc/source/ui/vba/vbawindow.cxx
+++ b/sc/source/ui/vba/vbawindow.cxx
@@ -338,7 +338,7 @@ ScVbaWindow::getCaption() throw (uno::RuntimeException)
static rtl::OUString sDot( RTL_CONSTASCII_USTRINGPARAM(".") );
// starts with title
if ( sName.indexOf( sTitle ) == 0 )
- // extention starts immediately after
+ // extension starts immediately after
if ( sName.match( sDot, sTitle.getLength() ) )
sTitle = sName;
}
diff --git a/sc/source/ui/vba/vbaworksheet.cxx b/sc/source/ui/vba/vbaworksheet.cxx
index 75abe75e1b3d..9524b7901919 100644
--- a/sc/source/ui/vba/vbaworksheet.cxx
+++ b/sc/source/ui/vba/vbaworksheet.cxx
@@ -600,7 +600,7 @@ ScVbaWorksheet::getPrevious() throw (uno::RuntimeException)
void
ScVbaWorksheet::Protect( const uno::Any& Password, const uno::Any& /*DrawingObjects*/, const uno::Any& /*Contents*/, const uno::Any& /*Scenarios*/, const uno::Any& /*UserInterfaceOnly*/ ) throw (uno::RuntimeException)
{
- // #TODO# #FIXME# is there anything we can do witht the unused param
+ // #TODO# #FIXME# is there anything we can do with the unused param
// can the implementation use anything else here
uno::Reference<util::XProtectable > xProtectable(getSheet(), uno::UNO_QUERY_THROW);
::rtl::OUString aPasswd;