diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2014-11-10 15:05:25 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-11-12 11:04:11 +0000 |
commit | da40cac540e7d735edbe9069b3c8ec6af4530208 (patch) | |
tree | f2abda7281129e13f588c77b18780a7090c8405f /sw | |
parent | bb437029c1e5331bcc3f8fb2fc87837142a52f33 (diff) |
Fix common typos. No automatic tools. Handmade…
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959
Reviewed-on: https://gerrit.libreoffice.org/12164
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw')
84 files changed, 136 insertions, 136 deletions
diff --git a/sw/inc/SwNumberTree.hxx b/sw/inc/SwNumberTree.hxx index ce938020c9aa..f9fe9b57c299 100644 --- a/sw/inc/SwNumberTree.hxx +++ b/sw/inc/SwNumberTree.hxx @@ -413,7 +413,7 @@ protected: */ mutable SwNumberTree::tSwNumTreeNumber mnNumber; - // boolean indicating, that a node of a not counted parent node is continueing + // boolean indicating, that a node of a not counted parent node is continuing // the numbering of parent's previous node sub tree. // Example: // 1. kshdkjfs diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index 63c32b3fc97b..2de7b9990365 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -1446,7 +1446,7 @@ public: const Link* pCallBack = 0 ); /** Adjust left margin via object bar (similar to adjustment of numerations). - One can either change the margin "by" adding or substracting a given + One can either change the margin "by" adding or subtracting a given offset or set it "to" this position (bModulus = true). */ void MoveLeftMargin( const SwPaM& rPam, bool bRight = true, bool bModulus = true ); diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx index 8221ff46ab99..a9813962a5fd 100644 --- a/sw/inc/editsh.hxx +++ b/sw/inc/editsh.hxx @@ -861,7 +861,7 @@ public: inline const sfx2::LinkManager& GetLinkManager() const; /** Adjust left margin via object bar (similar to adjustment of numerations). - One can either change the margin "by" adding or substracting a given + One can either change the margin "by" adding or subtracting a given offset or set it "to" this position @param (bModulus = true). */ bool IsMoveLeftMargin( bool bRight = true, bool bModulus = true ) const; void MoveLeftMargin( bool bRight = true, bool bModulus = true ); diff --git a/sw/inc/fmthdft.hxx b/sw/inc/fmthdft.hxx index ce2afbe6af59..5e0870c297dd 100644 --- a/sw/inc/fmthdft.hxx +++ b/sw/inc/fmthdft.hxx @@ -29,7 +29,7 @@ class IntlWrapper; class SwFmt; /** Header, for PageFormats - Client of FrmFmt discribing the header. */ + Client of FrmFmt describing the header. */ class SW_DLLPUBLIC SwFmtHeader: public SfxPoolItem, public SwClient { diff --git a/sw/inc/ndnotxt.hxx b/sw/inc/ndnotxt.hxx index 26dfa94de0f1..23a9c05cc93a 100644 --- a/sw/inc/ndnotxt.hxx +++ b/sw/inc/ndnotxt.hxx @@ -34,7 +34,7 @@ class SW_DLLPUBLIC SwNoTxtNode : public SwCntntNode bool bAutomaticContour : 1; // automatic contour polygon, not manipulated bool bContourMapModeValid : 1; // contour map mode is not the graphics's // preferred map mode, but either - // MM100 or or pixel + // MM100 or pixel bool bPixelContour : 1; // contour map mode is invalid and pixel. // Creates for all derivations an AttrSet with ranges for frame- and diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx index 709aaa4d5410..e0bab7383189 100644 --- a/sw/inc/swtable.hxx +++ b/sw/inc/swtable.hxx @@ -446,7 +446,7 @@ public: bool IsNumberChanged() const; // Is that a formula box or a box with numeric contents (AutoSum)? - // What it is is indicated by the return value - the WhichId of the attribute. + // What it is indicated by the return value - the WhichId of the attribute. // Empty boxes have the return value USHRT_MAX !! sal_uInt16 IsFormulaOrValueBox() const; diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx index 7a5af46ab5a9..da0d5d601cb1 100644 --- a/sw/inc/viewsh.hxx +++ b/sw/inc/viewsh.hxx @@ -154,7 +154,7 @@ class SW_DLLPUBLIC SwViewShell : public Ring bool mbShowFooterSeparator:1; ///< Flag to say that we are showing the footer control bool mbHeaderFooterEdit:1; ///< Flag to say that we are editing header or footer (according to the bShow(Header|Footer)Separator above) - // boolean, indicating that class in in constructor. + // boolean, indicating that class in constructor. bool mbInConstructor:1; bool mbTiledRendering:1; ///< Set if we are doing the tiled rendering (using PaintTile()). diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx index 2086d4aff4f2..8dc4e9445b8a 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx @@ -136,7 +136,7 @@ DECLARE_OOXMLEXPORT_TEST(defaultTabStopNotInStyles, "empty.odt") uno::Reference< beans::XPropertySet > properties( paragraphStyles->getByName( "Standard" ), uno::UNO_QUERY ); uno::Sequence< style::TabStop > stops = getProperty< uno::Sequence< style::TabStop > >( paragraphStyles->getByName( "Standard" ), "ParaTabStops" ); -// There actually be be one tab stop, but it will be the default. +// There actually be one tab stop, but it will be the default. CPPUNIT_ASSERT_EQUAL( static_cast<sal_Int32>(1), stops.getLength()); CPPUNIT_ASSERT_EQUAL( style::TabAlign_DEFAULT, stops[ 0 ].Alignment ); } @@ -750,7 +750,7 @@ DECLARE_OOXMLEXPORT_TEST(testFdo43093, "fdo43093.docx") DECLARE_OOXMLEXPORT_TEST(testFdo64238_a, "fdo64238_a.docx") { // The problem was that when 'Show Only Odd Footer' was marked in Word and the Even footer *was filled* - // then LO would still import the Even footer and concatenate it to to the odd footer. + // then LO would still import the Even footer and concatenate it to the odd footer. // This case specifically is for : // 'Blank Odd Footer' with 'Non-Blank Even Footer' when 'Show Only Odd Footer' is marked in Word // In this case the imported footer in LO was supposed to be blank, but instead was the 'even' footer @@ -770,7 +770,7 @@ DECLARE_OOXMLEXPORT_TEST(testFdo64238_a, "fdo64238_a.docx") DECLARE_OOXMLEXPORT_TEST(testFdo64238_b, "fdo64238_b.docx") { // The problem was that when 'Show Only Odd Footer' was marked in Word and the Even footer *was filled* - // then LO would still import the Even footer and concatenate it to to the odd footer. + // then LO would still import the Even footer and concatenate it to the odd footer. // This case specifically is for : // 'Non-Blank Odd Footer' with 'Non-Blank Even Footer' when 'Show Only Odd Footer' is marked in Word // In this case the imported footer in LO was supposed to be just the odd footer, but instead was the 'odd' and 'even' footers concatenated @@ -1055,7 +1055,7 @@ DECLARE_OOXMLEXPORT_TEST(testTableFloating, "table-floating.docx") { // After import, table is inside a TextFrame. uno::Reference<beans::XPropertySet> xFrame(xIndexAccess->getByIndex(0), uno::UNO_QUERY); - // This was 0, should be the the opposite of (left margin + half of the border width). + // This was 0, should be the opposite of (left margin + half of the border width). CPPUNIT_ASSERT_EQUAL(sal_Int32(-199), getProperty<sal_Int32>(xFrame, "HoriOrientPosition")); // Was 0 as well, should be the right margin. CPPUNIT_ASSERT_EQUAL(sal_Int32(250), getProperty<sal_Int32>(xFrame, "RightMargin")); @@ -1064,7 +1064,7 @@ DECLARE_OOXMLEXPORT_TEST(testTableFloating, "table-floating.docx") { // After import, table is inside a TextFrame. uno::Reference<beans::XPropertySet> xShape(getShape(1), uno::UNO_QUERY); - // This was 0, should be the the opposite of (left margin + half of the border width). + // This was 0, should be the opposite of (left margin + half of the border width). CPPUNIT_ASSERT_EQUAL(sal_Int32(-199), getProperty<sal_Int32>(xShape, "HoriOrientPosition")); // Was 0 as well, should be the right margin. CPPUNIT_ASSERT_EQUAL(sal_Int32(250), getProperty<sal_Int32>(xShape, "RightMargin")); diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx index dcace7731ad8..7b0edaf18551 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx @@ -541,7 +541,7 @@ DECLARE_OOXMLEXPORT_TEST(testFontNameIsEmpty, "font-name-is-empty.docx") DECLARE_OOXMLEXPORT_TEST(testMultiColumnLineSeparator, "multi-column-line-separator-SAVED.docx") { - // Check for the Column Separator value.It should be FALSE as the document doesnt contains separator line. + // Check for the Column Separator value.It should be FALSE as the document does not contain separator line. xmlDocPtr pXmlDoc = parseExport(); if (!pXmlDoc) return; diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx index 3c11a40bc618..6d9bfc752d9a 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx @@ -692,7 +692,7 @@ DECLARE_OOXMLEXPORT_TEST(testFD083057, "fdo83057.docx") // A fly frame was attached to a para which started with a hint (run) containing an SDT. // This SDT was handled while exporting the FLYFRAME and also the text of the run. - // So, eventhough the original file had only one sdt in the header, the RT file had two; + // So, even though the original file had only one sdt in the header, the RT file had two; // one for a separate run as expected, and one incorrectly exported in the alternateContent (FLYFRAME) // Assert that the file has only one sdt, in a separate run diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index 3a541ad33398..57ae73534127 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -572,7 +572,7 @@ numberingstyle = ThisComponent.NumberingRules.getByIndex(6) xray numberingstyle.name - should match name above numbering = numberingstyle.getByIndex(0) xray numbering(11) - should be 4, arabic -note that the indexes may get off as the implementation evolves, C++ code seaches in loops +note that the indexes may get off as the implementation evolves, C++ code searches in loops */ uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY); uno::Reference< text::XTextRange > paragraph(getParagraph( 1, "Text1." )); diff --git a/sw/qa/python/check_index.py b/sw/qa/python/check_index.py index 6ea5b0b138f2..4d3076c43b9a 100644 --- a/sw/qa/python/check_index.py +++ b/sw/qa/python/check_index.py @@ -77,7 +77,7 @@ class CheckIndex(unittest.TestCase): xCursor.gotoStartOfParagraph(True) xCursor.setPropertyValue("ParaStyleName","Heading 1") - # try agian with update + # try again with update xIndex.update() listener.assertRefreshed() xCursor.gotoRange(xIndex.getAnchor().getEnd(), False) diff --git a/sw/source/core/access/acccontext.cxx b/sw/source/core/access/acccontext.cxx index 46206704a79f..4a75581cfa98 100644 --- a/sw/source/core/access/acccontext.cxx +++ b/sw/source/core/access/acccontext.cxx @@ -300,7 +300,7 @@ void SwAccessibleContext::ScrolledWithin( const SwRect& rOldVisArea ) void SwAccessibleContext::ScrolledIn() { // This accessible should be freshly created, because it - // was not visible before. Therefor, its vis area must already + // was not visible before. Therefore, its vis area must already // reflect the scrolling. OSL_ENSURE( GetVisArea() == GetMap()->GetVisArea(), "Vis area of child is wrong. Did it exist already?" ); diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index a54c7deabdf9..22c55e34ca62 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -1915,7 +1915,7 @@ uno::Reference< XAccessible> SwAccessibleMap::GetContext( const SwFrm *pFrm, // another context that had the focus, then the focus // just moves from the old context to the new one. We // then have to send a focus event and a caret event for - // the old context. We have to to that now, + // the old context. We have to do that now, // because after we have left this method, anyone might // call getStates for the new context and will get a // focused state then. Sending the focus changes event diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 5d6b7e3ef645..2a0a67a66287 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -3001,7 +3001,7 @@ sal_Bool SwAccessibleParagraph::setAttributes( pIndices[i] = i; sort( &pIndices[0], &pIndices[nLength], IndexCompare(pPairs) ); - // create sorted sequences accoring to index array + // create sorted sequences according to index array uno::Sequence< OUString > aNames( nLength ); OUString* pNames = aNames.getArray(); uno::Sequence< uno::Any > aValues( nLength ); diff --git a/sw/source/core/crsr/trvltbl.cxx b/sw/source/core/crsr/trvltbl.cxx index 057408690c04..aa4a78da20b9 100644 --- a/sw/source/core/crsr/trvltbl.cxx +++ b/sw/source/core/crsr/trvltbl.cxx @@ -380,7 +380,7 @@ static bool lcl_FindNextCell( SwNodeIndex& rIdx, bool bInReadOnly ) // we are not located inside a 'valid' cell. We have to continue searching... // skip behind current section. This might be the end of the table cell - // or behind a inner section or or or... + // or behind a inner section or... aTmp.Assign( *pCNd->EndOfSectionNode(), 1 ); // loop to find a suitable cell... diff --git a/sw/source/core/doc/DocumentRedlineManager.cxx b/sw/source/core/doc/DocumentRedlineManager.cxx index d0e979759a60..24d0bdc4e69c 100644 --- a/sw/source/core/doc/DocumentRedlineManager.cxx +++ b/sw/source/core/doc/DocumentRedlineManager.cxx @@ -1674,7 +1674,7 @@ bool DocumentRedlineManager::AppendTableRowRedline( SwTableRowRedline* pNewRedl, { (void)bCallDelete; - // #TODO - equivelant for 'SwTableRowRedline' + // #TODO - equivalent for 'SwTableRowRedline' bool bMerged = false; /* _CHECK_REDLINE( this ) @@ -1682,18 +1682,18 @@ bool DocumentRedlineManager::AppendTableRowRedline( SwTableRowRedline* pNewRedl, if (IsRedlineOn() && !IsShowOriginal(meRedlineMode)) { - // #TODO - equivelant for 'SwTableRowRedline' + // #TODO - equivalent for 'SwTableRowRedline' /* pNewRedl->InvalidateRange(); */ - // Make equivelant of 'AppendRedline' checks inside here too + // Make equivalent of 'AppendRedline' checks inside here too mpExtraRedlineTbl->Insert( pNewRedl ); } else { - // TO DO - equivelant for 'SwTableRowRedline' + // TO DO - equivalent for 'SwTableRowRedline' /* if( bCallDelete && nsRedlineType_t::REDLINE_DELETE == pNewRedl->GetType() ) { @@ -1707,7 +1707,7 @@ bool DocumentRedlineManager::AppendTableRowRedline( SwTableRowRedline* pNewRedl, delete pNewRedl, pNewRedl = 0; */ } - // #TODO - equivelant for 'SwTableRowRedline' + // #TODO - equivalent for 'SwTableRowRedline' /* _CHECK_REDLINE( this ) */ @@ -1719,7 +1719,7 @@ bool DocumentRedlineManager::AppendTableCellRedline( SwTableCellRedline* pNewRed { (void)bCallDelete; - // #TODO - equivelant for 'SwTableCellRedline' + // #TODO - equivalent for 'SwTableCellRedline' bool bMerged = false; /* _CHECK_REDLINE( this ) @@ -1727,18 +1727,18 @@ bool DocumentRedlineManager::AppendTableCellRedline( SwTableCellRedline* pNewRed if (IsRedlineOn() && !IsShowOriginal(meRedlineMode)) { - // #TODO - equivelant for 'SwTableCellRedline' + // #TODO - equivalent for 'SwTableCellRedline' /* pNewRedl->InvalidateRange(); */ - // Make equivelant of 'AppendRedline' checks inside here too + // Make equivalent of 'AppendRedline' checks inside here too mpExtraRedlineTbl->Insert( pNewRedl ); } else { - // TO DO - equivelant for 'SwTableCellRedline' + // TO DO - equivalent for 'SwTableCellRedline' /* if( bCallDelete && nsRedlineType_t::REDLINE_DELETE == pNewRedl->GetType() ) { @@ -1752,7 +1752,7 @@ bool DocumentRedlineManager::AppendTableCellRedline( SwTableCellRedline* pNewRed delete pNewRedl, pNewRedl = 0; */ } - // #TODO - equivelant for 'SwTableCellRedline' + // #TODO - equivalent for 'SwTableCellRedline' /* _CHECK_REDLINE( this ) */ diff --git a/sw/source/core/doc/DocumentTimerManager.cxx b/sw/source/core/doc/DocumentTimerManager.cxx index 444f36e7a2db..a467521964d7 100644 --- a/sw/source/core/doc/DocumentTimerManager.cxx +++ b/sw/source/core/doc/DocumentTimerManager.cxx @@ -129,7 +129,7 @@ IMPL_LINK( DocumentTimerManager, DoIdleJobs, Timer *, pTimer ) || AUTOUPD_FIELD_AND_CHARTS == nFldUpdFlag ) && m_rDoc.getIDocumentFieldsAccess().GetUpdtFlds().IsFieldsDirty() // If we switch the field name the Fields are not updated. - // So the "backgorund update" should always be carried out + // So the "background update" should always be carried out /* && !pStartSh->GetViewOptions()->IsFldName()*/ ) { if ( m_rDoc.getIDocumentFieldsAccess().GetUpdtFlds().IsInUpdateFlds() || diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx index 50e8e2f9f6b5..4b483f7a0148 100644 --- a/sw/source/core/doc/docedt.cxx +++ b/sw/source/core/doc/docedt.cxx @@ -787,7 +787,7 @@ uno::Reference< XHyphenatedWord > SwDoc::Hyphenate( return aHyphArg.GetHyphWord(); // will be set by lcl_HyphenateNode } -// Save the current values to add them as automatic entries to to AutoCorrect. +// Save the current values to add them as automatic entries to AutoCorrect. void SwDoc::SetAutoCorrExceptWord( SwAutoCorrExceptWord* pNew ) { if( pNew != mpACEWord ) diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx index d0c1441a740c..67e263c81a2e 100644 --- a/sw/source/core/doc/doctxm.cxx +++ b/sw/source/core/doc/doctxm.cxx @@ -1893,7 +1893,7 @@ void SwTOXBaseSection::InsertSorted(SwTOXSortTabBase* pNew) { if(TOX_AUTHORITIES != SwTOXBase::GetType()) { - // Own entry for for double entries or keywords + // Own entry for double entries or keywords if( pOld->GetType() == TOX_SORT_CUSTOM && pNew->GetOptions() & nsSwTOIOptions::TOI_KEY_AS_ENTRY) continue; diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx index 95bb03d0f6e5..fd5da9f812ef 100644 --- a/sw/source/core/doc/tblrwcl.cxx +++ b/sw/source/core/doc/tblrwcl.cxx @@ -4063,7 +4063,7 @@ static bool lcl_SetOtherLineHeight( SwTableLine* pLine, CR_SetLineHeight& rParam else { // Set line height - // pLine is the following/preceeding, thus adjust it + // pLine is the following/preceding, thus adjust it if( TBLFIX_CHGPROP == rParam.nMode ) { SwLayoutFrm* pLineFrm = GetRowFrm( *pLine ); diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx index 1178ef92f175..530f0ff7d03c 100644 --- a/sw/source/core/docnode/ndsect.cxx +++ b/sw/source/core/docnode/ndsect.cxx @@ -838,7 +838,7 @@ SwSectionNode* SwNodes::InsertTextSection(SwNodeIndex const& rNdIdx, // Another way round: if the section starts outside a table but the end is inside... // aInsPos is at the moment the Position where my EndNode will be inserted const SwStartNode* pStartNode = aInsPos.GetNode().StartOfSectionNode(); - // This StartNode should be in front of me, but if not, I wanna survive + // This StartNode should be in front of me, but if not, I want to survive sal_uLong nMyIndex = pSectNd->GetIndex(); if( pStartNode->GetIndex() > nMyIndex ) // Suspicious! { diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx index 8e5d2fd12bd0..6208bfc73787 100644 --- a/sw/source/core/docnode/ndtbl.cxx +++ b/sw/source/core/docnode/ndtbl.cxx @@ -1809,7 +1809,7 @@ bool SwDoc::DeleteRow( const SwCursor& rCursor ) // Remove the Crsr from the to-be-deleted Section. // The Cursor is placed after the table, except for // - when there's another Line, we place it in that one - // - when a Line preceeds it, we place it in that one + // - when a Line precedes it, we place it in that one { SwTableNode* pTblNd = rCursor.GetNode().FindTableNode(); @@ -1857,7 +1857,7 @@ bool SwDoc::DeleteRow( const SwCursor& rCursor ) pNextBox->GetFrmFmt()->GetProtect().IsCntntProtected() ) pNextBox = pNextBox->FindNextBox( pTblNd->GetTable(), pNextBox ); - if( !pNextBox ) // No succeeding Boxes? Then take the preceeding one + if( !pNextBox ) // No succeeding Boxes? Then take the preceding one { pDelLine = pFndBox->GetLines().front().GetLine(); pDelBox = pDelLine->GetTabBoxes()[ 0 ]; @@ -2330,7 +2330,7 @@ SwTabFrm *SwTableNode::MakeFrm( SwFrm* pSib ) } /** - * Creates all Views from the Document for the preceeding Node. The resulting ContentFrames + * Creates all Views from the Document for the preceding Node. The resulting ContentFrames * are added to the corresponding Layout. */ void SwTableNode::MakeFrms(const SwNodeIndex & rIdx ) @@ -2352,7 +2352,7 @@ void SwTableNode::MakeFrms(const SwNodeIndex & rIdx ) pNew = pNode->MakeFrm( pFrm ); // Will the Node receive Frames before or after? if ( bBefore ) - // The new one preceeds me + // The new one preceds me pNew->Paste( pFrm->GetUpper(), pFrm ); else // The new one succeeds me @@ -3163,7 +3163,7 @@ bool SwDoc::SplitTable( const SwPosition& rPos, sal_uInt16 eHdlnMode, switch( eHdlnMode ) { - // Set the lower Border of the preceeding Line to + // Set the lower Border of the preceding Line to // the upper Border of the current one case HEADLINE_BORDERCOPY: { @@ -3451,7 +3451,7 @@ SwTableNode* SwNodes::SplitTable( const SwNodeIndex& rPos, bool bAfter, /** * rPos needs to be in the Table that remains * - * @param bWithPrev merge the current Table with the preceeding + * @param bWithPrev merge the current Table with the preceding * or succeeding one */ bool SwDoc::MergeTable( const SwPosition& rPos, bool bWithPrev, sal_uInt16 nMode ) @@ -3553,7 +3553,7 @@ bool SwNodes::MergeTable( const SwNodeIndex& rPos, bool bWithPrev, if( !bWithPrev ) { - // Transfer all Attributes of the succeeding Table to the preceeding one + // Transfer all Attributes of the succeeding Table to the preceding one // We do this, because the succeeding one is deleted when deleting the Node rTbl.SetRowsToRepeat( rDelTbl.GetRowsToRepeat() ); rTbl.SetTblChgMode( rDelTbl.GetTblChgMode() ); @@ -3574,7 +3574,7 @@ bool SwNodes::MergeTable( const SwNodeIndex& rPos, bool bWithPrev, rTbl.GetTabSortBoxes().insert( rDelTbl.GetTabSortBoxes() ); rDelTbl.GetTabSortBoxes().clear(); - // The preceeding Table always remains, while the succeeding one is deleted + // The preceding Table always remains, while the succeeding one is deleted SwEndNode* pTblEndNd = pDelTblNd->EndOfSectionNode(); pTblNd->pEndOfSection = pTblEndNd; diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx index 4102a7022346..8b635c50a1cd 100644 --- a/sw/source/core/docnode/nodes.cxx +++ b/sw/source/core/docnode/nodes.cxx @@ -1659,7 +1659,7 @@ void SwNodes::MoveRange( SwPaM & rPam, SwPosition & rPos, SwNodes& rNodes ) } } - // if the StartNode was moved to whom the the cursor pointed, so + // if the StartNode was moved to whom the cursor pointed, so // the content must be registered in the current content! if ( &pStt->nNode.GetNode() == &GetEndOfContent() ) { diff --git a/sw/source/core/draw/dcontact.cxx b/sw/source/core/draw/dcontact.cxx index aa99a18b0242..f20f36e79fb5 100644 --- a/sw/source/core/draw/dcontact.cxx +++ b/sw/source/core/draw/dcontact.cxx @@ -1041,7 +1041,7 @@ void SwDrawContact::Changed( const SdrObject& rObj, const Rectangle& rOldBoundRect ) { // #i26791# - no event handling, if existing <SwViewShell> - // is in contruction + // is in construction SwDoc* pDoc = GetFmt()->GetDoc(); if ( pDoc->getIDocumentLayoutAccess().GetCurrentViewShell() && pDoc->getIDocumentLayoutAccess().GetCurrentViewShell()->IsInConstructor() ) diff --git a/sw/source/core/edit/edlingu.cxx b/sw/source/core/edit/edlingu.cxx index a009f0fef255..e4d84f513330 100644 --- a/sw/source/core/edit/edlingu.cxx +++ b/sw/source/core/edit/edlingu.cxx @@ -715,7 +715,7 @@ uno::Any SwEditShell::SpellContinue( * 1) HyphStart * - Revoke all Selections * - Save current Cursor - * - if no selections existant: + * - if no selections existent: * - create new selection reaching until document end * 2) HyphContinue * - add nLastHyphLen onto SelectionStart @@ -1464,7 +1464,7 @@ bool SwSpellIter::SpellSentence(::svx::SpellPortions& rPortions, bool bIsGrammar SetCurr( new SwPosition( *pCrsr->GetPoint() )); SetCurrX( new SwPosition( *pCrsr->GetMark() )); - // if an error has been found go back to the text preceeding the error + // if an error has been found go back to the text preceding the error if(xSpellRet.is()) { *pCrsr->GetPoint() = aSaveStartPos; diff --git a/sw/source/core/edit/edws.cxx b/sw/source/core/edit/edws.cxx index 97ee731d8782..ef20018c888d 100644 --- a/sw/source/core/edit/edws.cxx +++ b/sw/source/core/edit/edws.cxx @@ -150,7 +150,7 @@ bool SwEditShell::HasOtherCnt() const return false; } -// access controll functions for file name handling +// access control functions for file name handling SwActContext::SwActContext(SwEditShell *pShell) : pSh(pShell) diff --git a/sw/source/core/fields/usrfld.cxx b/sw/source/core/fields/usrfld.cxx index d37013714535..9f040bff8fec 100644 --- a/sw/source/core/fields/usrfld.cxx +++ b/sw/source/core/fields/usrfld.cxx @@ -313,7 +313,7 @@ bool SwUserFieldType::PutValue( const uno::Any& rAny, sal_uInt16 nWhichId ) // The following line is in fact wrong, since the language is unknown (is part of the // field) and, thus, aContent should also belong to the field. Each field can have a - // differnt language, but the same content with just different formatting. + // different language, but the same content with just different formatting. aContent = DoubleToString(nValue, static_cast<sal_uInt32>(LANGUAGE_SYSTEM)); } break; diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx index d745f8b3322e..959663c7d25b 100644 --- a/sw/source/core/inc/frame.hxx +++ b/sw/source/core/inc/frame.hxx @@ -459,7 +459,7 @@ public: // insert before pBehind or at the end of the chain below mpUpper void InsertBefore( SwLayoutFrm* pParent, SwFrm* pBehind ); - // insert after pBefore or at the beginnig of the chain below mpUpper + // insert after pBefore or at the beginning of the chain below mpUpper void InsertBehind( SwLayoutFrm *pParent, SwFrm *pBefore ); // insert before pBehind or at the end of the chain while considering // the siblings of pSct diff --git a/sw/source/core/inc/scriptinfo.hxx b/sw/source/core/inc/scriptinfo.hxx index bdc47ca0c0ee..eb7b6a674484 100644 --- a/sw/source/core/inc/scriptinfo.hxx +++ b/sw/source/core/inc/scriptinfo.hxx @@ -256,7 +256,7 @@ public: const sal_uInt16 nCompress, const sal_uInt16 nFontHeight, Point* pPoint = NULL ) const; -/** Performes a kashida justification on the kerning array +/** Performs a kashida justification on the kerning array @descr Add some extra space for kashida justification to the positions in the kerning array. diff --git a/sw/source/core/layout/calcmove.cxx b/sw/source/core/layout/calcmove.cxx index 30ab09d29433..a347ed3efd26 100644 --- a/sw/source/core/layout/calcmove.cxx +++ b/sw/source/core/layout/calcmove.cxx @@ -1615,7 +1615,7 @@ void SwCntntFrm::MakeAll() SWREFRESHFN( this ) // If MoveFwd moves the paragraph to the next page, a following - // paragraph, which contains footnotes can can cause the old upper + // paragraph, which contains footnotes can cause the old upper // frame to grow. In this case we explicitly allow a new check // for MoveBwd. Robust: We also check the bMovedBwd flag again. // If pOldUp was a footnote frame, it has been deleted inside MoveFwd. diff --git a/sw/source/core/layout/findfrm.cxx b/sw/source/core/layout/findfrm.cxx index 5c727801a237..2be7d58bbf7a 100644 --- a/sw/source/core/layout/findfrm.cxx +++ b/sw/source/core/layout/findfrm.cxx @@ -1019,7 +1019,7 @@ SwFrm *SwFrm::_FindPrev() if ( IsTabFrm() ) { //The first Cntnt of the table gets picked up and his predecessor is - //returnd. To be able to deactivate the special case for tables + //returned. To be able to deactivate the special case for tables //(see below) bIgnoreTab will be set. if ( ((SwTabFrm*)this)->IsFollow() ) return ((SwTabFrm*)this)->FindMaster(); diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx index a3dc23f34824..1c6fba9b178e 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -786,7 +786,7 @@ SwCntntNotify::~SwCntntNotify() pCell = pCell->GetUpper(); OSL_ENSURE( pCell->IsCellFrm(), "Where's my cell?" ); if ( text::VertOrientation::NONE != pCell->GetFmt()->GetVertOrient().GetVertOrient() ) - pCell->InvalidatePrt(); //for the vertical allign. + pCell->InvalidatePrt(); //for the vertical align. } // OD 2004-02-26 #i25029# @@ -1235,7 +1235,7 @@ void _InsertCnt( SwLayoutFrm *pLay, SwDoc *pDoc, //of paragraphs, which must be moved expensively until it reaches a tolarable //reduced level. //We'd like to think that 20 Paragraphs fit on one page. - //So that it does not become in extremly situations so violent we calculate depending + //So that it does not become in extreme situations so violent we calculate depending //on the node something to it. //If in the DocStatistik a usable given pagenumber //(Will be cared for while writing), so it will be presumed that this will be @@ -2018,9 +2018,9 @@ void SwBorderAttrs::_IsLine() /* The borders of neighboring paragraphs are condensed by following algorithm: * * 1. No top border if the predecessor has the same top border and (3) applies. - * In addition, the paragraph needs to have a border at at least one side (left/right/bottom). + * In addition, the paragraph needs to have a border at least one side (left/right/bottom). * 2. No bottom border if the successor has the same bottom border and (3) applies. - * In addition, the paragraph needs to have a border at at least one side (left/right/top). + * In addition, the paragraph needs to have a border at least one side (left/right/top). * 3. The borders on the left and right side are identical between the current and the * pre-/succeeding paragraph. */ diff --git a/sw/source/core/layout/ftnfrm.cxx b/sw/source/core/layout/ftnfrm.cxx index 3f81a9d27bea..cd24c1154e29 100644 --- a/sw/source/core/layout/ftnfrm.cxx +++ b/sw/source/core/layout/ftnfrm.cxx @@ -522,7 +522,7 @@ void SwFtnFrm::Cut() pUp->Cut(); delete pUp; // If the last footnote container was removed from a column - // section without a Follow, then this section can be shrinked. + // section without a Follow, then this section can be shrunk. if( pSect && !pSect->ToMaximize( false ) && !pSect->IsColLocked() ) pSect->_InvalidateSize(); } @@ -677,7 +677,7 @@ SwLayoutFrm *SwFrm::GetNextFtnLeaf( MakePageType eMakePage ) return pCont; } -/// Get the preceeding layout leaf in that the frame can be moved. +/// Get the preceding layout leaf in that the frame can be moved. SwLayoutFrm *SwFrm::GetPrevFtnLeaf( MakePageType eMakeFtn ) { // The predecessor of a footnote is (if possible) diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 0272522cbc2e..98cb0a4a5bf7 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -2206,7 +2206,7 @@ void DrawGraphic( { if ( !bGrfIsTransparent ) { - // substract area of background graphic from draw area + // subtract area of background graphic from draw area // OD 08.10.2002 #103898# - consider only that part of the // graphic area that is overlapping with draw area. SwRect aTmpGrf = aGrf; @@ -3288,7 +3288,7 @@ void SwRootFrm::Paint(SwRect const& rRect, SwPrintData const*const pPrintData) c // moved paint pre-process for DrawingLayer overlay here since the above // code dependent from bExtraData may expand the PaintRect { - // #i75172# if called from SwViewShell::ImplEndAction it sould no longer + // #i75172# if called from SwViewShell::ImplEndAction it should no longer // really be used but handled by SwViewShell::ImplEndAction already const vcl::Region aDLRegion(aPaintRect.SVRect()); pSh->DLPrePaint2(aDLRegion); @@ -3419,7 +3419,7 @@ void SwRootFrm::Paint(SwRect const& rRect, SwPrintData const*const pPrintData) c if ( aRect.IsOver( aEmptyPageRect ) ) { - // #i75172# if called from SwViewShell::ImplEndAction it sould no longer + // #i75172# if called from SwViewShell::ImplEndAction it should no longer // really be used but handled by SwViewShell::ImplEndAction already { const vcl::Region aDLRegion(aPaintRect.SVRect()); diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index bdc39aa8f2e8..76b6be8bf532 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -2282,7 +2282,7 @@ void SwTabFrm::MakeAll() // Some more checks if we want to call the split algorithm or not: // The repeating lines / keeping lines still fit into the upper or - // if we do not have an (in)direkt Prev, we split anyway. + // if we do not have an (in)direct Prev, we split anyway. if( (*fnRect->fnYDiff)(nDeadLine, nBreakLine) >=0 || !pIndPrev ) { aNotify.SetLowersComplete( false ); diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx index f29607e06156..1e716d7bb939 100644 --- a/sw/source/core/layout/trvlfrm.cxx +++ b/sw/source/core/layout/trvlfrm.cxx @@ -424,7 +424,7 @@ bool SwRootFrm::GetCrsrOfst( SwPosition *pPos, Point &rPoint, ((SwCrsrMoveState*)pCMS)->bFillRet = false; Point aOldPoint = rPoint; - // search for page containing rPoint. The borders around the pages are considerd + // search for page containing rPoint. The borders around the pages are considered const SwPageFrm* pPage = GetPageAtPos( rPoint, 0, true ); // #i95626# @@ -1706,7 +1706,7 @@ sal_uInt16 SwFrm::GetPhyPageNum() const * * If the first content of the page has a page descriptor, we take the follow * of the page descriptor of the last not empty page. If this descriptor allows - * only right(left) pages and the page isn't an empty page then it wanna be + * only right(left) pages and the page isn't an empty page then it want to be * such right(left) page. If the descriptor allows right and left pages, we * look for a number offset in the first content. If there is one, odd number * results right pages, even number results left pages. diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx index 396394629be1..3136db566faa 100644 --- a/sw/source/core/ole/ndole.cxx +++ b/sw/source/core/ole/ndole.cxx @@ -347,7 +347,7 @@ bool SwOLENode::SavePersistentData() pCnt->RemoveEmbeddedObject( aOLEObj.aName, false, bKeepObjectToTempStorage ); // TODO/LATER: aOLEObj.aName has no meaning here, since the undo container contains the object - // by different name, in future it might makes sence that the name is transported here. + // by different name, in future it might makes sense that the name is transported here. aOLEObj.xOLERef.AssignToContainer( 0, aOLEObj.aName ); try { @@ -484,7 +484,7 @@ bool SwOLENode::IsInGlobalDocSection() const } // pAnchorNd contains the most recently found Section Node, which - // now must fullfill the prerequesites for the GlobalDoc + // now must fulfill the prerequesites for the GlobalDoc pSectNd = (SwSectionNode*)pAnchorNd; return FILE_LINK_SECTION == pSectNd->GetSection().GetType() && pSectNd->GetIndex() > nEndExtraIdx; diff --git a/sw/source/core/text/frmform.cxx b/sw/source/core/text/frmform.cxx index 24a66c8d34d3..a1f71ad05024 100644 --- a/sw/source/core/text/frmform.cxx +++ b/sw/source/core/text/frmform.cxx @@ -419,7 +419,7 @@ void SwTxtFrm::AdjustFrm( const SwTwips nChgHght, bool bHasToFit ) // A Grow() is always accepted by the Layout, even if the // FixSize of the surrounding layout frame should not allow it. // We text for this case and correct the values. - // The Frm must NOT be shrinked further than its size permits + // The Frm must NOT be shrunk further than its size permits // even in the case of an emergency. SwTwips nRstHeight; if ( IsVertical() ) @@ -823,7 +823,7 @@ bool SwTxtFrm::CalcPreps() else { OSL_ENSURE( nChgHeight < (Prt().*fnRect->fnGetHeight)(), - "+SwTxtFrm::CalcPrep: wanna shrink" ); + "+SwTxtFrm::CalcPrep: want to shrink" ); nChgHeight = (Prt().*fnRect->fnGetHeight)() - nChgHeight; diff --git a/sw/source/core/text/itratr.cxx b/sw/source/core/text/itratr.cxx index 726354549439..2a97c4481b1e 100644 --- a/sw/source/core/text/itratr.cxx +++ b/sw/source/core/text/itratr.cxx @@ -779,7 +779,7 @@ void SwTxtNode::GetMinMaxSize( sal_uLong nIndex, sal_uLong& rMin, sal_uLong &rMa /** * Calculates the width of the text part specified by nStt and nEnd, - * the height of the line containing nStt is devided by this width, + * the height of the line containing nStt is divided by this width, * indicating the scaling factor, if the text part is rotated. * Having CH_BREAKs in the text part, this method returns the scaling * factor for the longest of the text parts separated by the CH_BREAK diff --git a/sw/source/core/text/itrcrsr.cxx b/sw/source/core/text/itrcrsr.cxx index 05c1d1c63f1c..1a3affd00d7f 100644 --- a/sw/source/core/text/itrcrsr.cxx +++ b/sw/source/core/text/itrcrsr.cxx @@ -1422,7 +1422,7 @@ sal_Int32 SwTxtCursor::GetCrsrOfst( SwPosition *pPos, const Point &rPoint, } } - // 7684: We are exactly ended up at ther HyphPortion. It is our task to + // 7684: We are exactly ended up at their HyphPortion. It is our task to // provide, that we end up in the String. // 7993: If length = 0, then we must exit... if( !nLength ) diff --git a/sw/source/core/text/itrform2.cxx b/sw/source/core/text/itrform2.cxx index c65021419c46..a3c729a4135f 100644 --- a/sw/source/core/text/itrform2.cxx +++ b/sw/source/core/text/itrform2.cxx @@ -114,7 +114,7 @@ void SwTxtFormatter::CtorInitTxtFormatter( SwTxtFrm *pNewFrm, SwTxtFormatInfo *p SwTxtFormatter::~SwTxtFormatter() { - // Extremly unlikely, but still possible + // Extremely unlikely, but still possible // e.g.: field splits up, widows start to matter if( GetInfo().GetRest() ) { @@ -199,7 +199,7 @@ SwLinePortion *SwTxtFormatter::Underflow( SwTxtFormatInfo &rInf ) pTmpPrev->Move( rInf ); rInf.SetLast( pTmpPrev ); pTmpPrev = pTmpPrev->GetPortion(); - OSL_ENSURE( pTmpPrev, "Underflow: Loosing control!" ); + OSL_ENSURE( pTmpPrev, "Underflow: losing control!" ); }; } pPor = pPor->GetPortion(); @@ -868,7 +868,7 @@ SwTxtPortion *SwTxtFormatter::WhichTxtPor( SwTxtFormatInfo &rInf ) const else { // Only at the End! - // If pCurr does not have a width, it can however aready have content. + // If pCurr does not have a width, it can however already have content. // E.g. for non-displayable characters if (rInf.GetTxt()[rInf.GetIdx()]==CH_TXT_ATR_FIELDSTART) pPor = new SwFieldMarkPortion(); @@ -2483,7 +2483,7 @@ SwFlyCntPortion *SwTxtFormatter::NewFlyCntPortion( SwTxtFormatInfo &rInf, else pFly = NULL; // aBase is the document-global position, from which the new extra portion is placed - // aBase.X() = Offset in in the line after the current position + // aBase.X() = Offset in the line after the current position // aBase.Y() = LineIter.Y() + Ascent of the current position long nTmpAscent, nTmpDescent, nFlyAsc, nFlyDesc; diff --git a/sw/source/core/text/itrform2.hxx b/sw/source/core/text/itrform2.hxx index c046a8eb6054..6ab2e1e80594 100644 --- a/sw/source/core/text/itrform2.hxx +++ b/sw/source/core/text/itrform2.hxx @@ -87,7 +87,7 @@ class SwTxtFormatter : public SwTxtPainter // Is overloaded by SwTxtFormatter because of UpdatePos void CalcAdjustLine( SwLineLayout *pCurr ); - // consideres line spacing attributes + // considers line spacing attributes void CalcRealHeight( bool bNewLine = false ); // Transfers the data to rInf @@ -102,7 +102,7 @@ class SwTxtFormatter : public SwTxtPainter // determines, if a optimized repaint rectange is allowed bool AllowRepaintOpt() const; - // Is called by by FormatLine + // Is called by FormatLine void FormatReset( SwTxtFormatInfo &rInf ); /** diff --git a/sw/source/core/text/porfld.cxx b/sw/source/core/text/porfld.cxx index a7dd8588957a..5ee2d1f5c2e8 100644 --- a/sw/source/core/text/porfld.cxx +++ b/sw/source/core/text/porfld.cxx @@ -422,7 +422,7 @@ void SwFldPortion::Paint( const SwTxtPaintInfo &rInf ) const { SwFontSave aSave( rInf, pFnt ); - OSL_ENSURE( GetLen() <= 1, "SwFldPortion::Paint: rest-portion polution?" ); + OSL_ENSURE( GetLen() <= 1, "SwFldPortion::Paint: rest-portion pollution?" ); if( Width() && ( !bPlaceHolder || rInf.GetOpt().IsShowPlaceHolderFields() ) ) { // Dies ist eine freizuegige Auslegung der Hintergrundbelegung ... @@ -1080,7 +1080,7 @@ SwCombinedPortion::SwCombinedPortion( const OUString &rTxt ) void SwCombinedPortion::Paint( const SwTxtPaintInfo &rInf ) const { - OSL_ENSURE( GetLen() <= 1, "SwFldPortion::Paint: rest-portion polution?" ); + OSL_ENSURE( GetLen() <= 1, "SwFldPortion::Paint: rest-portion pollution?" ); if( Width() ) { rInf.DrawBackBrush( *this ); diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx index c83eb5e2bbb5..90f5d5c98d7d 100644 --- a/sw/source/core/text/txtfrm.cxx +++ b/sw/source/core/text/txtfrm.cxx @@ -713,7 +713,7 @@ void SwTxtFrm::_InvalidateRange( const SwCharRange &aRange, const long nD) bool bInv = false; if( 0 != nD ) { - // In nDelta the differences betwen old and new + // In nDelta the differences between old and new // linelengths are being added, that's why it's negative // if chars have been added and positive, if chars have // deleted diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx index 2ec09bbaf6b8..fbf8b91862db 100644 --- a/sw/source/core/txtnode/txtedt.cxx +++ b/sw/source/core/txtnode/txtedt.cxx @@ -839,9 +839,9 @@ bool SwScanner::NextWord() g_pBreakIt->GetLocale( aCurrLang ), nWordType, sal_True ); OSL_ENSURE( aBound.endPos >= aBound.startPos, "broken aBound result" ); - // we don't want to include preceeding text + // we don't want to include preceding text // to count words in text with mixed script punctuation correctly, - // but we want to include preceeding symbols (eg. percent sign, section sign, + // but we want to include preceding symbols (eg. percent sign, section sign, // degree sign defined by dict_word_hu to spell check their affixed forms). if (nWordType == i18n::WordType::WORD_COUNT && aBound.startPos < nBegin) aBound.startPos = nBegin; @@ -1385,7 +1385,7 @@ SwRect SwTxtFrm::_AutoSpell( const SwCntntNode* pActNode, const SwViewOption& rV { aRect = lcl_CalculateRepaintRect( *this, nChgStart, nChgEnd ); - // fdo#71558 notify mispelled word to accessibility + // fdo#71558 notify misspelled word to accessibility SwViewShell* pViewSh = getRootFrm() ? getRootFrm()->GetCurrShell() : 0; if( pViewSh ) pViewSh->InvalidateAccessibleParaAttrs( *this ); diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index 87f0b63ce1a6..6f949494497a 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -4247,7 +4247,7 @@ void SwXCellRange::GetDataSequence( // system language is probably not the best possible choice // but since we have to guess anyway (because the language of at // the text is NOT the one used for the number format!) - // it is at least conform to to what is used in + // it is at least conform to what is used in // SwTableShell::Execute when // SID_ATTR_NUMBERFORMAT_VALUE is set... LanguageType eLang = LANGUAGE_SYSTEM; diff --git a/sw/source/core/view/vdraw.cxx b/sw/source/core/view/vdraw.cxx index f7aae19fe9eb..aa3e013ac2a1 100644 --- a/sw/source/core/view/vdraw.cxx +++ b/sw/source/core/view/vdraw.cxx @@ -256,7 +256,7 @@ void SwViewImp::NotifySizeChg( const Size &rNewSz ) if ( aSz.Width() || aSz.Height() ) pObj->Move( aSz ); - // Don't let large objects dissappear to the top + // Don't let large objects disappear to the top aSz.Width() = aSz.Height() = 0; if ( aObjBound.Right() < aDocRect.Left() ) aSz.Width() = (aDocRect.Left() - aObjBound.Right()) + MINFLY; diff --git a/sw/source/core/view/vnew.cxx b/sw/source/core/view/vnew.cxx index 231abcdcb7ec..870d6e6da412 100644 --- a/sw/source/core/view/vnew.cxx +++ b/sw/source/core/view/vnew.cxx @@ -173,7 +173,7 @@ SwViewShell::SwViewShell( SwDoc& rDocument, vcl::Window *pWindow, maPrePostMapMode() { // OD 2004-06-01 #i26791# - in order to suppress event handling in - // <SwDrawContact::Changed> during contruction of <SwViewShell> instance + // <SwDrawContact::Changed> during construction of <SwViewShell> instance mbInConstructor = true; mbPaintInProgress = mbViewLocked = mbInEndAction = mbFrameView = @@ -249,7 +249,7 @@ SwViewShell::SwViewShell( SwViewShell& rShell, vcl::Window *pWindow, maPrePostMapMode() { // OD 2004-06-01 #i26791# - in order to suppress event handling in - // <SwDrawContact::Changed> during contruction of <SwViewShell> instance + // <SwDrawContact::Changed> during construction of <SwViewShell> instance mbInConstructor = true; mbPaintWorks = mbEnableSmooth = true; diff --git a/sw/source/filter/html/css1atr.cxx b/sw/source/filter/html/css1atr.cxx index 8d6a9caffaa9..1f6f2a67bbb9 100644 --- a/sw/source/filter/html/css1atr.cxx +++ b/sw/source/filter/html/css1atr.cxx @@ -1313,7 +1313,7 @@ static bool OutCSS1Rule( SwHTMLWriter& rHTMLWrt, const OUString& rSelector, } else { - // If ther are script dependencies and we are derived from a tag, + // If there are script dependencies and we are derived from a tag, // when we have to export a style dependent class for all // scripts OUString aNewSelector( aSelector ); @@ -1417,7 +1417,7 @@ static void OutCSS1DropCapRule( } else { - // If ther are script dependencies and we are derived from a tag, + // If there are script dependencies and we are derived from a tag, // when we have to export a style dependent class for all // scripts OUString aNewSelector( aSelector ); diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx index 6be26620b558..ce2e33627809 100644 --- a/sw/source/filter/html/swhtml.cxx +++ b/sw/source/filter/html/swhtml.cxx @@ -4601,7 +4601,7 @@ void SwHTMLParser::SetTxtCollAttrs( _HTMLAttrContext *pContext ) if( pCollToSet ) { - // die Attribute, die die bisherige Vorlage setzt + // die Attribute, die bisherige Vorlage setzt // hart einfuegen if( !pItemSet ) pItemSet = new SfxItemSet( pCollToSet->GetAttrSet() ); diff --git a/sw/source/filter/html/wrthtml.cxx b/sw/source/filter/html/wrthtml.cxx index 5cc182f05971..b28ce9fbffef 100644 --- a/sw/source/filter/html/wrthtml.cxx +++ b/sw/source/filter/html/wrthtml.cxx @@ -629,7 +629,7 @@ static void lcl_html_OutSectionStartTag( SwHTMLWriter& rHTMLWrt, } else if( pCol ) { - // minumum gutter width + // minimum gutter width sal_uInt16 nGutter = pCol->GetGutterWidth( true ); if( nGutter!=USHRT_MAX ) { diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index f9da85427a2b..479d2caab220 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -1046,7 +1046,7 @@ void DocxAttributeOutput::EndRun() } // Remove the field from the stack if only the start has to be written - // Unknown fields sould be removed too + // Unknown fields should be removed too if ( !pIt->bClose || ( pIt->eType == ww::eUNKNOWN ) ) { if (pIt->pField) diff --git a/sw/source/filter/ww8/docxattributeoutput.hxx b/sw/source/filter/ww8/docxattributeoutput.hxx index ded50407b043..a5e13d9d07f5 100644 --- a/sw/source/filter/ww8/docxattributeoutput.hxx +++ b/sw/source/filter/ww8/docxattributeoutput.hxx @@ -879,7 +879,7 @@ private: std::map< OUString, EmbeddedFontRef > fontFilesMap; // font file url to data - // Remember first cell (used for for default borders/margins) of each table + // Remember first cell (used for default borders/margins) of each table std::vector<ww8::WW8TableNodeInfoInner::Pointer_t> tableFirstCells; boost::optional<css::drawing::FillStyle> m_oFillStyle; diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx index 155c069c7444..02f8cae4995f 100644 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -2344,7 +2344,7 @@ void MSWordExportBase::OutputTextNode( const SwTxtNode& rNode ) if (bIncludeEndOfParaCRInRedlineProperties) { AttrOutput().Redline( aAttrIter.GetRunLevelRedline( nEnd ) ); - //If if there was no redline property emitted, force adding + //If there was no redline property emitted, force adding //another entry for the CR so that in the case that this //has no redline, but the next para does, then this one is //not merged with the next diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index 97629aeafb38..16083afa4dbe 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -1235,7 +1235,7 @@ WW8_WrPct::~WW8_WrPct() // Fill the piece and create a new one void WW8_WrPct::AppendPc(WW8_FC nStartFc, bool bIsUnicode) { - WW8_CP nStartCp = nStartFc - nOldFc; // substract the beginning of the text + WW8_CP nStartCp = nStartFc - nOldFc; // subtract the beginning of the text if ( !nStartCp ) { if ( !aPcts.empty() ) @@ -2684,7 +2684,7 @@ void WW8Export::WriteMainText() // ccpText includes Footnote and KF-text // therefore pFib->ccpText may get updated as well // save the StyleId of the last paragraph. Because WW97 take the style - // from the last CR, that will be writen after footer/Header/footnotes/ + // from the last CR, that will be written after footer/Header/footnotes/ // annotation usw. const SwTxtNode* pLastNd = pCurPam->GetMark()->nNode.GetNode().GetTxtNode(); if( pLastNd ) @@ -2791,7 +2791,7 @@ void WW8Export::WriteFkpPlcUsw() if (pEscher || pDoc->ContainsMSVBasic()) { /* - Everytime MS 2000 creates an escher stream there is always + Every time MS 2000 creates an escher stream there is always an ObjectPool dir (even if empty). It turns out that if a copy of MS 2000 is used to open a document that contains escher graphics exported from StarOffice without this empty dir then *if* that diff --git a/sw/source/filter/ww8/wrtww8gr.cxx b/sw/source/filter/ww8/wrtww8gr.cxx index 48787f570adc..c115eee6c0e2 100644 --- a/sw/source/filter/ww8/wrtww8gr.cxx +++ b/sw/source/filter/ww8/wrtww8gr.cxx @@ -159,8 +159,8 @@ bool WW8Export::TestOleNeedsGraphic(const SwAttrSet& rSet, xObj, uno::UNO_QUERY_THROW ); - // it makes no sence to search the object in the container by reference since the object was created - // outside of the container and was not inserted there, only the name makes sence + // it makes no sense to search the object in the container by reference since the object was created + // outside of the container and was not inserted there, only the name makes sense pGraphicStream = ::utl::UcbStreamHelper::CreateStream( aCnt.GetGraphicStream( xPersist->getEntryName() ) ); } diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx index 678c65f0fb20..5c87dd6e9c2a 100644 --- a/sw/source/filter/ww8/ww8atr.cxx +++ b/sw/source/filter/ww8/ww8atr.cxx @@ -5042,10 +5042,10 @@ 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 it's a no-op + if (!nAdd && !nDel) //If it's a no-op return; - OSL_ENSURE(nAdd <= 255, "more than 255 added tabstops ?"); - OSL_ENSURE(nDel <= 255, "more than 244 removed tabstops ?"); + OSL_ENSURE(nAdd <= 255, "more than 255 added tabstops?"); + OSL_ENSURE(nDel <= 255, "more than 244 removed tabstops?"); if (nAdd > 255) nAdd = 255; if (nDel > 255) diff --git a/sw/source/filter/ww8/ww8graf.hxx b/sw/source/filter/ww8/ww8graf.hxx index 565e51f1abc3..41e0bbe0d119 100644 --- a/sw/source/filter/ww8/ww8graf.hxx +++ b/sw/source/filter/ww8/ww8graf.hxx @@ -75,7 +75,7 @@ public: const SvxMSDffShapeOrders *pShapeOrders); void InsertTextLayerObject(SdrObject* pObject); /* - cmc: We should have have separate ZOrder classes for 95- and 97+ and + cmc: We should have separate ZOrder classes for 95- and 97+ and instantiate the appropriate one at run time. */ void InsertDrawingObject(SdrObject* pObj, short nWwHeight); diff --git a/sw/source/filter/ww8/ww8graf2.cxx b/sw/source/filter/ww8/ww8graf2.cxx index 6be482ca6f8a..711f04b15ca9 100644 --- a/sw/source/filter/ww8/ww8graf2.cxx +++ b/sw/source/filter/ww8/ww8graf2.cxx @@ -96,7 +96,7 @@ sal_uInt16 wwZOrderer::GetEscherObjectIdx(sal_uLong nSpId) { sal_uInt16 nFound=0; sal_uInt16 nShapeCount = mpShapeOrders ? mpShapeOrders->size() : 0; - // First, find out what position this shape is in in the Escher order. + // First, find out what position this shape is in the Escher order. for (sal_uInt16 nShapePos=0; nShapePos < nShapeCount; nShapePos++) { const SvxMSDffShapeOrder& rOrder = (*mpShapeOrders)[nShapePos]; diff --git a/sw/source/filter/ww8/ww8par.hxx b/sw/source/filter/ww8/ww8par.hxx index 953ee5e4bd5f..74842144697b 100644 --- a/sw/source/filter/ww8/ww8par.hxx +++ b/sw/source/filter/ww8/ww8par.hxx @@ -1176,7 +1176,7 @@ private: wwExtraneousParas m_aExtraneousParas; /* - A map of of tables to their follow nodes for use in inserting tables into + A map of tables to their follow nodes for use in inserting tables into already existing document, i.e. insert file */ sw::util::InsertedTablesManager maInsertedTables; @@ -1219,7 +1219,7 @@ private: std::deque<bool> maApos; typedef std::deque<bool>::const_iterator mycApoIter; /* - Keep track of generated Ruby character formats we we can minimize the + Keep track of generated Ruby character formats we can minimize the number of character formats created */ std::vector<const SwCharFmt*> aRubyCharFmts; diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx index 2d10e4af87ec..f3c154d19b10 100644 --- a/sw/source/filter/ww8/ww8par2.cxx +++ b/sw/source/filter/ww8/ww8par2.cxx @@ -328,7 +328,7 @@ sal_uInt16 SwWW8ImplReader::End_Ftn() bFtnEdn = bOld; OSL_ENSURE(sChar.getLength()==1 && ((rDesc.mbAutoNum == (sChar[0] == 2))), - "footnote autonumbering must be 0x02, and everthing else must not be"); + "footnote autonumbering must be 0x02, and everything else must not be"); // If no automatic numbering use the following char from the main text // as the footnote number @@ -467,7 +467,7 @@ ApoTestResults SwWW8ImplReader::TestApo(int nCellLevel, bool bTableRowEnd, #i1140# If I have a table and apply a style to one of its frames that should cause a paragraph that its applied to it to only exist as a separate floating - frame, then the behavour depends on which cell that it has been applied + frame, then the behaviour depends on which cell that it has been applied to. If its the first cell of a row then the whole table row jumps into the new frame, if its not then then the paragraph attributes are applied "except" for the floating frame stuff. i.e. its ignored. So if theres a diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx index 0a6f6cf97c4f..fb2251f5be2e 100644 --- a/sw/source/filter/ww8/ww8par5.cxx +++ b/sw/source/filter/ww8/ww8par5.cxx @@ -3423,7 +3423,7 @@ eF_ResT SwWW8ImplReader::Read_F_Hyperlink( WW8FieldDesc* /*pF*/, OUString& rStr } //As an attribute this needs to be closed, and that'll happen from - //EndExtSprm in conjunction with the maFieldStack If there are are flyfrms + //EndExtSprm in conjunction with the maFieldStack. If there are flyfrms //between the start and begin, their hyperlinks will be set at that time //as well. pCtrlStck->NewAttr( *pPaM->GetPoint(), aURL ); diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index 8a375bf5273f..c071cbd1378c 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -75,7 +75,7 @@ namespace SL namespace { /** - winword strings are typically Belt and Braces strings preceeded with a + winword strings are typically Belt and Braces strings preceded with a pascal style count, and ending with a c style 0 terminator. 16bit chars and count for ww8+ and 8bit chars and count for ww7-. The count and 0 can be checked for integrity to catch errors (e.g. lotus created @@ -1013,7 +1013,7 @@ void WW8PLCFx_PCDAttrs::GetSprms(WW8PLCFxDesc* p) aShortSprm[1] = (sal_uInt8)( nPrm >> 8 ); p->nSprmsLen = ( nPrm ) ? 2 : 0; // length - // store Postion of internal mini storage in Data Pointer + // store Position of internal mini storage in Data Pointer p->pMemPos = aShortSprm; } else @@ -1113,7 +1113,7 @@ void WW8PLCFx_PCDAttrs::GetSprms(WW8PLCFxDesc* p) // store Sprm Length in member: p->nSprmsLen = ( nPrm ) ? 3 : 0; - // store Postion of internal mini storage in Data Pointer + // store Position of internal mini storage in Data Pointer p->pMemPos = aShortSprm; } } @@ -6499,7 +6499,7 @@ WW8PLCF_HdFt::WW8PLCF_HdFt( SvStream* pSt, WW8Fib& rFib, WW8Dop& rDop ) footnote *and endnote!!* separator,continuation separator, and continuation notice entry, the documentation does not mention the endnote separators, the documentation also gets the index numbers - backwards when specifiying which bits to test. The bottom six bits + backwards when specifying which bits to test. The bottom six bits of this value must be tested and skipped over. Each section's grpfIhdt is then tested for the existence of the appropriate headers and footers, at the end of each section the nIdxOffset must be updated diff --git a/sw/source/filter/ww8/ww8scan.hxx b/sw/source/filter/ww8/ww8scan.hxx index 95ed4281d303..a3ce96fefd72 100644 --- a/sw/source/filter/ww8/ww8scan.hxx +++ b/sw/source/filter/ww8/ww8scan.hxx @@ -1551,12 +1551,12 @@ public: // compatibility options bool copts_fNoTabForInd : 1; // when 1, don't add automatic tab stops for hanging indent bool copts_fNoSpaceRaiseLower : 1; // when 1, don't add extra space for raised or lowered characters - bool copts_fSupressSpbfAfterPgBrk : 1; // when 1, supress the paragraph Space Before and Space After options after a page break + bool copts_fSupressSpbfAfterPgBrk : 1; // when 1, suppress the paragraph Space Before and Space After options after a page break bool copts_fWrapTrailSpaces : 1; // when 1, wrap trailing spaces at the end of a line to the next line bool copts_fMapPrintTextColor : 1; // when 1, print colors as black on non-color printers bool copts_fNoColumnBalance : 1; // when 1, don't balance columns for Continuous Section starts bool copts_fConvMailMergeEsc : 1; - bool copts_fSupressTopSpacing : 1; // when 1, supress extra line spacing at top of page + bool copts_fSupressTopSpacing : 1; // when 1, suppress extra line spacing at top of page bool copts_fOrigWordTableRules : 1; // when 1, combine table borders like Word 5.x for the Macintosh bool copts_fTransparentMetafiles : 1; // when 1, don't blank area between metafile pictures bool copts_fShowBreaksInFrames : 1; // when 1, show hard page or column breaks in frames diff --git a/sw/source/ui/envelp/envfmt.cxx b/sw/source/ui/envelp/envfmt.cxx index fd44a8293976..627661d8c529 100644 --- a/sw/source/ui/envelp/envfmt.cxx +++ b/sw/source/ui/envelp/envfmt.cxx @@ -59,7 +59,7 @@ namespace { /// specification is two consecutive entries that specify /// the start and end points of the range. /// @returns A vector containing one element for each item covered by the - /// ranges. This is not gauranteed to be sorted and may contain + /// ranges. This is not guaranteed to be sorted and may contain /// duplicates if the original ranges contained overlaps. static std::vector<sal_uInt16> lcl_convertRangesToList(const sal_uInt16 aRanges[]) { std::vector<sal_uInt16> aVec; diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx index 704899267032..360c080c9a26 100644 --- a/sw/source/ui/fldui/fldref.cxx +++ b/sw/source/ui/fldui/fldref.cxx @@ -661,7 +661,7 @@ sal_Int32 SwFldRefPage::FillFormatLB(sal_uInt16 nTypeId) // fill Format-Listbox m_pFormatLB->Clear(); - // refernce has less that the annotation + // reference has less that the annotation sal_uInt16 nSize( 0 ); bool bAddCrossRefFormats( false ); switch (nTypeId) diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index 74e65638caec..70b06ab6cc20 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -242,7 +242,7 @@ SwMultiTOXTabDialog::SwMultiTOXTabDialog(vcl::Window* pParent, const SfxItemSet& pDescArr = new SwTOXDescription*[nTypeCount]; pxIndexSectionsArr = new SwIndexSections_Impl*[nTypeCount]; //the standard user index is on position TOX_USER - //all user user indexes follow after position TOX_AUTHORITIES + //all user indexes follow after position TOX_AUTHORITIES if(pCurTOX) { bEditTOX = true; diff --git a/sw/source/ui/vba/vbaborders.cxx b/sw/source/ui/vba/vbaborders.cxx index 907d578097e4..6d5eaf814d44 100644 --- a/sw/source/ui/vba/vbaborders.cxx +++ b/sw/source/ui/vba/vbaborders.cxx @@ -38,7 +38,7 @@ typedef InheritedHelperInterfaceImpl1<word::XBorder > SwVbaBorder_Base; // borders, the enumeration will match the order in this list static const sal_Int16 supportedIndexTable[] = { word::WdBorderType::wdBorderBottom, word::WdBorderType::wdBorderDiagonalDown, word::WdBorderType::wdBorderDiagonalUp, word::WdBorderType::wdBorderHorizontal, word::WdBorderType::wdBorderLeft, word::WdBorderType::wdBorderRight, word::WdBorderType::wdBorderTop, word::WdBorderType::wdBorderVertical }; -// Equiv widths in in 1/100 mm +// Equiv widths in 1/100 mm const static sal_Int32 OOLineHairline = 2; class SwVbaBorder : public SwVbaBorder_Base diff --git a/sw/source/ui/vba/vbadocuments.cxx b/sw/source/ui/vba/vbadocuments.cxx index 6b40b3de0427..670aa93ccfbc 100644 --- a/sw/source/ui/vba/vbadocuments.cxx +++ b/sw/source/ui/vba/vbadocuments.cxx @@ -89,7 +89,7 @@ SwVbaDocuments::getElementType() throw (uno::RuntimeException) uno::Reference< container::XEnumeration > SwVbaDocuments::createEnumeration() throw (uno::RuntimeException) { - // #FIXME its possible the DocumentEnumImpl here doens't reflect + // #FIXME its possible the DocumentEnumImpl here doesn't reflect // the state of this object ( although it should ) would be // safer to create an enumeration based on this objects state // rather than one effectively based of the desktop component diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx index 8556b97e010e..003a2323a73e 100644 --- a/sw/source/uibase/app/apphdl.cxx +++ b/sw/source/uibase/app/apphdl.cxx @@ -482,7 +482,7 @@ IMPL_LINK( SwMailMergeWizardExecutor, EndDialogHdl, AbstractMailMergeWizard*, pD m_pView2Close = pTargetView; pTargetView->GetViewFrame()->GetTopViewFrame()->GetWindow().Hide(); pSourceView->GetViewFrame()->GetFrame().AppearWithUpdate(); - // the current view has be be set when the target is destroyed + // the current view has be set when the target is destroyed m_pView = pSourceView; m_pMMConfig->SetTargetView(0); diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index a090937e9c91..e12fce28cfb9 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -739,7 +739,7 @@ bool SwEditWin::IsInputSequenceCheckingRequired( const OUString &rText, const Sw return (0 <= nCTLScriptPos && nCTLScriptPos <= rText.getLength()); } -//return INVALID_HINT if language should not be explictly overridden, the correct +//return INVALID_HINT if language should not be explicitly overridden, the correct //HintId to use for the eBufferLanguage otherwise static sal_uInt16 lcl_isNonDefaultLanguage(LanguageType eBufferLanguage, SwView& rView, const OUString &rInBuffer) @@ -4187,7 +4187,7 @@ void SwEditWin::MouseMove(const MouseEvent& _rMEvt) m_aSaveCallEvent.Set( EVENT_OBJECT_URLITEM, pFmt ); } - // should be be over a InternetField with an + // should be over a InternetField with an // embedded macro? if( m_aSaveCallEvent != aLastCallEvent ) { diff --git a/sw/source/uibase/envelp/labelcfg.cxx b/sw/source/uibase/envelp/labelcfg.cxx index 809df914ea95..f1f608c24be5 100644 --- a/sw/source/uibase/envelp/labelcfg.cxx +++ b/sw/source/uibase/envelp/labelcfg.cxx @@ -313,7 +313,7 @@ void SwLabelConfig::SaveLabel( const OUString& rManufacturer, } else { - // get the appropiate node + // get the appropriate node OUString sManufacturer( wrapConfigurationElementName( rManufacturer ) ); const Sequence<OUString> aLabels = GetNodeNames( sManufacturer ); const OUString* pLabels = aLabels.getConstArray(); diff --git a/sw/source/uibase/inc/uitool.hxx b/sw/source/uibase/inc/uitool.hxx index 8e2d596c3608..765087f55397 100644 --- a/sw/source/uibase/inc/uitool.hxx +++ b/sw/source/uibase/inc/uitool.hxx @@ -100,7 +100,7 @@ SwTwips GetTableWidth( SwFrmFmt* pFmt, SwTabCols& rCols, sal_uInt16 *pPercent, OUString GetAppLangDateTimeString( const DateTime& ); -// search for a command string withing the menu structure and execute it +// search for a command string within the menu structure and execute it // at the dispatcher if there is one, if executed return true bool ExecuteMenuCommand( PopupMenu& rMenu, SfxViewFrame& rViewFrame, sal_uInt16 nId ); diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx index 50f6925cbc6a..21cfa2ee7324 100644 --- a/sw/source/uibase/lingu/olmenu.cxx +++ b/sw/source/uibase/lingu/olmenu.cxx @@ -474,7 +474,7 @@ m_aInfo16( SW_RES(IMG_INFO_16) ) if (bUseImagesInMenus) SetItemImage( MN_SHORT_COMMENT, m_aInfo16 ); - // Add an item to show detailled infos if the FullCommentURL property is defined + // Add an item to show detailed infos if the FullCommentURL property is defined beans::PropertyValues aProperties = rResult.aErrors[ nErrorInResult ].aProperties; { sal_Int32 i = 0; diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx index 36078056ed17..90e441dddc02 100644 --- a/sw/source/uibase/shells/tabsh.cxx +++ b/sw/source/uibase/shells/tabsh.cxx @@ -1411,7 +1411,7 @@ void SwTableShell::ExecNumberFormat(SfxRequest& rReq) if(pArgs) pArgs->GetItemState(GetPool().GetWhich(nSlot), false, &pItem); - // Always aquire the language from the current cursor position. + // Always acquire the language from the current cursor position. LanguageType eLang = rSh.GetCurLang(); SvNumberFormatter* pFormatter = rSh.GetNumberFormatter(); sal_uInt32 nNumberFormat = NUMBERFORMAT_ENTRY_NOT_FOUND; diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index c94fa1fc5903..fc3d0ddacd8c 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -1002,7 +1002,7 @@ void SwTextShell::Execute(SfxRequest &rReq) } else if ( pDlg && pDlg->Execute() == RET_OK ) { - // Apply defaults if nessecary. + // Apply defaults if necessary. pSet = (SfxItemSet*)pDlg->GetOutputItemSet(); sal_uInt16 nNewDist; if( SfxItemState::SET == pSet->GetItemState( SID_ATTR_TABSTOP_DEFAULTS, false, &pItem ) && diff --git a/sw/source/uibase/uiview/pview.cxx b/sw/source/uibase/uiview/pview.cxx index 9375cb18763c..4adc0a272e5c 100644 --- a/sw/source/uibase/uiview/pview.cxx +++ b/sw/source/uibase/uiview/pview.cxx @@ -1323,7 +1323,7 @@ void SwPagePreview::OuterResizePixel( const Point &rOfst, const Size &rSize ) SetVisArea( Rectangle( Point(), aBottomRight ) ); // Call of the DocSzChgd-Methode of the scrollbars is necessary, - // because from the maximum scoll range half the height of the + // because from the maximum scroll range half the height of the // VisArea is always deducted. if ( pVScrollbar && aTmpSize.Width() > 0 && aTmpSize.Height() > 0 ) { diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx index 64f9b729bdb2..daf170072ef9 100644 --- a/sw/source/uibase/uiview/view.cxx +++ b/sw/source/uibase/uiview/view.cxx @@ -1059,7 +1059,7 @@ SwView::~SwView() EndListening(*GetDocShell()); delete m_pScrollFill; delete m_pWrtShell; - m_pWrtShell = 0; // Set to 0, so that it is not accessable by the following dtors cannot. + m_pWrtShell = 0; // Set to 0, so that it is not accessible by the following dtors cannot. m_pShell = 0; delete m_pHScrollbar; delete m_pVScrollbar; diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx index 1625a884a7fc..e9591742b575 100644 --- a/sw/source/uibase/uiview/view2.cxx +++ b/sw/source/uibase/uiview/view2.cxx @@ -1637,7 +1637,7 @@ void SwView::StateStatusLine(SfxItemSet &rSet) } } -/** excecute method for the status line +/** execute method for the status line * * @param rReq ??? */ diff --git a/sw/source/uibase/uiview/viewsrch.cxx b/sw/source/uibase/uiview/viewsrch.cxx index 9e0eca819b2c..3e2bfbe3a09a 100644 --- a/sw/source/uibase/uiview/viewsrch.cxx +++ b/sw/source/uibase/uiview/viewsrch.cxx @@ -236,7 +236,7 @@ void SwView::ExecSearch(SfxRequest& rReq, bool bNoMessage) { // 1) Replace selection (Not if only attributes should be replaced) -//JP 27.04.95: Why ? +//JP 27.04.95: Why? // what if you only want to assign attributes to the found?? sal_uInt16 nCmd = SVX_SEARCHCMD_FIND; diff --git a/sw/source/uibase/uno/unomailmerge.cxx b/sw/source/uibase/uno/unomailmerge.cxx index f54a9df40155..2fd78f078ee0 100644 --- a/sw/source/uibase/uno/unomailmerge.cxx +++ b/sw/source/uibase/uno/unomailmerge.cxx @@ -247,7 +247,7 @@ namespace try { bool bDeliverOwnership = ( 0 == m_nPendingDeleteAttempts ); - // if this is our last attemt, then anybody which vetoes this has to take the consequences + // if this is our last attempt, then anybody which vetoes this has to take the consequences // (means take the ownership) m_xDocument->close( bDeliverOwnership ); bSuccess = true; @@ -402,7 +402,7 @@ SwXMailMerge::~SwXMailMerge() //! because there is no automatism that will do that later. //! #120086# if ( eVetoed == CloseModelAndDocSh( xModel, xDocSh ) ) - OSL_FAIL("owner ship transfered to vetoing object!" ); + OSL_FAIL("owner ship transferred to vetoing object!" ); xModel = 0; xDocSh = 0; // destroy doc shell diff --git a/sw/source/uibase/uno/unotxvw.cxx b/sw/source/uibase/uno/unotxvw.cxx index f5600e450691..07d93e8ea962 100644 --- a/sw/source/uibase/uno/unotxvw.cxx +++ b/sw/source/uibase/uno/unotxvw.cxx @@ -1146,7 +1146,7 @@ void SwXTextViewCursor::gotoRange( if(bExpand) { // The cursor should include everything that has been included - // by him and the transfered Range. + // by him and the transferred Range. SwPosition aOwnLeft(*aOwnPaM.Start()); SwPosition aOwnRight(*aOwnPaM.End()); SwPosition* pParamLeft = rDestPam.Start(); diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx index d670343b176a..e9168cc74b78 100644 --- a/sw/source/uibase/wrtsh/wrtsh1.cxx +++ b/sw/source/uibase/wrtsh/wrtsh1.cxx @@ -330,7 +330,7 @@ void SwWrtShell::Insert( const OUString &rPath, const OUString &rFilter, } // Insert an OLE-Objekt into the CORE. -// if no object is transfered, then one will be created. +// if no object is transferred, then one will be created. void SwWrtShell::InsertObject( const svt::EmbeddedObjectRef& xRef, SvGlobalName *pName, bool bActivate, sal_uInt16 nSlotId ) |