diff options
author | Sven Wehner <wehner@informatik.uni-freiburg.de> | 2014-01-25 21:29:38 +0100 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-26 17:31:46 +0000 |
commit | a09ed6b93acc32ffff97fe8d651d065a0e2f0eaa (patch) | |
tree | d6129df221fc3f07a3f3f0cae27d1a4cce3ba913 /sw | |
parent | 5591e21e31837211e591dc3cda4b75dd35c5b03d (diff) |
fdo#39468 Translate comments to English in sw/source/core/unocore/unoobj.cxx
Change-Id: I67a3c80dbdfcd01e0bc0a38bc136a0f37b25c053
Reviewed-on: https://gerrit.libreoffice.org/7650
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unoobj.cxx | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx index abdf5eea7bbb..006279ea0dca 100644 --- a/sw/source/core/unocore/unoobj.cxx +++ b/sw/source/core/unocore/unoobj.cxx @@ -108,9 +108,7 @@ using namespace ::com::sun::star; -/**************************************************************************** - Hilfsklassen -****************************************************************************/ +// Helper classes SwUnoInternalPaM::SwUnoInternalPaM(SwDoc& rDoc) : SwPaM(rDoc.GetNodes()) { @@ -352,7 +350,7 @@ lcl_SetNodeNumStart(SwPaM & rCrsr, uno::Any const& rValue) SwDoc* pDoc = rCrsr.GetDoc(); UnoActionContext aAction(pDoc); - if( rCrsr.GetNext() != &rCrsr ) // Mehrfachselektion ? + if( rCrsr.GetNext() != &rCrsr ) // MultiSelection? { pDoc->GetIDocumentUndoRedo().StartUndo( UNDO_START, NULL ); SwPamRanges aRangeArr( rCrsr ); @@ -663,9 +661,7 @@ SwUnoCursorHelper::GetCurTxtFmtColl(SwPaM & rPaM, const bool bConditional) return (bError) ? 0 : pFmt; } -/****************************************************************** - * SwXTextCursor - ******************************************************************/ +// class SwXTextCursor class SwXTextCursor::Impl : public SwClient { @@ -1222,17 +1218,17 @@ throw (uno::RuntimeException) } } - //jetzt muss die Selektion erweitert werden + // selection has to be expanded here if(bExpand) { - // der Cursor soll alles einschliessen, was bisher von ihm und dem uebergebenen - // Range eingeschlossen wurde + // cursor should include its previous range plus the given range const SwPosition aOwnLeft(*rOwnCursor.Start()); const SwPosition aOwnRight(*rOwnCursor.End()); SwPosition const& rParamLeft = *pPam->Start(); SwPosition const& rParamRight = *pPam->End(); - // jetzt sind vier SwPositions da, zwei davon werden gebraucht, also welche? + // now there are four SwPositions, + // two of them are going to be used, but which ones? *rOwnCursor.GetPoint() = (aOwnRight > rParamRight) ? aOwnRight : *rOwnCursor.GetPoint() = rParamRight; rOwnCursor.SetMark(); @@ -1284,7 +1280,7 @@ SwXTextCursor::gotoNextWord(sal_Bool Expand) throw (uno::RuntimeException) SwUnoCrsr & rUnoCursor( m_pImpl->GetCursorOrThrow() ); - //Probleme gibt's noch mit einem Absatzanfang, an dem kein Wort beginnt. + // problems arise when a paragraph starts with something other than a word sal_Bool bRet = sal_False; // remember old position to check if cursor has moved // since the called functions are sometimes a bit unreliable @@ -1331,7 +1327,7 @@ SwXTextCursor::gotoPreviousWord(sal_Bool Expand) throw (uno::RuntimeException) SwUnoCrsr & rUnoCursor( m_pImpl->GetCursorOrThrow() ); - // hier machen Leerzeichen am Absatzanfang Probleme + // white spaces create problems on the paragraph start sal_Bool bRet = sal_False; SwPosition *const pPoint = rUnoCursor.GetPoint(); SwNode *const pOldNode = &pPoint->nNode.GetNode(); @@ -2163,7 +2159,7 @@ SwXTextCursor::getPropertySetInfo() throw (uno::RuntimeException) }; const uno::Reference< beans::XPropertySetInfo > xInfo = m_pImpl->m_rPropSet.getPropertySetInfo(); - // PropertySetInfo verlaengern! + // extend PropertySetInfo! const uno::Sequence<beans::Property> aPropSeq = xInfo->getProperties(); xRef = new SfxExtItemPropertySetInfo( aCrsrExtMap_Impl, @@ -2974,7 +2970,7 @@ throw (uno::RuntimeException) rUnoCursor.GetDoc()->SortText(rUnoCursor, aSortOpt); - // Selektion wieder setzen + // update selection rUnoCursor.DeleteMark(); rUnoCursor.GetPoint()->nNode.Assign( aPrevIdx.GetNode(), +1 ); SwCntntNode *const pCNd = rUnoCursor.GetCntntNode(); |