summaryrefslogtreecommitdiff
path: root/sc/source/ui/undo/undodat.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/undo/undodat.cxx')
-rw-r--r--sc/source/ui/undo/undodat.cxx260
1 files changed, 130 insertions, 130 deletions
diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx
index 308a3e7b2ef7..6dd1c57d9b4d 100644
--- a/sc/source/ui/undo/undodat.cxx
+++ b/sc/source/ui/undo/undodat.cxx
@@ -80,7 +80,7 @@ TYPEINIT1(ScUndoDataForm, SfxUndoAction); // amelia
//
-// Outline-Gruppen ein- oder ausblenden
+// Outline-Gruppen ein- oder ausblenden
//
ScUndoDoOutline::ScUndoDoOutline( ScDocShell* pNewDocShell,
@@ -105,7 +105,7 @@ __EXPORT ScUndoDoOutline::~ScUndoDoOutline()
}
String __EXPORT ScUndoDoOutline::GetComment() const
-{ // Detail einblenden" "Detail ausblenden"
+{ // Detail einblenden" "Detail ausblenden"
return bShow ?
ScGlobal::GetRscString( STR_UNDO_DOOUTLINE ) :
ScGlobal::GetRscString( STR_UNDO_REDOOUTLINE );
@@ -118,20 +118,20 @@ void __EXPORT ScUndoDoOutline::Undo()
ScDocument* pDoc = pDocShell->GetDocument();
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
- // Tabelle muss vorher umgeschaltet sein (#46952#) !!!
+ // Tabelle muss vorher umgeschaltet sein (#46952#) !!!
SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo();
if ( nVisTab != nTab )
pViewShell->SetTabNo( nTab );
- // inverse Funktion ausfuehren
+ // inverse Funktion ausfuehren
if (bShow)
pViewShell->HideOutline( bColumns, nLevel, nEntry, FALSE, FALSE );
else
pViewShell->ShowOutline( bColumns, nLevel, nEntry, FALSE, FALSE );
- // Original Spalten-/Zeilenstatus
+ // Original Spalten-/Zeilenstatus
if (bColumns)
pUndoDoc->CopyToDocument( static_cast<SCCOL>(nStart), 0, nTab,
@@ -152,7 +152,7 @@ void __EXPORT ScUndoDoOutline::Redo()
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
- // Tabelle muss vorher umgeschaltet sein (#46952#) !!!
+ // Tabelle muss vorher umgeschaltet sein (#46952#) !!!
SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo();
if ( nVisTab != nTab )
@@ -172,11 +172,11 @@ void __EXPORT ScUndoDoOutline::Repeat(SfxRepeatTarget& /* rTarget */)
BOOL __EXPORT ScUndoDoOutline::CanRepeat(SfxRepeatTarget& /* rTarget */) const
{
- return FALSE; // geht nicht
+ return FALSE; // geht nicht
}
//
-// Outline-Gruppen erzeugen oder loeschen
+// Outline-Gruppen erzeugen oder loeschen
//
ScUndoMakeOutline::ScUndoMakeOutline( ScDocShell* pNewDocShell,
@@ -198,7 +198,7 @@ __EXPORT ScUndoMakeOutline::~ScUndoMakeOutline()
}
String __EXPORT ScUndoMakeOutline::GetComment() const
-{ // "Gruppierung" "Gruppierung aufheben"
+{ // "Gruppierung" "Gruppierung aufheben"
return bMake ?
ScGlobal::GetRscString( STR_UNDO_MAKEOUTLINE ) :
ScGlobal::GetRscString( STR_UNDO_REMAKEOUTLINE );
@@ -262,7 +262,7 @@ BOOL __EXPORT ScUndoMakeOutline::CanRepeat(SfxRepeatTarget& rTarget) const
}
//
-// Outline-Ebene auswaehlen
+// Outline-Ebene auswaehlen
//
ScUndoOutlineLevel::ScUndoOutlineLevel( ScDocShell* pNewDocShell,
@@ -287,7 +287,7 @@ __EXPORT ScUndoOutlineLevel::~ScUndoOutlineLevel()
}
String __EXPORT ScUndoOutlineLevel::GetComment() const
-{ // "Gliederungsebene auswaehlen";
+{ // "Gliederungsebene auswaehlen";
return ScGlobal::GetRscString( STR_UNDO_OUTLINELEVEL );
}
@@ -298,11 +298,11 @@ void __EXPORT ScUndoOutlineLevel::Undo()
ScDocument* pDoc = pDocShell->GetDocument();
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
- // Original Outline-Table
+ // Original Outline-Table
pDoc->SetOutlineTable( nTab, pUndoTable );
- // Original Spalten-/Zeilenstatus
+ // Original Spalten-/Zeilenstatus
if (bColumns)
pUndoDoc->CopyToDocument( static_cast<SCCOL>(nStart), 0, nTab,
@@ -329,7 +329,7 @@ void __EXPORT ScUndoOutlineLevel::Redo()
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
- // Tabelle muss vorher umgeschaltet sein (#46952#) !!!
+ // Tabelle muss vorher umgeschaltet sein (#46952#) !!!
SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo();
if ( nVisTab != nTab )
@@ -352,7 +352,7 @@ BOOL __EXPORT ScUndoOutlineLevel::CanRepeat(SfxRepeatTarget& rTarget) const
}
//
-// Outline ueber Blockmarken ein- oder ausblenden
+// Outline ueber Blockmarken ein- oder ausblenden
//
ScUndoOutlineBlock::ScUndoOutlineBlock( ScDocShell* pNewDocShell,
@@ -375,7 +375,7 @@ __EXPORT ScUndoOutlineBlock::~ScUndoOutlineBlock()
}
String __EXPORT ScUndoOutlineBlock::GetComment() const
-{ // "Detail einblenden" "Detail ausblenden"
+{ // "Detail einblenden" "Detail ausblenden"
return bShow ?
ScGlobal::GetRscString( STR_UNDO_DOOUTLINEBLK ) :
ScGlobal::GetRscString( STR_UNDO_REDOOUTLINEBLK );
@@ -389,19 +389,19 @@ void __EXPORT ScUndoOutlineBlock::Undo()
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
SCTAB nTab = aBlockStart.Tab();
- // Original Outline-Table
+ // Original Outline-Table
pDoc->SetOutlineTable( nTab, pUndoTable );
- // Original Spalten-/Zeilenstatus
+ // Original Spalten-/Zeilenstatus
- SCCOLROW nStartCol = aBlockStart.Col();
- SCCOLROW nEndCol = aBlockEnd.Col();
- SCCOLROW nStartRow = aBlockStart.Row();
- SCCOLROW nEndRow = aBlockEnd.Row();
+ SCCOLROW nStartCol = aBlockStart.Col();
+ SCCOLROW nEndCol = aBlockEnd.Col();
+ SCCOLROW nStartRow = aBlockStart.Row();
+ SCCOLROW nEndRow = aBlockEnd.Row();
if (!bShow)
- { // Groesse des ausgeblendeten Blocks
+ { // Groesse des ausgeblendeten Blocks
USHORT nLevel;
pUndoTable->GetColArray()->FindTouchedLevel( nStartCol, nEndCol, nLevel );
pUndoTable->GetColArray()->ExtendBlock( nLevel, nStartCol, nEndCol );
@@ -460,7 +460,7 @@ BOOL __EXPORT ScUndoOutlineBlock::CanRepeat(SfxRepeatTarget& rTarget) const
}
//
-// alle Outlines loeschen
+// alle Outlines loeschen
//
ScUndoRemoveAllOutlines::ScUndoRemoveAllOutlines( ScDocShell* pNewDocShell,
@@ -482,7 +482,7 @@ __EXPORT ScUndoRemoveAllOutlines::~ScUndoRemoveAllOutlines()
}
String __EXPORT ScUndoRemoveAllOutlines::GetComment() const
-{ // "Gliederung entfernen"
+{ // "Gliederung entfernen"
return ScGlobal::GetRscString( STR_UNDO_REMOVEALLOTLNS );
}
@@ -494,16 +494,16 @@ void __EXPORT ScUndoRemoveAllOutlines::Undo()
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
SCTAB nTab = aBlockStart.Tab();
- // Original Outline-Table
+ // Original Outline-Table
pDoc->SetOutlineTable( nTab, pUndoTable );
- // Original Spalten-/Zeilenstatus
+ // Original Spalten-/Zeilenstatus
- SCCOL nStartCol = aBlockStart.Col();
- SCCOL nEndCol = aBlockEnd.Col();
- SCROW nStartRow = aBlockStart.Row();
- SCROW nEndRow = aBlockEnd.Row();
+ SCCOL nStartCol = aBlockStart.Col();
+ SCCOL nEndCol = aBlockEnd.Col();
+ SCROW nStartRow = aBlockStart.Row();
+ SCROW nEndRow = aBlockEnd.Row();
pUndoDoc->CopyToDocument( nStartCol, 0, nTab, nEndCol, MAXROW, nTab, IDF_NONE, FALSE, pDoc );
pUndoDoc->CopyToDocument( 0, nStartRow, nTab, MAXCOL, nEndRow, nTab, IDF_NONE, FALSE, pDoc );
@@ -527,7 +527,7 @@ void __EXPORT ScUndoRemoveAllOutlines::Redo()
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
- // Tabelle muss vorher umgeschaltet sein (#46952#) !!!
+ // Tabelle muss vorher umgeschaltet sein (#46952#) !!!
SCTAB nTab = aBlockStart.Tab();
SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo();
@@ -551,7 +551,7 @@ BOOL __EXPORT ScUndoRemoveAllOutlines::CanRepeat(SfxRepeatTarget& rTarget) const
}
//
-// Auto-Outline
+// Auto-Outline
//
ScUndoAutoOutline::ScUndoAutoOutline( ScDocShell* pNewDocShell,
@@ -573,7 +573,7 @@ __EXPORT ScUndoAutoOutline::~ScUndoAutoOutline()
}
String __EXPORT ScUndoAutoOutline::GetComment() const
-{ // "Auto-Gliederung"
+{ // "Auto-Gliederung"
return ScGlobal::GetRscString( STR_UNDO_AUTOOUTLINE );
}
@@ -585,11 +585,11 @@ void __EXPORT ScUndoAutoOutline::Undo()
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
SCTAB nTab = aBlockStart.Tab();
- // Original Outline-Table
+ // Original Outline-Table
pDoc->SetOutlineTable( nTab, pUndoTable );
- // Original Spalten-/Zeilenstatus
+ // Original Spalten-/Zeilenstatus
if (pUndoDoc && pUndoTable)
{
@@ -626,7 +626,7 @@ void __EXPORT ScUndoAutoOutline::Redo()
SCTAB nTab = aBlockStart.Tab();
if (pViewShell)
{
- // Tabelle muss vorher umgeschaltet sein (#46952#) !!!
+ // Tabelle muss vorher umgeschaltet sein (#46952#) !!!
SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo();
if ( nVisTab != nTab )
@@ -638,9 +638,9 @@ void __EXPORT ScUndoAutoOutline::Redo()
ScOutlineDocFunc aFunc( *pDocShell );
aFunc.AutoOutline( aRange, FALSE, FALSE );
- // auf der View markieren
- // Wenn's beim Aufruf eine Mehrfachselektion war, ist es jetzt der
- // umschliessende Bereich...
+ // auf der View markieren
+ // Wenn's beim Aufruf eine Mehrfachselektion war, ist es jetzt der
+ // umschliessende Bereich...
if (pViewShell)
pViewShell->MarkRange( aRange );
@@ -660,7 +660,7 @@ BOOL __EXPORT ScUndoAutoOutline::CanRepeat(SfxRepeatTarget& rTarget) const
}
//
-// Zwischenergebnisse
+// Zwischenergebnisse
//
ScUndoSubTotals::ScUndoSubTotals( ScDocShell* pNewDocShell, SCTAB nNewTab,
@@ -688,7 +688,7 @@ __EXPORT ScUndoSubTotals::~ScUndoSubTotals()
}
String __EXPORT ScUndoSubTotals::GetComment() const
-{ // "Teilergebnisse"
+{ // "Teilergebnisse"
return ScGlobal::GetRscString( STR_UNDO_SUBTOTALS );
}
@@ -699,8 +699,8 @@ void __EXPORT ScUndoSubTotals::Undo()
ScDocument* pDoc = pDocShell->GetDocument();
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
- // um einzelnen DB-Bereich anzupassen
-/* ScDBData* pOldDBData = ScUndoUtil::GetOldDBData( pUndoDBData, pDoc, nTab,
+ // um einzelnen DB-Bereich anzupassen
+/* ScDBData* pOldDBData = ScUndoUtil::GetOldDBData( pUndoDBData, pDoc, nTab,
aParam.nCol1, aParam.nRow1, aParam.nCol2, nNewEndRow );
*/
@@ -714,11 +714,11 @@ void __EXPORT ScUndoSubTotals::Undo()
}
- // Original Outline-Table
+ // Original Outline-Table
pDoc->SetOutlineTable( nTab, pUndoTable );
- // Original Spalten-/Zeilenstatus
+ // Original Spalten-/Zeilenstatus
if (pUndoDoc && pUndoTable)
{
@@ -737,7 +737,7 @@ void __EXPORT ScUndoSubTotals::Undo()
pViewShell->UpdateScrollBars();
}
- // Original-Daten & Referenzen
+ // Original-Daten & Referenzen
ScUndoUtil::MarkSimpleBlock( pDocShell, 0, aParam.nRow1+1, nTab,
MAXCOL, aParam.nRow2, nTab );
@@ -745,14 +745,14 @@ void __EXPORT ScUndoSubTotals::Undo()
pDoc->DeleteAreaTab( 0,aParam.nRow1+1, MAXCOL,aParam.nRow2, nTab, IDF_ALL );
pUndoDoc->CopyToDocument( 0, aParam.nRow1+1, nTab, MAXCOL, aParam.nRow2, nTab,
- IDF_NONE, FALSE, pDoc ); // Flags
+ IDF_NONE, FALSE, pDoc ); // Flags
pUndoDoc->UndoToDocument( 0, aParam.nRow1+1, nTab, MAXCOL, aParam.nRow2, nTab,
IDF_ALL, FALSE, pDoc );
ScUndoUtil::MarkSimpleBlock( pDocShell, aParam.nCol1,aParam.nRow1,nTab,
aParam.nCol2,aParam.nRow2,nTab );
-/* if (pUndoDBData)
+/* if (pUndoDBData)
*pOldDBData = *pUndoDBData;
*/
if (pUndoRange)
@@ -793,11 +793,11 @@ void __EXPORT ScUndoSubTotals::Repeat(SfxRepeatTarget& /* rTarget */)
BOOL __EXPORT ScUndoSubTotals::CanRepeat(SfxRepeatTarget& /* rTarget */) const
{
- return FALSE; // geht nicht wegen Spaltennummern
+ return FALSE; // geht nicht wegen Spaltennummern
}
//
-// Sortieren
+// Sortieren
//
ScUndoSort::ScUndoSort( ScDocShell* pNewDocShell,
@@ -840,8 +840,8 @@ void __EXPORT ScUndoSort::Undo()
SCCOL nStartCol = aSortParam.nCol1;
SCROW nStartRow = aSortParam.nRow1;
- SCCOL nEndCol = aSortParam.nCol2;
- SCROW nEndRow = aSortParam.nRow2;
+ SCCOL nEndCol = aSortParam.nCol2;
+ SCROW nEndRow = aSortParam.nRow2;
SCTAB nSortTab = nTab;
if ( !aSortParam.bInplace )
{
@@ -867,9 +867,9 @@ void __EXPORT ScUndoSort::Undo()
pUndoDoc->CopyToDocument( aDestRange, IDF_ALL|IDF_NOCAPTIONS, FALSE, pDoc );
}
- // Zeilenhoehen immer (wegen automatischer Anpassung)
- //! auf ScBlockUndo umstellen
-// if (bRepeatQuery)
+ // Zeilenhoehen immer (wegen automatischer Anpassung)
+ //! auf ScBlockUndo umstellen
+// if (bRepeatQuery)
pUndoDoc->CopyToDocument( 0, nStartRow, nSortTab, MAXCOL, nEndRow, nSortTab,
IDF_NONE, FALSE, pDoc );
@@ -896,16 +896,16 @@ void __EXPORT ScUndoSort::Redo()
if ( nVisTab != nTab )
pViewShell->SetTabNo( nTab );
-// pViewShell->DoneBlockMode();
-// pViewShell->InitOwnBlockMode();
-// pViewShell->GetViewData()->GetMarkData() = aMarkData; // CopyMarksTo
+// pViewShell->DoneBlockMode();
+// pViewShell->InitOwnBlockMode();
+// pViewShell->GetViewData()->GetMarkData() = aMarkData; // CopyMarksTo
pViewShell->MarkRange( ScRange( aSortParam.nCol1, aSortParam.nRow1, nTab,
aSortParam.nCol2, aSortParam.nRow2, nTab ) );
pViewShell->Sort( aSortParam, FALSE );
- // Quellbereich painten wegen Markierung
+ // Quellbereich painten wegen Markierung
if ( !aSortParam.bInplace )
pDocShell->PostPaint( aSortParam.nCol1, aSortParam.nRow1, nTab,
aSortParam.nCol2, aSortParam.nRow2, nTab, PAINT_GRID );
@@ -919,11 +919,11 @@ void __EXPORT ScUndoSort::Repeat(SfxRepeatTarget& /* rTarget */)
BOOL __EXPORT ScUndoSort::CanRepeat(SfxRepeatTarget& /* rTarget */) const
{
- return FALSE; // geht nicht wegen Spaltennummern
+ return FALSE; // geht nicht wegen Spaltennummern
}
//
-// Filtern
+// Filtern
//
ScUndoQuery::ScUndoQuery( ScDocShell* pNewDocShell, SCTAB nNewTab, const ScQueryParam& rParam,
@@ -935,7 +935,7 @@ ScUndoQuery::ScUndoQuery( ScDocShell* pNewDocShell, SCTAB nNewTab, const ScQuery
nTab( nNewTab ),
aQueryParam( rParam ),
pUndoDoc( pNewUndoDoc ),
-// pUndoDBData( pNewData )
+// pUndoDBData( pNewData )
pUndoDB( pNewUndoDB ),
bIsAdvanced( FALSE ),
bDestArea( FALSE ),
@@ -958,13 +958,13 @@ ScUndoQuery::ScUndoQuery( ScDocShell* pNewDocShell, SCTAB nNewTab, const ScQuery
__EXPORT ScUndoQuery::~ScUndoQuery()
{
delete pUndoDoc;
-// delete pUndoDBData;
+// delete pUndoDBData;
delete pUndoDB;
DeleteSdrUndoAction( pDrawUndo );
}
String __EXPORT ScUndoQuery::GetComment() const
-{ // "Filtern";
+{ // "Filtern";
return ScGlobal::GetRscString( STR_UNDO_QUERY );
}
@@ -995,7 +995,7 @@ void __EXPORT ScUndoQuery::Undo()
if ( bDoSize && bDestArea )
{
- // aDestRange ist der alte Bereich
+ // aDestRange ist der alte Bereich
pDoc->FitBlock( ScRange(
aQueryParam.nDestCol, aQueryParam.nDestRow, aQueryParam.nDestTab,
nDestEndCol, nDestEndRow, aQueryParam.nDestTab ),
@@ -1013,9 +1013,9 @@ void __EXPORT ScUndoQuery::Undo()
pUndoDoc->CopyToDocument( aQueryParam.nDestCol, aQueryParam.nDestRow, aQueryParam.nDestTab,
nDestEndCol, nDestEndRow, aQueryParam.nDestTab,
IDF_ALL, FALSE, pDoc );
- // Attribute werden immer mitkopiert (#49287#)
+ // Attribute werden immer mitkopiert (#49287#)
- // Rest von altem Bereich
+ // Rest von altem Bereich
if ( bDestArea && !bDoSize )
{
pDoc->DeleteAreaTab( aOldDest, IDF_ALL );
@@ -1045,7 +1045,7 @@ void __EXPORT ScUndoQuery::Undo()
if ( nVisTab != nTab )
pViewShell->SetTabNo( nTab );
- // Paint
+ // Paint
if (bCopy)
{
@@ -1095,7 +1095,7 @@ void __EXPORT ScUndoQuery::Repeat(SfxRepeatTarget& /* rTarget */)
BOOL __EXPORT ScUndoQuery::CanRepeat(SfxRepeatTarget& /* rTarget */) const
{
- return FALSE; // geht nicht wegen Spaltennummern
+ return FALSE; // geht nicht wegen Spaltennummern
}
//
@@ -1171,7 +1171,7 @@ BOOL ScUndoAutoFilter::CanRepeat(SfxRepeatTarget& /* rTarget */) const
}
//
-// Datenbankbereiche aendern (Dialog)
+// Datenbankbereiche aendern (Dialog)
//
ScUndoDBData::ScUndoDBData( ScDocShell* pNewDocShell,
@@ -1189,7 +1189,7 @@ __EXPORT ScUndoDBData::~ScUndoDBData()
}
String __EXPORT ScUndoDBData::GetComment() const
-{ // "Datenbankbereiche aendern";
+{ // "Datenbankbereiche aendern";
return ScGlobal::GetRscString( STR_UNDO_DBDATA );
}
@@ -1200,10 +1200,10 @@ void __EXPORT ScUndoDBData::Undo()
ScDocument* pDoc = pDocShell->GetDocument();
BOOL bOldAutoCalc = pDoc->GetAutoCalc();
- pDoc->SetAutoCalc( FALSE ); // unnoetige Berechnungen vermeiden
- pDoc->CompileDBFormula( TRUE ); // CreateFormulaString
+ pDoc->SetAutoCalc( FALSE ); // unnoetige Berechnungen vermeiden
+ pDoc->CompileDBFormula( TRUE ); // CreateFormulaString
pDoc->SetDBCollection( new ScDBCollection(*pUndoColl), TRUE );
- pDoc->CompileDBFormula( FALSE ); // CompileFormulaString
+ pDoc->CompileDBFormula( FALSE ); // CompileFormulaString
pDoc->SetAutoCalc( bOldAutoCalc );
SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_DBAREAS_CHANGED ) );
@@ -1218,10 +1218,10 @@ void __EXPORT ScUndoDBData::Redo()
ScDocument* pDoc = pDocShell->GetDocument();
BOOL bOldAutoCalc = pDoc->GetAutoCalc();
- pDoc->SetAutoCalc( FALSE ); // unnoetige Berechnungen vermeiden
- pDoc->CompileDBFormula( TRUE ); // CreateFormulaString
+ pDoc->SetAutoCalc( FALSE ); // unnoetige Berechnungen vermeiden
+ pDoc->CompileDBFormula( TRUE ); // CreateFormulaString
pDoc->SetDBCollection( new ScDBCollection(*pRedoColl), TRUE );
- pDoc->CompileDBFormula( FALSE ); // CompileFormulaString
+ pDoc->CompileDBFormula( FALSE ); // CompileFormulaString
pDoc->SetAutoCalc( bOldAutoCalc );
SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_DBAREAS_CHANGED ) );
@@ -1235,11 +1235,11 @@ void __EXPORT ScUndoDBData::Repeat(SfxRepeatTarget& /* rTarget */)
BOOL __EXPORT ScUndoDBData::CanRepeat(SfxRepeatTarget& /* rTarget */) const
{
- return FALSE; // geht nicht
+ return FALSE; // geht nicht
}
//
-// Import
+// Import
//
ScUndoImportData::ScUndoImportData( ScDocShell* pNewDocShell, SCTAB nNewTab,
@@ -1271,7 +1271,7 @@ __EXPORT ScUndoImportData::~ScUndoImportData()
}
String __EXPORT ScUndoImportData::GetComment() const
-{ // "Importieren";
+{ // "Importieren";
return ScGlobal::GetRscString( STR_UNDO_IMPORTDATA );
}
@@ -1297,12 +1297,12 @@ void __EXPORT ScUndoImportData::Undo()
if ( !bRedoFilled )
{
- // read redo data from document at first undo
- // imported data is deleted later anyway,
- // so now delete each column after copying to save memory (#41216#)
+ // read redo data from document at first undo
+ // imported data is deleted later anyway,
+ // so now delete each column after copying to save memory (#41216#)
BOOL bOldAutoCalc = pDoc->GetAutoCalc();
- pDoc->SetAutoCalc( FALSE ); // outside of the loop
+ pDoc->SetAutoCalc( FALSE ); // outside of the loop
for (SCCOL nCopyCol = nCol1; nCopyCol <= nCol2; nCopyCol++)
{
pDoc->CopyToDocument( nCopyCol,nRow1,nTab, nCopyCol,nRow2,nTab,
@@ -1315,10 +1315,10 @@ void __EXPORT ScUndoImportData::Undo()
}
}
BOOL bMoveCells = pUndoDBData && pRedoDBData &&
- pRedoDBData->IsDoSize(); // in alt und neu gleich
+ pRedoDBData->IsDoSize(); // in alt und neu gleich
if (bMoveCells)
{
- // Undo: erst die neuen Daten loeschen, dann FitBlock rueckwaerts
+ // Undo: erst die neuen Daten loeschen, dann FitBlock rueckwaerts
ScRange aOld, aNew;
pUndoDBData->GetArea( aOld );
@@ -1327,9 +1327,9 @@ void __EXPORT ScUndoImportData::Undo()
pDoc->DeleteAreaTab( aNew.aStart.Col(), aNew.aStart.Row(),
aNew.aEnd.Col(), aNew.aEnd.Row(), nTab, IDF_ALL & ~IDF_NOTE );
- aOld.aEnd.SetCol( aOld.aEnd.Col() + nFormulaCols ); // FitBlock auch fuer Formeln
+ aOld.aEnd.SetCol( aOld.aEnd.Col() + nFormulaCols ); // FitBlock auch fuer Formeln
aNew.aEnd.SetCol( aNew.aEnd.Col() + nFormulaCols );
- pDoc->FitBlock( aNew, aOld, FALSE ); // rueckwaerts
+ pDoc->FitBlock( aNew, aOld, FALSE ); // rueckwaerts
}
else
pDoc->DeleteAreaTab( aImportParam.nCol1,aImportParam.nRow1,
@@ -1348,7 +1348,7 @@ void __EXPORT ScUndoImportData::Undo()
}
// erack! it's broadcasted
-// pDoc->SetDirty();
+// pDoc->SetDirty();
SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo();
if ( nVisTab != nTab )
@@ -1385,16 +1385,16 @@ void __EXPORT ScUndoImportData::Redo()
nCol1, nRow1, nCol2, nRow2 );
}
BOOL bMoveCells = pUndoDBData && pRedoDBData &&
- pRedoDBData->IsDoSize(); // in alt und neu gleich
+ pRedoDBData->IsDoSize(); // in alt und neu gleich
if (bMoveCells)
{
- // Redo: FitBlock, dann Daten loeschen (noetig fuer CopyToDocument)
+ // Redo: FitBlock, dann Daten loeschen (noetig fuer CopyToDocument)
ScRange aOld, aNew;
pUndoDBData->GetArea( aOld );
pRedoDBData->GetArea( aNew );
- aOld.aEnd.SetCol( aOld.aEnd.Col() + nFormulaCols ); // FitBlock auch fuer Formeln
+ aOld.aEnd.SetCol( aOld.aEnd.Col() + nFormulaCols ); // FitBlock auch fuer Formeln
aNew.aEnd.SetCol( aNew.aEnd.Col() + nFormulaCols );
pDoc->FitBlock( aOld, aNew );
@@ -1420,7 +1420,7 @@ void __EXPORT ScUndoImportData::Redo()
}
// erack! it's broadcasted
-// pDoc->SetDirty();
+// pDoc->SetDirty();
SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo();
if ( nVisTab != nTab )
@@ -1453,16 +1453,16 @@ void __EXPORT ScUndoImportData::Repeat(SfxRepeatTarget& rTarget)
BOOL __EXPORT ScUndoImportData::CanRepeat(SfxRepeatTarget& rTarget) const
{
- // Repeat nur fuer Import per DB-Bereich, dann ist pUndoDBData gesetzt
+ // Repeat nur fuer Import per DB-Bereich, dann ist pUndoDBData gesetzt
if (pUndoDBData)
return (rTarget.ISA(ScTabViewTarget));
else
- return FALSE; // Adressbuch
+ return FALSE; // Adressbuch
}
//
-// Operationen wiederholen
+// Operationen wiederholen
//
ScUndoRepeatDB::ScUndoRepeatDB( ScDocShell* pNewDocShell, SCTAB nNewTab,
@@ -1499,7 +1499,7 @@ __EXPORT ScUndoRepeatDB::~ScUndoRepeatDB()
}
String __EXPORT ScUndoRepeatDB::GetComment() const
-{ // "Wiederholen"; //! bessere Beschreibung!
+{ // "Wiederholen"; //! bessere Beschreibung!
return ScGlobal::GetRscString( STR_UNDO_REPEATDB );
}
@@ -1519,7 +1519,7 @@ void __EXPORT ScUndoRepeatDB::Undo()
{
SCCOL nFormulaCols = 0;
SCCOL nCol = aOldQuery.aEnd.Col() + 1;
- SCROW nRow = aOldQuery.aStart.Row() + 1; //! Header testen
+ SCROW nRow = aOldQuery.aStart.Row() + 1; //! Header testen
while ( nCol <= MAXCOL &&
pDoc->GetCellType(ScAddress( nCol, nRow, nTab )) == CELLTYPE_FORMULA )
++nCol, ++nFormulaCols;
@@ -1536,7 +1536,7 @@ void __EXPORT ScUndoRepeatDB::Undo()
}
}
- //! Daten von Filter in anderen Bereich fehlen noch !!!!!!!!!!!!!!!!!
+ //! Daten von Filter in anderen Bereich fehlen noch !!!!!!!!!!!!!!!!!
if (nNewEndRow > aBlockEnd.Row())
{
@@ -1547,11 +1547,11 @@ void __EXPORT ScUndoRepeatDB::Undo()
pDoc->InsertRow( 0,nTab, MAXCOL,nTab, nNewEndRow+1, static_cast<SCSIZE>(nNewEndRow-aBlockEnd.Row()) );
}
- // Original Outline-Table
+ // Original Outline-Table
pDoc->SetOutlineTable( nTab, pUndoTable );
- // Original Spalten-/Zeilenstatus
+ // Original Spalten-/Zeilenstatus
if (pUndoDoc && pUndoTable)
{
@@ -1570,7 +1570,7 @@ void __EXPORT ScUndoRepeatDB::Undo()
pViewShell->UpdateScrollBars();
}
- // Original-Daten & Referenzen
+ // Original-Daten & Referenzen
ScUndoUtil::MarkSimpleBlock( pDocShell, 0, aBlockStart.Row(), nTab,
MAXCOL, aBlockEnd.Row(), nTab );
@@ -1578,7 +1578,7 @@ void __EXPORT ScUndoRepeatDB::Undo()
MAXCOL, aBlockEnd.Row(), nTab, IDF_ALL );
pUndoDoc->CopyToDocument( 0, aBlockStart.Row(), nTab, MAXCOL, aBlockEnd.Row(), nTab,
- IDF_NONE, FALSE, pDoc ); // Flags
+ IDF_NONE, FALSE, pDoc ); // Flags
pUndoDoc->UndoToDocument( 0, aBlockStart.Row(), nTab, MAXCOL, aBlockEnd.Row(), nTab,
IDF_ALL, FALSE, pDoc );
@@ -1591,7 +1591,7 @@ void __EXPORT ScUndoRepeatDB::Undo()
pDoc->SetDBCollection( new ScDBCollection( *pUndoDB ), TRUE );
// erack! it's broadcasted
-// pDoc->SetDirty();
+// pDoc->SetDirty();
SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo();
if ( nVisTab != nTab )
@@ -1635,7 +1635,7 @@ BOOL __EXPORT ScUndoRepeatDB::CanRepeat(SfxRepeatTarget& rTarget) const
}
//
-// data pilot
+// data pilot
//
ScUndoDataPilot::ScUndoDataPilot( ScDocShell* pNewDocShell,
@@ -1697,12 +1697,12 @@ void __EXPORT ScUndoDataPilot::Undo()
pOldUndoDoc->CopyToDocument( aOldRange, IDF_ALL, FALSE, pDoc );
}
- // update objects in collection
+ // update objects in collection
if ( pNewDPObject )
{
- // find updated object
- //! find by name!
+ // find updated object
+ //! find by name!
ScDPObject* pDocObj = pDoc->GetDPAtCursor(
aNewRange.aStart.Col(), aNewRange.aStart.Row(), aNewRange.aStart.Tab() );
@@ -1711,7 +1711,7 @@ void __EXPORT ScUndoDataPilot::Undo()
{
if ( pOldDPObject )
{
- // restore old settings
+ // restore old settings
pOldDPObject->WriteSourceDataTo( *pDocObj );
ScDPSaveData* pData = pOldDPObject->GetSaveData();
if (pData)
@@ -1721,14 +1721,14 @@ void __EXPORT ScUndoDataPilot::Undo()
}
else
{
- // delete inserted object
+ // delete inserted object
pDoc->GetDPCollection()->FreeTable(pDocObj);
}
}
}
else if ( pOldDPObject )
{
- // re-insert deleted object
+ // re-insert deleted object
ScDPObject* pDestObj = new ScDPObject( *pOldDPObject );
pDestObj->SetAlive(TRUE);
@@ -1748,7 +1748,7 @@ void __EXPORT ScUndoDataPilot::Undo()
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
if (pViewShell)
{
- //! set current sheet
+ //! set current sheet
}
if (pNewDPObject)
@@ -1764,16 +1764,16 @@ void __EXPORT ScUndoDataPilot::Redo()
{
BeginRedo();
- //! copy output data instead of repeating the change,
- //! in case external data have changed!
+ //! copy output data instead of repeating the change,
+ //! in case external data have changed!
ScDocument* pDoc = pDocShell->GetDocument();
ScDPObject* pSourceObj = NULL;
if ( pOldDPObject )
{
- // find object to modify
- //! find by name!
+ // find object to modify
+ //! find by name!
ScRange aOldRange = pOldDPObject->GetOutRange();
pSourceObj = pDoc->GetDPAtCursor(
@@ -1782,25 +1782,25 @@ void __EXPORT ScUndoDataPilot::Redo()
}
ScDBDocFunc aFunc( *pDocShell );
- aFunc.DataPilotUpdate( pSourceObj, pNewDPObject, FALSE, FALSE, bAllowMove ); // no new undo action
+ aFunc.DataPilotUpdate( pSourceObj, pNewDPObject, FALSE, FALSE, bAllowMove ); // no new undo action
EndRedo();
}
void __EXPORT ScUndoDataPilot::Repeat(SfxRepeatTarget& /* rTarget */)
{
- //! allow deletion
+ //! allow deletion
}
BOOL __EXPORT ScUndoDataPilot::CanRepeat(SfxRepeatTarget& /* rTarget */) const
{
- //! allow deletion
+ //! allow deletion
return FALSE;
}
//
-// Konsolidieren
+// Konsolidieren
//
ScUndoConsolidate::ScUndoConsolidate( ScDocShell* pNewDocShell, const ScArea& rArea,
@@ -1843,22 +1843,22 @@ void __EXPORT ScUndoConsolidate::Undo()
if (bInsRef)
{
- // Zeilen loeschen
+ // Zeilen loeschen
pDoc->DeleteRow( 0,nTab, MAXCOL,nTab, aDestArea.nRowStart, nInsertCount );
- // Outlines
+ // Outlines
pDoc->SetOutlineTable( nTab, pUndoTab );
- // Zeilenstatus
+ // Zeilenstatus
pUndoDoc->CopyToDocument( 0,0,nTab, MAXCOL,MAXROW,nTab, IDF_NONE, FALSE, pDoc );
- // Daten & Referenzen
+ // Daten & Referenzen
pDoc->DeleteAreaTab( 0,aDestArea.nRowStart, MAXCOL,aDestArea.nRowEnd, nTab, IDF_ALL );
pUndoDoc->UndoToDocument( 0, aDestArea.nRowStart, nTab,
MAXCOL, aDestArea.nRowEnd, nTab,
IDF_ALL, FALSE, pDoc );
- // Original-Bereich
+ // Original-Bereich
if (pUndoData)
{
pDoc->DeleteAreaTab(aOldRange, IDF_ALL);
@@ -1876,7 +1876,7 @@ void __EXPORT ScUndoConsolidate::Undo()
aDestArea.nColEnd, aDestArea.nRowEnd, nTab,
IDF_ALL, FALSE, pDoc );
- // Original-Bereich
+ // Original-Bereich
if (pUndoData)
{
pDoc->DeleteAreaTab(aOldRange, IDF_ALL);
@@ -1896,10 +1896,10 @@ void __EXPORT ScUndoConsolidate::Undo()
nEndX, nEndY, nTab, PAINT_GRID );
}
- // DB-Bereich wieder anpassen
+ // DB-Bereich wieder anpassen
if (pUndoData)
{
- ScDBCollection* pColl = pDoc->GetDBCollection();
+ ScDBCollection* pColl = pDoc->GetDBCollection();
if (pColl)
{
USHORT nIndex;
@@ -1955,7 +1955,7 @@ BOOL __EXPORT ScUndoConsolidate::CanRepeat(SfxRepeatTarget& /* rTarget */) const
//
-// Quell-Daten von Chart aendern
+// Quell-Daten von Chart aendern
//
void ScUndoChartData::Init()