summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2013-09-26 11:44:54 +0200
committerAndras Timar <andras.timar@collabora.com>2013-09-26 11:47:45 +0200
commit7f436c1fd3a5f879fc99652043befb35158b3321 (patch)
treefb7afa124abc55dba2c9d17f4fa10a593485febf /sw
parent69c4a8bae5caadc4ff53660dd3f2b938f6dc1734 (diff)
typo fixes in comments
Change-Id: Iaadec33715f8e0e0c6595c5e684606905274fdab
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/paintfrm.cxx2
-rw-r--r--sw/source/core/layout/tabfrm.cxx2
-rw-r--r--sw/source/core/unocore/unoobj2.cxx4
-rw-r--r--sw/source/core/unocore/unoportenum.cxx2
-rw-r--r--sw/source/core/unocore/unotbl.cxx2
-rw-r--r--sw/source/filter/basflt/iodetect.cxx2
-rw-r--r--sw/source/filter/html/htmlnum.cxx2
-rw-r--r--sw/source/filter/ww8/wrtw8nds.cxx4
-rw-r--r--sw/source/filter/ww8/ww8atr.cxx2
-rw-r--r--sw/source/filter/ww8/ww8glsy.cxx2
-rw-r--r--sw/source/filter/ww8/ww8par.cxx10
-rw-r--r--sw/source/filter/ww8/ww8par2.cxx4
-rw-r--r--sw/source/filter/ww8/ww8par3.cxx2
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx2
-rw-r--r--sw/source/ui/vba/vbadocuments.cxx2
-rw-r--r--sw/source/ui/vba/vbasystem.cxx2
16 files changed, 23 insertions, 23 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 3f9ca4adea09..14f71e38a0a5 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -4435,7 +4435,7 @@ static void lcl_PaintShadow( const SwRect& rRect, SwRect& rOutRect,
// OD 30.09.2002 #103636# - no SwAlign of shadow rectangle
// no alignment necessary, because (1) <rRect> is already aligned
// and because (2) paint of border and background will occur later.
- // Thus, (1) assures that no conflicts with neighbour object will occure
+ // Thus, (1) assures that no conflicts with neighbour object will occur
// and (2) assures that border and background is not affected by the
// shadow paint.
/*
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx
index 4c62cb97493e..b9f840282590 100644
--- a/sw/source/core/layout/tabfrm.cxx
+++ b/sw/source/core/layout/tabfrm.cxx
@@ -2529,7 +2529,7 @@ void SwTabFrm::MakeAll()
if ( pNxt )
{
// OD 26.08.2003 #i18103# - no formatting
- // of found next frame, if its a follow
+ // of found next frame, if it's a follow
// section of the 'ColLocked' section,
// the follow table is in.
bool bCalcNxt = true;
diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx
index 1d0c0666ef90..2c1586dbfad6 100644
--- a/sw/source/core/unocore/unoobj2.cxx
+++ b/sw/source/core/unocore/unoobj2.cxx
@@ -977,7 +977,7 @@ SwXTextRange::getStart() throw (uno::RuntimeException)
}
else if (RANGE_IS_TABLE == m_pImpl->m_eRangePosition)
{
- // start and end are this, if its a table
+ // start and end are this, if it's a table
xRet = this;
}
else
@@ -1005,7 +1005,7 @@ SwXTextRange::getEnd() throw (uno::RuntimeException)
}
else if (RANGE_IS_TABLE == m_pImpl->m_eRangePosition)
{
- // start and end are this, if its a table
+ // start and end are this, if it's a table
xRet = this;
}
else
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx
index a17296006b0d..01138eceebd4 100644
--- a/sw/source/core/unocore/unoportenum.cxx
+++ b/sw/source/core/unocore/unoportenum.cxx
@@ -328,7 +328,7 @@ lcl_ExportFieldMark(
{
uno::Reference<text::XTextRange> xRef;
SwDoc* pDoc = pUnoCrsr->GetDoc();
- //flr: maybe its a good idea to add a special hint to the hints array and rely on the hint segmentation....
+ //flr: maybe it's a good idea to add a special hint to the hints array and rely on the hint segmentation....
const xub_StrLen start = pUnoCrsr->Start()->nContent.GetIndex();
OSL_ENSURE(pUnoCrsr->End()->nContent.GetIndex() == start,
"hmm --- why is this different");
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index d0d036a28c85..d487448d4696 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -1081,7 +1081,7 @@ void SwXCell::setPropertyValue(const OUString& rPropertyName, const uno::Any& aV
eDir = FRMDIR_VERT_TOP_RIGHT;
break;
default:
- OSL_FAIL( "unknown direction code, maybe its a bitfield");
+ OSL_FAIL( "unknown direction code, maybe it's a bitfield");
}
SvxFrameDirectionItem aItem( eDir, RES_FRAMEDIR);
pBox->GetFrmFmt()->SetFmtAttr(aItem);
diff --git a/sw/source/filter/basflt/iodetect.cxx b/sw/source/filter/basflt/iodetect.cxx
index 57c548254d4c..6bb1643a4821 100644
--- a/sw/source/filter/basflt/iodetect.cxx
+++ b/sw/source/filter/basflt/iodetect.cxx
@@ -413,7 +413,7 @@ bool SwIoSystem::IsDetectableText(const sal_Char* pBuf, sal_uLong &rLen,
bool bSwap = false;
CharSet eCharSet = RTL_TEXTENCODING_DONTKNOW;
bool bLE = true;
- /*See if its a known unicode type*/
+ /*See if it's a known unicode type*/
if (rLen >= 2)
{
sal_uLong nHead=0;
diff --git a/sw/source/filter/html/htmlnum.cxx b/sw/source/filter/html/htmlnum.cxx
index 12f492829f48..0fff1bfecb60 100644
--- a/sw/source/filter/html/htmlnum.cxx
+++ b/sw/source/filter/html/htmlnum.cxx
@@ -724,7 +724,7 @@ Writer& OutHTML_NumBulListStart( SwHTMLWriter& rWrt,
->Get( rInfo.GetDepth()-1 ).GetNumberingType();
if( SVX_NUM_CHAR_SPECIAL != eType && SVX_NUM_BITMAP != eType )
{
- // If its a numbering rule, the current number should be
+ // If it's a numbering rule, the current number should be
// exported as start value, but only if there are no nodes
// within the numbering that have a lower level
bStartValue = sal_True;
diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx
index 75caf0c0de6f..c607163ec4be 100644
--- a/sw/source/filter/ww8/wrtw8nds.cxx
+++ b/sw/source/filter/ww8/wrtw8nds.cxx
@@ -859,7 +859,7 @@ bool WW8AttributeOutput::StartURL( const String &rUrl, const String &rTarget )
sal_uLong nDataStt = m_rWW8Export.pDataStrm->Tell();
m_rWW8Export.pChpPlc->AppendFkpEntry( m_rWW8Export.Strm().Tell() );
- // WinWord 2000 doesn't write this - so its a temp solution by W97 ?
+ // WinWord 2000 doesn't write this - so it's a temp solution by W97 ?
m_rWW8Export.WriteChar( 0x01 );
static sal_uInt8 aArr1[] = {
@@ -1064,7 +1064,7 @@ void WW8AttributeOutput::FieldVanish( const String& rTxt, ww::eField /*eType*/ )
void AttributeOutputBase::TOXMark( const SwTxtNode& rNode, const SwTOXMark& rAttr )
{
- // its a field; so get the Text form the Node and build the field
+ // it's a field; so get the Text form the Node and build the field
OUString sTxt;
ww::eField eType = ww::eNONE;
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx
index bc49164fa0a3..1c5abd500c5a 100644
--- a/sw/source/filter/ww8/ww8atr.cxx
+++ b/sw/source/filter/ww8/ww8atr.cxx
@@ -4844,7 +4844,7 @@ void SwWW8WrTabu::Del(const SvxTabStop &rTS, long nAdjustment)
// PutAll( WW8Export& rWW8Wrt ) schreibt das Attribut nach rWrt.pO
void SwWW8WrTabu::PutAll(WW8Export& rWrt)
{
- if (!nAdd && !nDel) //It its a no-op
+ if (!nAdd && !nDel) //It it's a no-op
return;
OSL_ENSURE(nAdd <= 255, "more than 255 added tabstops ?");
OSL_ENSURE(nDel <= 255, "more than 244 removed tabstops ?");
diff --git a/sw/source/filter/ww8/ww8glsy.cxx b/sw/source/filter/ww8/ww8glsy.cxx
index f5d523e128ac..d07b4dd065a6 100644
--- a/sw/source/filter/ww8/ww8glsy.cxx
+++ b/sw/source/filter/ww8/ww8glsy.cxx
@@ -250,7 +250,7 @@ sal_uInt32 WW8GlossaryFib::FindGlossaryFibOffset(SvStream & /* rTableStrm */,
const WW8Fib &rFib)
{
sal_uInt32 nGlossaryFibOffset = 0;
- if ( rFib.fDot ) // its a template
+ if ( rFib.fDot ) // it's a template
{
if ( rFib.pnNext )
nGlossaryFibOffset = ( rFib.pnNext * 512 );
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 53254a438e30..16751cace64a 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -475,8 +475,8 @@ SdrObject* SwMSDffManager::ProcessObj(SvStream& rSt,
if (!bIsSimpleDrawingTextBox)
{
// Either
- // a) its a simple text object or
- // b) its a rectangle with text and square wrapping.
+ // a) it's a simple text object or
+ // b) it's a rectangle with text and square wrapping.
bIsSimpleDrawingTextBox =
(
(pImpRec->eShapeType == mso_sptTextSimple) ||
@@ -582,7 +582,7 @@ SdrObject* SwMSDffManager::ProcessObj(SvStream& rSt,
aNewRect.Bottom() -= nTextTop + nTextBottom;
aNewRect.Right() -= nTextLeft + nTextRight;
- // Only if its a simple Textbox, Writer can replace the Object
+ // Only if it's a simple Textbox, Writer can replace the Object
// with a Frame, else
if( bIsSimpleDrawingTextBox )
{
@@ -3088,7 +3088,7 @@ bool SwWW8ImplReader::HandlePageBreakChar()
bPgSecBreak = true;
pCtrlStck->KillUnlockedAttrs(*pPaM->GetPoint());
/*
- If its a 0x0c without a paragraph end before it, act like a
+ If it's a 0x0c without a paragraph end before it, act like a
paragraph end, but nevertheless, numbering (and perhaps other
similar constructs) do not exist on the para.
*/
@@ -3902,7 +3902,7 @@ void GiveNodePageDesc(SwNodeIndex &rIdx, const SwFmtPageDesc &rPgDesc,
SwDoc &rDoc)
{
/*
- If its a table here, apply the pagebreak to the table
+ If it's a table here, apply the pagebreak to the table
properties, otherwise we add it to the para at this
position
*/
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 79c0ab2e034a..0dd16eb159e8 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -2562,7 +2562,7 @@ void WW8TabDesc::MergeCells()
bMerge = true;
else
{
- //If its a hori merge only, and the only things in
+ //If it's a hori merge only, and the only things in
//it are invalid cells then its already taken care
//of, so don't merge.
for (sal_uInt16 i2 = i+1; i2 < pActBand->nWwCols; i2++ )
@@ -3027,7 +3027,7 @@ SvxFrameDirection MakeDirection(sal_uInt16 nCode, bool bIsBiDi)
switch (nCode)
{
default:
- OSL_ENSURE(eDir == 4, "unknown direction code, maybe its a bitfield");
+ OSL_ENSURE(eDir == 4, "unknown direction code, maybe it's a bitfield");
case 3:
eDir = bIsBiDi ? FRMDIR_HORI_RIGHT_TOP : FRMDIR_HORI_LEFT_TOP; // #i38158# - Consider RTL tables
break;
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index fea72bf588c9..bf87dd09a47f 100644
--- a/sw/source/filter/ww8/ww8par3.cxx
+++ b/sw/source/filter/ww8/ww8par3.cxx
@@ -2009,7 +2009,7 @@ void SwWW8ImplReader::Read_LFOPosition(sal_uInt16, const sal_uInt8* pData,
and remove its numbering, then the indentation appears to get
reset, but not back to the base style, instead its goes to a blank
setting.
- Unless its a broken ww6 list in 97 in which case more hackery is
+ Unless it's a broken ww6 list in 97 in which case more hackery is
required, some more details about broken ww6 list in
ww8par6.cxx#SwWW8ImplReader::Read_LR
*/
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 19e38bce35a9..43565104115f 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -6308,7 +6308,7 @@ WW8Fonts::WW8Fonts( SvStream& rSt, WW8Fib& rFib )
}
else
{
- //#i18369# if its a symbol font set Symbol as fallback
+ //#i18369# if it's a symbol font set Symbol as fallback
if (
RTL_TEXTENCODING_SYMBOL == WW8Fib::GetFIBCharset(p->chs)
&& p->sFontname!="Symbol"
diff --git a/sw/source/ui/vba/vbadocuments.cxx b/sw/source/ui/vba/vbadocuments.cxx
index b05bdd1bca90..e4fa861fd885 100644
--- a/sw/source/ui/vba/vbadocuments.cxx
+++ b/sw/source/ui/vba/vbadocuments.cxx
@@ -130,7 +130,7 @@ SwVbaDocuments::Close( const uno::Any& /*SaveChanges*/, const uno::Any& /*Origin
uno::Any SAL_CALL
SwVbaDocuments::Open( const OUString& Filename, const uno::Any& /*ConfirmConversions*/, const uno::Any& ReadOnly, const uno::Any& /*AddToRecentFiles*/, const uno::Any& /*PasswordDocument*/, const uno::Any& /*PasswordTemplate*/, const uno::Any& /*Revert*/, const uno::Any& /*WritePasswordDocument*/, const uno::Any& /*WritePasswordTemplate*/, const uno::Any& /*Format*/, const uno::Any& /*Encoding*/, const uno::Any& /*Visible*/, const uno::Any& /*OpenAndRepair*/, const uno::Any& /*DocumentDirection*/, const uno::Any& /*NoEncodingDialog*/, const uno::Any& /*XMLTransform*/ ) throw (uno::RuntimeException)
{
- // we need to detect if this is a URL, if not then assume its a file path
+ // we need to detect if this is a URL, if not then assume it's a file path
OUString aURL;
INetURLObject aObj;
aObj.SetURL( Filename );
diff --git a/sw/source/ui/vba/vbasystem.cxx b/sw/source/ui/vba/vbasystem.cxx
index b6402bda3af9..f521227caee5 100644
--- a/sw/source/ui/vba/vbasystem.cxx
+++ b/sw/source/ui/vba/vbasystem.cxx
@@ -244,7 +244,7 @@ uno::Any SAL_CALL
SwVbaSystem::PrivateProfileString( const OUString& rFilename, const OUString& rSection, const OUString& rKey ) throw ( uno::RuntimeException )
{
// FIXME: need to detect whether it is a relative file path
- // we need to detect if this is a URL, if not then assume its a file path
+ // we need to detect if this is a URL, if not then assume it's a file path
OUString sFileUrl;
if( !rFilename.isEmpty() )
{