summaryrefslogtreecommitdiffstats
path: root/kspread/kspread_sheet.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kspread/kspread_sheet.h
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-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_sheet.h')
-rw-r--r--kspread/kspread_sheet.h294
1 files changed, 149 insertions, 145 deletions
diff --git a/kspread/kspread_sheet.h b/kspread/kspread_sheet.h
index 435603ea..08fc0fe0 100644
--- a/kspread/kspread_sheet.h
+++ b/kspread/kspread_sheet.h
@@ -22,14 +22,14 @@
#ifndef KSPREAD_SHEET
#define KSPREAD_SHEET
-#include <qclipboard.h>
-#include <qdragobject.h>
-#include <qintdict.h>
-#include <qmemarray.h>
-#include <qpen.h>
-#include <qptrlist.h>
-#include <qrect.h>
-#include <qwidget.h>
+#include <tqclipboard.h>
+#include <tqdragobject.h>
+#include <tqintdict.h>
+#include <tqmemarray.h>
+#include <tqpen.h>
+#include <tqptrlist.h>
+#include <tqrect.h>
+#include <tqwidget.h>
#include <KoDocument.h>
#include <KoDocumentChild.h>
@@ -41,9 +41,9 @@
#include "kspread_global.h"
#include "kspread_object.h"
-class QWidget;
-class QPainter;
-class QDomElement;
+class TQWidget;
+class TQPainter;
+class TQDomElement;
class DCOPObject;
class KPrinter;
class KoDocumentEntry;
@@ -90,14 +90,15 @@ class EmbeddedObject;
/**
* @short This is an abstract base class only.
*/
-class CellBinding : public QObject
+class CellBinding : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- CellBinding( Sheet *_sheet, const QRect& _area );
+ CellBinding( Sheet *_sheet, const TQRect& _area );
virtual ~CellBinding();
- bool contains( int _x, int _y );
+ bool tqcontains( int _x, int _y );
/**
* Call this function if one of the cells covered by this binding ( @see #rect )
* has changed. This will in turn force for example a chart to update.
@@ -108,8 +109,8 @@ public:
virtual void setIgnoreChanges( bool _ignore ) { m_bIgnoreChanges = _ignore; }
- virtual QRect& dataArea() { return m_rctDataArea; }
- virtual void setDataArea( const QRect _rect ) { m_rctDataArea = _rect; }
+ virtual TQRect& dataArea() { return m_rctDataArea; }
+ virtual void setDataArea( const TQRect _rect ) { m_rctDataArea = _rect; }
Sheet* sheet()const { return m_pSheet; }
@@ -117,7 +118,7 @@ signals:
void changed( Cell *_obj );
protected:
- QRect m_rctDataArea;
+ TQRect m_rctDataArea;
Sheet *m_pSheet;
bool m_bIgnoreChanges;
};
@@ -125,9 +126,10 @@ protected:
class ChartBinding : public CellBinding
{
Q_OBJECT
+ TQ_OBJECT
public:
- ChartBinding( Sheet *_sheet, const QRect& _area, EmbeddedChart *_child );
+ ChartBinding( Sheet *_sheet, const TQRect& _area, EmbeddedChart *_child );
virtual ~ChartBinding();
virtual void cellChanged( Cell *_obj );
@@ -146,26 +148,27 @@ private:
* @short This is a class for handling clipboard data
*/
-class TextDrag : public QTextDrag
+class TextDrag : public TQTextDrag
{
Q_OBJECT
+ TQ_OBJECT
public:
- TextDrag( QWidget * dragSource = 0L, const char * name = 0L );
+ TextDrag( TQWidget * dragSource = 0L, const char * name = 0L );
virtual ~TextDrag();
- void setPlain( QString const & _plain ) { setText( _plain ); }
- void setKSpread( QByteArray const & _kspread ) { m_kspread = _kspread; }
+ void setPlain( TQString const & _plain ) { setText( _plain ); }
+ void setKSpread( TQByteArray const & _kspread ) { m_kspread = _kspread; }
- virtual QByteArray encodedData( const char * mime ) const;
+ virtual TQByteArray tqencodedData( const char * mime ) const;
virtual const char* format( int i ) const;
- static bool canDecode( QMimeSource * e );
+ static bool canDecode( TQMimeSource * e );
static const char * selectionMimeType();
protected:
- QByteArray m_kspread;
+ TQByteArray m_kspread;
};
@@ -177,16 +180,17 @@ protected:
/**
*/
-class KSPREAD_EXPORT Sheet : public QObject
+class KSPREAD_EXPORT Sheet : public TQObject
{
friend class Cell;
Q_OBJECT
+ TQ_OBJECT
- Q_PROPERTY( QString sheetName READ sheetName )
- Q_PROPERTY( bool autoCalc READ getAutoCalc WRITE setAutoCalc )
- Q_PROPERTY( bool showGrid READ getShowGrid WRITE setShowGrid )
+ TQ_PROPERTY( TQString sheetName READ sheetName )
+ TQ_PROPERTY( bool autoCalc READ getAutoCalc WRITE setAutoCalc )
+ TQ_PROPERTY( bool showGrid READ getShowGrid WRITE setShowGrid )
public:
enum Direction { Right, Left, Up, Down };
@@ -196,7 +200,7 @@ public:
enum LayoutDirection { LeftToRight, RightToLeft };
- Sheet ( Map* map, const QString &sheetName, const char *_name=0L );
+ Sheet ( Map* map, const TQString &sheetName, const char *_name=0L );
~Sheet();
virtual bool isEmpty( unsigned long int x, unsigned long int y ) const;
@@ -204,12 +208,12 @@ public:
/**
* Return the name of this sheet.
*/
- QString sheetName() const;
+ TQString sheetName() const;
/**
* \deprecated Use sheetName().
*/
- QString tableName() const { return sheetName(); }
+ TQString tableName() const { return sheetName(); }
/**
* Renames a sheet. This will automatically adapt all formulas
@@ -230,37 +234,37 @@ public:
* @see TabBar::renameTab
* @see #sheetName
*/
- bool setSheetName( const QString& name, bool init = false, bool makeUndo=true );
+ bool setSheetName( const TQString& name, bool init = false, bool makeUndo=true );
Map* workbook() const;
Doc* doc() const;
/**
- * Saves the sheet and all it's children in XML format
+ * Saves the sheet and all it's tqchildren in XML format
*/
- virtual QDomElement saveXML( QDomDocument& );
+ virtual TQDomElement saveXML( TQDomDocument& );
/**
- * Loads the sheet and all it's children in XML format
+ * Loads the sheet and all it's tqchildren in XML format
*/
- virtual bool loadXML( const QDomElement& );
+ virtual bool loadXML( const TQDomElement& );
- virtual bool loadOasis( const QDomElement& sheet, KoOasisLoadingContext& oasisContext, QDict<Style>& styleMap );
+ virtual bool loadOasis( const TQDomElement& sheet, KoOasisLoadingContext& oasisContext, TQDict<Style>& styleMap );
virtual bool saveOasis( KoXmlWriter & xmlWriter, KoGenStyles &mainStyles, GenValidationStyles &valStyle, KoStore *store, KoXmlWriter* manifestWriter, int & indexObj, int &partIndexObj );
void saveOasisHeaderFooter( KoXmlWriter &xmlWriter ) const;
- void loadOasisObjects( const QDomElement& e, KoOasisLoadingContext& oasisContext );
+ void loadOasisObjects( const TQDomElement& e, KoOasisLoadingContext& oasisContext );
void loadOasisSettings( const KoOasisSettings::NamedMap &settings );
void saveOasisSettings( KoXmlWriter &settingsWriter ) const;
void saveOasisPrintStyleLayout( KoGenStyle &style ) const;
/**
- * Saves a children
+ * Saves a tqchildren
*/
- virtual bool saveChildren( KoStore* _store, const QString &_path );
+ virtual bool saveChildren( KoStore* _store, const TQString &_path );
bool saveOasisObjects( KoStore *store, KoXmlWriter &xmlWriter, KoGenStyles& mainStyles, int & indexObj, int &partIndexObj );
/**
- * Loads a children
+ * Loads a tqchildren
*/
virtual bool loadChildren( KoStore* _store );
@@ -272,7 +276,7 @@ public:
*
* @return list of selected objets.
*/
- QPtrList<EmbeddedObject> getSelectedObjects();
+ TQPtrList<EmbeddedObject> getSelectedObjects();
/**
@@ -301,13 +305,13 @@ public:
void unifyObjectName( EmbeddedObject *object );
/**
- * Returns the layout direction of the sheet.
+ * Returns the tqlayout direction of the sheet.
*/
- LayoutDirection layoutDirection() const;
+ LayoutDirection tqlayoutDirection() const;
/**
- * Sets the layout direction of the sheet. For example, for Arabic or Hebrew
- * documents, it is possibly to layout the sheet from right to left.
+ * Sets the tqlayout direction of the sheet. For example, for Arabic or Hebrew
+ * documents, it is possibly to tqlayout the sheet from right to left.
*/
void setLayoutDirection( LayoutDirection dir );
@@ -316,10 +320,10 @@ public:
*/
bool isRightToLeft() const;
- void password( QCString & passwd ) const ;
+ void password( TQCString & passwd ) const ;
bool isProtected() const;
- void setProtected( QCString const & passwd );
- bool checkPassword( QCString const & passwd ) const;
+ void setProtected( TQCString const & passwd );
+ bool checkPassword( TQCString const & passwd ) const;
void setDefaultHeight( double height );
void setDefaultWidth( double width );
@@ -363,7 +367,7 @@ public:
/**
* A convenience function.
*/
- Cell* cellAt( const QPoint& _point, bool _scrollbar_update = false )
+ Cell* cellAt( const TQPoint& _point, bool _scrollbar_update = false )
{ return cellAt( _point.x(), _point.y(), _scrollbar_update ); }
/**
* @returns the pointer to the cell that is visible at a certain position. That means If the cell
@@ -386,7 +390,7 @@ public:
* @return a non default Cell for the position.
*/
Cell* nonDefaultCell( int _column, int _row, bool _scrollbar_update = false, Style * _style = 0 );
- Cell* nonDefaultCell( QPoint const & cellRef, bool scroll = false )
+ Cell* nonDefaultCell( TQPoint const & cellRef, bool scroll = false )
{ return nonDefaultCell( cellRef.x(), cellRef.y(), scroll ); }
Cell* defaultCell() const;
@@ -399,7 +403,7 @@ public:
/** retrieve a range of values */
Value valueRange (int col1, int row1, int col2, int row2) const;
- QRect visibleRect( Canvas const * const _canvas ) const;
+ TQRect visibleRect( Canvas const * const _canvas ) const;
int topRow( double _ypos, double &_top, const Canvas *_canvas = 0L ) const;
int bottomRow( double _ypos, const Canvas *_canvas = 0L ) const;
int leftColumn( double _xpos, double &_left, const Canvas *_canvas = 0L ) const;
@@ -464,7 +468,7 @@ public:
void adjustSizeMaxY ( double _y );
/**
- * Sets the @ref Cell::layoutDirtyFlag in all cells.
+ * Sets the @ref Cell::tqlayoutDirtyFlag in all cells.
*/
void setLayoutDirtyFlag();
/**
@@ -511,7 +515,7 @@ public:
* @param area The area within the sheet to guess from
* @param col The column to find the title (or 'header') for.
*/
- QString guessColumnTitle(QRect& area, int col);
+ TQString guessColumnTitle(TQRect& area, int col);
/**
* Attempts to guess the title (or 'header') of a row, within a given area of the sheet
@@ -520,14 +524,14 @@ public:
* @param area The area within the sheet to guess from
* @param row The row to find the title (or 'header') for.
*/
- QString guessRowTitle(QRect& area, int row);
+ TQString guessRowTitle(TQRect& area, int row);
/**
* Sets the contents of the cell at row,column to text
*/
- void setText( int row, int column, const QString& text,
+ void setText( int row, int column, const TQString& text,
bool asString = false );
- void setArrayFormula (Selection *selectionInfo, const QString &_text);
+ void setArrayFormula (Selection *selectionInfo, const TQString &_text);
void setSelectionFont( Selection* selectionInfo,
@@ -562,17 +566,17 @@ public:
void setSelectionVerticalText( Selection* selectionInfo, bool _b);
void setSelectionComment( Selection* selectionInfo,
- const QString &_comment);
+ const TQString &_comment);
void setSelectionRemoveComment(Selection* selectionInfo);
void setSelectionAngle(Selection* selectionInfo, int _value );
void setSelectionTextColor( Selection* selectionInfo,
- const QColor &tbColor );
+ const TQColor &tbColor );
void setSelectionbgColor( Selection* selectionInfo,
- const QColor &bg_Color );
+ const TQColor &bg_Color );
void setSelectionBorderColor( Selection* selectionInfo,
- const QColor &bd_Color );
+ const TQColor &bd_Color );
/**
* @param _marker is used if there is no selection currently.
@@ -607,19 +611,19 @@ public:
void fillSelection( Selection * selectionInfo, int direction );
- void setWordSpelling(Selection* selectionInfo,const QString _listWord );
+ void setWordSpelling(Selection* selectionInfo,const TQString _listWord );
- QString getWordSpelling(Selection* selectionInfo );
+ TQString getWordSpelling(Selection* selectionInfo );
/**
* A convenience function which retrieves the data to be pasted
* from the clipboard.
*/
- void paste( const QRect & pasteArea, bool makeUndo = true,
+ void paste( const TQRect & pasteArea, bool makeUndo = true,
Paste::Mode = Paste::Normal, Paste::Operation = Paste::OverWrite,
bool insert = false, int insertTo = 0, bool pasteFC = false,
- QClipboard::Mode clipboardMode = QClipboard::Clipboard );
- void paste( const QByteArray & data, const QRect & pasteArea,
+ TQClipboard::Mode clipboardMode = TQClipboard::Clipboard );
+ void paste( const TQByteArray & data, const TQRect & pasteArea,
bool makeUndo = false, Paste::Mode= Paste::Normal, Paste::Operation = Paste::OverWrite,
bool insert = false, int insertTo = 0, bool pasteFC = false );
void defaultSelection( Selection* selectionInfo );
@@ -627,17 +631,17 @@ public:
/**
* A function which allows to paste a text plain from the clipboard
*/
- void pasteTextPlain( QString &_text, QRect pasteArea);
+ void pasteTextPlain( TQString &_text, TQRect pasteArea);
- void sortByRow( const QRect &area, int ref_row, SortingOrder );
- void sortByRow( const QRect &area, int key1, int key2, int key3,
+ void sortByRow( const TQRect &area, int ref_row, SortingOrder );
+ void sortByRow( const TQRect &area, int key1, int key2, int key3,
SortingOrder order1, SortingOrder order2, SortingOrder order3,
- QStringList const * firstKey, bool copyFormat, bool headerRow,
+ TQStringList const * firstKey, bool copyFormat, bool headerRow,
Point const & outputPoint, bool respectCase );
- void sortByColumn( const QRect &area, int ref_column, SortingOrder );
- void sortByColumn( const QRect &area, int key1, int key2, int key3,
+ void sortByColumn( const TQRect &area, int ref_column, SortingOrder );
+ void sortByColumn( const TQRect &area, int key1, int key2, int key3,
SortingOrder order1, SortingOrder order2, SortingOrder order3,
- QStringList const * firstKey, bool copyFormat, bool headerCol,
+ TQStringList const * firstKey, bool copyFormat, bool headerCol,
Point const & outputPoint, bool respectCase );
void swapCells( int x1, int y1, int x2, int y2, bool cpFormat );
@@ -647,7 +651,7 @@ public:
* @param cpFormat: if true: cell format gets copied, too
*/
void copyCells( int x1, int y1, int x2, int y2, bool cpFormat );
- void setSeries( const QPoint &_marker, double start, double end, double step, Series mode, Series type );
+ void setSeries( const TQPoint &_marker, double start, double end, double step, Series mode, Series type );
/**
* Moves all cells of the row _marker.y() which are in
@@ -658,11 +662,11 @@ public:
* A reason for returning false is that there was a cell
* in the right most position.
*/
- bool shiftRow( const QRect &_rect, bool makeUndo=true );
- bool shiftColumn( const QRect& rect, bool makeUndo=true );
+ bool shiftRow( const TQRect &_rect, bool makeUndo=true );
+ bool shiftColumn( const TQRect& rect, bool makeUndo=true );
- void unshiftColumn( const QRect& rect, bool makeUndo=true );
- void unshiftRow( const QRect& rect, bool makeUndo=true );
+ void unshiftColumn( const TQRect& rect, bool makeUndo=true );
+ void unshiftRow( const TQRect& rect, bool makeUndo=true );
/**
* Moves all columns which are >= @p col one position to the right and
@@ -715,16 +719,16 @@ public:
/**
* Install borders
*/
- void borderLeft( Selection* selectionInfo, const QColor &_color );
- void borderTop( Selection* selectionInfo, const QColor &_color );
- void borderOutline( Selection* selectionInfo, const QColor &_color );
- void borderAll( Selection* selectionInfo, const QColor &_color );
+ void borderLeft( Selection* selectionInfo, const TQColor &_color );
+ void borderTop( Selection* selectionInfo, const TQColor &_color );
+ void borderOutline( Selection* selectionInfo, const TQColor &_color );
+ void borderAll( Selection* selectionInfo, const TQColor &_color );
void borderRemove( Selection* selectionInfo );
- void borderBottom( Selection* selectionInfo, const QColor &_color );
- void borderRight( Selection* selectionInfo, const QColor &_color );
+ void borderBottom( Selection* selectionInfo, const TQColor &_color );
+ void borderRight( Selection* selectionInfo, const TQColor &_color );
void setConditional( Selection* selectionInfo,
- QValueList<Conditional> const & newConditions );
+ TQValueList<Conditional> const & newConditions );
void setValidity( Selection* selectionInfo, KSpread::Validity tmp );
@@ -805,7 +809,7 @@ public:
void removeSheet();
- QRect selectionCellMerged(const QRect &_sel);
+ TQRect selectionCellMerged(const TQRect &_sel);
/**
* Change name of reference when the user inserts or removes a column,
* a row or a cell (= insertion of a row [or column] on a single column [or row]).
@@ -820,13 +824,13 @@ public:
* @param tabname completes the pos specification by giving the sheet name
* @param undo is the handler of the undo class in case of lost cell references
*/
- void changeNameCellRef( const QPoint & pos, bool fullRowOrColumn,
- ChangeRef ref, QString tabname, int NbCol = 1,
+ void changeNameCellRef( const TQPoint & pos, bool fullRowOrColumn,
+ ChangeRef ref, TQString tabname, int NbCol = 1,
UndoInsertRemoveAction * undo = 0 );
- void refreshRemoveAreaName(const QString &_areaName);
- void refreshChangeAreaName(const QString &_areaName);
+ void refreshRemoveAreaName(const TQString &_areaName);
+ void refreshChangeAreaName(const TQString &_areaName);
/**
@@ -839,7 +843,7 @@ public:
* @param ref see ChangeRef
* @param tabname completes the pos specification by giving the sheet name
*/
- void refreshChart(const QPoint & pos, bool fullRowOrColumn, ChangeRef ref);
+ void refreshChart(const TQPoint & pos, bool fullRowOrColumn, ChangeRef ref);
/**
* Refresh merged cell when you insert or remove row or column
*/
@@ -858,15 +862,15 @@ public:
* @return a painter for the hidden widget ( @ref #widget ).
*
* This function is useful while making formats where you
- * need some QPainter related functions.
+ * need some TQPainter related functions.
*/
- QPainter& painter();
+ TQPainter& painter();
/**
* @return a hidden widget.
*
* @see #painter
*/
- QWidget* widget()const;
+ TQWidget* widget()const;
/**
* @return a flag that indicates whether the sheet should paint the page breaks.
@@ -894,12 +898,12 @@ public:
* The cells we are interested in are in the rectangle '_range'.
* The cells are stored row after row in '_list'.
*/
- bool getCellRectangle( const QRect &_range, QPtrList<Cell> &_list );
+ bool getCellRectangle( const TQRect &_range, TQPtrList<Cell> &_list );
/**
* A convenience function that finds a sheet by its name.
*/
- Sheet *findSheet( const QString & _name );
+ Sheet *findSheet( const TQString & _name );
/**
* Inserts the @p _cell into the sheet.
@@ -926,7 +930,7 @@ public:
* @param era set this to true if you want to encode relative references absolutely (they will
* be switched back to relative references during decoding) - used for cut to clipboard
*/
- QDomDocument saveCellRegion(const Region&, bool copy = false, bool era = false);
+ TQDomDocument saveCellRegion(const Region&, bool copy = false, bool era = false);
/**
* insertTo defined if you insert to the bottom or right
@@ -935,12 +939,12 @@ public:
* insertTo used just for insert/paste an area
* @see #paste
*/
- bool loadSelection( const QDomDocument& doc, const QRect &pasteArea,
+ bool loadSelection( const TQDomDocument& doc, const TQRect &pasteArea,
int _xshift, int _yshift, bool makeUndo,
Paste::Mode = Paste::Normal, Paste::Operation = Paste::OverWrite,
bool insert = false, int insertTo = 0, bool paste = false );
- void loadSelectionUndo( const QDomDocument & doc, const QRect &loadArea,
+ void loadSelectionUndo( const TQDomDocument & doc, const TQRect &loadArea,
int _xshift, int _yshift,bool insert,int insertTo);
/**
@@ -974,7 +978,7 @@ public:
/**
* returns the text to be copied to the clipboard
*/
- QString copyAsText(Selection* selection);
+ TQString copyAsText(Selection* selection);
/**
* Assume that the retangle 'src' was already selected. Then the user clicked on the
@@ -984,12 +988,12 @@ public:
*
* @see #mouseReleaseEvent
*/
- void autofill( QRect &src, QRect &dest );
+ void autofill( TQRect &src, TQRect &dest );
- bool insertChild( const KoRect& _geometry, KoDocumentEntry& );
+ bool insertChild( const KoRect& _tqgeometry, KoDocumentEntry& );
- bool insertChart( const KoRect& _geometry, KoDocumentEntry&, const QRect& _data );
+ bool insertChart( const KoRect& _tqgeometry, KoDocumentEntry&, const TQRect& _data );
/**
@@ -1010,11 +1014,11 @@ public:
* @param point The top-left position for the new picture object in the sheet
* @param pixmap The source pixmap for the new picture
*/
- bool insertPicture( const KoPoint& point, const QPixmap& pixmap );
+ bool insertPicture( const KoPoint& point, const TQPixmap& pixmap );
- void changeChildGeometry( EmbeddedKOfficeObject *_child, const KoRect& _geometry );
+ void changeChildGeometry( EmbeddedKOfficeObject *_child, const KoRect& _tqgeometry );
- const QColorGroup& colorGroup() { return widget()->colorGroup(); }
+ const TQColorGroup& tqcolorGroup() { return widget()->tqcolorGroup(); }
int id() const;
@@ -1029,7 +1033,7 @@ public:
* Checks if the argument _column is out of the current maximum range of the vertical border
* If this is the case, the current maximum value m_iMaxColumn is adjusted and the vertical border
* is resized.
- * Use this function with care, as it involves a repaint of the border, when it is out of range.
+ * Use this function with care, as it involves a tqrepaint of the border, when it is out of range.
*/
void checkRangeHBorder ( int _column );
@@ -1044,7 +1048,7 @@ public:
* Checks if the argument _row is out of the current maximum range of the horizontal border
* If this is the case, the current maximum value m_iMaxRow is adjusted and the horizontal border
* is resized.
- * Use this function with care, as it involves a repaint of the border, when it is out of range.
+ * Use this function with care, as it involves a tqrepaint of the border, when it is out of range.
*/
void checkRangeVBorder ( int _row );
@@ -1053,14 +1057,14 @@ public:
virtual DCOPObject* dcopObject();
- static Sheet* find( int _id );
+ static Sheet* tqfind( int _id );
#ifndef NDEBUG
void printDebug();
#endif
/**
- * Calculates the cell if necessary, makes its layout if necessary,
+ * Calculates the cell if necessary, makes its tqlayout if necessary,
* and force redraw.
* Then it sets the cell's @ref Cell::m_bDisplayDirtyFlag to false.
*/
@@ -1079,17 +1083,17 @@ public:
void update();
/**
- * repaints all visible cells
+ * tqrepaints all visible cells
*/
void updateView();
/**
- * repaints all visible cells in the given rect
+ * tqrepaints all visible cells in the given rect
*/
- void updateView( QRect const & rect );
+ void updateView( TQRect const & rect );
/**
- * repaints all visible cells in the given rect
+ * tqrepaints all visible cells in the given rect
*/
void updateView(Region*);
@@ -1098,7 +1102,7 @@ public:
*/
void refreshView(const Region& region);
- void emit_updateRow( RowFormat *_format, int _row, bool repaint = true );
+ void emit_updateRow( RowFormat *_format, int _row, bool tqrepaint = true );
void emit_updateColumn( ColumnFormat *_format, int _column );
/**
@@ -1107,19 +1111,19 @@ public:
*
* The returned pen has pen style NoPen set.
*/
- const QPen& emptyPen() const ;
- const QBrush& emptyBrush() const;
- const QColor& emptyColor() const;
+ const TQPen& emptyPen() const ;
+ const TQBrush& emptyBrush() const;
+ const TQColor& emptyColor() const;
void updateLocale();
/**
* set a region of the spreadsheet to be 'paint dirty' meaning it
- * needs repainted. This is not a flag on the cell itself since quite
+ * needs tqrepainted. This is not a flag on the cell itself since quite
* often this needs set on a default cell
*/
- void setRegionPaintDirty(QRect const & range);
+ void setRegionPaintDirty(TQRect const & range);
void setRegionPaintDirty(Region const & region);
/**
@@ -1128,9 +1132,9 @@ public:
void clearPaintDirtyData();
/**
- * Test whether a cell needs repainted
+ * Test whether a cell needs tqrepainted
*/
- bool cellIsPaintDirty(QPoint const & cell) const;
+ bool cellIsPaintDirty(TQPoint const & cell) const;
/**
* Retrieve the first used cell in a given column. Can be used in conjunction
@@ -1252,12 +1256,12 @@ signals:
/**
* @see #setSheetName
*/
- void sig_nameChanged( Sheet* sheet, const QString& old_name );
+ void sig_nameChanged( Sheet* sheet, const TQString& old_name );
/**
* Emitted if a certain area of some sheet has to be redrawn.
* That is for example the case when a new child is inserted.
*/
- void sig_polygonInvalidated( const QPointArray& );
+ void sig_polygonInvalidated( const TQPointArray& );
void sig_SheetHidden( Sheet* sheet);
void sig_SheetShown( Sheet* sheet);
@@ -1267,7 +1271,7 @@ signals:
protected slots:
/** react on modification (add/remove) of a named area */
- void slotAreaModified (const QString &name);
+ void slotAreaModified (const TQString &name);
protected:
/** Updates dependencies for all cells on this sheet */
@@ -1278,39 +1282,39 @@ protected:
* When you change name sheet Sheet1 -> Price
* for all cell which refere to Sheet1, this function changes the name.
*/
- void changeCellTabName( QString const & old_name,QString const & new_name );
+ void changeCellTabName( TQString const & old_name,TQString const & new_name );
- bool loadRowFormat( const QDomElement& row, int &rowIndex, KoOasisLoadingContext& oasisContext, QDict<Style>& styleMap );
+ bool loadRowFormat( const TQDomElement& row, int &rowIndex, KoOasisLoadingContext& oasisContext, TQDict<Style>& styleMap );
/**
* Loads the properties of a column from a table:table-column element in an OASIS XML file
* defaultColumnCellStyles is a map from column indicies to the default cell style for that column
*/
- bool loadColumnFormat(const QDomElement& row, const KoOasisStyles& oasisStyles, int & indexCol, const QDict<Style>& styleMap);
- bool loadSheetStyleFormat( QDomElement *style );
+ bool loadColumnFormat(const TQDomElement& row, const KoOasisStyles& oasisStyles, int & indexCol, const TQDict<Style>& styleMap);
+ bool loadSheetStyleFormat( TQDomElement *style );
void loadOasisMasterLayoutPage( KoStyleStack &styleStack );
- QString saveOasisSheetStyleName( KoGenStyles &mainStyles );
+ TQString saveOasisSheetStyleName( KoGenStyles &mainStyles );
void saveOasisColRowCell( KoXmlWriter& xmlWriter, KoGenStyles &mainStyles, int maxCols, int maxRows, GenValidationStyles &valStyle );
void saveOasisCells( KoXmlWriter& xmlWriter, KoGenStyles &mainStyles, int row, int maxCols, GenValidationStyles &valStyle );
- void convertPart( const QString & part, KoXmlWriter & writer ) const;
- void addText( const QString & text, KoXmlWriter & writer ) const;
+ void convertPart( const TQString & part, KoXmlWriter & writer ) const;
+ void addText( const TQString & text, KoXmlWriter & writer ) const;
void maxRowCols( int & maxCols, int & maxRows );
bool compareRows( int row1, int row2, int & maxCols ) const;
- QString getPart( const QDomNode & part );
- void replaceMacro( QString & text, const QString & old, const QString & newS );
+ TQString getPart( const TQDomNode & part );
+ void replaceMacro( TQString & text, const TQString & old, const TQString & newS );
void insertObject( EmbeddedObject *_obj );
/**
* @see #autofill
*/
- void fillSequence( QPtrList<Cell>& _srcList, QPtrList<Cell>& _destList, QPtrList<AutoFillSequence>& _seqList, bool down = true );
+ void fillSequence( TQPtrList<Cell>& _srcList, TQPtrList<Cell>& _destList, TQPtrList<AutoFillSequence>& _seqList, bool down = true );
static int s_id;
- static QIntDict<Sheet>* s_mapSheets;
+ static TQIntDict<Sheet>* s_mapSheets;
public:
// see kspread_sheet.cc for an explanation of this
@@ -1341,7 +1345,7 @@ public:
struct CellWorkerTypeA : public CellWorker
{
CellWorkerTypeA( ) : CellWorker( true, true, false ) { }
- virtual QString getUndoTitle( ) =0;
+ virtual TQString getUndoTitle( ) =0;
class UndoAction* createUndoAction( Doc* doc, Sheet* sheet, const Region& region );
};
@@ -1357,20 +1361,20 @@ private:
*/
bool insertPicture( const KoPoint& point, KoPicture& picture );
- bool FillSequenceWithInterval (QPtrList<Cell>& _srcList,
- QPtrList<Cell>& _destList,
- QPtrList<AutoFillSequence>& _seqList,
+ bool FillSequenceWithInterval (TQPtrList<Cell>& _srcList,
+ TQPtrList<Cell>& _destList,
+ TQPtrList<AutoFillSequence>& _seqList,
bool down);
- void FillSequenceWithCopy (QPtrList<Cell>& _srcList,
- QPtrList<Cell>& _destList,
+ void FillSequenceWithCopy (TQPtrList<Cell>& _srcList,
+ TQPtrList<Cell>& _destList,
bool down);
void convertObscuringBorders();
void checkCellContent(Cell * cell1, Cell * cell2, int & ret);
int adjustColumnHelper(Cell * c, int _col, int _row);
- void checkContentDirection( QString const & name );
- bool objectNameExists( EmbeddedObject *object, QPtrList<EmbeddedObject> &list );
+ void checkContentDirection( TQString const & name );
+ bool objectNameExists( EmbeddedObject *object, TQPtrList<EmbeddedObject> &list );
class Private;
Private* d;