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

Katarina Behrens Katarina.Behrens at cib.de
Wed Mar 29 09:31:24 UTC 2017


 sc/source/ui/unoobj/dapiuno.cxx  |   12 ++++++------
 sc/source/ui/unoobj/fielduno.cxx |   24 +++++++++++-------------
 sc/source/ui/unoobj/srchuno.cxx  |    8 ++++----
 3 files changed, 21 insertions(+), 23 deletions(-)

New commits:
commit 25cd9e3316598f91a709897ed07c58c27d78f90e
Author: Katarina Behrens <Katarina.Behrens at cib.de>
Date:   Tue Mar 14 13:19:22 2017 +0100

    Translate some German comments in sc
    
    Change-Id: Ic7e007992f473e532d3c0b70506a29249f11676e

diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx
index 778289382bdd..71a8d88a640e 100644
--- a/sc/source/ui/unoobj/dapiuno.cxx
+++ b/sc/source/ui/unoobj/dapiuno.cxx
@@ -259,7 +259,7 @@ static ScDPObject* lcl_GetDPObject( ScDocShell* pDocShell, SCTAB nTab, const OUS
             }
         }
     }
-    return nullptr;    // nicht gefunden
+    return nullptr;    // not found
 }
 
 static OUString lcl_CreatePivotName( ScDocShell* pDocShell )
@@ -271,7 +271,7 @@ static OUString lcl_CreatePivotName( ScDocShell* pDocShell )
         if ( pColl )
             return pColl->CreateNewName();
     }
-    return OUString();                    // sollte nicht vorkommen
+    return OUString();                    // shouldnt' happen
 }
 
 static sal_Int32 lcl_GetObjectIndex( ScDPObject* pDPObj, const ScFieldIdentifier& rFieldId )
@@ -308,11 +308,11 @@ ScDataPilotTablesObj::~ScDataPilotTablesObj()
 
 void ScDataPilotTablesObj::Notify( SfxBroadcaster&, const SfxHint& rHint )
 {
-    //! Referenz-Update
+    //! update of references
 
     if ( rHint.GetId() == SfxHintId::Dying )
     {
-        pDocShell = nullptr;       // ungueltig geworden
+        pDocShell = nullptr;       // became invalid
     }
 }
 
@@ -639,11 +639,11 @@ Sequence<sal_Int8> SAL_CALL ScDataPilotDescriptorBase::getImplementationId()
 
 void ScDataPilotDescriptorBase::Notify( SfxBroadcaster&, const SfxHint& rHint )
 {
-    //! Referenz-Update?
+    //! update of references ?
 
     if ( rHint.GetId() == SfxHintId::Dying )
     {
-        pDocShell = nullptr;       // ungueltig geworden
+        pDocShell = nullptr;       // became invalid
     }
 }
 
diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx
index 44d46122b036..a7e5483bb59d 100644
--- a/sc/source/ui/unoobj/fielduno.cxx
+++ b/sc/source/ui/unoobj/fielduno.cxx
@@ -50,7 +50,7 @@ using namespace com::sun::star;
 
 namespace {
 
-//  alles ohne Which-ID, Map nur fuer PropertySetInfo
+//  no Which-ID here, map only for PropertySetInfo
 
 const SfxItemPropertySet* getDateTimePropertySet()
 {
@@ -148,8 +148,6 @@ sal_Int16 lcl_SvxToUnoFileFormat( SvxFileFormat nSvxValue )
 SC_SIMPLE_SERVICE_INFO( ScCellFieldsObj, "ScCellFieldsObj", "com.sun.star.text.TextFields" )
 SC_SIMPLE_SERVICE_INFO( ScHeaderFieldsObj, "ScHeaderFieldsObj", "com.sun.star.text.TextFields" )
 
-//  ScUnoEditEngine nur um aus einer EditEngine die Felder herauszubekommen...
-
 enum ScUnoCollectMode
 {
     SC_UNO_COLLECT_NONE,
@@ -311,21 +309,21 @@ void ScCellFieldsObj::Notify( SfxBroadcaster&, const SfxHint& rHint )
 {
     if ( dynamic_cast<const ScUpdateRefHint*>(&rHint) )
     {
-        //! Ref-Update
+        //! update of references
     }
     else if ( rHint.GetId() == SfxHintId::Dying )
     {
-        pDocShell = nullptr;       // ungueltig geworden
+        pDocShell = nullptr;       // became invalid
     }
 
-    //  EditSource hat sich selber als Listener angemeldet
+    //  EditSource registered itself as a listener
 }
 
 // XIndexAccess (via XTextFields)
 
 uno::Reference<text::XTextField> ScCellFieldsObj::GetObjectByIndex_Impl(sal_Int32 Index) const
 {
-    //! Feld-Funktionen muessen an den Forwarder !!!
+    //! Field functions have to be passed to the forwarder !!!
     ScEditEngineDefaulter* pEditEngine = mpEditSource->GetEditEngine();
     ScUnoEditEngine aTempEngine(pEditEngine);
     SvxFieldData* pData = aTempEngine.FindByIndex(static_cast<sal_uInt16>(Index));
@@ -334,7 +332,7 @@ uno::Reference<text::XTextField> ScCellFieldsObj::GetObjectByIndex_Impl(sal_Int3
 
     sal_Int32 nPar = aTempEngine.GetFieldPar();
     sal_Int32 nPos = aTempEngine.GetFieldPos();
-    ESelection aSelection( nPar, nPos, nPar, nPos+1 );      // Feld ist 1 Zeichen
+    ESelection aSelection( nPar, nPos, nPar, nPos+1 );      // Field size is 1 character
 
     sal_Int32 eType = pData->GetClassId();
     uno::Reference<text::XTextField> xRet(
@@ -346,11 +344,11 @@ sal_Int32 SAL_CALL ScCellFieldsObj::getCount()
 {
     SolarMutexGuard aGuard;
 
-    //! Feld-Funktionen muessen an den Forwarder !!!
+    //! Field functions have to be passed to the forwarder !!!
     ScEditEngineDefaulter* pEditEngine = mpEditSource->GetEditEngine();
     ScUnoEditEngine aTempEngine(pEditEngine);
 
-    return aTempEngine.CountFields();       // Felder zaehlen, in Zelle ist der Typ egal
+    return aTempEngine.CountFields();       // count the fields, we don't care about their type in the cell
 }
 
 uno::Any SAL_CALL ScCellFieldsObj::getByIndex( sal_Int32 nIndex )
@@ -456,7 +454,7 @@ ScHeaderFieldsObj::~ScHeaderFieldsObj()
 
 uno::Reference<text::XTextField> ScHeaderFieldsObj::GetObjectByIndex_Impl(sal_Int32 Index) const
 {
-    //! Feld-Funktionen muessen an den Forwarder !!!
+    //! Field functions have to be passed to the forwarder !!!
     ScEditEngineDefaulter* pEditEngine = mpEditSource->GetEditEngine();
     ScUnoEditEngine aTempEngine(pEditEngine);
 
@@ -503,7 +501,7 @@ sal_Int32 SAL_CALL ScHeaderFieldsObj::getCount()
 {
     SolarMutexGuard aGuard;
 
-    //! Feld-Funktionen muessen an den Forwarder !!!
+    //! Field functions have to be passed to the forwarder !!!
     ScEditEngineDefaulter* pEditEngine = mpEditSource->GetEditEngine();
     ScUnoEditEngine aTempEngine(pEditEngine);
     return aTempEngine.CountFields();
@@ -638,7 +636,7 @@ void ScEditFieldObj::setPropertyValueURL(const OUString& rName, const css::uno::
         ScEditEngineDefaulter* pEditEngine = mpEditSource->GetEditEngine();
         ScUnoEditEngine aTempEngine(pEditEngine);
 
-        //  Typ egal (in Zellen gibts nur URLs)
+        //  don't care about the type (only URLs can be found in the cells)
         SvxFieldData* pField = aTempEngine.FindByPos(
             aSelection.nStartPara, aSelection.nStartPos, text::textfield::Type::UNSPECIFIED);
         OSL_ENSURE(pField,"setPropertyValue: Feld nicht gefunden");
diff --git a/sc/source/ui/unoobj/srchuno.cxx b/sc/source/ui/unoobj/srchuno.cxx
index e572f669b758..ff666edecd67 100644
--- a/sc/source/ui/unoobj/srchuno.cxx
+++ b/sc/source/ui/unoobj/srchuno.cxx
@@ -34,9 +34,9 @@
 
 using namespace com::sun::star;
 
-//! SearchWords sucht in ganzen Zellen - umbenennen ???
+//! SearchWords searches in whole cells - rename it ???
 
-//  SfxItemPropertyMapEntry nur fuer GetPropertySetInfo
+//  SfxItemPropertyMapEntry only for GetPropertySetInfo
 
 static const SfxItemPropertyMapEntry* lcl_GetSearchPropertyMap()
 {
@@ -53,7 +53,7 @@ static const SfxItemPropertyMapEntry* lcl_GetSearchPropertyMap()
         {OUString(SC_UNO_SRCHSIMREL),   0,      cppu::UnoType<bool>::get(),       0, 0},
         {OUString(SC_UNO_SRCHSIMREM),   0,      cppu::UnoType<sal_Int16>::get(), 0, 0},
         {OUString(SC_UNO_SRCHSTYLES),   0,      cppu::UnoType<bool>::get(),       0, 0},
-        {OUString(SC_UNO_SRCHTYPE),     0,      cppu::UnoType<sal_Int16>::get(), 0, 0}, // enum TableSearch ist weg
+        {OUString(SC_UNO_SRCHTYPE),     0,      cppu::UnoType<sal_Int16>::get(), 0, 0}, // enum TableSearch is gone
         {OUString(SC_UNO_SRCHWORDS),    0,      cppu::UnoType<bool>::get(),       0, 0},
         { OUString(), 0, css::uno::Type(), 0, 0 }
     };
@@ -86,7 +86,7 @@ ScCellSearchObj::ScCellSearchObj() :
     pSearchItem->SetRowDirection(false);
     pSearchItem->SetCellType(SvxSearchCellType::FORMULA);
 
-    //  Selection-Flag wird beim Aufruf gesetzt
+    //  Selection-Flag will be set when this is called
 }
 
 ScCellSearchObj::~ScCellSearchObj()


More information about the Libreoffice-commits mailing list