diff options
Diffstat (limited to 'kspread/KSpreadTableIface.cc')
| -rw-r--r-- | kspread/KSpreadTableIface.cc | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/kspread/KSpreadTableIface.cc b/kspread/KSpreadTableIface.cc index a6588d55b..b2f31f611 100644 --- a/kspread/KSpreadTableIface.cc +++ b/kspread/KSpreadTableIface.cc @@ -52,19 +52,19 @@ using namespace KSpread; class KSpread::CellProxy : public DCOPObjectProxy { public: - CellProxy( Sheet* sheet, const QCString& prefix ); + CellProxy( Sheet* sheet, const TQCString& prefix ); ~CellProxy(); - virtual bool process( const QCString& obj, const QCString& fun, const QByteArray& data, - QCString& replyType, QByteArray &replyData ); + virtual bool process( const TQCString& obj, const TQCString& fun, const TQByteArray& data, + TQCString& replyType, TQByteArray &replyData ); private: - QCString m_prefix; + TQCString m_prefix; CellIface* m_cell; Sheet* m_sheet; }; -KSpread::CellProxy::CellProxy( Sheet* sheet, const QCString& prefix ) +KSpread::CellProxy::CellProxy( Sheet* sheet, const TQCString& prefix ) : DCOPObjectProxy( kapp->dcopClient() ), m_prefix( prefix ) { m_cell = new CellIface; @@ -76,8 +76,8 @@ KSpread::CellProxy::~CellProxy() delete m_cell; } -bool KSpread::CellProxy::process( const QCString& obj, const QCString& fun, const QByteArray& data, - QCString& replyType, QByteArray &replyData ) +bool KSpread::CellProxy::process( const TQCString& obj, const TQCString& fun, const TQByteArray& data, + TQCString& replyType, TQByteArray &replyData ) { kdDebug()<<"CellProxy::process: requested object:"<<obj<<endl; @@ -87,13 +87,13 @@ bool KSpread::CellProxy::process( const QCString& obj, const QCString& fun, cons if ( fun == "functions()" ) { replyType = "QCStringList"; - QDataStream reply( replyData, IO_WriteOnly ); + TQDataStream reply( replyData, IO_WriteOnly ); QCStringList repList=m_cell->functions(); reply<<repList; return true; } - QString cellID=QString::fromUtf8(obj.data() + m_prefix.length()); + TQString cellID=TQString::fromUtf8(obj.data() + m_prefix.length()); cellID=m_sheet->sheetName()+"!"+cellID; kdDebug()<<"CellProxy::process: cellID="<<cellID<<endl; @@ -128,11 +128,11 @@ SheetIface::SheetIface( Sheet* t ) void SheetIface::sheetNameHasChanged() { ident.resize(1); - QObject *currentObj = m_sheet; + TQObject *currentObj = m_sheet; while (currentObj != 0L) { ident.prepend( currentObj->name() ); ident.prepend("/"); - currentObj = currentObj->parent(); + currentObj = currentObj->tqparent(); } if ( ident[0] == '/' ) ident = ident.mid(1); @@ -141,7 +141,7 @@ void SheetIface::sheetNameHasChanged() { setObjId(ident); delete m_proxy; - QCString str = objId(); + TQCString str = objId(); str += "/"; kdDebug(36001)<<"SheetIface::tableNameHasChanged(): new DCOP-ID:"<<objId()<<endl; m_proxy = new CellProxy( m_sheet, str ); @@ -166,14 +166,14 @@ DCOPRef SheetIface::cell( int x, int y ) if ( y == 0 ) y = 1; - QCString str = objId() + '/' + Cell::name( x, y ).latin1(); + TQCString str = objId() + '/' + Cell::name( x, y ).latin1(); return DCOPRef( kapp->dcopClient()->appId(), str ); } -DCOPRef SheetIface::cell( const QString& name ) +DCOPRef SheetIface::cell( const TQString& name ) { - QCString str = objId(); + TQCString str = objId(); str += "/"; str += name.latin1(); @@ -200,7 +200,7 @@ DCOPRef SheetIface::row( int _row ) } -QString SheetIface::name() const +TQString SheetIface::name() const { return m_sheet->sheetName(); } @@ -212,13 +212,13 @@ int SheetIface::maxColumn() const } -bool SheetIface::areaHasNoContent(QRect area) const +bool SheetIface::areaHasNoContent(TQRect area) const { kdDebug(36001) << "SheetIface::areaHasNoContent("<<area<<");"<<endl; return m_sheet->areaIsEmpty(area); } -bool SheetIface::areaHasNoComments(QRect area) const +bool SheetIface::areaHasNoComments(TQRect area) const { return m_sheet->areaIsEmpty(area, Sheet::Comment); } @@ -228,8 +228,8 @@ int SheetIface::maxRow() const return m_sheet->maxRow(); } -bool SheetIface::processDynamic( const QCString& fun, const QByteArray&/*data*/, - QCString& replyType, QByteArray &replyData ) +bool SheetIface::processDynamic( const TQCString& fun, const TQByteArray&/*data*/, + TQCString& replyType, TQByteArray &replyData ) { kdDebug(36001) << "Calling '" << fun.data() << "'" << endl; // Does the name follow the pattern "foobar()" ? @@ -245,15 +245,15 @@ bool SheetIface::processDynamic( const QCString& fun, const QByteArray&/*data*/, if ( !p.isValid() ) return false; - QCString str = objId() + "/" + fun.left( len - 2 ); + TQCString str = objId() + "/" + fun.left( len - 2 ); replyType = "DCOPRef"; - QDataStream out( replyData, IO_WriteOnly ); + TQDataStream out( replyData, IO_WriteOnly ); out << DCOPRef( kapp->dcopClient()->appId(), str ); return true; } -bool SheetIface::setSheetName( const QString & name) +bool SheetIface::setSheetName( const TQString & name) { return m_sheet->setSheetName( name); } @@ -356,73 +356,73 @@ float SheetIface::bottomBorder()const return m_sheet->print()->bottomBorder(); } -QString SheetIface::paperFormatString() const +TQString SheetIface::paperFormatString() const { return m_sheet->print()->paperFormatString(); } -QString SheetIface::headLeft()const +TQString SheetIface::headLeft()const { return m_sheet->print()->headLeft(); } -QString SheetIface::headMid()const +TQString SheetIface::headMid()const { return m_sheet->print()->headMid(); } -QString SheetIface::headRight()const +TQString SheetIface::headRight()const { return m_sheet->print()->headRight(); } -QString SheetIface::footLeft()const +TQString SheetIface::footLeft()const { return m_sheet->print()->footLeft(); } -QString SheetIface::footMid()const +TQString SheetIface::footMid()const { return m_sheet->print()->footMid(); } -QString SheetIface::footRight()const +TQString SheetIface::footRight()const { return m_sheet->print()->footRight(); } -void SheetIface::setHeaderLeft(const QString & text) +void SheetIface::setHeaderLeft(const TQString & text) { m_sheet->print()->setHeadFootLine( text, headMid(), headRight(), footLeft(), footMid(), footRight() ); } -void SheetIface::setHeaderMiddle(const QString & text) +void SheetIface::setHeaderMiddle(const TQString & text) { m_sheet->print()->setHeadFootLine( headLeft(), text, headRight(), footLeft(), footMid(), footRight() ); } -void SheetIface::setHeaderRight(const QString & text) +void SheetIface::setHeaderRight(const TQString & text) { m_sheet->print()->setHeadFootLine( headLeft(), headMid(), text, footLeft(), footMid(), footRight() ); } -void SheetIface::setFooterLeft(const QString & text) +void SheetIface::setFooterLeft(const TQString & text) { m_sheet->print()->setHeadFootLine( headLeft(), headMid(), headRight(), text, footMid(), footRight() ); } -void SheetIface::setFooterMiddle(const QString & text) +void SheetIface::setFooterMiddle(const TQString & text) { m_sheet->print()->setHeadFootLine( headLeft(), headMid(), headRight(), footLeft(), text, footRight() ); } -void SheetIface::setFooterRight(const QString & text) +void SheetIface::setFooterRight(const TQString & text) { m_sheet->print()->setHeadFootLine( headLeft(), headMid(), headRight(), footLeft(), footMid(), text ); |
