Kaydet (Commit) e2faffeb authored tarafından gerhard oettl's avatar gerhard oettl Kaydeden (comit) Eike Rathke

fdo#39468: Translated German comments in sc/source/core/tool

Change-Id: I3d27d33a973c601234b5b6e48756df16f567149d
Reviewed-on: https://gerrit.libreoffice.org/503Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst 6285e9da
...@@ -1959,7 +1959,7 @@ bool ScAddress::Move( SCsCOL dx, SCsROW dy, SCsTAB dz, ScDocument* pDoc ) ...@@ -1959,7 +1959,7 @@ bool ScAddress::Move( SCsCOL dx, SCsROW dy, SCsTAB dz, ScDocument* pDoc )
bool ScRange::Move( SCsCOL dx, SCsROW dy, SCsTAB dz, ScDocument* pDoc ) bool ScRange::Move( SCsCOL dx, SCsROW dy, SCsTAB dz, ScDocument* pDoc )
{ {
// Einfahces &, damit beides ausgefuehrt wird!! // single & to process both
return aStart.Move( dx, dy, dz, pDoc ) & aEnd.Move( dx, dy, dz, pDoc ); return aStart.Move( dx, dy, dz, pDoc ) & aEnd.Move( dx, dy, dz, pDoc );
} }
......
...@@ -76,12 +76,12 @@ ScAddInAsync::ScAddInAsync(sal_uLong nHandleP, FuncData* pFuncData, ScDocument* ...@@ -76,12 +76,12 @@ ScAddInAsync::ScAddInAsync(sal_uLong nHandleP, FuncData* pFuncData, ScDocument*
ScAddInAsync::~ScAddInAsync() ScAddInAsync::~ScAddInAsync()
{ {
// aSeekObj hat das alles nicht, Handle 0 gibt es sonst nicht // aSeekObj does not have that, handle 0 does not exist otherwise
if ( nHandle ) if ( nHandle )
{ {
// im dTor wg. theAddInAsyncTbl.DeleteAndDestroy in ScGlobal::Clear // in dTor because of theAddInAsyncTbl.DeleteAndDestroy in ScGlobal::Clear
mpFuncData->Unadvice( (double)nHandle ); mpFuncData->Unadvice( (double)nHandle );
if ( meType == PTR_STRING && pStr ) // mit Typvergleich wg. Union! if ( meType == PTR_STRING && pStr ) // include type comparison because of union
delete pStr; delete pStr;
delete pDocs; delete pDocs;
} }
...@@ -107,10 +107,10 @@ void ScAddInAsync::CallBack( sal_uLong nHandleP, void* pData ) ...@@ -107,10 +107,10 @@ void ScAddInAsync::CallBack( sal_uLong nHandleP, void* pData )
ScAddInAsync* p; ScAddInAsync* p;
if ( (p = Get( nHandleP )) == NULL ) if ( (p = Get( nHandleP )) == NULL )
return; return;
// keiner mehr dran? Unadvice und weg damit
if ( !p->HasListeners() ) if ( !p->HasListeners() )
{ {
// nicht im dTor wg. theAddInAsyncTbl.DeleteAndDestroy in ScGlobal::Clear // not in dTor because of theAddInAsyncTbl.DeleteAndDestroy in ScGlobal::Clear
theAddInAsyncTbl.erase( p ); theAddInAsyncTbl.erase( p );
delete p; delete p;
return ; return ;
...@@ -148,7 +148,7 @@ void ScAddInAsync::RemoveDocument( ScDocument* pDocumentP ) ...@@ -148,7 +148,7 @@ void ScAddInAsync::RemoveDocument( ScDocument* pDocumentP )
if ( !theAddInAsyncTbl.empty() ) if ( !theAddInAsyncTbl.empty() )
{ {
for( ScAddInAsyncs::reverse_iterator iter1 = theAddInAsyncTbl.rbegin(); iter1 != theAddInAsyncTbl.rend(); ++iter1 ) for( ScAddInAsyncs::reverse_iterator iter1 = theAddInAsyncTbl.rbegin(); iter1 != theAddInAsyncTbl.rend(); ++iter1 )
{ // rueckwaerts wg. Pointer-Aufrueckerei im Array { // backwards because of pointer-movement in array
ScAddInAsync* pAsync = *iter1; ScAddInAsync* pAsync = *iter1;
ScAddInDocs* p = pAsync->pDocs; ScAddInDocs* p = pAsync->pDocs;
ScAddInDocs::iterator iter2 = p->find( pDocumentP ); ScAddInDocs::iterator iter2 = p->find( pDocumentP );
...@@ -156,7 +156,7 @@ void ScAddInAsync::RemoveDocument( ScDocument* pDocumentP ) ...@@ -156,7 +156,7 @@ void ScAddInAsync::RemoveDocument( ScDocument* pDocumentP )
{ {
p->erase( iter2 ); p->erase( iter2 );
if ( p->empty() ) if ( p->empty() )
{ // dieses AddIn wird nicht mehr benutzt { // this AddIn is not used anymore
theAddInAsyncTbl.erase( --(iter1.base()) ); theAddInAsyncTbl.erase( --(iter1.base()) );
delete pAsync; delete pAsync;
} }
......
...@@ -51,13 +51,13 @@ const sal_Char *linker_dummy = ""; ...@@ -51,13 +51,13 @@ const sal_Char *linker_dummy = "";
static const sal_Char sAutoTblFmtName[] = "autotbl.fmt"; static const sal_Char sAutoTblFmtName[] = "autotbl.fmt";
// bis SO5PF // till SO5PF
const sal_uInt16 AUTOFORMAT_ID_X = 9501; const sal_uInt16 AUTOFORMAT_ID_X = 9501;
const sal_uInt16 AUTOFORMAT_ID_358 = 9601; const sal_uInt16 AUTOFORMAT_ID_358 = 9601;
const sal_uInt16 AUTOFORMAT_DATA_ID_X = 9502; const sal_uInt16 AUTOFORMAT_DATA_ID_X = 9502;
// ab SO5 // from SO5 on
//! in nachfolgenden Versionen muss der Betrag dieser IDs groesser sein // in following versions the value of the IDs must be higher
const sal_uInt16 AUTOFORMAT_ID_504 = 9801; const sal_uInt16 AUTOFORMAT_ID_504 = 9801;
const sal_uInt16 AUTOFORMAT_DATA_ID_504 = 9802; const sal_uInt16 AUTOFORMAT_DATA_ID_504 = 9802;
...@@ -923,8 +923,8 @@ ScAutoFormat::ScAutoFormat(const ScAutoFormat& r) : ...@@ -923,8 +923,8 @@ ScAutoFormat::ScAutoFormat(const ScAutoFormat& r) :
ScAutoFormat::~ScAutoFormat() ScAutoFormat::~ScAutoFormat()
{ {
// Bei Aenderungen per StarOne wird nicht sofort gespeichert, sondern zuerst nur // When modified via StarOne then only the SaveLater flag is set and no saving is done.
// das SaveLater Flag gesetzt. Wenn das Flag noch gesetzt ist, jetzt speichern. // If the flag is set then save now.
if (mbSaveLater) if (mbSaveLater)
Save(); Save();
...@@ -1039,7 +1039,7 @@ bool ScAutoFormat::Load() ...@@ -1039,7 +1039,7 @@ bool ScAutoFormat::Load()
if (bRet) if (bRet)
{ {
SvStream& rStream = *pStream; SvStream& rStream = *pStream;
// Achtung hier muss ein allgemeiner Header gelesen werden // Attention: A common header has to be read
sal_uInt16 nVal = 0; sal_uInt16 nVal = 0;
rStream >> nVal; rStream >> nVal;
bRet = 0 == rStream.GetError(); bRet = 0 == rStream.GetError();
...@@ -1105,10 +1105,10 @@ bool ScAutoFormat::Save() ...@@ -1105,10 +1105,10 @@ bool ScAutoFormat::Save()
SvStream& rStream = *pStream; SvStream& rStream = *pStream;
rStream.SetVersion( fileVersion ); rStream.SetVersion( fileVersion );
// Achtung hier muss ein allgemeiner Header gespeichert werden // Attention: A common header has to be saved
sal_uInt16 nVal = AUTOFORMAT_ID; sal_uInt16 nVal = AUTOFORMAT_ID;
rStream << nVal rStream << nVal
<< (sal_uInt8)2 // Anzahl von Zeichen des Headers incl. diesem << (sal_uInt8)2 // Number of chars of the header including this
<< (sal_uInt8)::GetSOStoreTextEncoding( << (sal_uInt8)::GetSOStoreTextEncoding(
osl_getThreadTextEncoding() ); osl_getThreadTextEncoding() );
m_aVersions.Write(rStream, fileVersion); m_aVersions.Write(rStream, fileVersion);
......
...@@ -217,7 +217,7 @@ bool InitExternalFunc(const rtl::OUString& rModuleName) ...@@ -217,7 +217,7 @@ bool InitExternalFunc(const rtl::OUString& rModuleName)
sal_uInt16 nParamCount; sal_uInt16 nParamCount;
ParamType eParamType[MAXFUNCPARAM]; ParamType eParamType[MAXFUNCPARAM];
ParamType eAsyncType = NONE; ParamType eAsyncType = NONE;
// alles initialisieren, falls das AddIn sich schlecht verhaelt // initialize all, in case the AddIn behaves bad
cFuncName[0] = 0; cFuncName[0] = 0;
cInternalName[0] = 0; cInternalName[0] = 0;
nParamCount = 0; nParamCount = 0;
......
...@@ -133,7 +133,7 @@ ScMemChart* ScChartArray::CreateMemChartSingle() ...@@ -133,7 +133,7 @@ ScMemChart* ScChartArray::CreateMemChartSingle()
SCSIZE nRow; SCSIZE nRow;
// //
// wirkliche Groesse (ohne versteckte Zeilen/Spalten) // real size (without hidden rows/columns)
// //
SCCOL nColAdd = HasRowHeaders() ? 1 : 0; SCCOL nColAdd = HasRowHeaders() ? 1 : 0;
...@@ -148,7 +148,7 @@ ScMemChart* ScChartArray::CreateMemChartSingle() ...@@ -148,7 +148,7 @@ ScMemChart* ScChartArray::CreateMemChartSingle()
ScRangeListRef aRangeListRef(GetRangeList()); ScRangeListRef aRangeListRef(GetRangeList());
aRangeListRef->front()->GetVars( nCol1, nRow1, nTab1, nCol2, nRow2, nTab2 ); aRangeListRef->front()->GetVars( nCol1, nRow1, nTab1, nCol2, nRow2, nTab2 );
SCCOL nStrCol = nCol1; // fuer Beschriftung merken SCCOL nStrCol = nCol1; // remember for labeling
SCROW nStrRow = nRow1; SCROW nStrRow = nRow1;
// Skip hidden columns. // Skip hidden columns.
// TODO: make use of last column value once implemented. // TODO: make use of last column value once implemented.
...@@ -161,7 +161,7 @@ ScMemChart* ScChartArray::CreateMemChartSingle() ...@@ -161,7 +161,7 @@ ScMemChart* ScChartArray::CreateMemChartSingle()
if (pDocument->RowHidden(nRow1, nTab1, NULL, &nLastRow)) if (pDocument->RowHidden(nRow1, nTab1, NULL, &nLastRow))
nRow1 = nLastRow + 1; nRow1 = nLastRow + 1;
// falls alles hidden ist, bleibt die Beschriftung am Anfang // if everything is hidden then the label remains at the beginning
if ( nCol1 <= nCol2 ) if ( nCol1 <= nCol2 )
{ {
nStrCol = nCol1; nStrCol = nCol1;
...@@ -239,7 +239,7 @@ ScMemChart* ScChartArray::CreateMemChartSingle() ...@@ -239,7 +239,7 @@ ScMemChart* ScChartArray::CreateMemChartSingle()
{ {
for (nRow=0; nRow<nRowCount; nRow++) for (nRow=0; nRow<nRowCount; nRow++)
{ {
double nVal = DBL_MIN; // Hack fuer Chart, um leere Zellen zu erkennen double nVal = DBL_MIN; // Hack for Chart to recognize empty cells
pDocument->GetCell( aCols[nCol], aRows[nRow], nTab1, pCell ); pDocument->GetCell( aCols[nCol], aRows[nRow], nTab1, pCell );
if (pCell) if (pCell)
...@@ -369,7 +369,7 @@ ScMemChart* ScChartArray::CreateMemChartMulti() ...@@ -369,7 +369,7 @@ ScMemChart* ScChartArray::CreateMemChartMulti()
{ {
for ( nRow = 0; nRow < nRowCount; nRow++, nIndex++ ) for ( nRow = 0; nRow < nRowCount; nRow++, nIndex++ )
{ {
double nVal = DBL_MIN; // Hack fuer Chart, um leere Zellen zu erkennen double nVal = DBL_MIN; // Hack for Chart to recognize empty cells
const ScAddress* pPos = GetPositionMap()->GetPosition( nIndex ); const ScAddress* pPos = GetPositionMap()->GetPosition( nIndex );
if ( pPos ) if ( pPos )
{ // sonst: Luecke { // sonst: Luecke
...@@ -402,10 +402,10 @@ ScMemChart* ScChartArray::CreateMemChartMulti() ...@@ -402,10 +402,10 @@ ScMemChart* ScChartArray::CreateMemChartMulti()
{ {
for ( nRow = 0; nRow < nRowCount; nRow++, nIndex++ ) for ( nRow = 0; nRow < nRowCount; nRow++, nIndex++ )
{ {
double nVal = DBL_MIN; // Hack fuer Chart, um leere Zellen zu erkennen double nVal = DBL_MIN; // Hack for Chart to recognize empty cells
const ScAddress* pPos = GetPositionMap()->GetPosition( nIndex ); const ScAddress* pPos = GetPositionMap()->GetPosition( nIndex );
if ( pPos ) if ( pPos )
{ // sonst: Luecke { // otherwise: Gap
ScBaseCell* pCell = pDocument->GetCell( *pPos ); ScBaseCell* pCell = pDocument->GetCell( *pPos );
if (pCell) if (pCell)
{ {
...@@ -431,10 +431,10 @@ ScMemChart* ScChartArray::CreateMemChartMulti() ...@@ -431,10 +431,10 @@ ScMemChart* ScChartArray::CreateMemChartMulti()
} }
} }
//2do: Beschriftung bei Luecken //2do: Label when gaps
// //
// Spalten-Header // Column header
// //
SCCOL nPosCol = 0; SCCOL nPosCol = 0;
...@@ -463,7 +463,7 @@ ScMemChart* ScChartArray::CreateMemChartMulti() ...@@ -463,7 +463,7 @@ ScMemChart* ScChartArray::CreateMemChartMulti()
} }
// //
// Zeilen-Header // Row header
// //
SCROW nPosRow = 0; SCROW nPosRow = 0;
......
...@@ -238,7 +238,7 @@ void ScChartListener::Update() ...@@ -238,7 +238,7 @@ void ScChartListener::Update()
if ( pUnoData ) if ( pUnoData )
{ {
bDirty = false; bDirty = false;
//! irgendwann mal erkennen, was sich innerhalb des Charts geaendert hat // recognize some day what has changed inside the Chart
chart::ChartDataChangeEvent aEvent( pUnoData->GetSource(), chart::ChartDataChangeEvent aEvent( pUnoData->GetSource(),
chart::ChartDataChangeType_ALL, chart::ChartDataChangeType_ALL,
0, 0, 0, 0 ); 0, 0, 0, 0 );
...@@ -652,7 +652,7 @@ void ScChartListenerCollection::UpdateDirtyCharts() ...@@ -652,7 +652,7 @@ void ScChartListenerCollection::UpdateDirtyCharts()
p->Update(); p->Update();
if (aTimer.IsActive() && !pDoc->IsImportingXML()) if (aTimer.IsActive() && !pDoc->IsImportingXML())
break; // da kam einer dazwischen break; // one interfered
} }
} }
...@@ -748,8 +748,8 @@ void ScChartListenerCollection::UpdateChartsContainingTab( SCTAB nTab ) ...@@ -748,8 +748,8 @@ void ScChartListenerCollection::UpdateChartsContainingTab( SCTAB nTab )
bool ScChartListenerCollection::operator==( const ScChartListenerCollection& r ) const bool ScChartListenerCollection::operator==( const ScChartListenerCollection& r ) const
{ {
// hier nicht ScStrCollection::operator==() verwenden, der umstaendlich via // Do not use ScStrCollection::operator==() here that uses IsEqual und Compare.
// IsEqual und Compare laeuft, stattdessen ScChartListener::operator==() // Use ScChartListener::operator==() instead.
if (pDoc != r.pDoc || maListeners.size() != r.maListeners.size()) if (pDoc != r.pDoc || maListeners.size() != r.maListeners.size())
return false; return false;
......
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