diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kspread/kspread_undo.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspread/kspread_undo.h')
-rw-r--r-- | kspread/kspread_undo.h | 298 |
1 files changed, 149 insertions, 149 deletions
diff --git a/kspread/kspread_undo.h b/kspread/kspread_undo.h index 130b1a80..bb68a43f 100644 --- a/kspread/kspread_undo.h +++ b/kspread/kspread_undo.h @@ -20,12 +20,12 @@ #ifndef __kspread_undo_h__ #define __kspread_undo_h__ -#include <qptrstack.h> -#include <qstring.h> -#include <qrect.h> -#include <qptrlist.h> -#include <qvaluelist.h> -#include <qmap.h> +#include <tqptrstack.h> +#include <tqstring.h> +#include <tqrect.h> +#include <tqptrlist.h> +#include <tqvaluelist.h> +#include <tqmap.h> #include <KoUnit.h> #include <KoPageLayout.h> @@ -57,28 +57,28 @@ double columnWidth; struct textOfCell { int row; int col; -QString text; +TQString text; }; -struct layoutTextCell { +struct tqlayoutTextCell { int row; int col; Format * l; -QString text; +TQString text; }; -struct layoutCell { +struct tqlayoutCell { int row; int col; Format *l; }; -struct layoutColumn { +struct tqlayoutColumn { int col; ColumnFormat *l; }; -struct layoutRow { +struct tqlayoutRow { int row; RowFormat *l; }; @@ -86,27 +86,27 @@ RowFormat *l; struct styleCell { int row; int col; - QString action; + TQString action; }; class FormulaOfCell { public: FormulaOfCell(): m_sheetName(0) {} - FormulaOfCell( QString & sheetName, int col, int row, QString & formula ) + FormulaOfCell( TQString & sheetName, int col, int row, TQString & formula ) : m_sheetName( sheetName ), m_col( col ), m_row( row ), m_formula( formula ) {} - QString sheetName() const { return m_sheetName; } - QString formula() const { return m_formula; } + TQString sheetName() const { return m_sheetName; } + TQString formula() const { return m_formula; } int col() const { return m_col; } int row() const { return m_row; } private: - QString m_sheetName; + TQString m_sheetName; int m_col; int m_row; - QString m_formula; + TQString m_formula; }; /** @@ -124,17 +124,17 @@ public: Doc* doc()const { return m_pDoc; } - QString getName()const {return name ;} + TQString getName()const {return name ;} protected: Doc *m_pDoc; - QString name; + TQString name; }; class MacroUndoAction : public UndoAction { public: - MacroUndoAction( Doc * _doc, const QString & _name ); + MacroUndoAction( Doc * _doc, const TQString & _name ); virtual ~MacroUndoAction(); void addCommand(UndoAction *command); @@ -143,7 +143,7 @@ public: virtual void redo(); protected: - QPtrList<UndoAction> m_commands; + TQPtrList<UndoAction> m_commands; }; class UndoInsertRemoveAction : public UndoAction @@ -152,11 +152,11 @@ public: UndoInsertRemoveAction( Doc *_doc ); virtual ~UndoInsertRemoveAction(); - void saveFormulaReference( Sheet *_sheet, int col, int row, QString & formula ); + void saveFormulaReference( Sheet *_sheet, int col, int row, TQString & formula ); protected: void undoFormulaReference(); - QValueList<FormulaOfCell> m_lstFormulaCells; + TQValueList<FormulaOfCell> m_lstFormulaCells; }; class UndoRemoveColumn : public UndoInsertRemoveAction @@ -169,12 +169,12 @@ public: virtual void redo(); protected: - QString m_sheetName; - QCString m_data; + TQString m_sheetName; + TQCString m_data; int m_iColumn; int m_iNbCol; - QRect m_printRange; - QPair<int, int> m_printRepeatColumns; + TQRect m_printRange; + TQPair<int, int> m_printRepeatColumns; }; class UndoInsertColumn : public UndoInsertRemoveAction @@ -187,7 +187,7 @@ public: virtual void redo(); protected: - QString m_sheetName; + TQString m_sheetName; int m_iColumn; int m_iNbCol; }; @@ -202,12 +202,12 @@ public: virtual void redo(); protected: - QString m_sheetName; - QCString m_data; + TQString m_sheetName; + TQCString m_data; int m_iRow; int m_iNbRow; - QRect m_printRange; - QPair<int, int> m_printRepeatRows; + TQRect m_printRange; + TQPair<int, int> m_printRepeatRows; }; class UndoInsertRow : public UndoInsertRemoveAction @@ -220,7 +220,7 @@ public: virtual void redo(); protected: - QString m_sheetName; + TQString m_sheetName; int m_iRow; int m_iNbRow; }; @@ -229,69 +229,69 @@ protected: class UndoHideColumn : public UndoAction { public: - UndoHideColumn( Doc *_doc, Sheet *_sheet, int _column,int _nbCol=0, QValueList<int>listCol=QValueList<int>() ); + UndoHideColumn( Doc *_doc, Sheet *_sheet, int _column,int _nbCol=0, TQValueList<int>listCol=TQValueList<int>() ); virtual ~UndoHideColumn(); virtual void undo(); virtual void redo(); - void createList( QValueList<int>&list,Sheet *_tab ); + void createList( TQValueList<int>&list,Sheet *_tab ); protected: - QString m_sheetName; + TQString m_sheetName; int m_iColumn; int m_iNbCol; - QValueList<int> listCol; + TQValueList<int> listCol; }; class UndoHideRow : public UndoAction { public: - UndoHideRow( Doc *_doc, Sheet *_sheet, int _column,int _nbCol=0, QValueList<int>_listRow=QValueList<int>() ); + UndoHideRow( Doc *_doc, Sheet *_sheet, int _column,int _nbCol=0, TQValueList<int>_listRow=TQValueList<int>() ); virtual ~UndoHideRow(); virtual void undo(); virtual void redo(); protected: - void createList( QValueList<int>&list,Sheet *_tab ); + void createList( TQValueList<int>&list,Sheet *_tab ); - QString m_sheetName; + TQString m_sheetName; int m_iRow; int m_iNbRow; - QValueList<int> listRow; + TQValueList<int> listRow; }; class UndoShowColumn : public UndoAction { public: - UndoShowColumn( Doc *_doc, Sheet *_sheet, int _column,int _nbCol=0, QValueList<int>_list=QValueList<int>() ); + UndoShowColumn( Doc *_doc, Sheet *_sheet, int _column,int _nbCol=0, TQValueList<int>_list=TQValueList<int>() ); virtual ~UndoShowColumn(); virtual void undo(); virtual void redo(); protected: - void createList( QValueList<int>&list,Sheet *_tab ); + void createList( TQValueList<int>&list,Sheet *_tab ); - QString m_sheetName; + TQString m_sheetName; int m_iColumn; int m_iNbCol; - QValueList<int> listCol; + TQValueList<int> listCol; }; class UndoShowRow : public UndoAction { public: - UndoShowRow( Doc *_doc, Sheet *_sheet, int _column,int _nbCol=0, QValueList<int>list=QValueList<int>() ); + UndoShowRow( Doc *_doc, Sheet *_sheet, int _column,int _nbCol=0, TQValueList<int>list=TQValueList<int>() ); virtual ~UndoShowRow(); virtual void undo(); virtual void redo(); protected: - void createList( QValueList<int>&list,Sheet *_tab ); - QString m_sheetName; + void createList( TQValueList<int>&list,Sheet *_tab ); + TQString m_sheetName; int m_iRow; int m_iNbRow; - QValueList<int> listRow; + TQValueList<int> listRow; }; @@ -305,7 +305,7 @@ public: virtual void redo(); protected: - QString m_sheetName; + TQString m_sheetName; KoPageLayout m_pl; KoPageLayout m_plRedo; KoHeadFoot m_hf; @@ -318,12 +318,12 @@ protected: bool m_printCommentIndicatorRedo; bool m_printFormulaIndicator; bool m_printFormulaIndicatorRedo; - QRect m_printRange; - QRect m_printRangeRedo; - QPair<int, int> m_printRepeatColumns; - QPair<int, int> m_printRepeatColumnsRedo; - QPair<int, int> m_printRepeatRows; - QPair<int, int> m_printRepeatRowsRedo; + TQRect m_printRange; + TQRect m_printRangeRedo; + TQPair<int, int> m_printRepeatColumns; + TQPair<int, int> m_printRepeatColumnsRedo; + TQPair<int, int> m_printRepeatRows; + TQPair<int, int> m_printRepeatRowsRedo; double m_dZoom; double m_dZoomRedo; int m_iPageLimitX; @@ -336,18 +336,18 @@ protected: class UndoSetText : public UndoAction { public: - UndoSetText( Doc *_doc, Sheet *_sheet, const QString& _text, int _column, int _row, FormatType _formatType ); + UndoSetText( Doc *_doc, Sheet *_sheet, const TQString& _text, int _column, int _row, FormatType _formatType ); virtual ~UndoSetText(); virtual void undo(); virtual void redo(); protected: - QString m_sheetName; + TQString m_sheetName; int m_iRow; int m_iColumn; - QString m_strText; - QString m_strRedoText; + TQString m_strText; + TQString m_strRedoText; FormatType m_eFormatType; FormatType m_eFormatTypeRedo; }; @@ -355,24 +355,24 @@ protected: class UndoCellFormat : public UndoAction { public: - UndoCellFormat( Doc *_doc, Sheet *_sheet, const Region &_selection, const QString &_title ); + UndoCellFormat( Doc *_doc, Sheet *_sheet, const Region &_selection, const TQString &_title ); virtual ~UndoCellFormat(); virtual void undo(); virtual void redo(); protected: - void copyFormat( QValueList<layoutCell> &list,QValueList<layoutColumn> &listCol,QValueList<layoutRow> &listRow, Sheet* sheet ); + void copyFormat( TQValueList<tqlayoutCell> &list,TQValueList<tqlayoutColumn> &listCol,TQValueList<tqlayoutRow> &listRow, Sheet* sheet ); Region m_region; - QValueList<layoutCell> m_lstFormats; - QValueList<layoutCell> m_lstRedoFormats; - QValueList<layoutColumn> m_lstColFormats; - QValueList<layoutColumn> m_lstRedoColFormats; - QValueList<layoutRow> m_lstRowFormats; - QValueList<layoutRow> m_lstRedoRowFormats; + TQValueList<tqlayoutCell> m_lstFormats; + TQValueList<tqlayoutCell> m_lstRedoFormats; + TQValueList<tqlayoutColumn> m_lstColFormats; + TQValueList<tqlayoutColumn> m_lstRedoColFormats; + TQValueList<tqlayoutRow> m_lstRowFormats; + TQValueList<tqlayoutRow> m_lstRedoRowFormats; - QString m_sheetName; + TQString m_sheetName; }; class UndoChangeAngle : public UndoAction @@ -401,16 +401,16 @@ public: virtual void redo(); protected: - void createListCell( QCString &listCell,QValueList<columnSize> &listCol,QValueList<rowSize> &listRow, Sheet* sheet ); + void createListCell( TQCString &listCell,TQValueList<columnSize> &listCol,TQValueList<rowSize> &listRow, Sheet* sheet ); Region m_region; - QCString m_data; - QCString m_dataRedo; - QValueList<columnSize> m_lstColumn; - QValueList<columnSize> m_lstRedoColumn; - QValueList<rowSize> m_lstRow; - QValueList<rowSize> m_lstRedoRow; - QString m_sheetName; + TQCString m_data; + TQCString m_dataRedo; + TQValueList<columnSize> m_lstColumn; + TQValueList<columnSize> m_lstRedoColumn; + TQValueList<rowSize> m_lstRow; + TQValueList<rowSize> m_lstRedoRow; + TQString m_sheetName; }; class UndoDragDrop : public UndoAction @@ -425,13 +425,13 @@ public: protected: Region m_selectionSource; Region m_selectionTarget; - QCString m_dataSource; - QCString m_dataTarget; - QCString m_dataRedoSource; - QCString m_dataRedoTarget; - QString m_sheetName; + TQCString m_dataSource; + TQCString m_dataTarget; + TQCString m_dataRedoSource; + TQCString m_dataRedoTarget; + TQString m_sheetName; - void saveCellRect( QCString & cells, Sheet * sheet, + void saveCellRect( TQCString & cells, Sheet * sheet, const Region& region ); }; @@ -445,14 +445,14 @@ public: virtual void redo(); protected: - void createList( QValueList<columnSize> &listCol,QValueList<rowSize> &listRow, Sheet* sheet ); + void createList( TQValueList<columnSize> &listCol,TQValueList<rowSize> &listRow, Sheet* sheet ); Region m_region; - QValueList<columnSize> m_lstColumn; - QValueList<columnSize> m_lstRedoColumn; - QValueList<rowSize> m_lstRow; - QValueList<rowSize> m_lstRedoRow; - QString m_sheetName; + TQValueList<columnSize> m_lstColumn; + TQValueList<columnSize> m_lstRedoColumn; + TQValueList<rowSize> m_lstRow; + TQValueList<rowSize> m_lstRedoRow; + TQString m_sheetName; }; class UndoChangeAreaTextCell : public UndoAction @@ -465,36 +465,36 @@ public: virtual void redo(); protected: - void createList( QMap<QPoint,QString> &list, Sheet* sheet ); + void createList( TQMap<TQPoint,TQString> &list, Sheet* sheet ); Region m_region; - QMap<QPoint,QString> m_lstTextCell; - QMap<QPoint,QString> m_lstRedoTextCell; - QString m_sheetName; + TQMap<TQPoint,TQString> m_lstTextCell; + TQMap<TQPoint,TQString> m_lstRedoTextCell; + TQString m_sheetName; }; class UndoSort : public UndoAction { public: - UndoSort( Doc *_doc, Sheet *_sheet, const QRect &_selection); + UndoSort( Doc *_doc, Sheet *_sheet, const TQRect &_selection); virtual ~UndoSort(); virtual void undo(); virtual void redo(); protected: - void copyAll( QValueList<layoutTextCell> & list, QValueList<layoutColumn> & listCol, - QValueList<layoutRow> & listRow, Sheet * sheet ); + void copyAll( TQValueList<tqlayoutTextCell> & list, TQValueList<tqlayoutColumn> & listCol, + TQValueList<tqlayoutRow> & listRow, Sheet * sheet ); - QRect m_rctRect; - QValueList<layoutTextCell> m_lstFormats; - QValueList<layoutTextCell> m_lstRedoFormats; - QValueList<layoutColumn> m_lstColFormats; - QValueList<layoutColumn> m_lstRedoColFormats; - QValueList<layoutRow> m_lstRowFormats; - QValueList<layoutRow> m_lstRedoRowFormats; + TQRect m_rctRect; + TQValueList<tqlayoutTextCell> m_lstFormats; + TQValueList<tqlayoutTextCell> m_lstRedoFormats; + TQValueList<tqlayoutColumn> m_lstColFormats; + TQValueList<tqlayoutColumn> m_lstRedoColFormats; + TQValueList<tqlayoutRow> m_lstRowFormats; + TQValueList<tqlayoutRow> m_lstRedoRowFormats; - QString m_sheetName; + TQString m_sheetName; }; class UndoMergedCell : public UndoAction @@ -513,82 +513,82 @@ protected: int m_iExtraY; int m_iExtraRedoX; int m_iExtraRedoY; - QString m_sheetName; + TQString m_sheetName; }; class UndoAutofill : public UndoAction { public: - UndoAutofill( Doc *_doc, Sheet *_sheet, const QRect &_rect ); + UndoAutofill( Doc *_doc, Sheet *_sheet, const TQRect &_rect ); virtual ~UndoAutofill(); virtual void undo(); virtual void redo(); protected: - void createListCell( QCString &list, Sheet* sheet ); - QRect m_selection; - QCString m_data; - QCString m_dataRedo; - QString m_sheetName; + void createListCell( TQCString &list, Sheet* sheet ); + TQRect m_selection; + TQCString m_data; + TQCString m_dataRedo; + TQString m_sheetName; }; class UndoInsertCellCol : public UndoInsertRemoveAction { public: - UndoInsertCellCol( Doc *_doc, Sheet *_sheet, const QRect &_rect ); + UndoInsertCellCol( Doc *_doc, Sheet *_sheet, const TQRect &_rect ); virtual ~UndoInsertCellCol(); virtual void undo(); virtual void redo(); protected: - QString m_sheetName; - QRect m_rect; + TQString m_sheetName; + TQRect m_rect; }; class UndoInsertCellRow : public UndoInsertRemoveAction { public: - UndoInsertCellRow( Doc *_doc, Sheet *_sheet,const QRect &_rect ); + UndoInsertCellRow( Doc *_doc, Sheet *_sheet,const TQRect &_rect ); virtual ~UndoInsertCellRow(); virtual void undo(); virtual void redo(); protected: - QString m_sheetName; - QRect m_rect; + TQString m_sheetName; + TQRect m_rect; }; class UndoRemoveCellCol : public UndoInsertRemoveAction { public: - UndoRemoveCellCol( Doc *_doc, Sheet *_sheet, const QRect &_rect ); + UndoRemoveCellCol( Doc *_doc, Sheet *_sheet, const TQRect &_rect ); virtual ~UndoRemoveCellCol(); virtual void undo(); virtual void redo(); protected: - QString m_sheetName; - QRect m_rect; - QCString m_data; + TQString m_sheetName; + TQRect m_rect; + TQCString m_data; }; class UndoRemoveCellRow : public UndoInsertRemoveAction { public: - UndoRemoveCellRow( Doc *_doc, Sheet *_sheet, const QRect &_rect ); + UndoRemoveCellRow( Doc *_doc, Sheet *_sheet, const TQRect &_rect ); virtual ~UndoRemoveCellRow(); virtual void undo(); virtual void redo(); protected: - QString m_sheetName; - QRect m_rect; - QCString m_data; + TQString m_sheetName; + TQRect m_rect; + TQCString m_data; }; class UndoConditional : public UndoAction @@ -600,11 +600,11 @@ public: virtual void undo(); virtual void redo(); protected: - void createListCell( QCString &list, Sheet* sheet ); + void createListCell( TQCString &list, Sheet* sheet ); Region m_region; - QCString m_data; - QCString m_dataRedo; - QString m_sheetName; + TQCString m_data; + TQCString m_dataRedo; + TQString m_sheetName; }; class UndoCellPaste : public UndoAction @@ -619,44 +619,44 @@ public: virtual void redo(); protected: - void createListCell( QCString &listCell,QValueList<columnSize> &listCol,QValueList<rowSize> &listRow, Sheet* sheet ); + void createListCell( TQCString &listCell,TQValueList<columnSize> &listCol,TQValueList<rowSize> &listRow, Sheet* sheet ); Region m_region; - QCString m_data; - QCString m_dataRedo; - QValueList<columnSize> m_lstColumn; - QValueList<columnSize> m_lstRedoColumn; - QValueList<rowSize> m_lstRow; - QValueList<rowSize> m_lstRedoRow; + TQCString m_data; + TQCString m_dataRedo; + TQValueList<columnSize> m_lstColumn; + TQValueList<columnSize> m_lstRedoColumn; + TQValueList<rowSize> m_lstRow; + TQValueList<rowSize> m_lstRedoRow; int xshift; int yshift; bool b_insert; int m_iInsertTo; - QString m_sheetName; + TQString m_sheetName; }; class UndoStyleCell : public UndoAction { public: - UndoStyleCell( Doc *_doc, Sheet *_sheet, const QRect &_rect ); + UndoStyleCell( Doc *_doc, Sheet *_sheet, const TQRect &_rect ); virtual ~UndoStyleCell(); virtual void undo(); virtual void redo(); protected: - void createListCell( QValueList<styleCell> &listCell, Sheet* sheet ); - QRect m_selection; - QValueList<styleCell> m_lstStyleCell; - QValueList<styleCell> m_lstRedoStyleCell; - QString m_sheetName; + void createListCell( TQValueList<styleCell> &listCell, Sheet* sheet ); + TQRect m_selection; + TQValueList<styleCell> m_lstStyleCell; + TQValueList<styleCell> m_lstRedoStyleCell; + TQString m_sheetName; }; class UndoInsertData : public UndoChangeAreaTextCell { public: - UndoInsertData( Doc * _doc, Sheet * _sheet, QRect & _selection ); + UndoInsertData( Doc * _doc, Sheet * _sheet, TQRect & _selection ); }; @@ -679,12 +679,12 @@ public: void appendUndo( UndoAction *_action ); - QString getUndoName(); - QString getRedoName(); + TQString getUndoName(); + TQString getRedoName(); protected: - QPtrStack<UndoAction> m_stckUndo; - QPtrStack<UndoAction> m_stckRedo; + TQPtrStack<UndoAction> m_stckUndo; + TQPtrStack<UndoAction> m_stckRedo; Doc *m_pDoc; }; |