diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:32:11 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:32:11 -0600 |
commit | 94844816550ad672ccfcdc25659c625546239998 (patch) | |
tree | e35fc60fd736c645d59f6408af032774ad8023d3 /kspread/kspread_undo.cc | |
parent | 2a811c38c74c03648ecf857e566c44483cbad706 (diff) | |
download | koffice-94844816550ad672ccfcdc25659c625546239998.tar.gz koffice-94844816550ad672ccfcdc25659c625546239998.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kspread/kspread_undo.cc')
-rw-r--r-- | kspread/kspread_undo.cc | 168 |
1 files changed, 84 insertions, 84 deletions
diff --git a/kspread/kspread_undo.cc b/kspread/kspread_undo.cc index 6036344c..28f59265 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 tqunicode + // This is a terrible hack to store unicode // 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 tqunicode + // This is a terrible hack to store unicode // 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 tmptqlayout; - tmptqlayout.col = i; - tmptqlayout.l = new ColumnFormat( sheet, i ); - tmptqlayout.l->copy( *(sheet->columnFormat( i )) ); - listCol.append(tmptqlayout); + layoutColumn tmplayout; + tmplayout.col = i; + tmplayout.l = new ColumnFormat( sheet, i ); + tmplayout.l->copy( *(sheet->columnFormat( i )) ); + listCol.append(tmplayout); } */ for ( int c = range.left(); c <= right; ++c ) { - layoutColumn tmptqlayout; - tmptqlayout.col = c; - tmptqlayout.l = new ColumnFormat( sheet, c ); - tmptqlayout.l->copy( *(sheet->columnFormat( c )) ); - listCol.append(tmptqlayout); + layoutColumn tmplayout; + tmplayout.col = c; + tmplayout.l = new ColumnFormat( sheet, c ); + tmplayout.l->copy( *(sheet->columnFormat( c )) ); + listCol.append(tmplayout); cell = sheet->getFirstCellColumn( c ); while ( cell ) @@ -966,12 +966,12 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list, continue; } - 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); + 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); 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 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); + 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); } } */ @@ -998,11 +998,11 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list, { for ( int row = range.top(); row <= bottom; ++row ) { - layoutRow tmptqlayout; - tmptqlayout.row = row; - tmptqlayout.l = new RowFormat( sheet, row ); - tmptqlayout.l->copy( *(sheet->rowFormat( row )) ); - listRow.append(tmptqlayout); + layoutRow tmplayout; + tmplayout.row = row; + tmplayout.l = new RowFormat( sheet, row ); + tmplayout.l->copy( *(sheet->rowFormat( row )) ); + listRow.append(tmplayout); cell = sheet->getFirstCellRow( row ); while ( cell ) @@ -1012,12 +1012,12 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list, cell = sheet->getNextCellRight( cell->column(), row ); continue; } - 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); + 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); 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 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); + 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); } } */ @@ -1048,12 +1048,12 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list, Cell * cell = sheet->nonDefaultCell( x, y ); if ( !cell->isPartOfMerged() ) { - 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); + 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); } } } @@ -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 tmptqlayout; - tmptqlayout.col = col; - tmptqlayout.l = new ColumnFormat( sheet, col ); - tmptqlayout.l->copy( *(sheet->columnFormat( col )) ); - listCol.append(tmptqlayout); + layoutColumn tmplayout; + tmplayout.col = col; + tmplayout.l = new ColumnFormat( sheet, col ); + tmplayout.l->copy( *(sheet->columnFormat( col )) ); + listCol.append(tmplayout); c = sheet->getFirstCellColumn( col ); while ( c ) { if ( !c->isPartOfMerged() ) { - 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); + 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); } 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 tmptqlayout; - tmptqlayout.row = row; - tmptqlayout.l = new RowFormat( sheet, row ); - tmptqlayout.l->copy( *(sheet->rowFormat( row )) ); - listRow.append(tmptqlayout); + layoutRow tmplayout; + tmplayout.row = row; + tmplayout.l = new RowFormat( sheet, row ); + tmplayout.l->copy( *(sheet->rowFormat( row )) ); + listRow.append(tmplayout); c = sheet->getFirstCellRow( row ); while ( c ) { if ( !c->isPartOfMerged() ) { - 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); + 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); } 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 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); + 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); } } } @@ -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 tqunicode + // This is a terrible hack to store unicode // 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 tqunicode + // This is a terrible hack to store unicode // 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 tqunicode + // This is a terrible hack to store unicode // 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 tqunicode + // This is a terrible hack to store unicode // 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 tqunicode + // This is a terrible hack to store unicode // 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 tqunicode + // This is a terrible hack to store unicode // data in a TQCString in a way that // TQCString::length() == TQCString().size(). // This allows us to treat the TQCString like a TQByteArray later on. |