diff options
Diffstat (limited to 'sw')
40 files changed, 52 insertions, 52 deletions
diff --git a/sw/source/core/access/acccell.cxx b/sw/source/core/access/acccell.cxx index bd309045b420..43abdb36885c 100644 --- a/sw/source/core/access/acccell.cxx +++ b/sw/source/core/access/acccell.cxx @@ -115,7 +115,7 @@ sal_Bool SwAccessibleCell::_InvalidateMyCursorPos() if( bNew ) { // remember that object as the one that has the caret. This is - // neccessary to notify that object if the cursor leaves it. + // necessary to notify that object if the cursor leaves it. ::rtl::Reference < SwAccessibleContext > xThis( this ); GetMap()->SetCursorContext( xThis ); } diff --git a/sw/source/core/access/accframebase.cxx b/sw/source/core/access/accframebase.cxx index 3cad92b75756..c688991413f5 100644 --- a/sw/source/core/access/accframebase.cxx +++ b/sw/source/core/access/accframebase.cxx @@ -148,7 +148,7 @@ void SwAccessibleFrameBase::_InvalidateCursorPos() if( bNewSelected ) { // remember that object as the one that has the caret. This is - // neccessary to notify that object if the cursor leaves it. + // necessary to notify that object if the cursor leaves it. ::rtl::Reference < SwAccessibleContext > xThis( this ); GetMap()->SetCursorContext( xThis ); } diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index 6938c0106257..3a50c9f758a0 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -924,7 +924,7 @@ void SwAccessibleMap::AppendEvent( const SwAccessibleEvent_Impl& rEvent ) break; case SwAccessibleEvent_Impl::DISPOSE: // DISPOSE events overwrite all others. They are not stored - // but executed immediatly to avoid broadcasting of + // but executed immediately to avoid broadcasting of // defunctional objects. So what needs to be done here is to // remove all events for the frame in question. bAppendEvent = false; @@ -1439,7 +1439,7 @@ uno::Reference< XAccessible> SwAccessibleMap::GetContext( const SwFrm *pFrm, // focused state then. Sending the focus changes event // after that seems to be strange. However, we cannot // send a focus event fo the new context now, because - // noone except us knows it. In any case, we remeber + // noone except us knows it. In any case, we remember // the new context as the one that has the focus // currently. diff --git a/sw/source/core/access/accpage.cxx b/sw/source/core/access/accpage.cxx index a89fd015b9b3..861e557bbb50 100644 --- a/sw/source/core/access/accpage.cxx +++ b/sw/source/core/access/accpage.cxx @@ -80,7 +80,7 @@ void SwAccessiblePage::_InvalidateCursorPos() if( bNewSelected ) { // remember that object as the one that has the caret. This is - // neccessary to notify that object if the cursor leaves it. + // necessary to notify that object if the cursor leaves it. ::rtl::Reference < SwAccessibleContext > xThis( this ); GetMap()->SetCursorContext( xThis ); } diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 1a1d6396075e..c4df0e2d3b6a 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -426,7 +426,7 @@ void SwAccessibleParagraph::_InvalidateCursorPos() if( -1 != nNew ) { // remember that object as the one that has the caret. This is - // neccessary to notify that object if the cursor leaves it. + // necessary to notify that object if the cursor leaves it. ::rtl::Reference < SwAccessibleContext > xThis( this ); GetMap()->SetCursorContext( xThis ); } diff --git a/sw/source/core/access/accpara.hxx b/sw/source/core/access/accpara.hxx index 4d00f25a67e5..56b43f503830 100644 --- a/sw/source/core/access/accpara.hxx +++ b/sw/source/core/access/accpara.hxx @@ -168,7 +168,7 @@ protected: /// remove the current portion data void ClearPortionData(); - /// get portion data; update if necesary + /// get portion data; update if necessary SwAccessiblePortionData& GetPortionData() throw( com::sun::star::uno::RuntimeException ) { diff --git a/sw/source/core/bastyp/swrect.cxx b/sw/source/core/bastyp/swrect.cxx index b15b2f6f9ba5..40db66c52168 100644 --- a/sw/source/core/bastyp/swrect.cxx +++ b/sw/source/core/bastyp/swrect.cxx @@ -150,7 +150,7 @@ void SwRect::Justify() } } -// Similiar to the inline methods, but we need the function pointers +// Similar to the inline methods, but we need the function pointers void SwRect::_Width( const long nNew ) { m_Size.setWidth(nNew); } void SwRect::_Height( const long nNew ) { m_Size.setHeight(nNew); } void SwRect::_Left( const long nLeft ){ m_Size.Width() += m_Point.getX() - nLeft; m_Point.setX(nLeft); } diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx index 371426d7b255..c6a5c444c85f 100644 --- a/sw/source/core/doc/doc.cxx +++ b/sw/source/core/doc/doc.cxx @@ -1190,7 +1190,7 @@ sal_uInt16 _PostItFld::GetPageNo( //by more than one layout instance, //we have to decide whether it should be printed once or n-times. //Probably only once. For the page number we don't select a random one, - //but the PostIt's first occurence in the selected area. + //but the PostIt's first occurrence in the selected area. rVirtPgNo = 0; sal_uInt16 nPos = GetCntnt(); SwIterator<SwTxtFrm,SwTxtNode> aIter( GetFld()->GetTxtNode() ); diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx index 65022fac1689..3fd38389ba66 100644 --- a/sw/source/core/doc/doccomp.cxx +++ b/sw/source/core/doc/doccomp.cxx @@ -1598,7 +1598,7 @@ void SwCompareData::CheckForChangesInLine( const CompareData& rData, int nDstFrom = i ? pLcsDst[i - 1] + 1 : 0; // End of inserted lines (exclusive) int nDstTo = ( i == nLcsLen ) ? aCmp.GetLen1() : pLcsDst[i]; - // Begining of deleted lines (inclusive) + // Beginning of deleted lines (inclusive) int nSrcFrom = i ? pLcsSrc[i - 1] + 1 : 0; // End of deleted lines (exclusive) int nSrcTo = ( i == nLcsLen ) ? aCmp.GetLen2() : pLcsSrc[i]; diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx index 9c613e0011f6..903a7bce00d6 100644 --- a/sw/source/core/doc/doctxm.cxx +++ b/sw/source/core/doc/doctxm.cxx @@ -1702,7 +1702,7 @@ void SwTOXBaseSection::GenerateText( sal_uInt16 nArrayIdx, case TOKEN_PAGE_NUMS: // Place holder for the PageNumber; we only respect the first one { - // The count of similiar entries gives the PagerNumber pattern + // The count of similar entries gives the PagerNumber pattern size_t nSize = rBase.aTOXSources.size(); if (nSize > 0) { diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx index 41a29a5c0a51..065bb3fe6ccb 100644 --- a/sw/source/core/docnode/ndsect.cxx +++ b/sw/source/core/docnode/ndsect.cxx @@ -1163,7 +1163,7 @@ void SwSectionNode::MakeFrms(const SwNodeIndex & rIdx ) } } -// Create a new SectionFrm for every occurence in the Layout and insert before +// Create a new SectionFrm for every occurrence in the Layout and insert before // the corresponding CntntFrm void SwSectionNode::MakeFrms( SwNodeIndex* pIdxBehind, SwNodeIndex* pEndIdx ) { diff --git a/sw/source/core/draw/dflyobj.cxx b/sw/source/core/draw/dflyobj.cxx index 016b1cdd00a4..7564b283d3f7 100644 --- a/sw/source/core/draw/dflyobj.cxx +++ b/sw/source/core/draw/dflyobj.cxx @@ -626,7 +626,7 @@ void SwVirtFlyDrawObj::NbcMove(const Size& rSiz) const sal_Int16 eVert = pFmt->GetVertOrient().GetVertOrient(); const sal_Int16 eRelHori = pFmt->GetHoriOrient().GetRelationOrient(); const sal_Int16 eRelVert = pFmt->GetVertOrient().GetRelationOrient(); - //On paragraph bound Flys starting from the new postition a new + //On paragraph bound Flys starting from the new position a new //anchor must be set. Anchor and the new RelPos is calculated and //placed by the Fly itself. if( GetFlyFrm()->IsFlyAtCntFrm() ) diff --git a/sw/source/core/layout/flylay.cxx b/sw/source/core/layout/flylay.cxx index 5da50365be74..e9522c1de9cd 100644 --- a/sw/source/core/layout/flylay.cxx +++ b/sw/source/core/layout/flylay.cxx @@ -996,7 +996,7 @@ sal_Bool CalcClipRect( const SdrObject *pSdrObj, SwRect &rRect, sal_Bool bMove ) rRect = pClip->Frm(); SWRECTFN( pClip ) - // vertical clipping: Top and Bottom, also to PrtArea if neccessary + // vertical clipping: Top and Bottom, also to PrtArea if necessary if( rV.GetVertOrient() != text::VertOrientation::NONE && rV.GetRelationOrient() == text::RelOrientation::PRINT_AREA ) { diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index 3e9a642606e1..6643a29eaa39 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -2449,7 +2449,7 @@ void SwTabFrm::MakeAll() } // #119477# - // If splitting the table was successfull or not, + // If splitting the table was successful or not, // we do not want to have 'empty' follow tables. if ( GetFollow() && !GetFollow()->GetFirstNonHeadlineRow() ) Join(); diff --git a/sw/source/core/table/swnewtable.cxx b/sw/source/core/table/swnewtable.cxx index ad4eec6dd668..23edc85fee3f 100644 --- a/sw/source/core/table/swnewtable.cxx +++ b/sw/source/core/table/swnewtable.cxx @@ -257,7 +257,7 @@ static void lcl_ChangeRowSpan( const SwTable& rTable, const long nDiff, do { bGoOn = false; // will be set to true if we found a non-master cell - // which has to be manipulated => we have to chekc the previous row, too. + // which has to be manipulated => we have to check the previous row, too. const SwTableLine* pLine = rTable.GetTabLines()[ nRowIdx ]; sal_uInt16 nBoxCount = pLine->GetTabBoxes().size(); for( sal_uInt16 nCurrBox = 0; nCurrBox < nBoxCount; ++nCurrBox ) diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx index 3eb2267660b1..ef21551566b1 100644 --- a/sw/source/core/text/txtfrm.cxx +++ b/sw/source/core/text/txtfrm.cxx @@ -2473,7 +2473,7 @@ MSHORT SwTxtFrm::GetLineCount( xub_StrLen nPos ) void SwTxtFrm::ChgThisLines() { - //not necassary to format here (GerFormatted etc.), because we have to come from there! + //not necessary to format here (GerFormatted etc.), because we have to come from there! sal_uLong nNew = 0; const SwLineNumberInfo &rInf = GetNode()->getIDocumentLineNumberAccess()->GetLineNumberInfo(); diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx index 20015fa23d93..fb4f5236b512 100644 --- a/sw/source/core/txtnode/fntcache.cxx +++ b/sw/source/core/txtnode/fntcache.cxx @@ -2567,7 +2567,7 @@ sal_Bool SwDrawTextInfo::ApplyAutoColor( Font* pFont ) !SW_MOD()->GetAccessibilityOptions().GetIsForPagePreviews()) nNewColor = COL_BLACK; else - // we take the font color from the appearence page + // we take the font color from the appearance page nNewColor = SwViewOption::GetFontColor().GetColor(); } diff --git a/sw/source/core/undo/unattr.cxx b/sw/source/core/undo/unattr.cxx index 3dd50c5496dc..8a194d009b57 100644 --- a/sw/source/core/undo/unattr.cxx +++ b/sw/source/core/undo/unattr.cxx @@ -180,7 +180,7 @@ void SwUndoFmtAttr::UndoImpl(::sw::UndoRedoContext & rContext) if ( !m_pOldSet.get() || !m_pFmt || !IsFmtInDoc( &rContext.GetDoc() )) return; - // #i35443# - If anchor attribute has been successfull + // #i35443# - If anchor attribute has been successful // restored, all other attributes are also restored. // Thus, keep track of its restoration bool bAnchorAttrRestored( false ); @@ -189,7 +189,7 @@ void SwUndoFmtAttr::UndoImpl(::sw::UndoRedoContext & rContext) bAnchorAttrRestored = RestoreFlyAnchor(rContext); if ( bAnchorAttrRestored ) { - // Anchor attribute successfull restored. + // Anchor attribute successful restored. // Thus, keep anchor position for redo SaveFlyAnchor(); } diff --git a/sw/source/core/undo/undobj1.cxx b/sw/source/core/undo/undobj1.cxx index 5ca6b4c7a524..b2791fae0930 100644 --- a/sw/source/core/undo/undobj1.cxx +++ b/sw/source/core/undo/undobj1.cxx @@ -102,7 +102,7 @@ void SwUndoFlyBase::InsFly(::sw::UndoRedoContext & rContext, bool bShowSelFrm) // Set InCntntAttribute not until there is content! // Otherwise the layout would format the Fly beforehand but would not find - // content; this happend with graphics from the internet. + // content; this happened with graphics from the internet. if (FLY_AS_CHAR == nRndId) { // there must be at least the attribute in a TextNode diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx index 9651d91c785f..f2e0bd062cef 100644 --- a/sw/source/core/unocore/unotext.cxx +++ b/sw/source/core/unocore/unotext.cxx @@ -1620,7 +1620,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException) { // todo: if the start/end is in a table then insert a paragraph // before/after, move the start/end nodes, then convert and - // remove the addtional paragraphs in the end + // remove the additional paragraphs in the end if (pStartStartNode->GetStartNodeType() == SwTableBoxStartNode) { SwTableNode * pStartTableNode(pStartStartNode->FindTableNode()); diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx index c048e3eb053c..48113a6a02cb 100644 --- a/sw/source/filter/html/swhtml.cxx +++ b/sw/source/filter/html/swhtml.cxx @@ -3006,7 +3006,7 @@ void SwHTMLParser::EndAttr( _HTMLAttr* pAttr, _HTMLAttr **ppDepAttr, OSL_ENSURE( ppHead, "keinen Attributs-Listenkopf gefunden!" ); - // die aktuelle Psoition als Ende-Position merken + // die aktuelle Position als Ende-Position merken const SwNodeIndex* pEndIdx = &pPam->GetPoint()->nNode; xub_StrLen nEndCnt = pPam->GetPoint()->nContent.GetIndex(); @@ -5213,7 +5213,7 @@ void SwHTMLParser::InsertLineBreak() } else if( pPam->GetPoint()->nContent.GetIndex() ) { - // wenn ein Claer in einem nicht-leeren Absatz ausgefuehrt wurde, + // wenn ein clear in einem nicht-leeren Absatz ausgefuehrt wurde, // muss anschliessen ein neuer Absatz aufgemacht werden // MIB 21.02.97: Eigentlich muesste man hier den unteren Absatz- // Absatnd auf 0 drehen. Das geht aber bei sowas wie <BR ..><P> diff --git a/sw/source/filter/html/wrthtml.cxx b/sw/source/filter/html/wrthtml.cxx index 0da5a9af7f1c..fc9181df08f0 100644 --- a/sw/source/filter/html/wrthtml.cxx +++ b/sw/source/filter/html/wrthtml.cxx @@ -694,7 +694,7 @@ static Writer& OutHTML_Section( Writer& rWrt, const SwSectionNode& rSectNd ) } // The surrounding section must be closed before the current one is - // opended, except that it start immediatly before the current one or + // opended, except that it start immediately before the current one or // another end immediately before the current one if( pSurrCol && nSectSttIdx - pSurrSectNd->GetIndex() > 1 && !lcl_html_IsMultiColEnd( rHTMLWrt, nSectSttIdx-1 ) ) diff --git a/sw/source/filter/writer/wrtswtbl.cxx b/sw/source/filter/writer/wrtswtbl.cxx index c78d006ba4f1..7a1123d169d3 100644 --- a/sw/source/filter/writer/wrtswtbl.cxx +++ b/sw/source/filter/writer/wrtswtbl.cxx @@ -541,7 +541,7 @@ void SwWriteTable::FillTableRowsCols( long nStartRPos, sal_uInt16 nStartRow, { const SwTableLine *pLine = rLines[nLine]; - // Determine the postition of the last covered row + // Determine the position of the last covered row long nOldRPos = nRPos; if( nLine < nLines-1 || nParentLineHeight==0 ) { @@ -629,7 +629,7 @@ void SwWriteTable::FillTableRowsCols( long nStartRPos, sal_uInt16 nStartRow, { const SwTableBox *pBox = rBoxes[nBox]; - // Determine the postition of the last covered column + // Determine the position of the last covered column sal_uInt32 nOldCPos = nCPos; if( nBox < nBoxes-1 || (nParentLineWidth==0 && nLine==0) ) { diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index b7e211ffb8e5..b40b70dbe1f4 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -2557,7 +2557,7 @@ void DocxAttributeOutput::OutputFlyFrame_Impl( const sw::Frame &rFrame, const Po { if( m_postponedGraphic == NULL ) FlyFrameGraphic( pGrfNode, rFrame.GetLayoutSize() ); - else // we are writting out attributes, but w:drawing should not be inside w:rPr, + else // we are writing out attributes, but w:drawing should not be inside w:rPr, { // so write it out later m_postponedGraphic->push_back( PostponedGraphic( pGrfNode, rFrame.GetLayoutSize())); } @@ -3994,7 +3994,7 @@ void DocxAttributeOutput::WriteFootnoteEndnotePr( ::sax_fastparser::FSHelperPtr if( info.nFtnOffset != 0 ) fs->singleElementNS( XML_w, XML_numStart, FSNS( XML_w, XML_val ), rtl::OString::valueOf( sal_Int32( info.nFtnOffset + 1 )).getStr(), FSEND ); - if( listtag != 0 ) // we are writting to settings.xml, write also special footnote/endnote list + if( listtag != 0 ) // we are writing to settings.xml, write also special footnote/endnote list { // there are currently only two hardcoded ones ( see FootnotesEndnotes()) fs->singleElementNS( XML_w, listtag, FSNS( XML_w, XML_id ), "0", FSEND ); fs->singleElementNS( XML_w, listtag, FSNS( XML_w, XML_id ), "1", FSEND ); diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx index 15796d2d8a73..1e2b1b65f1a9 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.cxx +++ b/sw/source/filter/ww8/rtfattributeoutput.cxx @@ -1955,7 +1955,7 @@ void RtfAttributeOutput::CharKerning( const SvxKerningItem& rKerning ) { SAL_INFO("sw.rtf", OSL_THIS_FUNC); - // in quater points then in twips + // in quarter points then in twips m_aStyles.append(OOO_STRING_SVTOOLS_RTF_EXPND); m_aStyles.append((sal_Int32)(rKerning.GetValue() / 5)); m_aStyles.append(OOO_STRING_SVTOOLS_RTF_EXPNDTW); diff --git a/sw/source/filter/ww8/wrtw8esh.cxx b/sw/source/filter/ww8/wrtw8esh.cxx index 12eabd2dba98..3d9caf3b2ec7 100644 --- a/sw/source/filter/ww8/wrtw8esh.cxx +++ b/sw/source/filter/ww8/wrtw8esh.cxx @@ -593,7 +593,7 @@ void PlcDrawObj::WritePlc( WW8Export& rWrt ) const SwTwips nLeft = aRect.Left() + nThick; SwTwips nRight = aRect.Right() - nThick; - //Nasty swap for bidi if neccessary + //Nasty swap for bidi if necessary rWrt.MiserableRTLFrmFmtHack(nLeft, nRight, rFrmFmt); //xaLeft/yaTop/xaRight/yaBottom - rel. to anchor diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx index fd1cfa4f67d1..9881fff3baac 100644 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -1612,7 +1612,7 @@ void MSWordExportBase::UpdatePosition( SwWW8AttrIter* aAttrIter, xub_StrLen nAkt xub_StrLen nNextPos; // go to next attribute if no bookmark is found or if the bookmark is behind the next attribute position - // It may happend that the WhereNext() wasn't used in the previous increment because there was a + // It may happened that the WhereNext() wasn't used in the previous increment because there was a // bookmark before it. Use that position before trying to find another one. bool bNextBookmark = NearestBookmark( nNextPos, nAktPos, true ); if( nAktPos == aAttrIter->WhereNext() && ( !bNextBookmark || nNextPos > aAttrIter->WhereNext() ) ) diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index 67eb8cf57cff..f19c11b83372 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -2891,7 +2891,7 @@ bool SwWW8Writer::InitStd97CodecUpdateMedium( ::msfilter::MSCodec_Std97& rCodec mpMedium->GetItemSet()->ClearItem( SID_PASSWORD ); } - // nonempty encryption data means hier that the codec was successfuly initialized + // nonempty encryption data means hier that the codec was successfully initialized return ( aEncryptionData.getLength() != 0 ); } diff --git a/sw/source/filter/ww8/wrtww8.hxx b/sw/source/filter/ww8/wrtww8.hxx index b405f59ae604..d9d82d85a8e1 100644 --- a/sw/source/filter/ww8/wrtww8.hxx +++ b/sw/source/filter/ww8/wrtww8.hxx @@ -1058,7 +1058,7 @@ public: SwTwips CurrentPageWidth(SwTwips &rLeft, SwTwips &rRight) const; - /// Nasty swap for bidi if neccessary + /// Nasty swap for bidi if necessary bool MiserableRTLFrmFmtHack(SwTwips &rLeft, SwTwips &rRight, const sw::Frame &rFrmFmt); diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index 39c8939b2f25..c37da4aaae82 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -328,7 +328,7 @@ bool wwSectionManager::SetCols(SwFrmFmt &rFmt, const wwSection &rSection, //sprmSCcolumns - number of columns - 1 const sal_Int16 nCols = rSection.NoCols(); - if (nCols < 2) //check for no columns or other wierd state + if (nCols < 2) //check for no columns or other weird state return false; SwFmtCol aCol; // Create SwFmtCol diff --git a/sw/source/filter/xml/swxml.cxx b/sw/source/filter/xml/swxml.cxx index ed3581943271..83b4acabd85b 100644 --- a/sw/source/filter/xml/swxml.cxx +++ b/sw/source/filter/xml/swxml.cxx @@ -323,7 +323,7 @@ sal_Int32 ReadThroughComponent( if (!bContainsStream ) { // stream name not found! Then try the compatibility name. - // if no stream can be opened, return immediatly with OK signal + // if no stream can be opened, return immediately with OK signal // do we even have an alternative name? if ( NULL == pCompatibilityStreamName ) diff --git a/sw/source/ui/app/docsh2.cxx b/sw/source/ui/app/docsh2.cxx index e30f8f7fbad0..253d9588fa55 100644 --- a/sw/source/ui/app/docsh2.cxx +++ b/sw/source/ui/app/docsh2.cxx @@ -419,7 +419,7 @@ sal_Bool SwDocShell::Insert( SfxObjectShell &rSource, // SwDocStyleSheetPool::aStyleSheet that uses same members of // SwDocStyleSheetPool::Find. Therefore a copy has to be used // here. Attention: SfxStylessheetBase::SetFollow calls itself - // a SwDocStyleSheetPool::Find, so that it's not sufficiant to + // a SwDocStyleSheetPool::Find, so that it's not sufficient to // to eliminate the Find-calls in this method. rtl::Reference< SwDocStyleSheet > xNewSheet( new SwDocStyleSheet( (SwDocStyleSheet&)pMyPool diff --git a/sw/source/ui/dochdl/swdtflvr.cxx b/sw/source/ui/dochdl/swdtflvr.cxx index f6670eabbf5c..92d7a976472f 100644 --- a/sw/source/ui/dochdl/swdtflvr.cxx +++ b/sw/source/ui/dochdl/swdtflvr.cxx @@ -2112,7 +2112,7 @@ int SwTransferable::_PasteDDE( TransferableDataHelper& rData, if( !pDDETyp && !bDoublePaste ) { - // remove FieldType again - error occured! + // remove FieldType again - error occurred! for( j = nSize; j >= INIT_FLDTYPES; --j ) if( pTyp == rWrtShell.GetFldType( j ) ) { diff --git a/sw/source/ui/docvw/PostItMgr.cxx b/sw/source/ui/docvw/PostItMgr.cxx index 8d7148c83130..6e6f80e79789 100644 --- a/sw/source/ui/docvw/PostItMgr.cxx +++ b/sw/source/ui/docvw/PostItMgr.cxx @@ -548,9 +548,9 @@ void SwPostItMgr::LayoutPostIts() mbLayouting = true; //loop over all pages and do the layout - // - create SwPostIt if neccessary + // - create SwPostIt if necessary // - place SwPostIts on their initial position - // - calculate neccessary height for all PostIts together + // - calculate necessary height for all PostIts together bool bUpdate = false; for (unsigned long n=0;n<mPages.size();n++) { @@ -784,7 +784,7 @@ bool SwPostItMgr::BorderOverPageBorder(unsigned long aPage) const void SwPostItMgr::Scroll(const long lScroll,const unsigned long aPage) { OSL_ENSURE((lScroll % GetScrollSize() )==0,"SwPostItMgr::Scroll: scrolling by wrong value"); - // do not scroll more than neccessary up or down + // do not scroll more than necessary up or down if ( ((mPages[aPage-1]->lOffset == 0) && (lScroll>0)) || ( BorderOverPageBorder(aPage) && (lScroll<0)) ) return; @@ -928,7 +928,7 @@ bool SwPostItMgr::LayoutByPage(std::list<SwSidebarWin*> &aVisiblePostItList,cons long lTranslatePos = 0; bool bScrollbars = false; - // do all neccessary resizings + // do all necessary resizings if (lVisibleHeight < lNeededHeight) { // ok, now we have to really resize and adding scrollbars @@ -1124,7 +1124,7 @@ void SwPostItMgr::RemoveSidebarWin() } // copy to new vector, otherwise RemoveItem would operate and delete stuff on mvPostItFlds as well -// RemoveItem will clean up the core field and visible postit if neccessary +// RemoveItem will clean up the core field and visible postit if necessary // we cannot just delete everything as before, as postits could move into change tracking void SwPostItMgr::Delete(String aAuthor) { diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx index 6ea97a06a934..35387293b6a3 100644 --- a/sw/source/ui/docvw/edtwin.cxx +++ b/sw/source/ui/docvw/edtwin.cxx @@ -5596,7 +5596,7 @@ void SwEditWin::SetChainMode( sal_Bool bOn ) uno::Reference< ::com::sun::star::accessibility::XAccessible > SwEditWin::CreateAccessible() { - SolarMutexGuard aGuard; // this should have happend already!!! + SolarMutexGuard aGuard; // this should have happened already!!! SwWrtShell *pSh = rView.GetWrtShellPtr(); OSL_ENSURE( pSh, "no writer shell, no accessible object" ); uno::Reference< @@ -5831,7 +5831,7 @@ void SwEditWin::ShowAutoTextCorrectQuickHelp( !pACorr || pACorr->GetSwFlags().bAutoCmpltShowAsTip; - // Get the neccessary data to show help text. + // Get the necessary data to show help text. pQuickHlpData->FillStrArr( rSh, rWord, bFromIME ); } diff --git a/sw/source/ui/inc/tablemgr.hxx b/sw/source/ui/inc/tablemgr.hxx index 368bfe01de61..c83e9857b720 100644 --- a/sw/source/ui/inc/tablemgr.hxx +++ b/sw/source/ui/inc/tablemgr.hxx @@ -71,7 +71,7 @@ public: // @deprecated void UpdateChart(); - /// @return the XModel of the newly inserted chart if successfull + /// @return the XModel of the newly inserted chart if successful ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > InsertChart( ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataProvider > &rxDataProvider, sal_Bool bFillWithData, const rtl::OUString &rCellRange, SwFlyFrmFmt** ppFlyFrmFmt = 0 ); }; diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx index 06b4083062e5..8dac55f991fe 100644 --- a/sw/source/ui/index/swuiidxmrk.cxx +++ b/sw/source/ui/index/swuiidxmrk.cxx @@ -222,7 +222,7 @@ void SwIndexMarkPane::InitControls() { // Controls-Handling - // onyl if there are more than one + // only if there are more than one // if equal it lands at the same entry pSh->SttCrsrMove(); @@ -937,7 +937,7 @@ IMPL_LINK( SwIndexMarkPane, KeyDCBModifyHdl, ComboBox *, pBox ) { if(pBox->IsInDropDown()) { - //reset bPhoneticED1_ChangedByUser if a completly new string is selected + //reset bPhoneticED1_ChangedByUser if a completely new string is selected bPhoneticED1_ChangedByUser = sal_False; } if(!bPhoneticED1_ChangedByUser) @@ -957,7 +957,7 @@ IMPL_LINK( SwIndexMarkPane, KeyDCBModifyHdl, ComboBox *, pBox ) { if(pBox->IsInDropDown()) { - //reset bPhoneticED1_ChangedByUser if a completly new string is selected + //reset bPhoneticED1_ChangedByUser if a completely new string is selected bPhoneticED2_ChangedByUser = sal_False; } if(!bPhoneticED2_ChangedByUser) diff --git a/sw/source/ui/shells/drwtxtex.cxx b/sw/source/ui/shells/drwtxtex.cxx index ad921351ac3f..1c2ad1bc5566 100644 --- a/sw/source/ui/shells/drwtxtex.cxx +++ b/sw/source/ui/shells/drwtxtex.cxx @@ -566,7 +566,7 @@ void SwDrawTextShell::GetState(SfxItemSet& rSet) !xThes.is() || nLang == LANGUAGE_NONE || !xThes->hasLocale( LanguageTag( nLang ).getLocale() )) rSet.DisableItem( SID_THES ); - //! avoid puting the same item as SfxBoolItem at the end of this function + //! avoid putting the same item as SfxBoolItem at the end of this function nSlotId = 0; break; } diff --git a/sw/source/ui/uiview/pview.cxx b/sw/source/ui/uiview/pview.cxx index 6894a6512580..9bb60185e007 100644 --- a/sw/source/ui/uiview/pview.cxx +++ b/sw/source/ui/uiview/pview.cxx @@ -1862,7 +1862,7 @@ sal_Bool SwPagePreView::HandleWheelCommands( const CommandEvent& rCEvt ) uno::Reference< ::com::sun::star::accessibility::XAccessible > SwPagePreViewWin::CreateAccessible() { - SolarMutexGuard aGuard; // this should have happend already!!! + SolarMutexGuard aGuard; // this should have happened already!!! OSL_ENSURE( GetViewShell() != NULL, "We need a view shell" ); return GetViewShell()->CreateAccessiblePreview(); diff --git a/sw/source/ui/uno/unomailmerge.cxx b/sw/source/ui/uno/unomailmerge.cxx index 66aad103d02b..a089e9064f3f 100644 --- a/sw/source/ui/uno/unomailmerge.cxx +++ b/sw/source/ui/uno/unomailmerge.cxx @@ -100,7 +100,7 @@ osl::Mutex & GetMailMergeMutex() enum CloseResult { eSuccess, // successfully closed - eVetoed, // vetoed, ownership transfered to the vetoing instance + eVetoed, // vetoed, ownership transferred to the vetoing instance eFailed // failed for some unknown reason }; static CloseResult CloseModelAndDocSh( |