[Libreoffice] [PATCH 2/2] Translate german comments

Martin Kepplinger martinkepplinger at eml.cc
Sun Feb 27 12:21:48 PST 2011


This translates all remaining german code comments of
writer/sw/source/ui/dochdl to english.

This is contributed under the terms of the MPL 1.1 / GPLv3+ / LGPLv3+ triple
license.
---
 sw/source/ui/dochdl/selglos.cxx  |    2 +-
 sw/source/ui/dochdl/selglos.src  |    4 +-
 sw/source/ui/dochdl/swdtflvr.cxx |  233 ++++++++++++++++++--------------------
 3 files changed, 115 insertions(+), 124 deletions(-)

diff --git a/sw/source/ui/dochdl/selglos.cxx b/sw/source/ui/dochdl/selglos.cxx
index dc57690..c01644a 100644
--- a/sw/source/ui/dochdl/selglos.cxx
+++ b/sw/source/ui/dochdl/selglos.cxx
@@ -65,7 +65,7 @@ SwSelGlossaryDlg::SwSelGlossaryDlg(Window * pParent, const String &rShortName)
 }
 
 /*--------------------------------------------------
- dtor ueberladen
+ overcharge dtor
 --------------------------------------------------*/
 SwSelGlossaryDlg::~SwSelGlossaryDlg() {}
 
diff --git a/sw/source/ui/dochdl/selglos.src b/sw/source/ui/dochdl/selglos.src
index 8116251..9a5a425 100644
--- a/sw/source/ui/dochdl/selglos.src
+++ b/sw/source/ui/dochdl/selglos.src
@@ -37,7 +37,7 @@ ModalDialog DLG_SEL_GLOS
     OutputSize = TRUE ;
     SVLook = TRUE ;
     Size = MAP_APPFONT ( 220 , 100 ) ;
-    /* ### ACHTUNG: Neuer Text in Resource? AutoText einfügen : AutoText einf³gen */
+    /* ### ATTENTION: new text in resource? add AutoText : add AutoText */
     Text [ en-US ] = "Insert AutoText" ;
     Moveable = TRUE ;
     OKButton BT_OK
@@ -63,7 +63,7 @@ ModalDialog DLG_SEL_GLOS
     {
         Pos = MAP_APPFONT ( 6 , 3 ) ;
         Size = MAP_APPFONT ( 152 , 8 ) ;
-        /* ### ACHTUNG: Neuer Text in Resource? AutoTexte zum Kürzel  : AutoTexte zum K³rzel  */
+        /* ### ATTENTION: new text in resource? AutoTexts to abbreviation : AutoTexts to abbreviation */
         Text [ en-US ] = "AutoTexts for shortcut " ;
     };
     ListBox LB_GLOS
diff --git a/sw/source/ui/dochdl/swdtflvr.cxx b/sw/source/ui/dochdl/swdtflvr.cxx
index 871ee66..6778699 100644
--- a/sw/source/ui/dochdl/swdtflvr.cxx
+++ b/sw/source/ui/dochdl/swdtflvr.cxx
@@ -103,7 +103,7 @@
 #include <docsh.hxx>
 #include <wdocsh.hxx>
 #include <fldbas.hxx>		//DDE
-#include <swundo.hxx>		// fuer Undo-Ids
+#include <swundo.hxx>		// for Undo-Ids
 #include <pam.hxx>
 #include <ndole.hxx>
 #include <swwait.hxx>
