summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2016-10-01 15:46:15 +0200
committerjan iversen <jani@documentfoundation.org>2016-10-03 13:47:47 +0000
commit874035190625de4d82d357e61cc5bcf785c7b9fe (patch)
tree9c92f216edc81a44d48bea8d6b269151dbaf33c6 /sw/source/core
parent8f9af8dd970d8e2a620beb35a6ce145d65d18df5 (diff)
Fix typos
Change-Id: Ia59d287a015482e9e97b701a6695463a7d235203 Reviewed-on: https://gerrit.libreoffice.org/29439 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/access/acccontext.cxx2
-rw-r--r--sw/source/core/access/accmap.cxx2
-rw-r--r--sw/source/core/doc/SwStyleNameMapper.cxx4
-rw-r--r--sw/source/core/doc/tblafmt.cxx2
-rw-r--r--sw/source/core/inc/layact.hxx2
-rw-r--r--sw/source/core/layout/dbg_lay.cxx2
-rw-r--r--sw/source/core/layout/frmtool.cxx2
-rw-r--r--sw/source/core/layout/ssfrm.cxx2
-rw-r--r--sw/source/core/layout/tabfrm.cxx6
-rw-r--r--sw/source/core/text/itrform2.cxx2
-rw-r--r--sw/source/core/tox/tox.cxx2
-rw-r--r--sw/source/core/unocore/unostyle.cxx4
12 files changed, 16 insertions, 16 deletions
diff --git a/sw/source/core/access/acccontext.cxx b/sw/source/core/access/acccontext.cxx
index f3d3285b5490..e0069991f214 100644
--- a/sw/source/core/access/acccontext.cxx
+++ b/sw/source/core/access/acccontext.cxx
@@ -1058,7 +1058,7 @@ void SwAccessibleContext::Dispose(bool bRecursive, bool bCanSkipInvisible)
pAcc->FireAccessibleEvent( aEvent );
}
- // set defunc state (its not required to broadcast a state changed
+ // set defunc state (it's not required to broadcast a state changed
// event if the object is disposed afterwards)
{
osl::MutexGuard aDefuncStateGuard( m_Mutex );
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 54c5531c5ce1..54fec424c5f9 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -2647,7 +2647,7 @@ void SwAccessibleMap::InvalidateCursorPosition( const SwFrame *pFrame )
// Moreover, we have to make sure to invalidate the
// cursor even if the current cell has no accessible object.
// If the old cursor objects exists and is in the same
- // table, its the best choice, because using it avoids
+ // table, it's the best choice, because using it avoids
// an unnecessary cursor invalidation cycle when creating
// a new object for the current cell.
if( aFrameOrObj.GetSwFrame()->IsCellFrame() )
diff --git a/sw/source/core/doc/SwStyleNameMapper.cxx b/sw/source/core/doc/SwStyleNameMapper.cxx
index 5a4044b1c60b..2850fec0512e 100644
--- a/sw/source/core/doc/SwStyleNameMapper.cxx
+++ b/sw/source/core/doc/SwStyleNameMapper.cxx
@@ -865,7 +865,7 @@ const std::vector<OUString>& SwStyleNameMapper::GetTableStyleUINameArray()
return *m_pTableStyleUINameArray;
}
-/// retuns an empty array because Cell Names aren't translated
+/// returns an empty array because Cell Names aren't translated
const std::vector<OUString>& SwStyleNameMapper::GetCellStyleUINameArray()
{
if (!m_pCellStyleUINameArray)
@@ -969,7 +969,7 @@ const std::vector<OUString>& SwStyleNameMapper::GetTableStyleProgNameArray()
return *m_pTableStyleProgNameArray;
}
-/// retuns an empty array because Cell Names aren't translated
+/// returns an empty array because Cell Names aren't translated
const std::vector<OUString>& SwStyleNameMapper::GetCellStyleProgNameArray()
{
if (!m_pCellStyleProgNameArray)
diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx
index 38824b29456f..4ca88ca80b1d 100644
--- a/sw/source/core/doc/tblafmt.cxx
+++ b/sw/source/core/doc/tblafmt.cxx
@@ -1500,7 +1500,7 @@ void SwCellStyleTable::ChangeBoxFormatName(const OUString& sFromName, const OUSt
if (m_aCellStyles[i].first == sFromName)
{
m_aCellStyles[i].first = sToName;
- // changed succesfully
+ // changed successfully
return;
}
}
diff --git a/sw/source/core/inc/layact.hxx b/sw/source/core/inc/layact.hxx
index 1afe9ebe1801..247260d72597 100644
--- a/sw/source/core/inc/layact.hxx
+++ b/sw/source/core/inc/layact.hxx
@@ -171,7 +171,7 @@ public:
void CheckWaitCursor();
// #i28701# - method is now public;
- // delete 2nd parameter, because its not used;
+ // delete 2nd parameter, because it's not used;
bool FormatLayoutFly( SwFlyFrame * );
// #i28701# - method is now public
bool FormatFlyContent( const SwFlyFrame * );
diff --git a/sw/source/core/layout/dbg_lay.cxx b/sw/source/core/layout/dbg_lay.cxx
index 612555369e92..8c61c12ddd91 100644
--- a/sw/source/core/layout/dbg_lay.cxx
+++ b/sw/source/core/layout/dbg_lay.cxx
@@ -294,7 +294,7 @@ void SwImplProtocol::CheckLine( OString& rLine )
rLine = rLine.replace( '\t', ' ' );
if( '#' == rLine[0] ) // comments start with '#'
return;
- if( '[' == rLine[0] ) // section: FrameIds, type or funciton
+ if( '[' == rLine[0] ) // section: FrameIds, type or function
{
OString aTmp = rLine.getToken(0, ']');
if (aTmp == "[frmid") // section FrameIds
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx
index 986f7bb239e8..874c77cd7bea 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -387,7 +387,7 @@ SwFrameNotify::~SwFrameNotify()
// This could be optimized. Basically the fly frame only has to
// be invalidated, if the first line of pFrame (if pFrame is a content
- // frame, for other frame types its the print area) has changed its
+ // frame, for other frame types it's the print area) has changed its
// size and pFrame was responsible for the current width of pFly. On
// the other hand, this is only rarely used and re-calculation of
// the fly frame does not cause too much trouble. So we keep it this
diff --git a/sw/source/core/layout/ssfrm.cxx b/sw/source/core/layout/ssfrm.cxx
index 0465936332ec..ecab038e80da 100644
--- a/sw/source/core/layout/ssfrm.cxx
+++ b/sw/source/core/layout/ssfrm.cxx
@@ -374,7 +374,7 @@ void SwFrame::DestroyImpl()
SwFrame::~SwFrame()
{
assert(m_isInDestroy); // check that only DestroySwFrame does "delete"
- assert(!IsDeleteForbidden()); // check that its not deleted while deletes are forbidden
+ assert(!IsDeleteForbidden()); // check that it's not deleted while deletes are forbidden
#if OSL_DEBUG_LEVEL > 0
// JP 15.10.2001: for detection of access to deleted frames
mpDrawObjs = reinterpret_cast<SwSortedObjs*>(0x33333333);
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx
index d7788ff95859..93d01cf671fc 100644
--- a/sw/source/core/layout/tabfrm.cxx
+++ b/sw/source/core/layout/tabfrm.cxx
@@ -267,7 +267,7 @@ static void lcl_InvalidateLowerObjs( SwLayoutFrame& _rLayoutFrame,
if ( _bMoveObjsOutOfRange )
{
// indicate, that positioning is progress to avoid
- // modification of the anchored object resp. its attributes
+ // modification of the anchored object resp. it's attributes
// due to the movement
SwObjPositioningInProgress aObjPosInProgress( *pAnchoredObj );
pAnchoredObj->SetObjLeft( _pPageFrame->Frame().Right() );
@@ -2428,7 +2428,7 @@ void SwTabFrame::MakeAll(vcl::RenderContext* pRenderContext)
if ( pNxt )
{
// #i18103# - no formatting of found next
- // frame, if its a follow section of the
+ // frame, if it's a follow section of the
// 'ColLocked' section, the follow table is
// in.
bool bCalcNxt = true;
@@ -2587,7 +2587,7 @@ bool SwTabFrame::CalcFlyOffsets( SwTwips& rUpper,
// #i26945# - correction of conditions,
// if Writer fly frame has to be considered:
// - no need to check, if top of Writer fly frame differs
- // from FAR_AWAY, because its also check, if the Writer
+ // from FAR_AWAY, because it's also checked, if the Writer
// fly frame rectangle overlaps with <aRect>
// - no check, if bottom of anchor frame is prior the top of
// the table, because Writer fly frames can be negative positioned.
diff --git a/sw/source/core/text/itrform2.cxx b/sw/source/core/text/itrform2.cxx
index ead82d7fd58c..73de089afe56 100644
--- a/sw/source/core/text/itrform2.cxx
+++ b/sw/source/core/text/itrform2.cxx
@@ -301,7 +301,7 @@ void SwTextFormatter::InsertPortion( SwTextFormatInfo &rInf,
}
// i#112181 - Prevent footnote anchor being wrapped to next line
- // without preceeding word
+ // without preceding word
rInf.SetOtherThanFootnoteInside( rInf.IsOtherThanFootnoteInside() || !pPor->IsFootnotePortion() );
}
else
diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx
index f05f5d22cea3..a0fd74689201 100644
--- a/sw/source/core/tox/tox.cxx
+++ b/sw/source/core/tox/tox.cxx
@@ -498,7 +498,7 @@ void SwTOXBase::CopyTOXBase( SwDoc* pDoc, const SwTOXBase& rSource )
for( sal_uInt16 i = 0; i < MAXLEVEL; ++i )
m_aStyleNames[i] = rSource.m_aStyleNames[i];
- // its the same data type!
+ // it's the same data type!
m_aData.nOptions = rSource.m_aData.nOptions;
if( !pDoc || pDoc->IsCopyIsMove() )
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index 1a83620911ee..d76722df4abb 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -4812,7 +4812,7 @@ css::uno::Reference<css::style::XStyle> SwXTextCellStyle::CreateXTextCellStyle(S
sal_Bool SAL_CALL SwXTextCellStyle::isUserDefined() throw (css::uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
- // if this cell belong to first table style then its defaut style
+ // if this cell belong to first table style then its default style
if (&m_pDocShell->GetDoc()->GetTableStyles()[0] == m_pDocShell->GetDoc()->GetTableStyles().FindAutoFormat(m_sParentStyle))
return false;
@@ -4940,7 +4940,7 @@ void SAL_CALL SwXTextCellStyle::setPropertyValue(const OUString& rPropertyName,
sal_uInt32 nKey;
if (aValue >>= nKey)
{
- // FIXME: Its not working for old "automatic" currency formats, which are still in use by autotbl.fmt.
+ // FIXME: It's not working for old "automatic" currency formats, which are still in use by autotbl.fmt.
// Scenario:
// 1) Mark all styles present by default in autotbl.fmt as default.
// 2) convert all currencies present in autotbl.fmt before calling this code