[Libreoffice-commits] core.git: sc/source

Albert Thuswaldner albert.thuswaldner at gmail.com
Sun Jul 19 12:25:03 PDT 2015


 sc/source/ui/view/drawvie3.cxx |   12 ++++-----
 sc/source/ui/view/drawvie4.cxx |   14 ++++-------
 sc/source/ui/view/drawview.cxx |   50 ++++++++++++++++++++---------------------
 3 files changed, 36 insertions(+), 40 deletions(-)

New commits:
commit e97e4baf5433ccf782101ad1eb3d07db1867f648
Author: Albert Thuswaldner <albert.thuswaldner at gmail.com>
Date:   Sun Jul 19 11:09:37 2015 +0200

    fdo#39468 translated german comments in drawview*.cxx
    
    Change-Id: I18cfceb16a5405684a9c36e8b517c6afc3eda05b
    Reviewed-on: https://gerrit.libreoffice.org/17188
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/ui/view/drawvie3.cxx b/sc/source/ui/view/drawvie3.cxx
index 74ad8e6..7e79ef9 100644
--- a/sc/source/ui/view/drawvie3.cxx
+++ b/sc/source/ui/view/drawvie3.cxx
@@ -53,7 +53,7 @@ ScDrawView::ScDrawView( OutputDevice* pOut, ScViewData* pData ) :
     Construct();
 }
 
-// Verankerung setzen
+// set anchor
 
 void ScDrawView::SetPageAnchored()
 {
@@ -169,7 +169,7 @@ void adjustAnchoredPosition(const SdrHint& rHint, const ScDocument& rDoc, SCTAB
 
 void ScDrawView::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
 {
-    if (dynamic_cast<const ScTabDeletedHint*>(&rHint))                        // Tabelle geloescht
+    if (dynamic_cast<const ScTabDeletedHint*>(&rHint))                        // Sheet has been deleted
     {
         SCTAB nDelTab = static_cast<const ScTabDeletedHint&>(rHint).GetTab();
         if (ValidTab(nDelTab))
@@ -179,7 +179,7 @@ void ScDrawView::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
                 HideSdrPage();
         }
     }
-    else if (dynamic_cast<const ScTabSizeChangedHint*>(&rHint))               // Groesse geaendert
+    else if (dynamic_cast<const ScTabSizeChangedHint*>(&rHint))               // Size has been changed
     {
         if ( nTab == static_cast<const ScTabSizeChangedHint&>(rHint).GetTab() )
             UpdateWorkArea();
@@ -206,10 +206,10 @@ void ScDrawView::UpdateIMap( SdrObject* pObj )
         if ( pIMapInfo )
             pImageMap = &pIMapInfo->GetImageMap();
 
-        // Target-Liste besorgen
+        // handle target list
         pViewData->GetViewShell()->GetViewFrame()->GetTargetList( aTargetList );
 
-        // Grafik vom Objekt besorgen
+        // handle graphics from object
         if ( pObj->ISA( SdrGrafObj ) )
             aGraphic = static_cast<SdrGrafObj*>(pObj)->GetGraphic();
         else
@@ -219,7 +219,7 @@ void ScDrawView::UpdateIMap( SdrObject* pObj )
                 aGraphic = *pGraphic;
         }
 
-        ScIMapDlgSet( aGraphic, pImageMap, &aTargetList, pObj );    // aus imapwrap
+        ScIMapDlgSet( aGraphic, pImageMap, &aTargetList, pObj );    // from imapwrap
     }
 }
 
diff --git a/sc/source/ui/view/drawvie4.cxx b/sc/source/ui/view/drawvie4.cxx
index 108d714..73794d2 100644
--- a/sc/source/ui/view/drawvie4.cxx
+++ b/sc/source/ui/view/drawvie4.cxx
@@ -119,7 +119,6 @@ bool ScDrawView::BeginDrag( vcl::Window* pWindow, const Point& rStartPos )
         //  there's no need to call SchDLL::Update for the charts in the clipboard doc.
         //  Update with the data (including NumberFormatter) from the live document would
         //  also store the NumberFormatter in the clipboard chart (#88749#)
-        // lcl_RefreshChartData( pModel, pViewData->GetDocument() );
 
         ScDocShell* pDocSh = pViewData->GetDocShell();
 
@@ -132,9 +131,9 @@ bool ScDrawView::BeginDrag( vcl::Window* pWindow, const Point& rStartPos )
         uno::Reference<datatransfer::XTransferable> xTransferable( pTransferObj );
 
         pTransferObj->SetDrawPersist( &aDragShellRef );    // keep persist for ole objects alive
-        pTransferObj->SetDragSource( this );            // copies selection
+        pTransferObj->SetDragSource( this );               // copies selection
 
-        SC_MOD()->SetDragObject( NULL, pTransferObj );      // for internal D&D
+        SC_MOD()->SetDragObject( NULL, pTransferObj );     // for internal D&D
         pTransferObj->StartDrag( pWindow, DND_ACTION_COPYMOVE | DND_ACTION_LINK );
     }
 
