diff options
Diffstat (limited to 'kspread/KSpreadCellIface.cc')
-rw-r--r-- | kspread/KSpreadCellIface.cc | 268 |
1 files changed, 134 insertions, 134 deletions
diff --git a/kspread/KSpreadCellIface.cc b/kspread/KSpreadCellIface.cc index 9caae79e..4188a1e4 100644 --- a/kspread/KSpreadCellIface.cc +++ b/kspread/KSpreadCellIface.cc @@ -40,7 +40,7 @@ CellIface::CellIface() { } -void CellIface::setCell( Sheet* sheet, const QPoint& point ) +void CellIface::setCell( Sheet* sheet, const TQPoint& point ) { m_sheet = sheet; m_point = point; @@ -60,43 +60,43 @@ bool CellIface::isEmpty() const return cell->isEmpty(); } -QString CellIface::text() const +TQString CellIface::text() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); return m_sheet->doc()->converter()->asString (cell->value()).asString(); } -void CellIface::setText( const QString& text ) +void CellIface::setText( const TQString& text ) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); cell->setCellText( text ); } -QString CellIface::visibleContentAsString() const +TQString CellIface::visibleContentAsString() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); - if (cell->isEmpty()) return QString::null; - QString ret; + if (cell->isEmpty()) return TQString(); + TQString ret; ret=cell->value().asString(); if (ret.isEmpty()) { - ret=QString::number(cell->value().asFloat()); + ret=TQString::number(cell->value().asFloat()); } return ret; } -QString CellIface::comment() const +TQString CellIface::comment() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); return cell->format()->comment(m_point.x(), m_point.y()); } -void CellIface::setComment( const QString& comment ) +void CellIface::setComment( const TQString& comment ) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -125,11 +125,11 @@ double CellIface::value() const return m_sheet->doc()->converter()->asFloat (cell->value()).asFloat(); } -void CellIface::setBgColor(const QString& _c) +void CellIface::setBgColor(const TQString& _c) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); - QColor c(_c); + TQColor c(_c); cell->format()->setBgColor(c); m_sheet->setRegionPaintDirty(cell->cellRect()); } @@ -138,21 +138,21 @@ void CellIface::setBgColor(int r,int g,int b) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); - QColor c(r,g,b); + TQColor c(r,g,b); cell->format()->setBgColor(c); m_sheet->setRegionPaintDirty(cell->cellRect()); } -QString CellIface::bgColor() const +TQString CellIface::bgColor() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); return cell->bgColor( m_point.x(), m_point.y() ).name(); } -QString CellIface::textColor() const +TQString CellIface::textColor() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); return cell->format()->textColor( m_point.x(), m_point.y() ).name(); } @@ -161,16 +161,16 @@ void CellIface::setTextColor(int r,int g,int b) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); - QColor c(r,g,b); + TQColor c(r,g,b); cell->format()->setTextColor(c); m_sheet->setRegionPaintDirty(cell->cellRect()); } -void CellIface::setTextColor(const QString& _c) +void CellIface::setTextColor(const TQString& _c) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); - QColor c(_c); + TQColor c(_c); cell->format()->setTextColor(c); m_sheet->setRegionPaintDirty(cell->cellRect()); } @@ -221,7 +221,7 @@ bool CellIface::multiRow() const return cell->format()->multiRow( m_point.x(), m_point.y() ); } -void CellIface::setAlign( const QString& _Align ) +void CellIface::setAlign( const TQString& _Align ) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -238,11 +238,11 @@ void CellIface::setAlign( const QString& _Align ) m_sheet->setRegionPaintDirty(cell->cellRect()); } -QString CellIface::align() const +TQString CellIface::align() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); - QString alignString; + TQString alignString; switch( cell->format()->align( m_point.x(), m_point.y() ) ) { case Format::Left : @@ -261,7 +261,7 @@ QString CellIface::align() const return alignString; } -void CellIface::setAlignY( const QString& _AlignY ) +void CellIface::setAlignY( const TQString& _AlignY ) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -278,11 +278,11 @@ void CellIface::setAlignY( const QString& _AlignY ) m_sheet->setRegionPaintDirty(cell->cellRect()); } -QString CellIface::alignY() const +TQString CellIface::alignY() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); - QString alignString; + TQString alignString; switch( cell->format()->alignY( m_point.x(), m_point.y() ) ) { case Format::Top : @@ -301,7 +301,7 @@ QString CellIface::alignY() const return alignString; } -void CellIface::setPostfix(const QString &_postfix) +void CellIface::setPostfix(const TQString &_postfix) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -309,14 +309,14 @@ void CellIface::setPostfix(const QString &_postfix) m_sheet->setRegionPaintDirty(cell->cellRect()); } -QString CellIface::prefix() const +TQString CellIface::prefix() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); return cell->format()->prefix( m_point.x(), m_point.y() ); } -void CellIface::setPrefix(const QString &_prefix) +void CellIface::setPrefix(const TQString &_prefix) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -324,14 +324,14 @@ void CellIface::setPrefix(const QString &_prefix) m_sheet->setRegionPaintDirty(cell->cellRect()); } -QString CellIface::postfix() const +TQString CellIface::postfix() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); return cell->format()->postfix( m_point.x(), m_point.y() ); } -void CellIface::setFormatType(const QString &_formatType) +void CellIface::setFormatType(const TQString &_formatType) { if( !m_sheet ) return; @@ -382,12 +382,12 @@ void CellIface::setFormatType(const QString &_formatType) m_sheet->setRegionPaintDirty(cell->cellRect()); } -QString CellIface::getFormatType() const +TQString CellIface::getFormatType() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); - QString stringFormat; + TQString stringFormat; switch( cell->format()->getFormatType(m_point.x(), m_point.y())) { case Text_format: @@ -579,7 +579,7 @@ int CellIface::textFontSize() const return cell->format()->textFontSize( m_point.x(), m_point.y() ); } -void CellIface::setTextFontFamily( const QString& _font ) +void CellIface::setTextFontFamily( const TQString& _font ) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -587,15 +587,15 @@ void CellIface::setTextFontFamily( const QString& _font ) m_sheet->setRegionPaintDirty(cell->cellRect()); } -QString CellIface::textFontFamily() const +TQString CellIface::textFontFamily() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); return cell->format()->textFontFamily( m_point.x(), m_point.y() ); } //border left -void CellIface::setLeftBorderStyle( const QString& _style ) +void CellIface::setLeftBorderStyle( const TQString& _style ) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -615,10 +615,10 @@ void CellIface::setLeftBorderStyle( const QString& _style ) } -void CellIface::setLeftBorderColor(const QString& _c) +void CellIface::setLeftBorderColor(const TQString& _c) { if( !m_sheet ) return; - QColor c(_c); + TQColor c(_c); Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); cell->format()->setLeftBorderColor(c ); m_sheet->setRegionPaintDirty(cell->cellRect()); @@ -629,7 +629,7 @@ void CellIface::setLeftBorderColor(int r,int g,int b) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); - QColor c(r,g,b); + TQColor c(r,g,b); cell->format()->setLeftBorderColor(c ); m_sheet->setRegionPaintDirty(cell->cellRect()); } @@ -650,28 +650,28 @@ int CellIface::leftBorderWidth() const return cell->format()->leftBorderWidth(m_point.x(), m_point.y()); } -QString CellIface::leftBorderColor() const +TQString CellIface::leftBorderColor() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); return cell->format()->leftBorderColor( m_point.x(), m_point.y() ).name(); } -QString CellIface::leftBorderStyle() const +TQString CellIface::leftBorderStyle() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); Qt::PenStyle penStyle=cell->format()->leftBorderStyle( m_point.x(), m_point.y() ); - QString tmp; - if( penStyle==Qt::DotLine) + TQString tmp; + if( penStyle==TQt::DotLine) tmp="DotLine"; - else if( penStyle==Qt::DashLine) + else if( penStyle==TQt::DashLine) tmp="DashLine"; - else if( penStyle==Qt::DashDotLine) + else if( penStyle==TQt::DashDotLine) tmp="DashDotLine"; - else if( penStyle==Qt::DashDotDotLine) + else if( penStyle==TQt::DashDotDotLine) tmp="DashDotDotLine"; - else if( penStyle==Qt::SolidLine) + else if( penStyle==TQt::SolidLine) tmp="SolidLine"; else tmp="SolidLine"; @@ -679,7 +679,7 @@ QString CellIface::leftBorderStyle() const } //border right -void CellIface::setRightBorderStyle( const QString& _style ) +void CellIface::setRightBorderStyle( const TQString& _style ) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -699,10 +699,10 @@ void CellIface::setRightBorderStyle( const QString& _style ) } -void CellIface::setRightBorderColor(const QString& _c) +void CellIface::setRightBorderColor(const TQString& _c) { if( !m_sheet ) return; - QColor c(_c); + TQColor c(_c); Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); cell->format()->setRightBorderColor(c ); m_sheet->setRegionPaintDirty(cell->cellRect()); @@ -712,7 +712,7 @@ void CellIface::setRightBorderColor(int r,int g,int b) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); - QColor c(r,g,b); + TQColor c(r,g,b); cell->format()->setRightBorderColor(c ); m_sheet->setRegionPaintDirty(cell->cellRect()); } @@ -733,28 +733,28 @@ int CellIface::rightBorderWidth() const return cell->format()->rightBorderWidth(m_point.x(), m_point.y()); } -QString CellIface::rightBorderColor() const +TQString CellIface::rightBorderColor() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); return cell->format()->rightBorderColor( m_point.x(), m_point.y() ).name(); } -QString CellIface::rightBorderStyle() const +TQString CellIface::rightBorderStyle() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); Qt::PenStyle penStyle=cell->format()->rightBorderStyle( m_point.x(), m_point.y() ); - QString tmp; - if( penStyle==Qt::DotLine) + TQString tmp; + if( penStyle==TQt::DotLine) tmp="DotLine"; - else if( penStyle==Qt::DashLine) + else if( penStyle==TQt::DashLine) tmp="DashLine"; - else if( penStyle==Qt::DashDotLine) + else if( penStyle==TQt::DashDotLine) tmp="DashDotLine"; - else if( penStyle==Qt::DashDotDotLine) + else if( penStyle==TQt::DashDotDotLine) tmp="DashDotDotLine"; - else if( penStyle==Qt::SolidLine) + else if( penStyle==TQt::SolidLine) tmp="SolidLine"; else tmp="SolidLine"; @@ -762,7 +762,7 @@ QString CellIface::rightBorderStyle() const } //border top -void CellIface::setTopBorderStyle( const QString& _style ) +void CellIface::setTopBorderStyle( const TQString& _style ) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -782,10 +782,10 @@ void CellIface::setTopBorderStyle( const QString& _style ) } -void CellIface::setTopBorderColor(const QString& _c) +void CellIface::setTopBorderColor(const TQString& _c) { if( !m_sheet ) return; - QColor c(_c); + TQColor c(_c); Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); cell->format()->setTopBorderColor(c ); m_sheet->setRegionPaintDirty(cell->cellRect()); @@ -795,7 +795,7 @@ void CellIface::setTopBorderColor(int r,int g,int b) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); - QColor c(r,g,b); + TQColor c(r,g,b); cell->format()->setTopBorderColor(c ); m_sheet->setRegionPaintDirty(cell->cellRect()); } @@ -815,28 +815,28 @@ int CellIface::topBorderWidth() const return cell->format()->topBorderWidth(m_point.x(), m_point.y()); } -QString CellIface::topBorderColor() const +TQString CellIface::topBorderColor() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); return cell->format()->topBorderColor( m_point.x(), m_point.y() ).name(); } -QString CellIface::topBorderStyle() const +TQString CellIface::topBorderStyle() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); Qt::PenStyle penStyle=cell->format()->topBorderStyle( m_point.x(), m_point.y() ); - QString tmp; - if( penStyle==Qt::DotLine) + TQString tmp; + if( penStyle==TQt::DotLine) tmp="DotLine"; - else if( penStyle==Qt::DashLine) + else if( penStyle==TQt::DashLine) tmp="DashLine"; - else if( penStyle==Qt::DashDotLine) + else if( penStyle==TQt::DashDotLine) tmp="DashDotLine"; - else if( penStyle==Qt::DashDotDotLine) + else if( penStyle==TQt::DashDotDotLine) tmp="DashDotDotLine"; - else if( penStyle==Qt::SolidLine) + else if( penStyle==TQt::SolidLine) tmp="SolidLine"; else tmp="SolidLine"; @@ -844,7 +844,7 @@ QString CellIface::topBorderStyle() const } //border bottom -void CellIface::setBottomBorderStyle( const QString& _style ) +void CellIface::setBottomBorderStyle( const TQString& _style ) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -864,10 +864,10 @@ void CellIface::setBottomBorderStyle( const QString& _style ) } -void CellIface::setBottomBorderColor(const QString& _c) +void CellIface::setBottomBorderColor(const TQString& _c) { if( !m_sheet ) return; - QColor c(_c); + TQColor c(_c); Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); cell->format()->setBottomBorderColor(c ); m_sheet->setRegionPaintDirty(cell->cellRect()); @@ -877,7 +877,7 @@ void CellIface::setBottomBorderColor(int r,int g,int b) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); - QColor c(r,g,b); + TQColor c(r,g,b); cell->format()->setBottomBorderColor(c ); m_sheet->setRegionPaintDirty(cell->cellRect()); } @@ -897,28 +897,28 @@ int CellIface::bottomBorderWidth() const return cell->format()->bottomBorderWidth(m_point.x(), m_point.y()); } -QString CellIface::bottomBorderColor() const +TQString CellIface::bottomBorderColor() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); return cell->format()->bottomBorderColor( m_point.x(), m_point.y() ).name(); } -QString CellIface::bottomBorderStyle() const +TQString CellIface::bottomBorderStyle() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); Qt::PenStyle penStyle=cell->format()->bottomBorderStyle( m_point.x(), m_point.y() ); - QString tmp; - if( penStyle==Qt::DotLine) + TQString tmp; + if( penStyle==TQt::DotLine) tmp="DotLine"; - else if( penStyle==Qt::DashLine) + else if( penStyle==TQt::DashLine) tmp="DashLine"; - else if( penStyle==Qt::DashDotLine) + else if( penStyle==TQt::DashDotLine) tmp="DashDotLine"; - else if( penStyle==Qt::DashDotDotLine) + else if( penStyle==TQt::DashDotDotLine) tmp="DashDotDotLine"; - else if( penStyle==Qt::SolidLine) + else if( penStyle==TQt::SolidLine) tmp="SolidLine"; else tmp="SolidLine"; @@ -926,7 +926,7 @@ QString CellIface::bottomBorderStyle() const } //fall back diagonal -void CellIface::setFallDiagonalStyle( const QString& _style ) +void CellIface::setFallDiagonalStyle( const TQString& _style ) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -946,10 +946,10 @@ void CellIface::setFallDiagonalStyle( const QString& _style ) } -void CellIface::setFallDiagonalColor(const QString& _c) +void CellIface::setFallDiagonalColor(const TQString& _c) { if( !m_sheet ) return; - QColor c(_c); + TQColor c(_c); Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); cell->format()->setFallDiagonalColor(c ); m_sheet->setRegionPaintDirty(cell->cellRect()); @@ -959,7 +959,7 @@ void CellIface::setFallDiagonalColor(int r,int g,int b) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); - QColor c(r,g,b); + TQColor c(r,g,b); cell->format()->setFallDiagonalColor(c ); m_sheet->setRegionPaintDirty(cell->cellRect()); } @@ -979,28 +979,28 @@ int CellIface::fallDiagonalWidth() const return cell->format()->fallDiagonalWidth(m_point.x(), m_point.y()); } -QString CellIface::fallDiagonalColor() const +TQString CellIface::fallDiagonalColor() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); return cell->format()->fallDiagonalColor( m_point.x(), m_point.y() ).name(); } -QString CellIface::fallDiagonalStyle() const +TQString CellIface::fallDiagonalStyle() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); Qt::PenStyle penStyle=cell->format()->fallDiagonalStyle( m_point.x(), m_point.y() ); - QString tmp; - if( penStyle==Qt::DotLine) + TQString tmp; + if( penStyle==TQt::DotLine) tmp="DotLine"; - else if( penStyle==Qt::DashLine) + else if( penStyle==TQt::DashLine) tmp="DashLine"; - else if( penStyle==Qt::DashDotLine) + else if( penStyle==TQt::DashDotLine) tmp="DashDotLine"; - else if( penStyle==Qt::DashDotDotLine) + else if( penStyle==TQt::DashDotDotLine) tmp="DashDotDotLine"; - else if( penStyle==Qt::SolidLine) + else if( penStyle==TQt::SolidLine) tmp="SolidLine"; else tmp="SolidLine"; @@ -1009,7 +1009,7 @@ QString CellIface::fallDiagonalStyle() const //GoUpDiagonal -void CellIface::setGoUpDiagonalStyle( const QString& _style ) +void CellIface::setGoUpDiagonalStyle( const TQString& _style ) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -1029,10 +1029,10 @@ void CellIface::setGoUpDiagonalStyle( const QString& _style ) } -void CellIface::setGoUpDiagonalColor(const QString& _c) +void CellIface::setGoUpDiagonalColor(const TQString& _c) { if( !m_sheet ) return; - QColor c(_c); + TQColor c(_c); Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); cell->format()->setGoUpDiagonalColor(c ); m_sheet->setRegionPaintDirty(cell->cellRect()); @@ -1042,7 +1042,7 @@ void CellIface::setGoUpDiagonalColor(int r,int g,int b) { if( !m_sheet ) return; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); - QColor c(r,g,b); + TQColor c(r,g,b); cell->format()->setGoUpDiagonalColor(c ); m_sheet->setRegionPaintDirty(cell->cellRect()); } @@ -1062,28 +1062,28 @@ int CellIface::goUpDiagonalWidth() const return cell->format()->goUpDiagonalWidth(m_point.x(), m_point.y()); } -QString CellIface::goUpDiagonalColor() const +TQString CellIface::goUpDiagonalColor() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); return cell->format()->goUpDiagonalColor( m_point.x(), m_point.y() ).name(); } -QString CellIface::goUpDiagonalStyle() const +TQString CellIface::goUpDiagonalStyle() const { - if( !m_sheet ) return QString::null; + if( !m_sheet ) return TQString(); Cell* cell = m_sheet->cellAt( m_point ); Qt::PenStyle penStyle=cell->format()->goUpDiagonalStyle( m_point.x(), m_point.y() ); - QString tmp; - if( penStyle==Qt::DotLine) + TQString tmp; + if( penStyle==TQt::DotLine) tmp="DotLine"; - else if( penStyle==Qt::DashLine) + else if( penStyle==TQt::DashLine) tmp="DashLine"; - else if( penStyle==Qt::DashDotLine) + else if( penStyle==TQt::DashDotLine) tmp="DashDotLine"; - else if( penStyle==Qt::DashDotDotLine) + else if( penStyle==TQt::DashDotDotLine) tmp="DashDotDotLine"; - else if( penStyle==Qt::SolidLine) + else if( penStyle==TQt::SolidLine) tmp="SolidLine"; else tmp="SolidLine"; @@ -1132,7 +1132,7 @@ bool CellIface::hasValidation() const return false; } -QString CellIface::validationTitle() const +TQString CellIface::validationTitle() const { if( !m_sheet ) return ""; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -1144,7 +1144,7 @@ QString CellIface::validationTitle() const return ""; } -QString CellIface::validationMessage() const +TQString CellIface::validationMessage() const { if( !m_sheet ) return ""; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -1156,20 +1156,20 @@ QString CellIface::validationMessage() const return ""; } -QStringList CellIface::listValidation() const +TQStringList CellIface::listValidation() const { - if( !m_sheet ) return QStringList(); + if( !m_sheet ) return TQStringList(); Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); if ( cell->getValidity( 0 ) ) { return cell->getValidity( 0 )->listValidity; } else - return QStringList(); + return TQStringList(); } -QString CellIface::validationTitleInfo() const +TQString CellIface::validationTitleInfo() const { if( !m_sheet ) return ""; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); @@ -1181,7 +1181,7 @@ QString CellIface::validationTitleInfo() const return ""; } -QString CellIface::validationMessageInfo() const +TQString CellIface::validationMessageInfo() const { if( !m_sheet ) return ""; Cell* cell = m_sheet->nonDefaultCell( m_point.x(), m_point.y() ); |