summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoTextViewIface.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/KoTextViewIface.cc')
-rw-r--r--lib/kotext/KoTextViewIface.cc106
1 files changed, 53 insertions, 53 deletions
diff --git a/lib/kotext/KoTextViewIface.cc b/lib/kotext/KoTextViewIface.cc
index 642fb097..8338ecde 100644
--- a/lib/kotext/KoTextViewIface.cc
+++ b/lib/kotext/KoTextViewIface.cc
@@ -39,7 +39,7 @@ void KoTextViewIface::insertSoftHyphen()
m_textView->insertSoftHyphen();
}
-void KoTextViewIface::insertText( const QString &text )
+void KoTextViewIface::insertText( const TQString &text )
{
m_textView->insertText(text);
}
@@ -99,13 +99,13 @@ void KoTextViewIface::setTextSuperScript(bool on)
delete cmd;
}
-void KoTextViewIface::setLanguage(const QString & _lang)
+void KoTextViewIface::setLanguage(const TQString & _lang)
{
KCommand *cmd=m_textView->setLanguageCommand(_lang);
delete cmd;
}
-QString KoTextViewIface::language() const
+TQString KoTextViewIface::language() const
{
return m_textView->language();
}
@@ -116,22 +116,22 @@ void KoTextViewIface::setDefaultFormat()
delete cmd;
}
-QColor KoTextViewIface::textColor() const
+TQColor KoTextViewIface::textColor() const
{
return m_textView->textColor();
}
-QString KoTextViewIface::textFontFamily()const
+TQString KoTextViewIface::textFontFamily()const
{
return m_textView->textFontFamily();
}
-QColor KoTextViewIface::textBackgroundColor()const
+TQColor KoTextViewIface::textBackgroundColor()const
{
return m_textView->textBackgroundColor();
}
-QColor KoTextViewIface::textUnderlineColor() const
+TQColor KoTextViewIface::textUnderlineColor() const
{
return m_textView->textUnderlineColor();
}
@@ -147,19 +147,19 @@ void KoTextViewIface::setRelativeTextSize( double _size)
delete cmd;
}
-void KoTextViewIface::setUnderlineColor( const QColor & color )
+void KoTextViewIface::setUnderlineColor( const TQColor & color )
{
KCommand *cmd=m_textView->setUnderlineColorCommand(color);
delete cmd;
}
-void KoTextViewIface::setTextColor(const QColor &color)
+void KoTextViewIface::setTextColor(const TQColor &color)
{
KCommand *cmd=m_textView->setTextColorCommand(color);
delete cmd;
}
-void KoTextViewIface::setTextBackgroundColor(const QColor &color)
+void KoTextViewIface::setTextBackgroundColor(const TQColor &color)
{
KCommand *cmd=m_textView->setTextBackgroundColorCommand(color);
delete cmd;
@@ -171,21 +171,21 @@ void KoTextViewIface::setAlign(int align)
delete cmd;
}
-void KoTextViewIface::setAlign(const QString &align)
+void KoTextViewIface::setAlign(const TQString &align)
{
KCommand *cmd=0L;
if( align=="AlignLeft")
- cmd=m_textView->setAlignCommand(Qt::AlignLeft);
+ cmd=m_textView->setAlignCommand(TQt::AlignLeft);
else if (align=="AlignRight")
- cmd=m_textView->setAlignCommand(Qt::AlignRight);
+ cmd=m_textView->setAlignCommand(TQt::AlignRight);
else if (align=="AlignCenter" || align=="AlignHCenter")
- cmd=m_textView->setAlignCommand(Qt::AlignHCenter);
+ cmd=m_textView->setAlignCommand(TQt::AlignHCenter);
else if (align=="AlignJustify")
- cmd=m_textView->setAlignCommand(Qt::AlignJustify);
+ cmd=m_textView->setAlignCommand(TQt::AlignJustify);
else
{
kdDebug(32500)<<"Align value not recognized...\n";
- cmd=m_textView->setAlignCommand(Qt::AlignLeft);
+ cmd=m_textView->setAlignCommand(TQt::AlignLeft);
}
delete cmd;
}
@@ -317,32 +317,32 @@ double KoTextViewIface::lineSpacing() const
double KoTextViewIface::leftMargin() const
{
- return m_textView->cursor()->parag()->margin( QStyleSheetItem::MarginLeft);
+ return m_textView->cursor()->parag()->margin( TQStyleSheetItem::MarginLeft);
}
double KoTextViewIface::rightMargin() const
{
- return m_textView->cursor()->parag()->margin( QStyleSheetItem::MarginRight);
+ return m_textView->cursor()->parag()->margin( TQStyleSheetItem::MarginRight);
}
double KoTextViewIface::spaceBeforeParag() const
{
- return m_textView->cursor()->parag()->margin( QStyleSheetItem::MarginTop);
+ return m_textView->cursor()->parag()->margin( TQStyleSheetItem::MarginTop);
}
double KoTextViewIface::spaceAfterParag() const
{
- return m_textView->cursor()->parag()->margin( QStyleSheetItem::MarginBottom);
+ return m_textView->cursor()->parag()->margin( TQStyleSheetItem::MarginBottom);
}
double KoTextViewIface::marginFirstLine() const
{
- return m_textView->cursor()->parag()->margin( QStyleSheetItem::MarginFirstLine);
+ return m_textView->cursor()->parag()->margin( TQStyleSheetItem::MarginFirstLine);
}
void KoTextViewIface::setMarginFirstLine(double pt)
{
- m_textView->cursor()->parag()->setMargin( QStyleSheetItem::MarginFirstLine,pt);
+ m_textView->cursor()->parag()->setMargin( TQStyleSheetItem::MarginFirstLine,pt);
}
void KoTextViewIface::setLineSpacing(double pt)
@@ -352,45 +352,45 @@ void KoTextViewIface::setLineSpacing(double pt)
void KoTextViewIface::setLeftMargin(double pt)
{
- m_textView->cursor()->parag()->setMargin( QStyleSheetItem::MarginLeft,pt);
+ m_textView->cursor()->parag()->setMargin( TQStyleSheetItem::MarginLeft,pt);
}
void KoTextViewIface::setRightMargin(double pt)
{
- m_textView->cursor()->parag()->setMargin( QStyleSheetItem::MarginRight,pt);
+ m_textView->cursor()->parag()->setMargin( TQStyleSheetItem::MarginRight,pt);
}
void KoTextViewIface::setSpaceBeforeParag(double pt)
{
- m_textView->cursor()->parag()->setMargin( QStyleSheetItem::MarginTop,pt);
+ m_textView->cursor()->parag()->setMargin( TQStyleSheetItem::MarginTop,pt);
}
void KoTextViewIface::setSpaceAfterParag(double pt)
{
- m_textView->cursor()->parag()->setMargin( QStyleSheetItem::MarginBottom,pt);
+ m_textView->cursor()->parag()->setMargin( TQStyleSheetItem::MarginBottom,pt);
}
-void KoTextViewIface::setLeftBorder( const QColor & c,double width )
+void KoTextViewIface::setLeftBorder( const TQColor & c,double width )
{
KoTextParag *parag= m_textView->cursor()->parag();
parag->setLeftBorder(KoBorder( c, KoBorder::SOLID, width ));
}
-void KoTextViewIface::setRightBorder( const QColor & c,double width )
+void KoTextViewIface::setRightBorder( const TQColor & c,double width )
{
KoTextParag *parag= m_textView->cursor()->parag();
parag->setRightBorder(KoBorder( c, KoBorder::SOLID, width ));
}
-void KoTextViewIface::setTopBorder( const QColor & c,double width )
+void KoTextViewIface::setTopBorder( const TQColor & c,double width )
{
KoTextParag *parag= m_textView->cursor()->parag();
parag->setTopBorder(KoBorder( c, KoBorder::SOLID, width ));
}
-void KoTextViewIface::setBottomBorder(const QColor & c,double width )
+void KoTextViewIface::setBottomBorder(const TQColor & c,double width )
{
KoTextParag *parag= m_textView->cursor()->parag();
parag->setBottomBorder(KoBorder( c, KoBorder::SOLID, width ));
@@ -422,49 +422,49 @@ double KoTextViewIface::bottomBorderWidth() const
}
-QColor KoTextViewIface::leftBorderColor() const
+TQColor KoTextViewIface::leftBorderColor() const
{
KoTextParag *parag= m_textView->cursor()->parag();
return parag->leftBorder().color;
}
-QColor KoTextViewIface::rightBorderColor() const
+TQColor KoTextViewIface::rightBorderColor() const
{
KoTextParag *parag= m_textView->cursor()->parag();
return parag->rightBorder().color;
}
-QColor KoTextViewIface::topBorderColor() const
+TQColor KoTextViewIface::topBorderColor() const
{
KoTextParag *parag= m_textView->cursor()->parag();
return parag->topBorder().color;
}
-QColor KoTextViewIface::bottomBorderColor() const
+TQColor KoTextViewIface::bottomBorderColor() const
{
KoTextParag *parag= m_textView->cursor()->parag();
return parag->bottomBorder().color;
}
-void KoTextViewIface::setLeftBorderColor( const QColor & c )
+void KoTextViewIface::setLeftBorderColor( const TQColor & c )
{
KoTextParag *parag= m_textView->cursor()->parag();
parag->leftBorder().color = c ;
}
-void KoTextViewIface::setRightBorderColor( const QColor & c )
+void KoTextViewIface::setRightBorderColor( const TQColor & c )
{
KoTextParag *parag= m_textView->cursor()->parag();
parag->rightBorder().color = c ;
}
-void KoTextViewIface::setTopBorderColor( const QColor & c )
+void KoTextViewIface::setTopBorderColor( const TQColor & c )
{
KoTextParag *parag= m_textView->cursor()->parag();
parag->topBorder().color = c ;
}
-void KoTextViewIface::setBottomBorderColor(const QColor & c )
+void KoTextViewIface::setBottomBorderColor(const TQColor & c )
{
KoTextParag *parag= m_textView->cursor()->parag();
parag->bottomBorder().color = c ;
@@ -495,7 +495,7 @@ void KoTextViewIface::setBottomBorderWidth( double _witdh )
}
-void KoTextViewIface::changeCaseOfText( const QString & caseType)
+void KoTextViewIface::changeCaseOfText( const TQString & caseType)
{
KCommand *cmd=0L;
if( caseType.lower() == "uppercase" )
@@ -520,7 +520,7 @@ void KoTextViewIface::changeCaseOfText( const QString & caseType)
}
else
- kdDebug(32500)<<"Error in void KoTextViewIface::changeCaseOfText( const QString & caseType) parameter\n";
+ kdDebug(32500)<<"Error in void KoTextViewIface::changeCaseOfText( const TQString & caseType) parameter\n";
delete cmd;
}
@@ -529,22 +529,22 @@ bool KoTextViewIface::isALinkVariable() const
return (m_textView->linkVariable()!=0);
}
-QString KoTextViewIface::linkVariableUrl( ) const
+TQString KoTextViewIface::linkVariableUrl( ) const
{
KoLinkVariable *var=m_textView->linkVariable();
if ( !var)
- return QString::null;
+ return TQString();
else
{
return var->url();
}
}
-QString KoTextViewIface::linkVariableName( ) const
+TQString KoTextViewIface::linkVariableName( ) const
{
KoLinkVariable *var=m_textView->linkVariable();
if ( !var)
- return QString::null;
+ return TQString();
else
{
return var->value();
@@ -552,7 +552,7 @@ QString KoTextViewIface::linkVariableName( ) const
}
-bool KoTextViewIface::changeLinkVariableUrl( const QString & _url) const
+bool KoTextViewIface::changeLinkVariableUrl( const TQString & _url) const
{
KoLinkVariable *var=m_textView->linkVariable();
if ( !var)
@@ -565,7 +565,7 @@ bool KoTextViewIface::changeLinkVariableUrl( const QString & _url) const
return true;
}
-bool KoTextViewIface::changeLinkVariableName( const QString & _name) const
+bool KoTextViewIface::changeLinkVariableName( const TQString & _name) const
{
KoLinkVariable *var=m_textView->linkVariable();
if ( !var)
@@ -584,16 +584,16 @@ bool KoTextViewIface::isANoteVariable() const
return (var!=0);
}
-QString KoTextViewIface::noteVariableText() const
+TQString KoTextViewIface::noteVariableText() const
{
KoNoteVariable *var = dynamic_cast<KoNoteVariable *>(m_textView->variable());
if( var )
return var->note();
else
- return QString::null;
+ return TQString();
}
-bool KoTextViewIface::setNoteVariableText(const QString & note) const
+bool KoTextViewIface::setNoteVariableText(const TQString & note) const
{
KoNoteVariable *var = dynamic_cast<KoNoteVariable *>(m_textView->variable());
if( var )
@@ -610,17 +610,17 @@ void KoTextViewIface::removeComment()
removeComment();
}
-QString KoTextViewIface::underlineStyle() const
+TQString KoTextViewIface::underlineStyle() const
{
return KoTextFormat::underlineStyleToString( m_textView->underlineStyle() );
}
-QString KoTextViewIface::strikeOutStyle()const
+TQString KoTextViewIface::strikeOutStyle()const
{
return KoTextFormat::strikeOutStyleToString( m_textView->strikeOutStyle() );
}
-void KoTextViewIface::addBookmarks(const QString &url)
+void KoTextViewIface::addBookmarks(const TQString &url)
{
m_textView->addBookmarks(url);
}
@@ -651,7 +651,7 @@ void KoTextViewIface::copyTextOfComment()
m_textView->copyTextOfComment();
}
-QString KoTextViewIface::fontAttibute()const
+TQString KoTextViewIface::fontAttibute()const
{
return KoTextFormat::attributeFontToString( m_textView->fontAttribute() );
}