@@ -237,9 +236,7 @@ void getRangeFromOle2Object(const SdrOle2Obj& rObj, std::vector<OUString>& rRang
     getRangeFromDataSource(xDataSource, rRangeRep);
 }
 
-/**
- * Get all cell ranges that are referenced by the selected chart objects.
- */
+// Get all cell ranges that are referenced by the selected chart objects.
 void getChartSourceRanges(ScDocument* pDoc, const SdrMarkList& rObjs, std::vector<ScRange>& rRanges)
 {
     std::vector<OUString> aRangeReps;
@@ -435,7 +432,7 @@ uno::Reference<datatransfer::XTransferable> ScDrawView::CopyToTransferable()
     return xTransferable;
 }
 
-//  Korrektur fuer 100% berechnen, unabhaengig von momentanen Einstellungen
+// Calculate correction for 100%, regardless of current settings
 
 void ScDrawView::CalcNormScale( Fraction& rFractX, Fraction& rFractY ) const
 {
@@ -511,8 +508,7 @@ void ScDrawView::SetMarkedOriginalSize()
             MapMode aDestMap( MAP_100TH_MM );
             if (aSourceMap.GetMapUnit() == MAP_PIXEL)
             {
-                //  Pixel-Korrektur beruecksichtigen, damit Bitmap auf dem Bildschirm stimmt
-
+                // consider pixel correction, so that the bitmap is correct on the screen
                 Fraction aNormScaleX, aNormScaleY;
                 CalcNormScale( aNormScaleX, aNormScaleY );
                 aDestMap.SetScaleX(aNormScaleX);
diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index 2c258c6..8a622c2 100644
--- a/sc/source/ui/view/drawview.cxx
+++ b/sc/source/ui/view/drawview.cxx
@@ -274,7 +274,7 @@ void ScDrawView::UpdateWorkArea()
     }
     else
     {
-        OSL_FAIL("Page nicht gefunden");
+        OSL_FAIL("Page not found");
     }
 }
 
@@ -282,7 +282,7 @@ void ScDrawView::DoCut()
 {
     DoCopy();
     BegUndo( ScGlobal::GetRscString( STR_UNDO_CUT ) );
-    DeleteMarked();     // auf dieser View - von der 505f Umstellung nicht betroffen
+    DeleteMarked();     // In this View - not affected by 505f change
     EndUndo();
 }
 
@@ -312,7 +312,7 @@ void ScDrawView::RecalcScale()
         Point aLogic = pDev->LogicToPixel( Point(1000,1000), MAP_TWIP );
         nPPTX = aLogic.X() / 1000.0;
         nPPTY = aLogic.Y() / 1000.0;
-                                            //! Zoom uebergeben ???
+                                            //! Zoom, handed over ???
     }
 
     SCCOL nEndCol = 0;
@@ -362,7 +362,7 @@ void ScDrawView::MarkListHasChanged()
         SC_MOD()->InputEnterHandler();
     }
 
-    //  IP deaktivieren
+    // deactivate IP
 
     ScModule* pScMod = SC_MOD();
     bool bUnoRefDialog = pScMod->IsRefDialogOpen() && pScMod->GetCurRefDlgId() == WID_SIMPLE_REF;
@@ -370,12 +370,12 @@ void ScDrawView::MarkListHasChanged()
     ScClient* pClient = static_cast<ScClient*>( pViewSh->GetIPClient() );
     if ( pClient && pClient->IsObjectInPlaceActive() && !bUnoRefDialog )
     {
-        //  beim ViewShell::Activate aus dem Reset2Open nicht die Handles anzeigen
+        // do not display the handles fot ViewShell::Activate from the Reset2Open
         pClient->DeactivateObject();
-        //  Image-Ole wieder durch Grafik ersetzen passiert jetzt in ScClient::UIActivate
+        // replacing image ole graphics is now done in ScClient::UIActivate
     }
 
-    //  Ole-Objekt selektiert?
+    //  Select Ole object?
 
     SdrOle2Obj* pOle2Obj = NULL;
     SdrGrafObj* pGrafObj = NULL;
@@ -414,10 +414,10 @@ void ScDrawView::MarkListHasChanged()
             pViewSh->SetMediaShell(true);
             bSubShellSet = true;
         }
-        else if (pObj->GetObjIdentifier() != OBJ_TEXT   // Verhindern, das beim Anlegen
-                    || !pViewSh->IsDrawTextShell())     // eines TextObjekts auf die
-        {                                               // DrawShell umgeschaltet wird.
-            pViewSh->SetDrawShell(true);                //@#70206#
+        else if (pObj->GetObjIdentifier() != OBJ_TEXT   // prevent switching to the drawing shell
+                    || !pViewSh->IsDrawTextShell())     // when creating a text object @#70206#
+        {
+            pViewSh->SetDrawShell(true);
         }
     }
 
