From 37eefa01acaf44f2c523d58c8a83568dc9763bd1 Mon Sep 17 00:00:00 2001 From: Albert Thuswaldner Date: Sun, 8 Feb 2015 16:41:10 +0100 Subject: Translated remaining german commments in sc/source/core/data/documenX.cxx Change-Id: I637c592aeb53830be2f32153462df7d9a189e844 Reviewed-on: https://gerrit.libreoffice.org/14370 Reviewed-by: Markus Mohrhard Tested-by: Markus Mohrhard --- sc/source/core/data/documen7.cxx | 38 ++++++------- sc/source/core/data/documen8.cxx | 28 +++++----- sc/source/core/data/documen9.cxx | 38 +++++-------- sc/source/core/data/document.cxx | 116 +++++++++++++++++++-------------------- 4 files changed, 103 insertions(+), 117 deletions(-) (limited to 'sc') diff --git a/sc/source/core/data/documen7.cxx b/sc/source/core/data/documen7.cxx index babd82ee9105..36b02233752a 100644 --- a/sc/source/core/data/documen7.cxx +++ b/sc/source/core/data/documen7.cxx @@ -76,7 +76,7 @@ void ScDocument::Broadcast( const ScHint& rHint ) TrackFormulas( rHint.GetId() ); } - // Repaint fuer bedingte Formate mit relativen Referenzen: + // Repaint for conditional formats with relative references: for(SCTAB nTab = 0; nTab < static_cast(maTabs.size()); ++nTab) { if(!maTabs[nTab]) @@ -133,7 +133,7 @@ void ScDocument::BroadcastCells( const ScRange& rRange, sal_uLong nHint, bool bB TrackFormulas(nHint); } - // Repaint fuer bedingte Formate mit relativen Referenzen: + // Repaint for conditional formats with relative references: for (SCTAB nTab = nTab1; nTab <= nTab2; ++nTab) { ScTable* pTab = FetchTable(nTab); @@ -336,11 +336,11 @@ void ScDocument::PutInFormulaTree( ScFormulaCell* pCell ) { OSL_ENSURE( pCell, "PutInFormulaTree: pCell Null" ); RemoveFromFormulaTree( pCell ); - // anhaengen + // append if ( pEOFormulaTree ) pEOFormulaTree->SetNext( pCell ); else - pFormulaTree = pCell; // kein Ende, kein Anfang.. + pFormulaTree = pCell; // No end, no beginning.. pCell->SetPrevious( pEOFormulaTree ); pCell->SetNext( 0 ); pEOFormulaTree = pCell; @@ -423,20 +423,20 @@ void ScDocument::CalcFormulaTree( bool bOnlyForced, bool bProgressBar, bool bSet while ( pCell ) { if ( pCell->GetDirty() ) - pCell = pCell->GetNext(); // alles klar + pCell = pCell->GetNext(); // all clear else { if ( pCell->GetCode()->IsRecalcModeAlways() ) { - // pCell wird im SetDirty neu angehaengt! + // pCell is set to Dirty again! ScFormulaCell* pNext = pCell->GetNext(); pCell->SetDirty(); - // falls pNext==0 und neue abhaengige hinten angehaengt - // wurden, so macht das nichts, da die alle bDirty sind + // if pNext==0 and new dependencies were appended at the end, + // this does not matter since they all are bDirty pCell = pNext; } else - { // andere simpel berechnen + { // calculate the other single if( bSetAllDirty ) pCell->SetDirtyVar(); pCell = pCell->GetNext(); @@ -451,8 +451,8 @@ void ScDocument::CalcFormulaTree( bool bOnlyForced, bool bProgressBar, bool bSet ScFormulaCell* pLastNoGood = 0; while ( pCell ) { - // Interpret setzt bDirty zurueck und callt Remove, auch der referierten! - // bei RECALCMODE_ALWAYS bleibt die Zelle + // Interpret resets bDirty and calls Remove, also the referenced! + // the Cell remains when RECALCMODE_ALWAYS. if ( bOnlyForced ) { if ( pCell->GetCode()->IsRecalcModeForced() ) @@ -463,7 +463,7 @@ void ScDocument::CalcFormulaTree( bool bOnlyForced, bool bProgressBar, bool bSet pCell->Interpret(); } if ( pCell->GetPrevious() || pCell == pFormulaTree ) - { // (IsInFormulaTree(pCell)) kein Remove gewesen => next + { // (IsInFormulaTree(pCell)) no Remove was called => next pLastNoGood = pCell; pCell = pCell->GetNext(); } @@ -524,13 +524,13 @@ void ScDocument::ClearFormulaTree() void ScDocument::AppendToFormulaTrack( ScFormulaCell* pCell ) { OSL_ENSURE( pCell, "AppendToFormulaTrack: pCell Null" ); - // Zelle kann nicht in beiden Listen gleichzeitig sein + // The cell can not be in both lists at the same time RemoveFromFormulaTrack( pCell ); RemoveFromFormulaTree( pCell ); if ( pEOFormulaTrack ) pEOFormulaTrack->SetNextTrack( pCell ); else - pFormulaTrack = pCell; // kein Ende, kein Anfang.. + pFormulaTrack = pCell; // No end, no beginning.. pCell->SetPreviousTrack( pEOFormulaTrack ); pCell->SetNextTrack( 0 ); pEOFormulaTrack = pCell; @@ -577,10 +577,10 @@ bool ScDocument::IsInFormulaTrack( ScFormulaCell* pCell ) const } /* - Der erste wird gebroadcastet, - die dadurch entstehenden werden durch das Notify an den Track gehaengt. - Der nachfolgende broadcastet wieder usw. - View stoesst Interpret an. + The first is broadcasted, + the ones that are created through this are appended to the Track by Notify. + The next is broadcasted again, and so on. + View initiates Interpret. */ void ScDocument::TrackFormulas( sal_uLong nHintId ) { @@ -599,7 +599,7 @@ void ScDocument::TrackFormulas( sal_uLong nHintId ) if (pBC) pBC->Broadcast( aHint ); pBASM->AreaBroadcast( aHint ); - // Repaint fuer bedingte Formate mit relativen Referenzen: + // Repaint for conditional formats with relative references: TableContainer::iterator itr = maTabs.begin(); for(; itr != maTabs.end(); ++itr) { diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx index 86ce46c26240..0a0e03d7d296 100644 --- a/sc/source/core/data/documen8.cxx +++ b/sc/source/core/data/documen8.cxx @@ -169,7 +169,7 @@ void ScDocument::SetPrinter( SfxPrinter* pNewPrinter ) void ScDocument::SetPrintOptions() { - if ( !pPrinter ) GetPrinter(); // setzt pPrinter + if ( !pPrinter ) GetPrinter(); // this sets pPrinter OSL_ENSURE( pPrinter, "Error in printer creation :-/" ); if ( pPrinter ) @@ -270,11 +270,11 @@ void ScDocument::ModifyStyleSheet( SfxStyleSheetBase& rStyleSheet, eNewLang = pFormatter->GetEntry( nNewFormat )->GetLanguage(); } - // Bedeutung der Items in rChanges: - // Item gesetzt - Aenderung uebernehmen - // Dontcare - Default setzen - // Default - keine Aenderung - // ("keine Aenderung" geht nicht mit PutExtended, darum Schleife) + // Explanation to Items in rChanges: + // Set Item - take over change + // Dontcare - Set Default + // Default - No change + // ("no change" is not possible with PutExtended, thus the loop) for (sal_uInt16 nWhich = ATTR_PATTERN_START; nWhich <= ATTR_PATTERN_END; nWhich++) { const SfxPoolItem* pItem; @@ -283,7 +283,7 @@ void ScDocument::ModifyStyleSheet( SfxStyleSheetBase& rStyleSheet, rSet.Put( *pItem ); else if ( eState == SfxItemState::DONTCARE ) rSet.ClearItem( nWhich ); - // bei Default nichts + // when Default nothing } if ( eNewLang != eOldLang ) @@ -453,7 +453,7 @@ void ScDocument::InvalidateTextWidth( const ScAddress* pAdrFrom, const ScAddress } } -#define CALCMAX 1000 // Berechnungen +#define CALCMAX 1000 // Calculations namespace { @@ -532,7 +532,7 @@ public: } -bool ScDocument::IdleCalcTextWidth() // true = demnaechst wieder versuchen +bool ScDocument::IdleCalcTextWidth() // true = try next again { // #i75610# if a printer hasn't been set or created yet, don't create one for this if (!mbIdleEnabled || IsInLinkUpdate() || GetPrinter(false) == NULL) @@ -594,7 +594,7 @@ bool ScDocument::IdleCalcTextWidth() // true = demnaechst wieder vers { pDev = GetPrinter(); aScope.setOldMapMode(pDev->GetMapMode()); - pDev->SetMapMode( MAP_PIXEL ); // wichtig fuer GetNeededSize + pDev->SetMapMode( MAP_PIXEL ); // Important for GetNeededSize Point aPix1000 = pDev->LogicToPixel( Point(1000,1000), MAP_TWIP ); nPPTX = aPix1000.X() / 1000.0; @@ -714,13 +714,13 @@ void ScDocument::RepaintRange( const ScRangeList& rRange ) void ScDocument::SaveDdeLinks(SvStream& rStream) const { - // bei 4.0-Export alle mit Modus != DEFAULT weglassen + // when 4.0-Export, remove all with mode != DEFAULT bool bExport40 = ( rStream.GetVersion() <= SOFFICE_FILEFORMAT_40 ); const ::sfx2::SvBaseLinks& rLinks = GetLinkManager()->GetLinks(); sal_uInt16 nCount = rLinks.size(); - // erstmal zaehlen... + // Count them first sal_uInt16 nDdeCount = 0; sal_uInt16 i; @@ -737,7 +737,7 @@ void ScDocument::SaveDdeLinks(SvStream& rStream) const ScMultipleWriteHeader aHdr( rStream ); rStream.WriteUInt16( nDdeCount ); - // Links speichern + // Save links for (i=0; iGetPage(static_cast(nTab)); @@ -391,10 +388,8 @@ bool ScDocument::HasBackgroundDraw( SCTAB nTab, const Rectangle& rMMRect ) const bool ScDocument::HasAnyDraw( SCTAB nTab, const Rectangle& rMMRect ) const { - // Gibt es ueberhaupt Objekte, die (teilweise) von rMMRect - // betroffen sind? - // (um leere Seiten beim Drucken zu erkennen) - + // Are there any objects at all who are (partly) affected by rMMRect? + // (To detect blank pages when printing) if (!pDrawLayer) return false; SdrPage* pPage = pDrawLayer->GetPage(static_cast(nTab)); @@ -424,8 +419,7 @@ void ScDocument::EnsureGraphicNames() SdrObject* ScDocument::GetObjectAtPoint( SCTAB nTab, const Point& rPos ) { - // fuer Drag&Drop auf Zeichenobjekt - + // for Drag&Drop on draw object SdrObject* pFound = NULL; if (pDrawLayer && nTab < static_cast(maTabs.size()) && maTabs[nTab]) { @@ -439,9 +433,8 @@ SdrObject* ScDocument::GetObjectAtPoint( SCTAB nTab, const Point& rPos ) { if ( pObject->GetCurrentBoundRect().IsInside(rPos) ) { - // Intern interessiert gar nicht - // Objekt vom Back-Layer nur, wenn kein Objekt von anderem Layer getroffen - + // Intern is of no interest + // Only object form background layer, when no object form another layer is found SdrLayerID nLayer = pObject->GetLayer(); if ( (nLayer != SC_LAYER_INTERN) && (nLayer != SC_LAYER_HIDDEN) ) { @@ -452,8 +445,7 @@ SdrObject* ScDocument::GetObjectAtPoint( SCTAB nTab, const Point& rPos ) } } } - // weitersuchen -> letztes (oberstes) getroffenes Objekt nehmen - + // Continue search -> take last (on top) found object pObject = aIter.Next(); } } @@ -515,10 +507,10 @@ bool ScDocument::IsPrintEmpty( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, ScDocument* pThis = const_cast(this); pThis->ExtendMerge( 0,nStartRow, nExtendCol,nTmpRow, nTab, - false ); // kein Refresh, incl. Attrs + false ); // no Refresh, incl. Attrs OutputDevice* pDev = pThis->GetPrinter(); - pDev->SetMapMode( MAP_PIXEL ); // wichtig fuer GetNeededSize + pDev->SetMapMode( MAP_PIXEL ); // Important for GetNeededSize ExtendPrintArea( pDev, nTab, 0, nStartRow, nExtendCol, nEndRow ); if ( nExtendCol >= nStartCol ) return false; @@ -573,11 +565,11 @@ bool ScDocument::HasDetectiveObjects(SCTAB nTab) const void ScDocument::UpdateFontCharSet() { - // In alten Versionen (bis incl. 4.0 ohne SP) wurden beim Austausch zwischen - // Systemen die CharSets in den Font-Attributen nicht angepasst. - // Das muss fuer Dokumente bis incl SP2 nun nachgeholt werden: - // Alles, was nicht SYMBOL ist, wird auf den System-CharSet umgesetzt. - // Bei neuen Dokumenten (Version SC_FONTCHARSET) sollte der CharSet stimmen. + // In old versions (until 4.0 without SP), when switching between systems, + // the Font attribute was not adjusted. + // This has to be redone for Documents until SP2: + // Everything that is not SYMBOL is set to system CharSet. + // CharSet should be correct for new documents (version SC_FONTCHARSET) bool bUpdateOld = ( nSrcVer < SC_FONTCHARSET ); diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index f85f1093ec64..9e099efc3aa8 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -566,8 +566,7 @@ bool ScDocument::InsertTabs( SCTAB nPos, const std::vector& rNames, SCTAB nNewSheets = static_cast(rNames.size()); SCTAB nTabCount = static_cast(maTabs.size()); bool bValid = bNamesValid || ValidTab(nTabCount+nNewSheets); -// if ( !bExternalDocument ) // else test rName == "'Doc'!Tab" first -// bValid = (bValid && ValidNewTabName(rNames)); + if (bValid) { if (nPos == SC_TAB_APPEND || nPos >= nTabCount) @@ -1269,9 +1268,8 @@ bool ScDocument::InsertRow( SCCOL nStartCol, SCTAB nStartTab, 0, static_cast(nSize), 0 ); if ( pChangeTrack && pChangeTrack->IsInDeleteUndo() ) - { // durch Restaurierung von Referenzen auf geloeschte Bereiche ist - // ein neues Listening faellig, bisherige Listener wurden in - // FormulaCell UpdateReference abgehaengt + { // A new Listening is needed when references to deleted ranges are restored, + // previous Listeners were removed in FormulaCell UpdateReference. StartAllListeners(); } else @@ -1476,9 +1474,8 @@ bool ScDocument::InsertCol( SCROW nStartRow, SCTAB nStartTab, maTabs[i]->InsertCol(aCxt.maRegroupCols, nStartCol, nStartRow, nEndRow, nSize); if ( pChangeTrack && pChangeTrack->IsInDeleteUndo() ) - { // durch Restaurierung von Referenzen auf geloeschte Bereiche ist - // ein neues Listening faellig, bisherige Listener wurden in - // FormulaCell UpdateReference abgehaengt + { // A new Listening is needed when references to deleted ranges are restored, + // previous Listeners were removed in FormulaCell UpdateReference. StartAllListeners(); } else @@ -1596,8 +1593,8 @@ void ScDocument::DeleteCol( const ScRange& rRange, ScDocument* pRefUndoDoc, bool pRefUndoDoc, pUndoOutline ); } -// fuer Area-Links: Zellen einuegen/loeschen, wenn sich der Bereich veraendert -// (ohne Paint) +// for Area-Links: Insert/delete cells, when the range is changed. +// (without Paint) static void lcl_GetInsDelRanges( const ScRange& rOld, const ScRange& rNew, ScRange& rColRange, bool& rInsCol, bool& rDelCol, @@ -1615,32 +1612,32 @@ static void lcl_GetInsDelRanges( const ScRange& rOld, const ScRange& rNew, SCROW nNewEndY = rNew.aEnd.Row(); SCTAB nTab = rOld.aStart.Tab(); - // wenn es mehr Zeilen werden, werden Spalten auf der alten Hoehe eingefuegt/geloescht + // if more rows, columns are inserted/deleted at the old height. bool bGrowY = ( nNewEndY > nOldEndY ); SCROW nColEndY = bGrowY ? nOldEndY : nNewEndY; SCCOL nRowEndX = bGrowY ? nNewEndX : nOldEndX; - // Spalten + // Columns - if ( nNewEndX > nOldEndX ) // Spalten einfuegen + if ( nNewEndX > nOldEndX ) // Insert columns { rColRange = ScRange( nOldEndX+1, nStartY, nTab, nNewEndX, nColEndY, nTab ); rInsCol = true; } - else if ( nNewEndX < nOldEndX ) // Spalten loeschen + else if ( nNewEndX < nOldEndX ) // Delete columns { rColRange = ScRange( nNewEndX+1, nStartY, nTab, nOldEndX, nColEndY, nTab ); rDelCol = true; } - // Zeilen + // Rows - if ( nNewEndY > nOldEndY ) // Zeilen einfuegen + if ( nNewEndY > nOldEndY ) // Insert rows { rRowRange = ScRange( nStartX, nOldEndY+1, nTab, nRowEndX, nNewEndY, nTab ); rInsRow = true; } - else if ( nNewEndY < nOldEndY ) // Zeilen loeschen + else if ( nNewEndY < nOldEndY ) // Delete rows { rRowRange = ScRange( nStartX, nNewEndY+1, nTab, nRowEndX, nOldEndY, nTab ); rDelRow = true; @@ -1725,9 +1722,9 @@ bool ScDocument::CanFitBlock( const ScRange& rOld, const ScRange& rNew ) ScRange aColRange,aRowRange; lcl_GetInsDelRanges( rOld, rNew, aColRange,bInsCol,bDelCol, aRowRange,bInsRow,bDelRow ); - if ( bInsCol && !CanInsertCol( aColRange ) ) // Zellen am Rand ? + if ( bInsCol && !CanInsertCol( aColRange ) ) // Cells at the edge ? bOk = false; - if ( bInsRow && !CanInsertRow( aRowRange ) ) // Zellen am Rand ? + if ( bInsRow && !CanInsertRow( aRowRange ) ) // Cells at the edge ? bOk = false; if ( bInsCol || bDelCol ) @@ -1756,16 +1753,16 @@ void ScDocument::FitBlock( const ScRange& rOld, const ScRange& rNew, bool bClear lcl_GetInsDelRanges( rOld, rNew, aColRange,bInsCol,bDelCol, aRowRange,bInsRow,bDelRow ); if ( bInsCol ) - InsertCol( aColRange ); // Spalten zuerst einfuegen + InsertCol( aColRange ); // First insert columns if ( bInsRow ) InsertRow( aRowRange ); if ( bDelRow ) - DeleteRow( aRowRange ); // Zeilen zuerst loeschen + DeleteRow( aRowRange ); // First delete rows if ( bDelCol ) DeleteCol( aColRange ); - // Referenzen um eingefuegte Zeilen erweitern + // Expand references to inserted rows if ( bInsCol || bInsRow ) { @@ -2226,12 +2223,12 @@ void ScDocument::TransposeClip( ScDocument* pTransClip, InsertDeleteFlags nFlags OSL_ENSURE( bIsClip && pTransClip && pTransClip->bIsClip, "TransposeClip with wrong Document" ); - // initialisieren - // -> pTransClip muss vor dem Original-Dokument geloescht werden! + // initialize + // -> pTransClip has to be delted before the original document! - pTransClip->ResetClip(this, (ScMarkData*)NULL); // alle + pTransClip->ResetClip(this, (ScMarkData*)NULL); // all - // Bereiche uebernehmen + // Take over range if (pRangeName) { @@ -2285,7 +2282,7 @@ void ScDocument::TransposeClip( ScDocument* pTransClip, InsertDeleteFlags nFlags OSL_TRACE("TransposeClip: Too big"); } - // Dies passiert erst beim Einfuegen... + // This happens only when inserting... GetClipParam().mbCutMode = false; } @@ -2861,7 +2858,7 @@ void ScDocument::CopyFromClip( const ScRange& rDestRange, const ScMarkData& rMar bInsertingFromOtherDoc = false; - // Listener aufbauen nachdem alles inserted wurde + // Create Listener after everything has been inserted StartListeningFromClip( nAllCol1, nAllRow1, nAllCol2, nAllRow2, rMark, nInsFlag ); { @@ -2898,7 +2895,7 @@ void ScDocument::CopyMultiRangeFromClip( ScRange aDestRange; rMark.GetMarkArea(aDestRange); - bInsertingFromOtherDoc = true; // kein Broadcast/Listener aufbauen bei Insert + bInsertingFromOtherDoc = true; // No Broadcast/Listener created at Insert SCCOL nCol1 = rDestPos.Col(); SCROW nRow1 = rDestPos.Row(); @@ -2948,10 +2945,10 @@ void ScDocument::CopyMultiRangeFromClip( bInsertingFromOtherDoc = false; - // Listener aufbauen nachdem alles inserted wurde + // Create Listener after everything has been inserted StartListeningFromClip(aDestRange.aStart.Col(), aDestRange.aStart.Row(), aDestRange.aEnd.Col(), aDestRange.aEnd.Row(), rMark, nInsFlag ); - // nachdem alle Listener aufgebaut wurden, kann gebroadcastet werden + // Re-broadcast after all Listener have been created SetDirtyFromClip( aDestRange.aStart.Col(), aDestRange.aStart.Row(), aDestRange.aEnd.Col(), aDestRange.aEnd.Row(), rMark, nInsFlag, aBroadcastSpans); @@ -3091,7 +3088,7 @@ void ScDocument::FillTab( const ScRange& rSrcArea, const ScMarkData& rMark, { InsertDeleteFlags nDelFlags = nFlags; if (nDelFlags & IDF_CONTENTS) - nDelFlags |= IDF_CONTENTS; // immer alle Inhalte oder keine loeschen! + nDelFlags |= IDF_CONTENTS; // Either all contents or delete nothing! SCTAB nSrcTab = rSrcArea.aStart.Tab(); @@ -3154,7 +3151,7 @@ void ScDocument::FillTabMarked( SCTAB nSrcTab, const ScMarkData& rMark, { InsertDeleteFlags nDelFlags = nFlags; if (nDelFlags & IDF_CONTENTS) - nDelFlags |= IDF_CONTENTS; // immer alle Inhalte oder keine loeschen! + nDelFlags |= IDF_CONTENTS; // Either all contents or delete nothing! if (ValidTab(nSrcTab) && nSrcTab < static_cast(maTabs.size()) && maTabs[nSrcTab]) { @@ -3613,7 +3610,7 @@ bool ScDocument::HasValueData( const ScAddress& rPos ) const bool ScDocument::HasStringCells( const ScRange& rRange ) const { - // true, wenn String- oder Editzellen im Bereich + // true, if String- or Edit cells in range SCCOL nStartCol = rRange.aStart.Col(); SCROW nStartRow = rRange.aStart.Row(); @@ -3644,7 +3641,7 @@ bool ScDocument::HasSelectionData( SCCOL nCol, SCROW nRow, SCTAB nTab ) const void ScDocument::SetAllFormulasDirty( const sc::SetFormulaDirtyContext& rCxt ) { bool bOldAutoCalc = GetAutoCalc(); - bAutoCalc = false; // keine Mehrfachberechnung + bAutoCalc = false; // no mulitple calculations { // scope for bulk broadcast ScBulkBroadcast aBulkBroadcast( GetBASM()); TableContainer::iterator it = maTabs.begin(); @@ -3653,9 +3650,9 @@ void ScDocument::SetAllFormulasDirty( const sc::SetFormulaDirtyContext& rCxt ) (*it)->SetAllFormulasDirty(rCxt); } - // Charts werden zwar auch ohne AutoCalc im Tracking auf Dirty gesetzt, - // wenn alle Formeln dirty sind, werden die Charts aber nicht mehr erwischt - // (#45205#) - darum alle Charts nochmal explizit + // Allthough Charts are also set to dirty in Tracking without AutoCalc + // if all formulas are dirty, the charts can no longer be caught + // (#45205#) - that is why all Charts have to be explicitly handled again if (pChartListenerCollection) pChartListenerCollection->SetDirty(); @@ -3665,7 +3662,7 @@ void ScDocument::SetAllFormulasDirty( const sc::SetFormulaDirtyContext& rCxt ) void ScDocument::SetDirty( const ScRange& rRange, bool bIncludeEmptyCells ) { bool bOldAutoCalc = GetAutoCalc(); - bAutoCalc = false; // keine Mehrfachberechnung + bAutoCalc = false; // no mulitple calculations { // scope for bulk broadcast ScBulkBroadcast aBulkBroadcast( GetBASM()); SCTAB nTab2 = rRange.aEnd.Tab(); @@ -3834,8 +3831,8 @@ bool ScDocument::CompileErrorCells(sal_uInt16 nErrCode) void ScDocument::CalcAfterLoad( bool bStartListening ) { - if (bIsClip) // Excel-Dateien werden aus dem Clipboard in ein Clip-Doc geladen - return; // dann wird erst beim Einfuegen in das richtige Doc berechnet + if (bIsClip) // Excel data is loaded from the Clipboard to a Clip-Doc + return; // the clculation is then only perfromed when inserting into the real document bCalcingAfterLoad = true; sc::CompileFormulaContext aCxt(this); @@ -3850,7 +3847,7 @@ void ScDocument::CalcAfterLoad( bool bStartListening ) } bCalcingAfterLoad = false; - SetDetectiveDirty(false); // noch keine wirklichen Aenderungen + SetDetectiveDirty(false); // No real changes yet // #i112436# If formula cells are already dirty, they don't broadcast further changes. // So the source ranges of charts must be interpreted even if they are not visible, @@ -3885,7 +3882,7 @@ void ScDocument::ResetChanged( const ScRange& rRange ) maTabs[nTab]->ResetChanged(rRange); } -// Spaltenbreiten / Zeilenhoehen -------------------------------------- +// Column widths / Row heights -------------------------------------- void ScDocument::SetColWidth( SCCOL nCol, SCTAB nTab, sal_uInt16 nNewWidth ) { @@ -4100,7 +4097,7 @@ void ScDocument::UpdateAllRowHeights( sc::RowHeightContext& rCxt, const ScMarkDa } } -// Spalten-/Zeilen-Flags ---------------------------------------------- +// Column/Row - Flags ---------------------------------------------- void ScDocument::ShowCol(SCCOL nCol, SCTAB nTab, bool bShow) { @@ -4719,7 +4716,7 @@ const ScStyleSheet* ScDocument::GetSelectionStyle( const ScMarkData& rMark ) con if (bFound) { if ( !pNewStyle || ( pStyle && pNewStyle != pStyle ) ) - bEqual = false; // unterschiedliche + bEqual = false; // different pStyle = pNewStyle; } } @@ -4737,7 +4734,7 @@ const ScStyleSheet* ScDocument::GetSelectionStyle( const ScMarkData& rMark ) con if (bFound) { if ( !pNewStyle || ( pStyle && pNewStyle != pStyle ) ) - bEqual = false; // unterschiedliche + bEqual = false; // different pStyle = pNewStyle; } } @@ -4854,7 +4851,7 @@ ScPatternAttr* ScDocument::CreateSelectionPattern( const ScMarkData& rMark, bool if (maTabs[*itr]) maTabs[*itr]->MergeSelectionPattern( aState, rMark, bDeep ); } - if ( rMark.IsMarked() ) // simle selection + if ( rMark.IsMarked() ) // single selection { ScRange aRange; rMark.GetMarkArea(aRange); @@ -4914,7 +4911,7 @@ void ScDocument::GetSelectionFrame( const ScMarkData& rMark, aRange.aEnd.Col(), aRange.aEnd.Row() ); } - // Don't care Status auswerten + // Evaluate don't care Status rLineInner.SetValid( VALID_LEFT, ( aFlags.nLeft != SC_LINE_DONTCARE ) ); rLineInner.SetValid( VALID_RIGHT, ( aFlags.nRight != SC_LINE_DONTCARE ) ); @@ -4929,8 +4926,8 @@ bool ScDocument::HasAttrib( SCCOL nCol1, SCROW nRow1, SCTAB nTab1, { if ( nMask & HASATTR_ROTATE ) { - // Attribut im Dokument ueberhaupt verwendet? - // (wie in fillinfo) + // Is attribute used in document? + // (as in fillinfo) ScDocumentPool* pPool = xPoolHelper->GetDocPool(); @@ -5381,9 +5378,7 @@ bool ScDocument::ExtendMerge( ScRange& rRange, bool bRefresh ) bool ScDocument::ExtendTotalMerge( ScRange& rRange ) const { - // Bereich genau dann auf zusammengefasste Zellen erweitern, wenn - // dadurch keine neuen nicht-ueberdeckten Zellen getroffen werden - + // Extend range to merged cells without including any new non-overlapped cells bool bRet = false; ScRange aExt = rRange; // ExtendMerge() is non-const, but called withouth refresh. @@ -5452,11 +5447,11 @@ bool ScDocument::RefreshAutoFilter( SCCOL nStartCol, SCROW nStartRow, SCCOL nDBEndCol; SCROW nDBEndRow; - // Autofilter loeschen + // Delete Autofilter bool bChange = RemoveFlagsTab( nStartCol,nStartRow, nEndCol,nEndRow, nTab, SC_MF_AUTO ); - // Autofilter setzen + // Set Autofilter const ScDBData* pData = NULL; ScDBCollection::NamedDBs& rDBs = pDBCollection->getNamedDBs(); @@ -5687,7 +5682,7 @@ void ScDocument::GetNextPos( SCCOL& rCol, SCROW& rRow, SCTAB nTab, SCsCOL nMovX, maTabs[nTab]->GetNextPos( rCol, rRow, nMovX, nMovY, bMarked, bUnprotected, aCopyMark ); } -// Datei-Operationen +// Data operations void ScDocument::UpdStlShtPtrsFrmNms() { @@ -5917,9 +5912,8 @@ void ScDocument::RestorePrintRanges( const ScPrintRangeSaver& rSaver ) bool ScDocument::NeedPageResetAfterTab( SCTAB nTab ) const { - // Die Seitennummern-Zaehlung faengt bei einer Tabelle neu an, wenn eine - // andere Vorlage als bei der vorherigen gesetzt ist (nur Namen vergleichen) - // und eine Seitennummer angegeben ist (nicht 0) + // The page number count restarts at a sheet, if another template is set at + // the preseding one (oly compare names) and if a pagenumber is specified (not 0) if ( nTab + 1 < static_cast(maTabs.size()) && maTabs[nTab] && maTabs[nTab+1] ) { @@ -5932,12 +5926,12 @@ bool ScDocument::NeedPageResetAfterTab( SCTAB nTab ) const const SfxItemSet& rSet = pStyle->GetItemSet(); sal_uInt16 nFirst = static_cast(rSet.Get(ATTR_PAGE_FIRSTPAGENO)).GetValue(); if ( nFirst != 0 ) - return true; // Seitennummer in neuer Vorlage angegeben + return true; // Specify page number in new template } } } - return false; // sonst nicht + return false; // otherwise not } SfxUndoManager* ScDocument::GetUndoManager() -- cgit