@@ -268,7 +268,7 @@ SwTransferable::~SwTransferable()
 {
     Application::GetSolarMutex().acquire();
 
-    // der DDELink braucht noch die WrtShell!
+    // the DDELink still needs the WrtShell!
     if( refDdeLink.Is() )
     {
         ((SwTrnsfrDdeLink*)&refDdeLink)->Disconnect( TRUE );
@@ -283,8 +283,8 @@ SwTransferable::~SwTransferable()
     // dead.
     delete pClpDocFac;
 
-    //JP 22.04.95: erst schliessen, dann kann die Ref. auch gecleared werden,
-    //				so das die DocShell auch tatsaechlich geloescht wird!
+    //JP 22.04.95: first close, then the Ref. can be cleared as well, so that
+    //				the DocShell really gets deleted!
     if( aDocShellRef.Is() )
     {
         SfxObjectShell * pObj = aDocShellRef;
@@ -346,8 +346,8 @@ void SwTransferable::AddSupportedFormats()
 
 void SwTransferable::InitOle( SfxObjectShell* pDoc, SwDoc& rDoc )
 {
-    //OleVisArea einstellen. Linke obere Ecke der Seite und Groesse
-    //der RealSize in Twips.
+    //set OleVisArea. Upper left corner of the page and size of
+    //RealSize in Twips.
     const Size aSz( OLESIZE );
     SwRect aVis( Point( DOCUMENTBORDER, DOCUMENTBORDER ), aSz );
     pDoc->SetVisArea( aVis.SVRect() );
@@ -411,7 +411,7 @@ sal_Bool SwTransferable::GetData( const DATA_FLAVOR& rFlavor )
     {
         SelectionType nSelectionType = pWrtShell->GetSelectionType();
 
-// SEL_GRF kommt vom ContentType der editsh
+// SEL_GRF comes from ContentType of editsh
         if( (nsSelectionType::SEL_GRF | nsSelectionType::SEL_DRW_FORM) & nSelectionType )
         {
             pClpGraphic = new Graphic;
@@ -421,7 +421,7 @@ sal_Bool SwTransferable::GetData( const DATA_FLAVOR& rFlavor )
             if( !pWrtShell->GetDrawObjGraphic( FORMAT_BITMAP, *pClpBitmap ))
                 pOrigGrf = pClpBitmap;
 
-            // ist es ein URL-Button ?
+            // is it an URL-Button ?
             String sURL, sDesc;
             if( pWrtShell->GetURLFromButton( sURL, sDesc ) )
             {
@@ -434,10 +434,10 @@ sal_Bool SwTransferable::GetData( const DATA_FLAVOR& rFlavor )
         SwDoc *const pTmpDoc = lcl_GetDoc(*pClpDocFac);
 
         pTmpDoc->SetRefForDocShell( boost::addressof(aDocShellRef) );
-        pTmpDoc->LockExpFlds(); 	// nie die Felder updaten - Text so belassen
+        pTmpDoc->LockExpFlds(); 	// never update fields - leave text as it is
         pWrtShell->Copy( pTmpDoc );
 
-        // es wurde in der CORE eine neu angelegt (OLE-Objekte kopiert!)
+        // in CORE a new one was created (OLE-Objekte copied!)
         if( aDocShellRef.Is() )
             SwTransferable::InitOle( aDocShellRef, *pTmpDoc );
         pTmpDoc->SetRefForDocShell( 0 );
@@ -479,8 +479,7 @@ sal_Bool SwTransferable::GetData( const DATA_FLAVOR& rFlavor )
     if( TRNSFR_OLE == eBufferType )
     {
         //TODO/MBA: testing - is this the "single OLE object" case?!
-        // aus dem ClipDoc das OLE-Object besorgen und von dem die Daten
-        // besorgen.
+        // get OLE-Object from ClipDoc and get the data from that.
         sal_Int64 nAspect = embed::Aspects::MSOLE_CONTENT; // will be set in the next statement
         uno::Reference < embed::XEmbeddedObject > xObj = FindOLEObj( nAspect );
         Graphic* pOLEGraph = FindOLEReplacementGraphic();
@@ -757,7 +756,7 @@ void SwTransferable::DeleteSelection()
 {
     if(!pWrtShell)
         return;
-    // Selektionsart vor Action-Klammerung erfragen
+    // ask for type of selection before action-bracketing
     const int nSelection = pWrtShell->GetSelectionType();
     pWrtShell->StartUndo( UNDO_DELETE );
     if( ( nsSelectionType::SEL_TXT | nsSelectionType::SEL_TBL ) & nSelection )
@@ -820,7 +819,7 @@ int SwTransferable::PrepareForCopy( BOOL bIsCut )
         AddFormat( FORMAT_GDIMETAFILE );
         eBufferType = TRNSFR_OLE;
     }
-    //Gibt es ueberhaupt etwas zum bereitstellen?
+    //Is there anything to provide anyway?
     else if ( pWrtShell->IsSelection() || pWrtShell->IsFrmSelected() ||
               pWrtShell->IsObjSelected() )
     {
@@ -830,10 +829,10 @@ int SwTransferable::PrepareForCopy( BOOL bIsCut )
 
         pClpDocFac = new SwDocFac;
 
-        // zusaetzlichen Cursor erzeugen, damit eine Gleichbehandlung
-        // von Tastatur- und Mausselektion moeglich ist.
-        // Im AddMode wird bei Tastaturselektion der neue Cursor erst
-        // beim Bewegen des Cursors nach Selektionsende erzeugt.
+        // create additional cursor so that equal treatment of keyboard
+        // and mouse selection is possible.
+        // In AddMode with keyboard selection, the new cursor is not created
+        // before the cursor is moved after end of selection.
         if( pWrtShell->IsAddMode() && pWrtShell->SwCrsrShell::HasSelection() )
             pWrtShell->CreateCrsr();
 
@@ -861,7 +860,7 @@ int SwTransferable::PrepareForCopy( BOOL bIsCut )
                 pMarkAccess->deleteMark(*ppMark);
         }
 
-        // es wurde in der CORE eine neu angelegt (OLE-Objekte kopiert!)
+        // a new one was created in CORE (OLE-Objekte copied!)
         if( aDocShellRef.Is() )
             SwTransferable::InitOle( aDocShellRef, *pTmpDoc );
         pTmpDoc->SetRefForDocShell( 0 );
@@ -882,11 +881,10 @@ int SwTransferable::PrepareForCopy( BOOL bIsCut )
             bDDELink = pWrtShell->HasWholeTabSelection();
         }
 
-        //Wenn's einer braucht OLE'n wir ihm was.
+        //When someone needs it, we 'OLE' him something
         AddFormat( SOT_FORMATSTR_ID_EMBED_SOURCE );
 
-        //RTF vor das Metafile von OLE stellen, weil mit weniger verlusten
-        //behaftet.
+        //put RTF above the OLE's Metafile to have less loss
         if( !pWrtShell->IsObjSelected() )
         {
             AddFormat( FORMAT_RTF );
@@ -912,7 +910,7 @@ int SwTransferable::PrepareForCopy( BOOL bIsCut )
             if( !pWrtShell->GetDrawObjGraphic( FORMAT_BITMAP, *pClpBitmap ))
                 pOrigGrf = pClpBitmap;
 
-            // ist es ein URL-Button ?
+            // is it an URL-Button ?
             String sURL, sDesc;
             if( pWrtShell->GetURLFromButton( sURL, sDesc ) )
             {
@@ -927,7 +925,7 @@ int SwTransferable::PrepareForCopy( BOOL bIsCut )
             }
         }
 
-        // beim Cut hat DDE-Link keinen Sinn!!
+        // at Cut, DDE-Link doesn't make sense!!
         SwDocShell* pDShell;
         if( !bIsCut && bDDELink &&
             0 != ( pDShell = pWrtShell->GetDoc()->GetDocShell()) &&
@@ -937,9 +935,9 @@ int SwTransferable::PrepareForCopy( BOOL bIsCut )
             refDdeLink = new SwTrnsfrDdeLink( *this, *pWrtShell );
         }
 
-        //ObjectDescriptor wurde bereits aus der alten DocShell gefuellt.
-        //Jetzt noch anpassen. Dadurch kann im GetData die erste Anfrage
-        //auch noch mit delayed rendering beantwortet werden.
+        //ObjectDescriptor was already filly by the old DocShell.
+        //Now adjust it. Thus in GetData the first query can still
+        //be answered with delayed rendering.
         aObjDesc.mbCanLink = FALSE;
         Size aSz( OLESIZE );
         aObjDesc.maSize = OutputDevice::LogicToLogic( aSz, MAP_TWIP, MAP_100TH_MM );
@@ -1015,30 +1013,30 @@ int SwTransferable::CopyGlossary( SwTextBlocks& rGlossary,
 
     SwNodes& rNds = pCDoc->GetNodes();
     SwNodeIndex aNodeIdx( *rNds.GetEndOfContent().StartOfSectionNode() );
-    SwCntntNode* pCNd = rNds.GoNext( &aNodeIdx ); // gehe zum 1. ContentNode
+    SwCntntNode* pCNd = rNds.GoNext( &aNodeIdx ); // go to 1st ContentNode
     SwPaM aPam( *pCNd );
 
     pCDoc->SetRefForDocShell( boost::addressof(aDocShellRef) );
-    pCDoc->LockExpFlds(); 	// nie die Felder updaten - Text so belassen
+    pCDoc->LockExpFlds(); 	// never update fields - leave test as it is
 
     pCDoc->InsertGlossary( rGlossary, rStr, aPam, 0 );
 
-    // es wurde in der CORE eine neu angelegt (OLE-Objekte kopiert!)
+    // a new one was created in CORE (OLE-Objekte copied!)
     if( aDocShellRef.Is() )
         SwTransferable::InitOle( aDocShellRef, *pCDoc );
     pCDoc->SetRefForDocShell( 0 );
 
     eBufferType = TRNSFR_DOCUMENT;
 
-    //Wenn's einer braucht OLE'n wir ihm was.
+    //When someone needs it, we 'OLE' her something.
     AddFormat( SOT_FORMATSTR_ID_EMBED_SOURCE );
     AddFormat( FORMAT_RTF );
     AddFormat( SOT_FORMATSTR_ID_HTML );
     AddFormat( FORMAT_STRING );
 
-    //ObjectDescriptor wurde bereits aus der alten DocShell gefuellt.
-    //Jetzt noch anpassen. Dadurch kann im GetData die erste Anfrage
-    //auch noch mit delayed rendering beantwortet werden.
+    //ObjectDescriptor was already filly by the old DocShell.
+    //Now adjust it. Thus in GetData the first query can still
+    //be answered with delayed rendering.
     aObjDesc.mbCanLink = FALSE;
     Size aSz( OLESIZE );
     aObjDesc.maSize = OutputDevice::LogicToLogic( aSz, MAP_TWIP, MAP_100TH_MM );
@@ -1171,7 +1169,7 @@ int SwTransferable::PasteData( TransferableDataHelper& rData,
             case EXCHG_DEST_DOC_DRAWOBJ:
             case EXCHG_DEST_DOC_URLBUTTON:
             case EXCHG_DEST_DOC_GROUPOBJ:
-                // Rahmen/Objecte selektieren
+                // select frames/objects
                 SwTransferable::SetSelInShell( rSh, TRUE, pPt );
                 break;
 
@@ -1184,13 +1182,13 @@ int SwTransferable::PasteData( TransferableDataHelper& rData,
     else if( ( !GetSwTransferable( rData ) || bIsPasteFmt ) &&
             !rSh.IsTableMode() && rSh.HasSelection() )
     {
-        // dann die Selektionen loeschen
+        // then delete the selection
 
-        //Selektierten Inhalt loeschen,
-        // - nicht bei Tabellen-Selektion
-        // - nicht bei ReRead einer Grafik/DDEDaten
-        // - nicht bei D&D, fuer die richtige Selektion wurde im
-        //		Drop-Handler gesorgt
+        //don't delete selected content
+        // - at table-selection
+        // - at ReRead of a graphic/DDEData
+        // - at D&D, for the right selection was taken care of
+        //		in Drop-Handler
         BOOL bDelSel = FALSE;
         switch( nDestination )
         {
@@ -1232,12 +1230,12 @@ int SwTransferable::PasteData( TransferableDataHelper& rData,
             pAction = new SwTrnsfrActionAndUndo( &rSh, UNDO_PASTE_CLIPBOARD);
         }
 
-        // im Drag&Drop duerfen keine MessageBoxen angezeigt werden
+        // in Drag&Drop MessageBoxes must not be showed
         BOOL bMsg = 0 == pPt;
         BYTE nActionFlags = static_cast< BYTE >(( nAction >> 8 ) & 0xFF);
 
         USHORT nClearedAction = ( nAction & EXCHG_ACTION_MASK );
-        // Selektionen loeschen
+        // delete selektions
 
         switch( nClearedAction )
         {
@@ -1258,7 +1256,7 @@ int SwTransferable::PasteData( TransferableDataHelper& rData,
         case EXCHG_OUT_ACTION_INSERT_IMAGEMAP:
         case EXCHG_OUT_ACTION_REPLACE_IMAGEMAP:
 
-            // dann muss ueber das Format gegangen werden
+            // then we have to use the format
             switch( nFormat )
             {
             case SOT_FORMATSTR_ID_DRAWING:
@@ -1325,7 +1323,7 @@ int SwTransferable::PasteData( TransferableDataHelper& rData,
                 break;
 
             case SOT_FORMAT_FILE_LIST:
-                // dann nur als Grafiken einfuegen
+                // then insert as graphics only
                 nRet = SwTransferable::_PasteFileList( rData, rSh,
                                     EXCHG_IN_ACTION_LINK == nClearedAction,
                                     pPt, bMsg );
@@ -1551,7 +1549,7 @@ USHORT SwTransferable::GetSotDestination( const SwWrtShell& rSh,
     case OBJCNT_URLBUTTON:	nRet = EXCHG_DEST_DOC_URLBUTTON; 	break;
     case OBJCNT_GROUPOBJ:	nRet = EXCHG_DEST_DOC_GROUPOBJ;		break;
 
-// was mmchen wir bei Mehrfachselektion???
+// what do we do at multiple selections???
     default:
         {
             if( rSh.GetView().GetDocShell()->ISA(SwWebDocShell) )
@@ -1803,8 +1801,8 @@ int SwTransferable::_PasteOLE( TransferableDataHelper& rData, SwWrtShell& rSh,
                    xObjRef.SetGraphic( aGraphic, aMimeType );
             }
 
-            //Size einstellen. Ist ein Hack wg. Auslieferung, die Size sollte
-            //an das InsertOle uebergeben werden!!!!!!!!!!
+            //set size. This is a hack because of handing over, size should be
+            //passed to the InsertOle!!!!!!!!!!
             Size aSize;
             if ( aObjDesc.mnViewAspect == embed::Aspects::MSOLE_ICON )
             {
@@ -1818,7 +1816,7 @@ int SwTransferable::_PasteOLE( TransferableDataHelper& rData, SwWrtShell& rSh,
             }
             else if( aObjDesc.maSize.Width() && aObjDesc.maSize.Height() )
             {
-                aSize = Size( aObjDesc.maSize );    //immer 100TH_MM
+                aSize = Size( aObjDesc.maSize );    //always 100TH_MM
                 MapUnit aUnit = VCLUnoHelper::UnoEmbed2VCLMapUnit( xObj->getMapUnit( aObjDesc.mnViewAspect ) );
                 aSize = OutputDevice::LogicToLogic( aSize, MAP_100TH_MM, aUnit );
                 awt::Size aSz;
@@ -1851,7 +1849,7 @@ int SwTransferable::_PasteOLE( TransferableDataHelper& rData, SwWrtShell& rSh,
                 {
                 }
             }
-            //Ende mit Hack!
+            //End of Hack!
 
             rSh.InsertOleObject( xObjRef );
             nRet = 1;
@@ -1883,8 +1881,7 @@ int SwTransferable::_PasteTargetURL( TransferableDataHelper& rData,
             String sURL( aINetImg.GetImageURL() );
             SwTransferable::_CheckForURLOrLNKFile( rData, sURL );
 
-            //!!! auf FileSystem abpruefen - nur dann ist es sinnvoll die
-            // Grafiken zu testen !!!!
+            //!!! check at FileSystem - only then it make sense to test graphics !!!
             Graphic aGrf;
             GraphicFilter *pFlt = GraphicFilter::GetGraphicFilter();
             nRet = GRFILTER_OK == GraphicFilter::LoadGraphic( sURL, aEmptyStr, aGrf, pFlt );
@@ -1951,7 +1948,7 @@ void SwTransferable::SetSelInShell( SwWrtShell& rSh, BOOL bSelectFrm,
 {
     if( bSelectFrm )
     {
-        // Rahmen/Objecte selektieren
+        // select frames/objects
         if( pPt && !rSh.GetView().GetViewFrame()->GetDispatcher()->IsLocked() )
         {
             rSh.GetView().NoRotate();
@@ -1985,7 +1982,7 @@ int SwTransferable::_PasteDDE( TransferableDataHelper& rData,
                                 SwWrtShell& rWrtShell, BOOL bReReadGrf,
                                 BOOL bMsg )
 {
-    // Daten aus dem Clipboardformat
+    // data from Clipboardformat
     String aApp, aTopic, aItem;
 
     {
@@ -1994,7 +1991,7 @@ int SwTransferable::_PasteDDE( TransferableDataHelper& rData,
         {
             OSL_ENSURE( !&rWrtShell, "DDE Data not found." );
             return 0;
-        }	//sinnvollen Fehler melden!!
+        }	// report useful error!!
 
         rtl_TextEncoding eEncoding = DDE_TXT_ENCODING;
         xStrm->ReadCString( aApp, eEncoding );
@@ -2005,7 +2002,7 @@ int SwTransferable::_PasteDDE( TransferableDataHelper& rData,
     String aCmd;
     sfx2::MakeLnkName( aCmd, &aApp, aTopic, aItem );
 
-    // wollen wir jetzt eine Grafik einlesen ?
+    // do we want to read in a graphic now?
     ULONG nFormat;
     if( !rData.HasFormat( FORMAT_RTF ) &&
         !rData.HasFormat( SOT_FORMATSTR_ID_HTML ) &&
@@ -2078,8 +2075,7 @@ int SwTransferable::_PasteDDE( TransferableDataHelper& rData,
     {
         do {			// middle checked loop
 
-            // Wenn die Daten von einer Tabellenkalkulation kommen
-            // fuegen wir eine DDE-Tabelle ein
+            // When data comes from a spreadsheet, we add a DDE-table
             if( ( rData.HasFormat( SOT_FORMATSTR_ID_SYLK ) ||
                   rData.HasFormat( SOT_FORMATSTR_ID_SYLK_BIGCAPS ) ) &&
                 aExpand.Len() &&
@@ -2093,7 +2089,7 @@ int SwTransferable::_PasteDDE( TransferableDataHelper& rData,
                 sTmp = sTmp.GetToken( 0, '\n' );
                 xub_StrLen nCols = sTmp.GetTokenCount( '\t' );
 
-                // mindestens eine Spalte & Zeile muss vorhanden sein
+                // at least one column & row must be there
                 if( !nRows || !nCols )
                 {
                     if( bMsg )
@@ -2108,7 +2104,7 @@ int SwTransferable::_PasteDDE( TransferableDataHelper& rData,
             }
             else if( 1 < aExpand.GetTokenCount( '\n' ) )
             {
-                // mehrere Absaetze -> eine geschuetzte Section einfuegen
+                // multiple paragraphs -> insert a protected section
                 if( rWrtShell.HasSelection() )
                     rWrtShell.DelRight();
 
@@ -2117,7 +2113,7 @@ int SwTransferable::_PasteDDE( TransferableDataHelper& rData,
                 aSect.SetProtectFlag(true);
                 rWrtShell.InsertSection( aSect );
 
-                pDDETyp = 0;				// FeldTypen wieder entfernen
+                pDDETyp = 0;				// remove FieldTypes again
             }
             else
             {
@@ -2129,11 +2125,11 @@ int SwTransferable::_PasteDDE( TransferableDataHelper& rData,
         } while( FALSE );
     }
     else
-        pDDETyp = 0;						// FeldTypen wieder entfernen
+        pDDETyp = 0;						// remove FieldTypes again
 
     if( !pDDETyp && !bDoublePaste )
     {
-        // FeldTyp wieder entfernen - Fehler aufgetreten!
+        // remove FieldType again - error occured!
         for( j = nSize; j >= INIT_FLDTYPES; --j )
             if( pTyp == rWrtShell.GetFldType( j ) )
             {
@@ -2217,17 +2213,16 @@ int SwTransferable::_PasteGrf( TransferableDataHelper& rData, SwWrtShell& rSh,
 
     if( bCheckForGrf )
     {
-        //!!! auf FileSystem abpruefen - nur dann ist es sinnvoll die
-        // Grafiken zu testen !!!!
+        //!!! check at FileSystem - only then it makes sense to test the graphics !!!
         GraphicFilter *pFlt = GraphicFilter::GetGraphicFilter();
         nRet = GRFILTER_OK == GraphicFilter::LoadGraphic( aBkmk.GetURL(), aEmptyStr,
                                             aGrf, pFlt );
         if( !nRet && SW_PASTESDR_SETATTR == nAction &&
             SOT_FORMAT_FILE == nFmt &&
-            // Bug 63031 - nur bei Rahmenselektion
+            // Bug 63031 - only at frame selection
             rSh.IsFrmSelected() )
         {
-            // dann als Hyperlink hinter die Grafik setzen
+            // then set as hyperlink after the graphic
             nFmt = SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK;
             nRet = TRUE;
         }
@@ -2299,7 +2294,7 @@ int SwTransferable::_PasteGrf( TransferableDataHelper& rData, SwWrtShell& rSh,
     }
     else if( bCheckForImageMap )
     {
-        // oder sollte das File ein ImageMap-File sein?
+        // or should the file be an ImageMap-File?
         ImageMap aMap;
         SfxMedium aMed( INetURLObject(aBkmk.GetURL()).GetFull(),
                             STREAM_STD_READ, FALSE );
@@ -2334,7 +2329,7 @@ int SwTransferable::_PasteImageMap( TransferableDataHelper& rData,
         SwFmtURL aURL( (SwFmtURL&)aSet.Get( RES_URL ) );
         const ImageMap* pOld = aURL.GetMap();
 
-        // setzen oder ersetzen ist hier die Frage
+        // set or replace, that is the question
         ImageMap aImageMap;
         if( rData.GetImageMap( SOT_FORMATSTR_ID_SVIM, aImageMap ) &&
             ( !pOld || aImageMap != *pOld ))
@@ -2358,7 +2353,7 @@ int SwTransferable::_PasteAsHyperlink( TransferableDataHelper& rData,
         String sDesc;
         SwTransferable::_CheckForURLOrLNKFile( rData, sFile, &sDesc );
 
-        //#41801# ersteinmal die URL absolut machen
+        //#41801# at first, make the URL absolute
         INetURLObject aURL;
         aURL.SetSmartProtocol( INET_PROT_FILE );
         aURL.SetSmartURL( sFile );
@@ -2422,14 +2417,14 @@ int SwTransferable::_PasteFileName( TransferableDataHelper& rData,
             {
                 BOOL bIsURLFile = SwTransferable::_CheckForURLOrLNKFile( rData, sFile, &sDesc );
 
-                //Eigenes FileFormat? -->Einfuegen, nicht fuer StarWriter/Web
+                //Own FileFormat? --> insert, not for StarWriter/Web
                 String sFileURL = URIHelper::SmartRel2Abs(INetURLObject(), sFile, Link(), false );
                 const SfxFilter* pFlt = SW_PASTESDR_SETATTR == nAction
                         ? 0 : SwIoSystem::GetFileFilter(
                         sFileURL, aEmptyStr );
                 if( pFlt && !rSh.GetView().GetDocShell()->ISA(SwWebDocShell) )
                 {
-    // und dann per PostUser Event den Bereich-Einfuegen-Dialog hochreissen
+    // and then pull up the insert-region-dialog by PostUser event
                     SwSectionData * pSect = new SwSectionData(
                                     FILE_LINK_SECTION,
                                     rSh.GetDoc()->GetUniqueSectionName() );
@@ -2443,10 +2438,9 @@ int SwTransferable::_PasteFileName( TransferableDataHelper& rData,
                 else if( SW_PASTESDR_SETATTR == nAction ||
                         ( bIsURLFile && SW_PASTESDR_INSERT == nAction ))
                 {
-                    //Fremde Files koennen wir immerhin noch als Links
-                    //Einfuegen.
+                    //we can insert foreign files as links after all
 
-                    //#41801# ersteinmal die URL absolut machen
+                    //#41801# at first, make the URL absolute
                     INetURLObject aURL;
                     aURL.SetSmartProtocol( INET_PROT_FILE );
                     aURL.SetSmartURL( sFile );
@@ -2898,7 +2892,7 @@ void SwTransferable::SetDataForDragAndDrop( const Point& rSttPos )
         AddFormat( FORMAT_GDIMETAFILE );
         eBufferType = TRNSFR_OLE;
     }
-    //Gibt es ueberhaupt etwas zum bereitstellen?
+    //Is there anything to provide anyway?
     else if ( pWrtShell->IsSelection() || pWrtShell->IsFrmSelected() ||
               pWrtShell->IsObjSelected() )
     {
@@ -2918,8 +2912,7 @@ void SwTransferable::SetDataForDragAndDrop( const Point& rSttPos )
 
         AddFormat( SOT_FORMATSTR_ID_EMBED_SOURCE );
 
-        //RTF vor das Metafile von OLE stellen, weil mit weniger verlusten
-        //behaftet.
+        //put RTF ahead of the OLE's Metafile for less loss
         if( !pWrtShell->IsObjSelected() )
         {
             AddFormat( FORMAT_RTF );
@@ -2945,7 +2938,7 @@ void SwTransferable::SetDataForDragAndDrop( const Point& rSttPos )
             if( !pWrtShell->GetDrawObjGraphic( FORMAT_BITMAP, *pClpBitmap ))
                 pOrigGrf = pClpBitmap;
 
-            // ist es ein URL-Button ?
+            // is it an URL-Button ?
             String sURL, sDesc;
             if( pWrtShell->GetURLFromButton( sURL, sDesc ) )
             {
@@ -2959,9 +2952,9 @@ void SwTransferable::SetDataForDragAndDrop( const Point& rSttPos )
             }
         }
 
-        //ObjectDescriptor wurde bereits aus der alten DocShell gefuellt.
-        //Jetzt noch anpassen. Dadurch kann im GetData die erste Anfrage
-        //auch noch mit delayed rendering beantwortet werden.
+        //ObjectDescriptor was already filly by the old DocShell.
+        //Now adjust it. Thus in GetData the first query can still
+        //be answered with delayed rendering.
         aObjDesc.mbCanLink = FALSE;
         aObjDesc.maDragStartPos = rSttPos;
         aObjDesc.maSize = OutputDevice::LogicToLogic( Size( OLESIZE ),
@@ -2971,7 +2964,7 @@ void SwTransferable::SetDataForDragAndDrop( const Point& rSttPos )
     }
     else if( nSelection & nsSelectionType::SEL_TXT && !pWrtShell->HasMark() )
     {
-        // ist nur ein Feld - Selektiert?
+        // is only one field - selected?
         SwContentAtPos aCntntAtPos( SwContentAtPos::SW_INETATTR );
         Point aPos( SwEditWin::GetDDStartPosX(), SwEditWin::GetDDStartPosY());
 
@@ -3033,13 +3026,13 @@ void SwTransferable::StartDrag( Window* pWin, const Point& rPos )
 
 void SwTransferable::DragFinished( sal_Int8 nAction )
 {
-    //Und noch die letzten Nacharbeiten damit alle Stati stimmen.
+    //And the last finishing work so that all statuses are right
     if( DND_ACTION_MOVE == nAction	)
     {
         if( bCleanUp )
         {
-            //Es wurde auserhalb des Writers gedroped. Wir muessen noch
-            //loeschen.
+            //Is was dropped outside of Writer. We still have to
+            //delete.
 
             pWrtShell->StartAllAction();
             pWrtShell->StartUndo( UNDO_UI_DRAG_AND_MOVE );
@@ -3048,7 +3041,7 @@ void SwTransferable::DragFinished( sal_Int8 nAction )
             else
             {
                 if ( !(pWrtShell->IsSelFrmMode() || pWrtShell->IsObjSelected()) )
-                    //SmartCut, eines der Blanks mitnehmen.
+                    //SmartCut, take one of the blanks along
                     pWrtShell->IntelligentCut( pWrtShell->GetSelectionType(), TRUE );
                 pWrtShell->DelRight();
             }
@@ -3077,8 +3070,8 @@ void SwTransferable::DragFinished( sal_Int8 nAction )
 
 int SwTransferable::PrivatePaste( SwWrtShell& rShell )
 {
-    // erst den SelectionType erfragen, dann Action-Klammerung !!!!
-    // (sonst wird nicht in eine TabellenSelektion gepastet!!!)
+    // first, ask for the SelectionType, then action-bracketing !!!!
+    // (otherwise it's not pasted into a TableSelection!!!)
     OSL_ENSURE( !rShell.ActionPend(), "Paste darf nie eine Actionklammerung haben" );
     if ( !pClpDocFac )
         return sal_False; // the return value of the SwFEShell::Paste also is BOOL!
@@ -3092,20 +3085,19 @@ int SwTransferable::PrivatePaste( SwWrtShell& rShell )
 
     bool bKillPaMs = false;
 
-    //Selektierten Inhalt loeschen, nicht bei Tabellen-Selektion und
-    //Tabelle im Clipboard
+    //Delete selected content, not at table-selection and table in Clipboard
     if( rShell.HasSelection() && !( nSelection & nsSelectionType::SEL_TBL_CELLS))
     {
         bKillPaMs = true;
         rShell.SetRetainSelection( true );
         rShell.DelRight();
-        // war ein Fly selektiert, so muss jetzt fuer eine gueltige
-        // Cursor-Position gesorgt werden! (geparkter Cursor!)
+        // when a Fly was selected, a valid cursor position has to be found now
+        // (parked Cursor!)
         if( ( nsSelectionType::SEL_FRM | nsSelectionType::SEL_GRF |
             nsSelectionType::SEL_OLE | nsSelectionType::SEL_DRW |
             nsSelectionType::SEL_DRW_FORM ) & nSelection )
         {
-            // den Cursor wieder positionieren
+            // position the cursor again
             Point aPt( rShell.GetCharRect().Pos() );
             rShell.SwCrsrShell::SetCrsr( aPt, TRUE );
         }
@@ -3136,7 +3128,7 @@ int SwTransferable::PrivatePaste( SwWrtShell& rShell )
     if( bKillPaMs )
         rShell.KillPams();
 
-    // Wenn Smart Paste dann Leerzeichen einfuegen
+    // If Smart Paste then insert blanks
     if( nRet && bSmart && ((bInWrd && !bEndWrd )|| bSttWrd) )
         rShell.SwEditShell::Insert(' ');
 
@@ -3166,7 +3158,7 @@ int SwTransferable::PrivateDrop( SwWrtShell& rSh, const Point& rDragPt,
             if( (TRNSFR_INETFLD & eBufferType) && pBkmk )
                 aTmp = *pBkmk;
 
-            // Zielgrafik selektieren
+            // select target graphic
             if( rSh.SelectObj( rDragPt ) )
             {
                 rSh.HideCrsr();
@@ -3176,7 +3168,7 @@ int SwTransferable::PrivateDrop( SwWrtShell& rSh, const Point& rDragPt,
 
             const int nSelection = rSh.GetSelectionType();
 
-            // Draw-Objekte erstmal noch nicht beruecksichtigen
+            // not yet consider Draw objects
             if( nsSelectionType::SEL_GRF & nSelection )
             {
                 SfxItemSet aSet( rSh.GetAttrPool(), RES_URL, RES_URL );
@@ -3201,14 +3193,14 @@ int SwTransferable::PrivateDrop( SwWrtShell& rSh, const Point& rDragPt,
     if( &rSh != &rSrcSh && (nsSelectionType::SEL_GRF & rSh.GetSelectionType()) &&
         TRNSFR_GRAPHIC == eBufferType )
     {
-        // ReRead auf die Grafik
+        // ReRead on the graphic
         String sGrfNm, sFltNm;
         rSrcSh.GetGrfNms( &sGrfNm, &sFltNm );
         rSh.ReRead( sGrfNm, sFltNm, rSrcSh.GetGraphic() );
         return 1;
     }
 
-    //Nicht in Selektionen oder selektierten Rahmen
+    //not in selections or selected frames
     if( rSh.ChgCurrPam( rDragPt ) ||
         ( rSh.IsSelFrmMode() && rSh.IsInsideSelectedObj( rDragPt )) )
         return 0;
@@ -3217,7 +3209,7 @@ int SwTransferable::PrivateDrop( SwWrtShell& rSh, const Point& rDragPt,
         bTblSel = TRUE;
     else if( rSrcSh.IsSelFrmMode() || rSrcSh.IsObjSelected() )
     {
-        // keine positionsgeschuetzten Objecte verschieben!
+        // don't move position-protected objects!
         if( bMove && rSrcSh.IsSelObjProtected( FLYPROTECT_POS ) )
             return 0;
 
@@ -3272,7 +3264,7 @@ int SwTransferable::PrivateDrop( SwWrtShell& rSh, const Point& rDragPt,
 
     Point aSttPt( SwEditWin::GetDDStartPosX(), SwEditWin::GetDDStartPosY() );
 
-    //JP 05.03.96: INetFelder erstmal selektieren !
+    //JP 05.03.96: at first, select INetFelder!
     if( TRNSFR_INETFLD == eBufferType )
     {
         if( &rSrcSh == &rSh )
@@ -3282,7 +3274,7 @@ int SwTransferable::PrivateDrop( SwWrtShell& rSh, const Point& rDragPt,
             rSh.SelectTxtAttr( RES_TXTATR_INETFMT );
             if( rSh.ChgCurrPam( rDragPt ) )
             {
-                // nicht in sich selbst kopieren/verschieben
+                // don't copy/move inside of yourself
                 rSh.DestroyCrsr();
                 rSh.EndUndo( eUndoId );
                 rSh.EndAction();
@@ -3297,15 +3289,15 @@ int SwTransferable::PrivateDrop( SwWrtShell& rSh, const Point& rDragPt,
             rSrcSh.SelectTxtAttr( RES_TXTATR_INETFMT );
         }
 
-        // ist am Einfuege Punkt ein URL-Attribut? Dann das ersetzen,
-        // also einfach eine Selektion aufspannen?
+        // is there an URL attribute at the insert point? Then replace that,
+        // so simply put up a selection?
         rSh.DelINetAttrWithText();
         bDDINetAttr = TRUE;
     }
 
     if ( rSrcSh.IsSelFrmMode() )
     {
-        //Hack: Spezialbehandlung austricksen
+        //Hack: trick the special treatment
         aSttPt -= aSttPt - rSrcSh.GetObjRect().Pos();
     }
 
@@ -3324,7 +3316,7 @@ int SwTransferable::PrivateDrop( SwWrtShell& rSh, const Point& rDragPt,
             }
             else
             {
-                //SmartCut, eines der Blank mitnehmen.
+                //SmartCut, take one of the blanks along.
                 rSh.SwCrsrShell::DestroyCrsr();
                 if ( cWord == SwWrtShell::WORD_SPACE_BEFORE )
                     rSh.ExtendSelection( FALSE );
@@ -3381,7 +3373,7 @@ int SwTransferable::PrivateDrop( SwWrtShell& rSh, const Point& rDragPt,
                 rSh.SwCrsrShell::CreateCrsr();
             else
             {
-                // Selektionsmodus einschalten
+                // turn on selection mode
                 rSh.SttSelect();
                 rSh.EndSelect();
             }
@@ -3395,7 +3387,7 @@ int SwTransferable::PrivateDrop( SwWrtShell& rSh, const Point& rDragPt,
         rSrcSh.EndUndo( eUndoId );
     rSh.EndUndo( eUndoId );
 
-        // Shell in den richtigen Status versetzen
+        // put the shell in the right state
     if( &rSrcSh != &rSh && ( rSh.IsFrmSelected() || rSh.IsObjSelected() ))
         rSh.EnterSelFrmMode();
 
@@ -3479,7 +3471,7 @@ SwTrnsfrDdeLink::SwTrnsfrDdeLink( SwTransferable& rTrans, SwWrtShell& rSh )
     : rTrnsfr( rTrans ), pDocShell( 0 ),
     bDelBookmrk( FALSE ), bInDisconnect( FALSE )
 {
-    // hier kommen wir nur bei Tabellen- oder Text-Selection an
+    // we only end up here with table- or text selection
     const int nSelection = rSh.GetSelectionType();
     if( nsSelectionType::SEL_TBL_CELLS & nSelection )
     {
@@ -3514,8 +3506,7 @@ SwTrnsfrDdeLink::SwTrnsfrDdeLink( SwTransferable& rTrans, SwWrtShell& rSh )
     if( sName.Len() &&
         0 != ( pDocShell = rSh.GetDoc()->GetDocShell() ) )
     {
-        // dann erzeugen wir uns mal unseren "Server" und connecten uns
-        // zu diesem
+        // then we create our "server" and connect to it
         refObj = pDocShell->DdeCreateLinkSource( sName );
         if( refObj.Is() )
         {
@@ -3538,7 +3529,7 @@ SwTrnsfrDdeLink::~SwTrnsfrDdeLink()
 void SwTrnsfrDdeLink::DataChanged( const String& ,
                                     const uno::Any& )
 {
-    // tja das wars dann mit dem Link
+    // well, that's it with the link
     if( !bInDisconnect )
     {
         if( FindDocShell() && pDocShell->GetView() )
@@ -3614,13 +3605,13 @@ BOOL SwTrnsfrDdeLink::WriteData( SvStream& rStrm )
 void SwTrnsfrDdeLink::Disconnect( BOOL bRemoveDataAdvise )
 {
     //JP 29.01.96 Bug 24432:
-    //		kein DataChanged mehr entgegen nehmen, wenn man
-    //		sich schon im Disconnet befindet!
-    // 		(DTOR vom Bookmark verschickt einen DataChanged!)
+    //		don't accept DataChanged anymore, when already
+    //		located in Disconnet!
+    // 		(DTOR from Bookmark sends a DataChanged!)
     BOOL bOldDisconnect = bInDisconnect;
     bInDisconnect = TRUE;
 
-    // den nicht verwendeten Bookmark wieder zerstoeren (ohne Undo!)?
+    // destroy the unused bookmark again (without Undo!)?
     if( bDelBookmrk && refObj.Is() && FindDocShell() )
     {
         SwDoc* pDoc = pDocShell->GetDoc();
@@ -3651,10 +3642,10 @@ void SwTrnsfrDdeLink::Disconnect( BOOL bRemoveDataAdvise )
         refObj->SetUpdateTimeout( nOldTimeOut );
         refObj->RemoveConnectAdvise( this );
         if( bRemoveDataAdvise )
-            // in einem DataChanged darf das SelectionObject NIE geloescht
-            // werden; wird schon von der Basisklasse erledigt
+            // in a DataChanged the SelectionObject must NEVER be deleted
+            // is already handled by the base class
             // (ADVISEMODE_ONLYONCE!!!!)
-            // Im normalen Disconnet aber schon!
+            // but always in normal Disconnect!
             refObj->RemoveAllDataAdvise( this );
         refObj.Clear();
     }
@@ -3667,11 +3658,11 @@ BOOL SwTrnsfrDdeLink::FindDocShell()
     SfxObjectShell* pTmpSh = SfxObjectShell::GetFirst( &aType );
     while( pTmpSh )
     {
-        if( pTmpSh == pDocShell )		// die wollen wir haben
+        if( pTmpSh == pDocShell )		// that's what we want to have
         {
             if( pDocShell->GetDoc() )
                 return TRUE;
-            break;		// das Doc ist nicht mehr vorhanden, also raus!
+            break;		// the Doc is not there anymore, so out!
         }
         pTmpSh = SfxObjectShell::GetNext( *pTmpSh, &aType );
     }
-- 
1.7.1



More information about the LibreOffice mailing list