@@ -464,7 +464,7 @@ void ScDrawView::MarkListHasChanged()
 
         if(bOnlyControls)
         {
-            pViewSh->SetDrawFormShell(true);            // jetzt UNO-Controls
+            pViewSh->SetDrawFormShell(true);            // now UNO controls
         }
         else if(bOnlyGraf)
         {
@@ -476,7 +476,7 @@ void ScDrawView::MarkListHasChanged()
         }
     }
 
-    //  Verben anpassen
+    // adjust verbs
 
     SfxViewFrame* pViewFrame = pViewSh->GetViewFrame();
     bool bOle = pViewSh->GetViewFrame()->GetFrame().IsInPlace();
@@ -484,20 +484,20 @@ void ScDrawView::MarkListHasChanged()
     if ( pOle2Obj && !bOle )
     {
         uno::Reference < embed::XEmbeddedObject > xObj = pOle2Obj->GetObjRef();
-        OSL_ENSURE( xObj.is(), "SdrOle2Obj ohne ObjRef" );
+        OSL_ENSURE( xObj.is(), "SdrOle2Obj without ObjRef" );
         if (xObj.is())
             aVerbs = xObj->getSupportedVerbs();
     }
     pViewSh->SetVerbs( aVerbs );
 
-    //  Image-Map Editor
+    // image map editor
 
     if ( pOle2Obj )
         UpdateIMap( pOle2Obj );
     else if ( pGrafObj )
         UpdateIMap( pGrafObj );
 
-    InvalidateAttribs();                // nach dem IMap-Editor Update
+    InvalidateAttribs();                // after the image map editor update
     InvalidateDrawTextAttrs();
 
     for(sal_uInt32 a(0L); a < PaintWindowCount(); a++)
@@ -686,9 +686,9 @@ bool ScDrawView::SelectCurrentViewObject( const OUString& rName )
     if ( pFound )
     {
         ScTabView* pView = pViewData->GetView();
-        if ( nObjectTab != nTab )                               // Tabelle umschalten
+        if ( nObjectTab != nTab )                               // switch sheet
             pView->SetTabNo( nObjectTab );
-        DBG_ASSERT( nTab == nObjectTab, "Tabellen umschalten hat nicht geklappt" );
+        DBG_ASSERT( nTab == nObjectTab, "Switching sheets did not work" );
         pView->ScrollToObject( pFound );
         if ( pFound->GetLayer() == SC_LAYER_BACK &&
                 !pViewData->GetViewShell()->IsDrawSelMode() &&
@@ -742,10 +742,10 @@ bool ScDrawView::SelectObject( const OUString& rName )
     if ( pFound )
     {
         ScTabView* pView = pViewData->GetView();
-        if ( nObjectTab != nTab )                               // Tabelle umschalten
+        if ( nObjectTab != nTab )                               // switch sheet
             pView->SetTabNo( nObjectTab );
 
-        OSL_ENSURE( nTab == nObjectTab, "Tabellen umschalten hat nicht geklappt" );
+        OSL_ENSURE( nTab == nObjectTab, "Switching sheets did not work" );
 
         pView->ScrollToObject( pFound );
 
@@ -780,8 +780,8 @@ bool ScDrawView::GetObjectIsMarked(  SdrObject* pObject  )
 
 bool ScDrawView::InsertObjectSafe(SdrObject* pObj, SdrPageView& rPV, SdrInsertFlags nOptions)
 {
-    //  Markierung nicht aendern, wenn Ole-Objekt aktiv
-    //  (bei Drop aus Ole-Objekt wuerde sonst mitten im ExecuteDrag deaktiviert!)
+    // Do not change marks when the ole object is active
+    // (for Drop from ole object would otherwise be deactivated in the middle of ExecuteDrag!)
 
     if (pViewData)
     {
@@ -817,8 +817,8 @@ void ScDrawView::LockCalcLayer( SdrLayerID nLayer, bool bLock )
 
 void ScDrawView::MakeVisible( const Rectangle& rRect, vcl::Window& rWin )
 {
-    //! rWin richtig auswerten
-    //! ggf Zoom aendern
+    //! Evaluate rWin properly
+    //! change zoom if necessary
 
     if ( pViewData && pViewData->GetActiveWin() == &rWin )
         pViewData->GetView()->MakeVisible( rRect );
@@ -869,7 +869,7 @@ SdrEndTextEditKind ScDrawView::ScEndTextEdit()
     SdrEndTextEditKind eKind = SdrEndTextEdit();
 
     if ( bIsTextEdit && pViewData )
-        pViewData->GetViewShell()->SetDrawTextUndo(NULL);   // "normaler" Undo-Manager
+        pViewData->GetViewShell()->SetDrawTextUndo(NULL);   // the "normal" undo manager
 
     return eKind;
 }


More information about the Libreoffice-commits mailing list