Hi, I have submitted a patch for review:
https://gerrit.libreoffice.org/2902 To pull it, you can do: git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/02/2902/1 Comment translation GER-ENG in sw/source/ui/wrtsh/ Thats all in this directory... :-) Change-Id: Iab8f8e7c6269607ac2f0f0acdbd1200f917eaaf5 --- M sw/source/ui/wrtsh/wrtsh2.cxx M sw/source/ui/wrtsh/wrtsh3.cxx M sw/source/ui/wrtsh/wrtsh4.cxx M sw/source/ui/wrtsh/wrtundo.cxx 4 files changed, 50 insertions(+), 91 deletions(-) diff --git a/sw/source/ui/wrtsh/wrtsh2.cxx b/sw/source/ui/wrtsh/wrtsh2.cxx index 74d4537..fc4c9b2 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 @@ 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 @@ 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 @@ 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 @@ return bRet; } -/*-------------------------------------------------------------------- - Beschreibung: Verzeichnis einfuegen Selektion loeschen - --------------------------------------------------------------------*/ - - +// Insert directory - remove selection void SwWrtShell::InsertTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet) { @@ -204,10 +191,7 @@ 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 @@ String sRet( sText ); ExecMacro( pFld->GetSvxMacro(), &sRet ); - // return Wert veraendert? + // return value changed? if( sRet != sText ) { StartAllAction(); @@ -320,8 +304,6 @@ bIsInClickToEdit = false; } - - void SwWrtShell::ClickToINetAttr( const SwFmtINetFmt& rItem, sal_uInt16 nFilter ) { if( !rItem.GetValue().Len() ) @@ -329,7 +311,7 @@ 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 ) { @@ -338,7 +320,7 @@ 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 ) @@ -350,8 +332,6 @@ bIsInClickToEdit = false; } - - bool SwWrtShell::ClickToINetGrf( const Point& rDocPt, sal_uInt16 nFilter ) { bool bRet = false; @@ -361,7 +341,7 @@ 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 ) { @@ -383,11 +363,11 @@ 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(); @@ -413,7 +393,7 @@ 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 ) @@ -437,9 +417,10 @@ { 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? +handelt es sich um ein Sprung innerhalb des akt. Docs? 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 a8c1454..dfcad02 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 @@ return bRet; } -/*-------------------------------------------------------------------- - Beschreibung: FontWork-Slots invalidieren - --------------------------------------------------------------------*/ - +// Invalidate FontWork-Slots void SwWrtShell::DrawSelChanged( ) { @@ -122,7 +118,7 @@ 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,24 +130,20 @@ 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 ) { @@ -171,15 +163,15 @@ } - // fall ein util::URL-Button selektiert ist, dessen util::URL returnen, ansonsten - // einen LeerString + // If a util::URL-Button is slected, 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 3f0576f..5dc3061 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 @@ { 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 @@ 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 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 @@ 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 @@ return bRet; } - sal_Bool SwWrtShell::_BwdPara() { Push(); @@ -248,6 +239,5 @@ Combine(); 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 98c743d..e01d7df 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 @@ { 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 @@ 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,11 +89,10 @@ 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 { @@ -154,6 +151,5 @@ return SvtResId(STR_REPEAT).toString() + str; } - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- To view, visit https://gerrit.libreoffice.org/2902 To unsubscribe, visit https://gerrit.libreoffice.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iab8f8e7c6269607ac2f0f0acdbd1200f917eaaf5 Gerrit-PatchSet: 1 Gerrit-Project: core Gerrit-Branch: master Gerrit-Owner: Matthias Freund <matti...@yahoo.de> _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice