Kaydet (Commit) bff6b297 authored tarafından Michael Jaumann's avatar Michael Jaumann Kaydeden (comit) Caolán McNamara

fdo#39468 translate german comments

Change-Id: Ife2b6e9729ae7335a87f077368a984c417ab5e66
Reviewed-on: https://gerrit.libreoffice.org/12154Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 24f6035e
...@@ -84,7 +84,7 @@ using ::std::unique_ptr; ...@@ -84,7 +84,7 @@ using ::std::unique_ptr;
//-----------------------------static data ----------------- //-----------------------------static data -----------------
// Funktionen fuer den Zugriff auf das Document // document access functions
void ScInterpreter::ReplaceCell( ScAddress& rPos ) void ScInterpreter::ReplaceCell( ScAddress& rPos )
{ {
...@@ -2598,11 +2598,10 @@ void ScInterpreter::ScExternal() ...@@ -2598,11 +2598,10 @@ void ScInterpreter::ScExternal()
} }
else else
{ {
// nach dem Laden Asyncs wieder anwerfen // enable asyncs after loading
if ( rArr.IsRecalcModeNormal() ) if ( rArr.IsRecalcModeNormal() )
rArr.SetExclusiveRecalcModeOnLoad(); rArr.SetExclusiveRecalcModeOnLoad();
// garantiert identischer Handle bei identischem Aufruf?!? // assure identical handler with identical call?
// sonst schei*e ...
double nErg = 0.0; double nErg = 0.0;
ppParam[0] = &nErg; ppParam[0] = &nErg;
pFuncData->Call(ppParam); pFuncData->Call(ppParam);
...@@ -2617,9 +2616,7 @@ void ScInterpreter::ScExternal() ...@@ -2617,9 +2616,7 @@ void ScInterpreter::ScExternal()
} }
else else
{ {
// falls per cut/copy/paste
pMyFormulaCell->StartListening( *pAs ); pMyFormulaCell->StartListening( *pAs );
// in anderes Dokument?
if ( !pAs->HasDocument( pDok ) ) if ( !pAs->HasDocument( pDok ) )
pAs->AddDocument( pDok ); pAs->AddDocument( pDok );
} }
...@@ -3097,7 +3094,7 @@ void ScInterpreter::ScMacro() ...@@ -3097,7 +3094,7 @@ void ScInterpreter::ScMacro()
{ {
#if !HAVE_FEATURE_SCRIPTING #if !HAVE_FEATURE_SCRIPTING
PushNoValue(); // ohne DocShell kein CallBasic PushNoValue(); // without DocShell no CallBasic
return; return;
#else #else
SbxBase::ResetError(); SbxBase::ResetError();
...@@ -3108,18 +3105,18 @@ void ScInterpreter::ScMacro() ...@@ -3108,18 +3105,18 @@ void ScInterpreter::ScMacro()
SfxObjectShell* pDocSh = pDok->GetDocumentShell(); SfxObjectShell* pDocSh = pDok->GetDocumentShell();
if ( !pDocSh || !pDok->CheckMacroWarn() ) if ( !pDocSh || !pDok->CheckMacroWarn() )
{ {
PushNoValue(); // ohne DocShell kein CallBasic PushNoValue(); // without DocShell no CallBasic
return; return;
} }
// keine Sicherheitsabfrage mehr vorneweg (nur CheckMacroWarn), das passiert im CallBasic // no security queue beforehand (just CheckMacroWarn), moved to CallBasic
// Wenn das Dok waehrend eines Basic-Calls geladen wurde, // If the Dok was loaded during a Basic-Calls,
// ist das Sbx-Objekt evtl. nicht angelegt (?) // is the Sbx-Objekt created(?)
// pDocSh->GetSbxObject(); // pDocSh->GetSbxObject();
// Funktion ueber den einfachen Namen suchen, // search function with the name,
// dann aBasicStr, aMacroStr fuer SfxObjectShell::CallBasic zusammenbauen // then assemble SfxObjectShell::CallBasic from aBasicStr, aMacroStr
StarBASIC* pRoot; StarBASIC* pRoot;
...@@ -3330,7 +3327,7 @@ void ScInterpreter::ScMacro() ...@@ -3330,7 +3327,7 @@ void ScInterpreter::ScMacro()
SCCOL nColIdx; SCCOL nColIdx;
SCROW nRowIdx; SCROW nRowIdx;
if ( nDim == 1 ) if ( nDim == 1 )
{ // array( cols ) eine Zeile, mehrere Spalten { // array( cols ) one line, several columns
pDimArray->GetDim32( 1, nCs, nCe ); pDimArray->GetDim32( 1, nCs, nCe );
nC = static_cast<SCSIZE>(nCe - nCs + 1); nC = static_cast<SCSIZE>(nCe - nCs + 1);
nRs = nRe = 0; nRs = nRe = 0;
...@@ -3355,8 +3352,8 @@ void ScInterpreter::ScMacro() ...@@ -3355,8 +3352,8 @@ void ScInterpreter::ScMacro()
for ( SCSIZE j=0; j < nR; j++ ) for ( SCSIZE j=0; j < nR; j++ )
{ {
sal_Int32 nIdx[ 2 ]; sal_Int32 nIdx[ 2 ];
// bei eindimensionalem array( cols ) wird nIdx[1] // in one-dimensional array( cols ) nIdx[1]
// von SbxDimArray::Get ignoriert // from SbxDimArray::Get is ignored
nIdx[ nRowIdx ] = nRs + static_cast<sal_Int32>(j); nIdx[ nRowIdx ] = nRs + static_cast<sal_Int32>(j);
for ( SCSIZE i=0; i < nC; i++ ) for ( SCSIZE i=0; i < nC; i++ )
{ {
...@@ -3588,7 +3585,7 @@ void ScInterpreter::ScColRowNameAuto() ...@@ -3588,7 +3585,7 @@ void ScInterpreter::ScColRowNameAuto()
SCsCOL nStartCol; SCsCOL nStartCol;
SCsROW nStartRow; SCsROW nStartRow;
// evtl. Begrenzung durch definierte ColRowNameRanges merken // maybe remember limit by using defined ColRowNameRange
SCsCOL nCol2 = aAbs.aEnd.Col(); SCsCOL nCol2 = aAbs.aEnd.Col();
SCsROW nRow2 = aAbs.aEnd.Row(); SCsROW nRow2 = aAbs.aEnd.Row();
// DataArea of the first cell // DataArea of the first cell
...@@ -3605,26 +3602,26 @@ void ScInterpreter::ScColRowNameAuto() ...@@ -3605,26 +3602,26 @@ void ScInterpreter::ScColRowNameAuto()
aAbs.aEnd.SetRow(nDARow2); aAbs.aEnd.SetRow(nDARow2);
} }
//! korrespondiert mit ScCompiler::GetToken //! corresponds with ScCompiler::GetToken
if ( aRefData.Ref1.IsColRel() ) if ( aRefData.Ref1.IsColRel() )
{ // ColName { // ColName
aAbs.aEnd.SetCol(nStartCol); aAbs.aEnd.SetCol(nStartCol);
// evtl. vorherige Begrenzung durch definierte ColRowNameRanges erhalten // maybe get previous limit by using defined ColRowNameRange
if (aAbs.aEnd.Row() > nRow2) if (aAbs.aEnd.Row() > nRow2)
aAbs.aEnd.SetRow(nRow2); aAbs.aEnd.SetRow(nRow2);
SCROW nMyRow; SCROW nMyRow;
if ( aPos.Col() == nStartCol if ( aPos.Col() == nStartCol
&& nStartRow <= (nMyRow = aPos.Row()) && nMyRow <= aAbs.aEnd.Row()) && nStartRow <= (nMyRow = aPos.Row()) && nMyRow <= aAbs.aEnd.Row())
{ // Formel in gleicher Spalte und innerhalb des Range { //Formula in the same column and within the range
if ( nMyRow == nStartRow ) if ( nMyRow == nStartRow )
{ // direkt unter dem Namen den Rest nehmen { // take the rest under the name
nStartRow++; nStartRow++;
if ( nStartRow > MAXROW ) if ( nStartRow > MAXROW )
nStartRow = MAXROW; nStartRow = MAXROW;
aAbs.aStart.SetRow(nStartRow); aAbs.aStart.SetRow(nStartRow);
} }
else else
{ // weiter unten vom Namen bis zur Formelzelle { // below the name to the formula cell
aAbs.aEnd.SetRow(nMyRow - 1); aAbs.aEnd.SetRow(nMyRow - 1);
} }
} }
...@@ -3632,22 +3629,22 @@ void ScInterpreter::ScColRowNameAuto() ...@@ -3632,22 +3629,22 @@ void ScInterpreter::ScColRowNameAuto()
else else
{ // RowName { // RowName
aAbs.aEnd.SetRow(nStartRow); aAbs.aEnd.SetRow(nStartRow);
// evtl. vorherige Begrenzung durch definierte ColRowNameRanges erhalten // maybe get previous limit by using defined ColRowNameRange
if (aAbs.aEnd.Col() > nCol2) if (aAbs.aEnd.Col() > nCol2)
aAbs.aEnd.SetCol(nCol2); aAbs.aEnd.SetCol(nCol2);
SCCOL nMyCol; SCCOL nMyCol;
if ( aPos.Row() == nStartRow if ( aPos.Row() == nStartRow
&& nStartCol <= (nMyCol = aPos.Col()) && nMyCol <= aAbs.aEnd.Col()) && nStartCol <= (nMyCol = aPos.Col()) && nMyCol <= aAbs.aEnd.Col())
{ // Formel in gleicher Zeile und innerhalb des Range { //Formula in the same column and within the range
if ( nMyCol == nStartCol ) if ( nMyCol == nStartCol )
{ // direkt neben dem Namen den Rest nehmen { // take the rest under the name
nStartCol++; nStartCol++;
if ( nStartCol > MAXCOL ) if ( nStartCol > MAXCOL )
nStartCol = MAXCOL; nStartCol = MAXCOL;
aAbs.aStart.SetCol(nStartCol); aAbs.aStart.SetCol(nStartCol);
} }
else else
{ // weiter rechts vom Namen bis zur Formelzelle { // below the name to the formula cell
aAbs.aEnd.SetCol(nMyCol - 1); aAbs.aEnd.SetCol(nMyCol - 1);
} }
} }
...@@ -3659,11 +3656,11 @@ void ScInterpreter::ScColRowNameAuto() ...@@ -3659,11 +3656,11 @@ void ScInterpreter::ScColRowNameAuto()
// --- internals ------------------------------------------------------------ // --- internals ------------------------------------------------------------
void ScInterpreter::ScTTT() void ScInterpreter::ScTTT()
{ // Temporaerer Test-Tanz, zum auspropieren von Funktionen etc. { // temporary test, testing functions etc.
sal_uInt8 nParamCount = GetByte(); sal_uInt8 nParamCount = GetByte();
// do something, nParamCount bei Pops runterzaehlen! // do something, count down nParamCount with Pops!
// Stack aufraeumen // clean up Stack
while ( nParamCount-- > 0) while ( nParamCount-- > 0)
Pop(); Pop();
PushError(errNoValue); PushError(errNoValue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment