summaryrefslogtreecommitdiffstats
path: root/kspread/kspread_undo.cc
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:56:31 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:56:31 -0600
commitc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch)
tree1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /kspread/kspread_undo.cc
parent94844816550ad672ccfcdc25659c625546239998 (diff)
downloadkoffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz
koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'kspread/kspread_undo.cc')
-rw-r--r--kspread/kspread_undo.cc168
1 files changed, 84 insertions, 84 deletions
diff --git a/kspread/kspread_undo.cc b/kspread/kspread_undo.cc
index 28f59265..6036344c 100644
--- a/kspread/kspread_undo.cc
+++ b/kspread/kspread_undo.cc
@@ -266,7 +266,7 @@ UndoRemoveColumn::UndoRemoveColumn( Doc *_doc, Sheet *_sheet, int _column,int _n
TQTextStream str( &buffer, IO_WriteOnly );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
@@ -385,7 +385,7 @@ UndoRemoveRow::UndoRemoveRow( Doc *_doc, Sheet *_sheet, int _row,int _nbRow) :
TQTextStream str( &buffer, IO_WriteOnly );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
@@ -942,20 +942,20 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list,
/* Don't need to go through the loop twice...
for (int i = range.left(); i <= right; ++i)
{
- layoutColumn tmplayout;
- tmplayout.col = i;
- tmplayout.l = new ColumnFormat( sheet, i );
- tmplayout.l->copy( *(sheet->columnFormat( i )) );
- listCol.append(tmplayout);
+ layoutColumn tmptqlayout;
+ tmptqlayout.col = i;
+ tmptqlayout.l = new ColumnFormat( sheet, i );
+ tmptqlayout.l->copy( *(sheet->columnFormat( i )) );
+ listCol.append(tmptqlayout);
}
*/
for ( int c = range.left(); c <= right; ++c )
{
- layoutColumn tmplayout;
- tmplayout.col = c;
- tmplayout.l = new ColumnFormat( sheet, c );
- tmplayout.l->copy( *(sheet->columnFormat( c )) );
- listCol.append(tmplayout);
+ layoutColumn tmptqlayout;
+ tmptqlayout.col = c;
+ tmptqlayout.l = new ColumnFormat( sheet, c );
+ tmptqlayout.l->copy( *(sheet->columnFormat( c )) );
+ listCol.append(tmptqlayout);
cell = sheet->getFirstCellColumn( c );
while ( cell )
@@ -966,12 +966,12 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list,
continue;
}
- layoutCell tmplayout;
- tmplayout.col = c;
- tmplayout.row = cell->row();
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( tmplayout.col, tmplayout.row )->format()) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = c;
+ tmptqlayout.row = cell->row();
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( tmptqlayout.col, tmptqlayout.row )->format()) );
+ list.append(tmptqlayout);
cell = sheet->getNextCellDown( c, cell->row() );
}
@@ -984,12 +984,12 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list,
if ( range.left() <= col && right >= col
&& !c->isPartOfMerged())
{
- layoutCell tmplayout;
- tmplayout.col = c->column();
- tmplayout.row = c->row();
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( tmplayout.col, tmplayout.row )) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = c->column();
+ tmptqlayout.row = c->row();
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( tmptqlayout.col, tmptqlayout.row )) );
+ list.append(tmptqlayout);
}
}
*/
@@ -998,11 +998,11 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list,
{
for ( int row = range.top(); row <= bottom; ++row )
{
- layoutRow tmplayout;
- tmplayout.row = row;
- tmplayout.l = new RowFormat( sheet, row );
- tmplayout.l->copy( *(sheet->rowFormat( row )) );
- listRow.append(tmplayout);
+ layoutRow tmptqlayout;
+ tmptqlayout.row = row;
+ tmptqlayout.l = new RowFormat( sheet, row );
+ tmptqlayout.l->copy( *(sheet->rowFormat( row )) );
+ listRow.append(tmptqlayout);
cell = sheet->getFirstCellRow( row );
while ( cell )
@@ -1012,12 +1012,12 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list,
cell = sheet->getNextCellRight( cell->column(), row );
continue;
}
- layoutCell tmplayout;
- tmplayout.col = cell->column();
- tmplayout.row = row;
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( cell->column(), row )->format()) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = cell->column();
+ tmptqlayout.row = row;
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( cell->column(), row )->format()) );
+ list.append(tmptqlayout);
cell = sheet->getNextCellRight( cell->column(), row );
}
@@ -1030,12 +1030,12 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list,
if ( range.top() <= row && bottom >= row
&& !c->isPartOfMerged())
{
- layoutCell tmplayout;
- tmplayout.col = c->column();
- tmplayout.row = c->row();
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( tmplayout.col, tmplayout.row )) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = c->column();
+ tmptqlayout.row = c->row();
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( tmptqlayout.col, tmptqlayout.row )) );
+ list.append(tmptqlayout);
}
}
*/
@@ -1048,12 +1048,12 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list,
Cell * cell = sheet->nonDefaultCell( x, y );
if ( !cell->isPartOfMerged() )
{
- layoutCell tmplayout;
- tmplayout.col = x;
- tmplayout.row = y;
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( x, y )->format()) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = x;
+ tmptqlayout.row = y;
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( x, y )->format()) );
+ list.append(tmptqlayout);
}
}
}
@@ -1265,24 +1265,24 @@ void UndoSort::copyAll(TQValueList<layoutTextCell> & list, TQValueList<layoutCol
Cell * c;
for (int col = m_rctRect.left(); col <= m_rctRect.right(); ++col)
{
- layoutColumn tmplayout;
- tmplayout.col = col;
- tmplayout.l = new ColumnFormat( sheet, col );
- tmplayout.l->copy( *(sheet->columnFormat( col )) );
- listCol.append(tmplayout);
+ layoutColumn tmptqlayout;
+ tmptqlayout.col = col;
+ tmptqlayout.l = new ColumnFormat( sheet, col );
+ tmptqlayout.l->copy( *(sheet->columnFormat( col )) );
+ listCol.append(tmptqlayout);
c = sheet->getFirstCellColumn( col );
while ( c )
{
if ( !c->isPartOfMerged() )
{
- layoutTextCell tmplayout;
- tmplayout.col = col;
- tmplayout.row = c->row();
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( tmplayout.col, tmplayout.row )->format()) );
- tmplayout.text = c->text();
- list.append(tmplayout);
+ layoutTextCell tmptqlayout;
+ tmptqlayout.col = col;
+ tmptqlayout.row = c->row();
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( tmptqlayout.col, tmptqlayout.row )->format()) );
+ tmptqlayout.text = c->text();
+ list.append(tmptqlayout);
}
c = sheet->getNextCellDown( col, c->row() );
@@ -1294,24 +1294,24 @@ void UndoSort::copyAll(TQValueList<layoutTextCell> & list, TQValueList<layoutCol
Cell * c;
for ( int row = m_rctRect.top(); row <= m_rctRect.bottom(); ++row)
{
- layoutRow tmplayout;
- tmplayout.row = row;
- tmplayout.l = new RowFormat( sheet, row );
- tmplayout.l->copy( *(sheet->rowFormat( row )) );
- listRow.append(tmplayout);
+ layoutRow tmptqlayout;
+ tmptqlayout.row = row;
+ tmptqlayout.l = new RowFormat( sheet, row );
+ tmptqlayout.l->copy( *(sheet->rowFormat( row )) );
+ listRow.append(tmptqlayout);
c = sheet->getFirstCellRow( row );
while ( c )
{
if ( !c->isPartOfMerged() )
{
- layoutTextCell tmplayout;
- tmplayout.col = c->column();
- tmplayout.row = row;
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( tmplayout.col, tmplayout.row )->format()) );
- tmplayout.text = c->text();
- list.append(tmplayout);
+ layoutTextCell tmptqlayout;
+ tmptqlayout.col = c->column();
+ tmptqlayout.row = row;
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( tmptqlayout.col, tmptqlayout.row )->format()) );
+ tmptqlayout.text = c->text();
+ list.append(tmptqlayout);
}
c = sheet->getNextCellRight( c->column(), row );
}
@@ -1328,13 +1328,13 @@ void UndoSort::copyAll(TQValueList<layoutTextCell> & list, TQValueList<layoutCol
cell = sheet->nonDefaultCell( x, y );
if (!cell->isPartOfMerged())
{
- layoutTextCell tmplayout;
- tmplayout.col = x;
- tmplayout.row = y;
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( x, y )->format()) );
- tmplayout.text = cell->text();
- list.append(tmplayout);
+ layoutTextCell tmptqlayout;
+ tmptqlayout.col = x;
+ tmptqlayout.row = y;
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( x, y )->format()) );
+ tmptqlayout.text = cell->text();
+ list.append(tmptqlayout);
}
}
}
@@ -1557,7 +1557,7 @@ void UndoDelete::createListCell( TQCString &listCell,TQValueList<columnSize> &li
TQTextStream str( &buffer, IO_WriteOnly );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
@@ -2243,7 +2243,7 @@ void UndoAutofill::createListCell( TQCString &list, Sheet* sheet )
TQTextStream str( &buffer, IO_WriteOnly );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
@@ -2400,7 +2400,7 @@ UndoRemoveCellRow::UndoRemoveCellRow( Doc *_doc, Sheet *_sheet, const TQRect &re
TQTextStream str( &buffer, IO_WriteOnly );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
@@ -2459,7 +2459,7 @@ UndoRemoveCellCol::UndoRemoveCellCol( Doc *_doc, Sheet *_sheet, const TQRect &_r
TQTextStream str( &buffer, IO_WriteOnly );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
@@ -2529,7 +2529,7 @@ void UndoConditional::createListCell( TQCString &list, Sheet* sheet )
TQDomDocument doc = sheet->saveCellRegion( m_region );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
@@ -2671,7 +2671,7 @@ void UndoCellPaste::createListCell(TQCString& listCell,
TQTextStream str( &buffer, IO_WriteOnly );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.