summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatthias Freund <matti_lx@yahoo.de>2013-03-21 21:53:40 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-22 03:50:05 +0000
commit9b3010280b4a76bb76423782c77e46ab60f442ec (patch)
treee4a7479fa381974dd3fe32877a6a9698168db65f /sw
parent3dd40efee6ca280ef205c75517621b5f8d5089cd (diff)
Comment translation GER-ENG in sw/source/ui/wrtsh/
Thats all in this directory... :-) Change-Id: Iab8f8e7c6269607ac2f0f0acdbd1200f917eaaf5 Reviewed-on: https://gerrit.libreoffice.org/2902 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/wrtsh/wrtsh2.cxx56
-rw-r--r--sw/source/ui/wrtsh/wrtsh3.cxx18
-rw-r--r--sw/source/ui/wrtsh/wrtsh4.cxx44
-rw-r--r--sw/source/ui/wrtsh/wrtundo.cxx22
4 files changed, 49 insertions, 91 deletions
diff --git a/sw/source/ui/wrtsh/wrtsh2.cxx b/sw/source/ui/wrtsh/wrtsh2.cxx
index 335f01caf51e..baeabb1a6e52 100644
--- a/sw/source/ui/wrtsh/wrtsh2.cxx
+++ b/sw/source/ui/wrtsh/wrtsh2.cxx
@@ -34,7 +34,7 @@
#include <swtypes.hxx> // SET_CURR_SHELL
#include <wrtsh.hxx>
#include <docsh.hxx>
-#include <fldbas.hxx> // Felder
+#include <fldbas.hxx> // Fields
#include <expfld.hxx>
#include <ddefld.hxx>
#include <docufld.hxx>
@@ -43,8 +43,8 @@
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
#include <viewopt.hxx> // SwViewOptions
-#include <frmfmt.hxx> // fuer UpdateTable
-#include <swtable.hxx> // fuer UpdateTable
+#include <frmfmt.hxx> // for UpdateTable
+#include <swtable.hxx> // for UpdateTable
#include <mdiexp.hxx>
#include <view.hxx>
#include <swevent.hxx>
@@ -96,15 +96,11 @@ void SwWrtShell::Insert(SwField &rFld, SwPaM *pCommentRange)
EndAllAction();
}
-/*--------------------------------------------------------------------
- Beschreibung: Felder Update anschmeissen
- --------------------------------------------------------------------*/
-
-
+// Start the field update
void SwWrtShell::UpdateInputFlds( SwInputFieldList* pLst, sal_Bool bOnlyInSel )
{
- // ueber die Liste der Eingabefelder gehen und Updaten
+ // Go through the list of fields and updating
SwInputFieldList* pTmp = pLst;
if( !pTmp )
pTmp = new SwInputFieldList( this );
@@ -128,7 +124,7 @@ void SwWrtShell::UpdateInputFlds( SwInputFieldList* pLst, sal_Bool bOnlyInSel )
else
bCancel = StartInputFldDlg( pField, sal_True, 0, &aDlgPos);
- // Sonst Updatefehler bei Multiselektion:
+ // Otherwise update error at multi-selection:
pTmp->GetField( i )->GetTyp()->UpdateFlds();
}
pTmp->PopCrsr();
@@ -138,12 +134,7 @@ void SwWrtShell::UpdateInputFlds( SwInputFieldList* pLst, sal_Bool bOnlyInSel )
delete pTmp;
}
-
-/*--------------------------------------------------------------------
- Beschreibung: EingabeDialog fuer ein bestimmtes Feld starten
- --------------------------------------------------------------------*/
-
-
+// Start input dialog for a specific field
sal_Bool SwWrtShell::StartInputFldDlg( SwField* pFld, sal_Bool bNextButton,
Window* pParentWin, rtl::OString* pWindowState )
@@ -187,11 +178,7 @@ sal_Bool SwWrtShell::StartDropDownFldDlg(SwField* pFld, sal_Bool bNextButton, rt
return bRet;
}
-/*--------------------------------------------------------------------
- Beschreibung: Verzeichnis einfuegen Selektion loeschen
- --------------------------------------------------------------------*/
-
-
+// Insert directory - remove selection
void SwWrtShell::InsertTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet)
{
@@ -204,10 +191,7 @@ void SwWrtShell::InsertTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet)
SwEditShell::InsertTableOf(rTOX, pSet);
}
-
-/*--------------------------------------------------------------------
- Beschreibung: Verzeichnis Updaten Selektion loeschen
- --------------------------------------------------------------------*/
+// Update directory - remove selection
sal_Bool SwWrtShell::UpdateTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet)
{
@@ -285,7 +269,7 @@ void SwWrtShell::ClickToField( const SwField& rFld )
String sRet( sText );
ExecMacro( pFld->GetSvxMacro(), &sRet );
- // return Wert veraendert?
+ // return value changed?
if( sRet != sText )
{
StartAllAction();
@@ -322,8 +306,6 @@ void SwWrtShell::ClickToField( const SwField& rFld )
bIsInClickToEdit = false;
}
-
-
void SwWrtShell::ClickToINetAttr( const SwFmtINetFmt& rItem, sal_uInt16 nFilter )
{
if( !rItem.GetValue().Len() )
@@ -331,7 +313,7 @@ void SwWrtShell::ClickToINetAttr( const SwFmtINetFmt& rItem, sal_uInt16 nFilter
bIsInClickToEdit = true;
- // erstmal das evt. gesetzte ObjectSelect Macro ausfuehren
+ // At first run the possibly set ObjectSelect Macro
const SvxMacro* pMac = rItem.GetMacro( SFX_EVENT_MOUSECLICK_OBJECT );
if( pMac )
{
@@ -340,7 +322,7 @@ void SwWrtShell::ClickToINetAttr( const SwFmtINetFmt& rItem, sal_uInt16 nFilter
GetDoc()->CallEvent( SFX_EVENT_MOUSECLICK_OBJECT, aCallEvent, false );
}
- // damit die Vorlagenumsetzung sofort angezeigt wird
+ // So that the implementation of templates is displayed immediately
::LoadURL( *this, rItem.GetValue(), nFilter, rItem.GetTargetFrame() );
const SwTxtINetFmt* pTxtAttr = rItem.GetTxtINetFmt();
if( pTxtAttr )
@@ -352,8 +334,6 @@ void SwWrtShell::ClickToINetAttr( const SwFmtINetFmt& rItem, sal_uInt16 nFilter
bIsInClickToEdit = false;
}
-
-
bool SwWrtShell::ClickToINetGrf( const Point& rDocPt, sal_uInt16 nFilter )
{
bool bRet = false;
@@ -363,7 +343,7 @@ bool SwWrtShell::ClickToINetGrf( const Point& rDocPt, sal_uInt16 nFilter )
if( pFnd && sURL.Len() )
{
bRet = true;
- // erstmal das evt. gesetzte ObjectSelect Macro ausfuehren
+ // At first run the possibly set ObjectSelect Macro
const SvxMacro* pMac = &pFnd->GetMacro().GetMacro( SFX_EVENT_MOUSECLICK_OBJECT );
if( pMac )
{
@@ -385,11 +365,11 @@ void LoadURL( ViewShell& rVSh, const rtl::OUString& rURL, sal_uInt16 nFilter,
if( rURL.isEmpty() )
return ;
- // die Shell kann auch 0 sein !!!!!
+ // The shell could be 0 also!!!!!
if ( !rVSh.ISA(SwCrsrShell) )
return;
- //Eine CrsrShell ist auch immer eine WrtShell
+ //A CrsrShell is always a WrtShell
SwWrtShell &rSh = (SwWrtShell&)rVSh;
SwDocShell* pDShell = rSh.GetView().GetDocShell();
@@ -415,7 +395,7 @@ void LoadURL( ViewShell& rVSh, const rtl::OUString& rURL, sal_uInt16 nFilter,
SfxStringItem aReferer( SID_REFERER, sReferer );
SfxBoolItem aNewView( SID_OPEN_NEW_VIEW, sal_False );
- //#39076# Silent kann lt. SFX entfernt werden.
+ //#39076# Silent can be removed accordingly to SFX.
SfxBoolItem aBrowse( SID_BROWSE, sal_True );
if( nFilter & URLLOAD_NEWVIEW )
@@ -439,9 +419,9 @@ void SwWrtShell::NavigatorPaste( const NaviContentBookmark& rBkmk,
{
if( EXCHG_IN_ACTION_COPY == nAction )
{
- // Einfuegen
+ // Insert
String sURL = rBkmk.GetURL();
- //handelt es sich um ein Sprung innerhalb des akt. Docs?
+ // Is this is a jump within the current Doc?
const SwDocShell* pDocShell = GetView().GetDocShell();
if(pDocShell->HasName())
{
diff --git a/sw/source/ui/wrtsh/wrtsh3.cxx b/sw/source/ui/wrtsh/wrtsh3.cxx
index a8c145409499..22e693d1ca23 100644
--- a/sw/source/ui/wrtsh/wrtsh3.cxx
+++ b/sw/source/ui/wrtsh/wrtsh3.cxx
@@ -36,7 +36,6 @@
#include <unomid.h>
-
using namespace ::com::sun::star;
using ::rtl::OUString;
@@ -106,10 +105,7 @@ bool SwWrtShell::GotoFieldmark(::sw::mark::IFieldmark const * const pMark)
return bRet;
}
-/*--------------------------------------------------------------------
- Beschreibung: FontWork-Slots invalidieren
- --------------------------------------------------------------------*/
-
+// Invalidate FontWork-Slots
void SwWrtShell::DrawSelChanged( )
{
@@ -122,7 +118,7 @@ void SwWrtShell::DrawSelChanged( )
GetView().GetViewFrame()->GetBindings().Invalidate(aInval);
bool bOldVal = bNoInterrupt;
- bNoInterrupt = true; // Trick, um AttrChangedNotify ueber Timer auszufuehren
+ bNoInterrupt = true; // Trick to run AttrChangedNotify by timer.
GetView().AttrChangedNotify(this);
bNoInterrupt = bOldVal;
}
@@ -134,25 +130,21 @@ sal_Bool SwWrtShell::GotoMark( const ::rtl::OUString& rName )
return MoveBookMark( BOOKMARK_INDEX, ppMark->get() );
}
-
sal_Bool SwWrtShell::GotoMark( const ::sw::mark::IMark* const pMark )
{
return MoveBookMark( BOOKMARK_INDEX, pMark );
}
-
sal_Bool SwWrtShell::GoNextBookmark()
{
return MoveBookMark( BOOKMARK_NEXT );
}
-
sal_Bool SwWrtShell::GoPrevBookmark()
{
return MoveBookMark( BOOKMARK_PREV );
}
-
void SwWrtShell::ExecMacro( const SvxMacro& rMacro, String* pRet, SbxArray* pArgs )
{
// OD 11.02.2003 #100556# - execute macro, if it is allowed.
@@ -171,15 +163,15 @@ sal_uInt16 SwWrtShell::CallEvent( sal_uInt16 nEvent, const SwCallMouseEvent& rCa
}
- // fall ein util::URL-Button selektiert ist, dessen util::URL returnen, ansonsten
- // einen LeerString
+ // If a util::URL-Button is selected, return its util::URL
+ // otherwise an emtpy string.
bool SwWrtShell::GetURLFromButton( String& rURL, String& rDescr ) const
{
bool bRet = false;
const SdrView *pDView = GetDrawView();
if( pDView )
{
- // Ein Fly ist genau dann erreichbar, wenn er selektiert ist.
+ // A fly is precisely achievable if it is selected.
const SdrMarkList &rMarkList = pDView->GetMarkedObjectList();
if (rMarkList.GetMark(0))
diff --git a/sw/source/ui/wrtsh/wrtsh4.cxx b/sw/source/ui/wrtsh/wrtsh4.cxx
index 3f0576f28aa4..5dc30619f018 100644
--- a/sw/source/ui/wrtsh/wrtsh4.cxx
+++ b/sw/source/ui/wrtsh/wrtsh4.cxx
@@ -20,34 +20,26 @@
#include <wrtsh.hxx>
#include <crsskip.hxx>
+// Private methods, which move the cursor over search.
+// The removal of the selection must be made on the level above.
-/*
-* private Methoden, die den Cursor ueber Suchen bewegen. Das
-* Aufheben der Selektion muss auf der Ebene darueber erfolgen.
-*/
-
-/*
-* Der Anfang eines Wortes ist das Folgen eines nicht-
-* Trennzeichens auf Trennzeichen. Ferner das Folgen von
-* nicht-Satztrennern auf Satztrenner. Der Absatzanfang ist
-* ebenfalls Wortanfang.
-*/
-
+// The beginning of a word is the follow of a
+// non-delimiter to delimiter. Furthermore, the follow of
+// non-sentence separators on sentence separator.
+// The begin of paragraph is also the word beginning.
bool SwWrtShell::_SttWrd()
{
if ( IsSttPara() )
return true;
- /*
- * temporaeren Cursor ohne Selektion erzeugen
- */
+ // Create temporary cursor without selection.
Push();
ClearMark();
if( !GoStartWord() )
- // nicht gefunden --> an den Absatzanfang
+ // not found --> go to the beginning of the paragraph.
SwCrsrShell::MovePara( fnParaCurr, fnParaStart );
ClearMark();
- // falls vorher Mark gesetzt war, zusammenfassen
+ // If Mark was previously set, summarize.
Combine();
return true;
}
@@ -64,14 +56,14 @@ bool SwWrtShell::_EndWrd()
{
if ( IsEndWrd() )
return true;
- // temporaeren Cursor ohne Selektion erzeugen
+ // Create temporary cursor without selection.
Push();
ClearMark();
if( !GoEndWord() )
- // nicht gefunden --> an das Absatz Ende
+ // not found --> go to the end of the paragraph.
SwCrsrShell::MovePara(fnParaCurr, fnParaEnd);
ClearMark();
- // falls vorher Mark gesetzt war, zusammenfassen
+ // If Mark was previously set, summarize.
Combine();
return true;
}
@@ -81,9 +73,9 @@ bool SwWrtShell::_EndWrd()
sal_Bool SwWrtShell::_NxtWrd()
{
sal_Bool bRet = sal_False;
- while( IsEndPara() ) // wenn schon am Ende, dann naechsten ???
+ while( IsEndPara() ) // If already at the end, then the next???
{
- if(!SwCrsrShell::Right(1,CRSR_SKIP_CHARS)) // Document - Ende ??
+ if(!SwCrsrShell::Right(1,CRSR_SKIP_CHARS)) // Document - end ??
{
Pop( sal_False );
return bRet;
@@ -113,9 +105,9 @@ sal_Bool SwWrtShell::_PrvWrd()
{
sal_Bool bRet = sal_False;
while( IsSttPara() )
- { // wenn schon am Anfang, dann naechsten ???
+ { // if already at the beginning, then the next???
if(!SwCrsrShell::Left(1,CRSR_SKIP_CHARS))
- { // Document - Anfang ??
+ { // Document - beginning ??
Pop( sal_False );
return bRet;
}
@@ -214,7 +206,7 @@ sal_Bool SwWrtShell::_BwdSentence()
return 0;
}
if( !GoStartSentence() && !IsSttPara() )
- // nicht gefunden --> an den Absatz Anfang
+ // not found --> go to the beginning of the paragraph
SwCrsrShell::MovePara( fnParaCurr, fnParaStart );
ClearMark();
Combine();
@@ -232,7 +224,6 @@ sal_Bool SwWrtShell::_FwdPara()
return bRet;
}
-
sal_Bool SwWrtShell::_BwdPara()
{
Push();
@@ -249,5 +240,4 @@ sal_Bool SwWrtShell::_BwdPara()
return bRet;
}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/wrtsh/wrtundo.cxx b/sw/source/ui/wrtsh/wrtundo.cxx
index 98c743d04a8b..e01d7df01fa1 100644
--- a/sw/source/ui/wrtsh/wrtundo.cxx
+++ b/sw/source/ui/wrtsh/wrtundo.cxx
@@ -21,7 +21,7 @@
#include <sfx2/app.hxx>
#include <svl/slstitm.hxx>
#include <wrtsh.hxx>
-#include <swundo.hxx> // fuer Undo-Ids
+#include <swundo.hxx> // for Undo-Ids
#include <IDocumentUndoRedo.hxx>
#include <swdtflvr.hxx>
#include <svtools/svtresid.hxx>
@@ -29,10 +29,8 @@
#include <wrtsh.hrc>
#include <sfx2/sfx.hrc>
-
-// Undo beendet alle Modi. Falls eine Selektion durch das Undo entstanden
-// ist, muss die fuer die weiteren Aktionen beruecksichtigt werden.
-
+// Undo ends all modes. If a selection is emerged by the Undo,
+// this must be considered for further action.
void SwWrtShell::Do( DoType eDoType, sal_uInt16 nCnt )
{
@@ -44,13 +42,13 @@ void SwWrtShell::Do( DoType eDoType, sal_uInt16 nCnt )
{
case UNDO:
DoUndo(sal_False); // #i21739#
- // Modi zuruecksetzen
+ // Reset modes
EnterStdMode();
SwEditShell::Undo(nCnt);
break;
case REDO:
DoUndo(sal_False); // #i21739#
- // Modi zuruecksetzen
+ // Reset modes
EnterStdMode();
SwEditShell::Redo( nCnt );
break;
@@ -70,8 +68,8 @@ void SwWrtShell::Do( DoType eDoType, sal_uInt16 nCnt )
if ( bFrmSelected )
UnSelectFrm();
- // Funktionspointer fuer das Aufheben der Selektion setzen
- // bei Cursor setzen
+ // Set the function pointer for canceling the selection at the
+ // cursor position.
fnKillSel = &SwWrtShell::ResetSelect;
fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
bCreateXSelection = true;
@@ -91,12 +89,11 @@ void SwWrtShell::Do( DoType eDoType, sal_uInt16 nCnt )
if( bCreateXSelection )
SwTransferable::CreateSelection( *this );
- // Bug 32918: nach loeschen der Numerierung bleibt die Obj. Leiste stehen
- // Warum wird hier nicht immer ein CallChgLink gerufen?
+ // Bug 32918: After deleting of the numbering the object panel remains.
+ // Why is not here always a CallChgLink called?
CallChgLnk();
}
-
String SwWrtShell::GetDoString( DoType eDoType ) const
{
::rtl::OUString aUndoStr;
@@ -155,5 +152,4 @@ String SwWrtShell::GetRepeatString() const
return SvtResId(STR_REPEAT).toString() + str;
}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */