Kaydet (Commit) aebfd023 authored tarafından Matthias Freund's avatar Matthias Freund Kaydeden (comit) Fridrich Strba

Comment translation ger - eng in sw/source/ui/wrtsh/

Change-Id: I41317f0f6859e7d5c3c62703a21f5fe8983aac9c
Reviewed-on: https://gerrit.libreoffice.org/2812Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst 60c17b28
...@@ -82,11 +82,7 @@ bool SwWrtShell::TryRemoveIndent() ...@@ -82,11 +82,7 @@ bool SwWrtShell::TryRemoveIndent()
return bResult; return bResult;
} }
/*------------------------------------------------------------------------ /** Description: Erase the line. */
Description: Erase the line
------------------------------------------------------------------------*/
long SwWrtShell::DelLine() long SwWrtShell::DelLine()
{ {
...@@ -135,12 +131,12 @@ long SwWrtShell::DelLeft() ...@@ -135,12 +131,12 @@ long SwWrtShell::DelLeft()
const int nCmp = nsSelectionType::SEL_FRM | nsSelectionType::SEL_GRF | nsSelectionType::SEL_OLE | nsSelectionType::SEL_DRW; const int nCmp = nsSelectionType::SEL_FRM | nsSelectionType::SEL_GRF | nsSelectionType::SEL_OLE | nsSelectionType::SEL_DRW;
if( nCmp & nSelType ) if( nCmp & nSelType )
{ {
/* #108205# Remember object's position. */ // #108205# Remember object's position.
Point aTmpPt = GetObjRect().TopLeft(); Point aTmpPt = GetObjRect().TopLeft();
DelSelectedObj(); DelSelectedObj();
/* #108205# Set cursor to remembered position. */ // #108205# Set cursor to remembered position.
SetCrsr(&aTmpPt); SetCrsr(&aTmpPt);
LeaveSelFrmMode(); LeaveSelFrmMode();
...@@ -195,13 +191,13 @@ long SwWrtShell::DelLeft() ...@@ -195,13 +191,13 @@ long SwWrtShell::DelLeft()
GetSwCrsr()->GetNode()->FindTableBoxStartNode() : GetSwCrsr()->GetNode()->FindTableBoxStartNode() :
0; 0;
/* If the cursor is at the beginning of a paragraph, try to step // If the cursor is at the beginning of a paragraph, try to step
backwards. On failure we are done. */ // backwards. On failure we are done.
if( !SwCrsrShell::Left(1,CRSR_SKIP_CHARS) ) if( !SwCrsrShell::Left(1,CRSR_SKIP_CHARS) )
return 0; return 0;
/* If the cursor entered or left a table (or both) we are done. No step // If the cursor entered or left a table (or both) we are done. No step
back. */ // back.
const SwTableNode* pIsInTblNd = SwCrsrShell::IsCrsrInTbl(); const SwTableNode* pIsInTblNd = SwCrsrShell::IsCrsrInTbl();
if( pIsInTblNd != pWasInTblNd ) if( pIsInTblNd != pWasInTblNd )
return 0; return 0;
...@@ -306,7 +302,7 @@ long SwWrtShell::DelRight() ...@@ -306,7 +302,7 @@ long SwWrtShell::DelRight()
} }
{ {
/* #108049# Save the startnode of the current cell */ // #108049# Save the startnode of the current cell
const SwStartNode * pSNdOld; const SwStartNode * pSNdOld;
pSNdOld = GetSwCrsr()->GetNode()-> pSNdOld = GetSwCrsr()->GetNode()->
FindTableBoxStartNode(); FindTableBoxStartNode();
...@@ -324,13 +320,13 @@ long SwWrtShell::DelRight() ...@@ -324,13 +320,13 @@ long SwWrtShell::DelRight()
{ {
if (IsCrsrInTbl() || (pWasInTblNd != IsCrsrInTbl())) if (IsCrsrInTbl() || (pWasInTblNd != IsCrsrInTbl()))
{ {
/* #108049# Save the startnode of the current /** #108049# Save the startnode of the current
cell. May be different to pSNdOld as we have cell. May be different to pSNdOld as we have
moved. */ moved. */
const SwStartNode * pSNdNew = GetSwCrsr() const SwStartNode * pSNdNew = GetSwCrsr()
->GetNode()->FindTableBoxStartNode(); ->GetNode()->FindTableBoxStartNode();
/* #108049# Only move instead of deleting if we /** #108049# Only move instead of deleting if we
have moved to a different cell */ have moved to a different cell */
if (pSNdOld != pSNdNew) if (pSNdOld != pSNdNew)
{ {
...@@ -358,12 +354,12 @@ long SwWrtShell::DelRight() ...@@ -358,12 +354,12 @@ long SwWrtShell::DelRight()
case nsSelectionType::SEL_DRW_TXT: case nsSelectionType::SEL_DRW_TXT:
case nsSelectionType::SEL_DRW_FORM: case nsSelectionType::SEL_DRW_FORM:
{ {
/* #108205# Remember object's position. */ // #108205# Remember object's position.
Point aTmpPt = GetObjRect().TopLeft(); Point aTmpPt = GetObjRect().TopLeft();
DelSelectedObj(); DelSelectedObj();
/* #108205# Set cursor to remembered position. */ // #108205# Set cursor to remembered position.
SetCrsr(&aTmpPt); SetCrsr(&aTmpPt);
LeaveSelFrmMode(); LeaveSelFrmMode();
...@@ -405,8 +401,6 @@ long SwWrtShell::DelRight() ...@@ -405,8 +401,6 @@ long SwWrtShell::DelRight()
return nRet; return nRet;
} }
long SwWrtShell::DelToEndOfPara() long SwWrtShell::DelToEndOfPara()
{ {
SwActContext aActContext(this); SwActContext aActContext(this);
...@@ -425,8 +419,6 @@ long SwWrtShell::DelToEndOfPara() ...@@ -425,8 +419,6 @@ long SwWrtShell::DelToEndOfPara()
return nRet; return nRet;
} }
long SwWrtShell::DelToStartOfPara() long SwWrtShell::DelToStartOfPara()
{ {
SwActContext aActContext(this); SwActContext aActContext(this);
...@@ -444,13 +436,10 @@ long SwWrtShell::DelToStartOfPara() ...@@ -444,13 +436,10 @@ long SwWrtShell::DelToStartOfPara()
UpdateAttr(); UpdateAttr();
return nRet; return nRet;
} }
/*
* All erase operations should work with Find instead with
* Nxt-/PrvDelim, because the latter works with Wrap Around
* -- that's probably not wished.
*/
// All erase operations should work with Find instead with
// Nxt-/PrvDelim, because the latter works with Wrap Around
// -- that's probably not wished.
long SwWrtShell::DelToStartOfSentence() long SwWrtShell::DelToStartOfSentence()
{ {
...@@ -462,8 +451,6 @@ long SwWrtShell::DelToStartOfSentence() ...@@ -462,8 +451,6 @@ long SwWrtShell::DelToStartOfSentence()
return nRet; return nRet;
} }
long SwWrtShell::DelToEndOfSentence() long SwWrtShell::DelToEndOfSentence()
{ {
if(IsEndOfDoc()) if(IsEndOfDoc())
...@@ -474,8 +461,6 @@ long SwWrtShell::DelToEndOfSentence() ...@@ -474,8 +461,6 @@ long SwWrtShell::DelToEndOfSentence()
return nRet; return nRet;
} }
long SwWrtShell::DelNxtWord() long SwWrtShell::DelNxtWord()
{ {
if(IsEndOfDoc()) if(IsEndOfDoc())
...@@ -500,8 +485,6 @@ long SwWrtShell::DelNxtWord() ...@@ -500,8 +485,6 @@ long SwWrtShell::DelNxtWord()
return nRet; return nRet;
} }
long SwWrtShell::DelPrvWord() long SwWrtShell::DelPrvWord()
{ {
if(IsStartOfDoc()) if(IsStartOfDoc())
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment