summaryrefslogtreecommitdiffstats
path: root/lib/kotext
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext')
-rw-r--r--lib/kotext/DESIGN16
-rw-r--r--lib/kotext/DateFormatWidget.cpp2
-rw-r--r--lib/kotext/IsoDuration.h4
-rw-r--r--lib/kotext/KFontDialog_local.cpp24
-rw-r--r--lib/kotext/KFontDialog_local.h2
-rw-r--r--lib/kotext/KoAutoFormat.cpp16
-rw-r--r--lib/kotext/KoAutoFormatDia.cpp20
-rw-r--r--lib/kotext/KoBgSpellCheck.cpp4
-rw-r--r--lib/kotext/KoChangeCaseDia.cpp2
-rw-r--r--lib/kotext/KoCommentDia.cpp6
-rw-r--r--lib/kotext/KoCompletionBase.ui16
-rw-r--r--lib/kotext/KoCompletionDia.cpp12
-rw-r--r--lib/kotext/KoCompletionDia.h2
-rw-r--r--lib/kotext/KoComplexText.cpp98
-rw-r--r--lib/kotext/KoComplexText.h12
-rw-r--r--lib/kotext/KoCreateStyleDia.cpp2
-rw-r--r--lib/kotext/KoCustomVariablesDia.cpp12
-rw-r--r--lib/kotext/KoImportStyleDia.cpp6
-rw-r--r--lib/kotext/KoParagCounter.cpp48
-rw-r--r--lib/kotext/KoParagCounter.h8
-rw-r--r--lib/kotext/KoParagDecorationTab.ui4
-rw-r--r--lib/kotext/KoParagDia.cpp96
-rw-r--r--lib/kotext/KoParagDia.h10
-rw-r--r--lib/kotext/KoParagDia_p.h22
-rw-r--r--lib/kotext/KoParagLayout.cpp366
-rw-r--r--lib/kotext/KoParagLayout.h30
-rw-r--r--lib/kotext/KoParagStyle.cpp32
-rw-r--r--lib/kotext/KoParagStyle.h6
-rw-r--r--lib/kotext/KoRichText.cpp26
-rw-r--r--lib/kotext/KoRichText.h28
-rw-r--r--lib/kotext/KoSearchDia.cpp18
-rw-r--r--lib/kotext/KoStyleCollection.cpp2
-rw-r--r--lib/kotext/KoStyleCollection.h2
-rw-r--r--lib/kotext/KoStyleManager.cpp20
-rw-r--r--lib/kotext/KoStyleManager.h4
-rw-r--r--lib/kotext/KoTextCommand.cpp4
-rw-r--r--lib/kotext/KoTextCustomItem.h4
-rw-r--r--lib/kotext/KoTextDocument.cpp26
-rw-r--r--lib/kotext/KoTextDocument.h10
-rw-r--r--lib/kotext/KoTextFormat.cpp14
-rw-r--r--lib/kotext/KoTextFormat.h4
-rw-r--r--lib/kotext/KoTextFormatter.cpp22
-rw-r--r--lib/kotext/KoTextObject.cpp72
-rw-r--r--lib/kotext/KoTextObject.h18
-rw-r--r--lib/kotext/KoTextParag.cpp134
-rw-r--r--lib/kotext/KoTextParag.h24
-rw-r--r--lib/kotext/KoTextView.cpp52
-rw-r--r--lib/kotext/KoTextZoomHandler.h14
-rw-r--r--lib/kotext/KoVariable.cpp22
-rw-r--r--lib/kotext/KoVariable.h2
-rw-r--r--lib/kotext/kodecorationtabbase.ui6
-rw-r--r--lib/kotext/kohighlightingtabbase.ui2
-rw-r--r--lib/kotext/kohyphen/kohyphen.cpp10
-rw-r--r--lib/kotext/kolanguagetabbase.ui2
-rw-r--r--lib/kotext/kolayouttabbase.ui8
-rw-r--r--lib/kotext/tests/kobordertest.cpp8
-rw-r--r--lib/kotext/tests/kotextformattertest.cpp6
-rw-r--r--lib/kotext/timedateformatwidget.ui14
58 files changed, 728 insertions, 728 deletions
diff --git a/lib/kotext/DESIGN b/lib/kotext/DESIGN
index 12bc2940..4fd1e479 100644
--- a/lib/kotext/DESIGN
+++ b/lib/kotext/DESIGN
@@ -26,17 +26,17 @@ Zoomed: (aka Normal)
Internal:
The former two were mostly for objects like frames etc, not for text. Text (the individual
- words and characters) are positioned with the layout coordinates. Layout is similar to the
+ words and characters) are positioned with the tqlayout coordinates. Layout is similar to the
Zoomed system, but always uses the same resolution. This resolution is sufficiently high to
- do the layout in integers, and not really lose info.
+ do the tqlayout in integers, and not really lose info.
- This is the high-resolution unit in which the text layout is done,
+ This is the high-resolution unit in which the text tqlayout is done,
currently set to 1440 DPI. Everything known the QRT classes will be in
this coordinate system (including the QTextFormats). When painting, we apply
the current zoom and resolution to find the right font size to use, and we
have to catch up with rounding differences. However the position of the words
- (i.e. layout) is the one determined previously in layout units. KoZoomHandler
- offers methods for converting between layout units and zoom-dependent points
+ (i.e. tqlayout) is the one determined previously in tqlayout units. KoZoomHandler
+ offers methods for converting between tqlayout units and zoom-dependent points
and pixels.
Note that the Internal coordinate system starts at the topleft corner of
@@ -73,14 +73,14 @@ Document (pt values, in double, KoPoint, KoRect.)
|
|--KWTextFrameSet::documentToInternal
V
-Internal coordinates (the coordinates given to QRT - in "layout units")
-Note that there are pixels and pts in the layout unit system too !
+Internal coordinates (the coordinates given to QRT - in "tqlayout units")
+Note that there are pixels and pts in the tqlayout unit system too !
There are conversions between LU points and document points,
but also direct conversions between LU pixels and view pixels.
Font sizes
==========
-A 12pt font will lead to a layout font of ptToLayoutUnit(12)=20*12=240pt -
+A 12pt font will lead to a tqlayout font of ptToLayoutUnit(12)=20*12=240pt -
that's the value stored in the QTextFormat.
However font metrics are calculated from the 100%-zoom-level font (e.g. 12pt for a 12pt font)
diff --git a/lib/kotext/DateFormatWidget.cpp b/lib/kotext/DateFormatWidget.cpp
index 49749f91..c93807a3 100644
--- a/lib/kotext/DateFormatWidget.cpp
+++ b/lib/kotext/DateFormatWidget.cpp
@@ -147,7 +147,7 @@ void DateFormatWidget::updateLabel()
{
KoVariableDateFormat format;
format.setFormatProperties( resultString() );
- TQDateTime ct = TQDateTime::currentDateTime().addDays( correctValue() );
+ TQDateTime ct = TQDateTime::tqcurrentDateTime().addDays( correctValue() );
label->setText( format.convert( ct ) );
}
diff --git a/lib/kotext/IsoDuration.h b/lib/kotext/IsoDuration.h
index ee1cdfb9..6ccb2891 100644
--- a/lib/kotext/IsoDuration.h
+++ b/lib/kotext/IsoDuration.h
@@ -31,7 +31,7 @@ static TQString minutesToISODuration( int mn )
{
bool neg = mn < 0;
// PT == period of time - see ISO8601
- TQString str = TQString::fromLatin1( "PT00H%1M00S" ).arg( TQABS( mn ) );
+ TQString str = TQString::tqfromLatin1( "PT00H%1M00S" ).tqarg( TQABS( mn ) );
if ( neg )
str.prepend( '-' );
return str;
@@ -41,7 +41,7 @@ static TQString daysToISODuration( int days )
{
bool neg = days < 0;
// P == period, time is ommitted - see ISO8601
- TQString str = TQString::fromLatin1( "P%1D" ).arg( TQABS( days ) );
+ TQString str = TQString::tqfromLatin1( "P%1D" ).tqarg( TQABS( days ) );
if ( neg )
str.prepend( '-' );
return str;
diff --git a/lib/kotext/KFontDialog_local.cpp b/lib/kotext/KFontDialog_local.cpp
index 7afeb354..beaeb9f9 100644
--- a/lib/kotext/KFontDialog_local.cpp
+++ b/lib/kotext/KFontDialog_local.cpp
@@ -34,7 +34,7 @@
#include <tqfont.h>
#include <tqgroupbox.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqscrollbar.h>
#include <tqstringlist.h>
#include <tqfontdatabase.h>
@@ -69,7 +69,7 @@ static int minimumListWidth( const TQListBox *list )
}
if( w == 0 ) { w = 40; }
w += list->frameWidth() * 2;
- w += list->verticalScrollBar()->sizeHint().width();
+ w += list->verticalScrollBar()->tqsizeHint().width();
return w;
}
@@ -297,7 +297,7 @@ KFontChooser_local::KFontChooser_local(TQWidget *parent, const char *name,
sampleEdit->setFont(tmpFont);
sampleEdit->setText(i18n("The Quick Brown Fox Jumps Over The Lazy Dog"));
sampleEdit->setMinimumHeight( sampleEdit->fontMetrics().lineSpacing() );
- sampleEdit->setAlignment(TQt::AlignCenter);
+ sampleEdit->tqsetAlignment(TQt::AlignCenter);
gridLayout->addMultiCellWidget(sampleEdit, 4, 4, 0, 2);
TQString sampleEditWhatsThisText =
i18n("This sample text illustrates the current settings. "
@@ -333,8 +333,8 @@ KFontChooser_local::KFontChooser_local(TQWidget *parent, const char *name,
setSizeIsRelative( *sizeIsRelativeState );
KConfig *config = KGlobal::config();
- KConfigGroupSaver saver(config, TQString::fromLatin1("General"));
- showXLFDArea(config->readBoolEntry(TQString::fromLatin1("fontSelectorShowXLFD"), false));
+ KConfigGroupSaver saver(config, TQString::tqfromLatin1("General"));
+ showXLFDArea(config->readBoolEntry(TQString::tqfromLatin1("fontSelectorShowXLFD"), false));
}
KFontChooser_local::~KFontChooser_local()
@@ -405,9 +405,9 @@ TQButton::ToggleState KFontChooser_local::sizeIsRelative() const
: TQButton::NoChange;
}
-TQSize KFontChooser_local::sizeHint( void ) const
+TQSize KFontChooser_local::tqsizeHint( void ) const
{
- return minimumSizeHint();
+ return tqminimumSizeHint();
}
@@ -473,7 +473,7 @@ void KFontChooser_local::family_chosen_slot(const TQString& family)
TQFontDatabase dbase;
- TQStringList styles = TQStringList(dbase.styles(currentFamily));
+ TQStringList styles = TQStringList(dbase.tqstyles(currentFamily));
styleListBox->clear();
currentStyles.clear();
for ( TQStringList::Iterator it = styles.begin(); it != styles.end(); ++it ) {
@@ -539,7 +539,7 @@ void KFontChooser_local::style_chosen_slot(const TQString& style)
fillSizeList();
} else { // is bitmap font.
//sampleEdit->setPaletteBackgroundPixmap( BitmapPixmap ); // TODO
- TQValueList<int> sizes = dbase.smoothSizes(familyListBox->currentText(), currentStyles[currentStyle]);
+ TQValueList<int> sizes = dbase.tqsmoothSizes(familyListBox->currentText(), currentStyles[currentStyle]);
if(sizes.count() > 0) {
TQValueList<int>::iterator it;
diff=1000;
@@ -654,7 +654,7 @@ void KFontChooser_local::setupDisplay()
void KFontChooser_local::getFontList( TQStringList &list, uint fontListCriteria)
{
TQFontDatabase dbase;
- TQStringList lstSys(dbase.families());
+ TQStringList lstSys(dbase.tqfamilies());
// if we have criteria; then check fonts before adding
if (fontListCriteria)
@@ -694,13 +694,13 @@ void KFontChooser_local::addFont( TQStringList &list, const char *xfont )
if ( !ptr )
return;
- TQString font = TQString::fromLatin1(ptr + 1);
+ TQString font = TQString::tqfromLatin1(ptr + 1);
int pos;
if ( ( pos = font.find( '-' ) ) > 0 ) {
font.truncate( pos );
- if ( font.find( TQString::fromLatin1("open look"), 0, false ) >= 0 )
+ if ( font.find( TQString::tqfromLatin1("open look"), 0, false ) >= 0 )
return;
TQStringList::Iterator it = list.begin();
diff --git a/lib/kotext/KFontDialog_local.h b/lib/kotext/KFontDialog_local.h
index 943ce724..b9d4853c 100644
--- a/lib/kotext/KFontDialog_local.h
+++ b/lib/kotext/KFontDialog_local.h
@@ -263,7 +263,7 @@ public:
/**
* Reimplemented for internal reasons.
*/
- virtual TQSize sizeHint( void ) const;
+ virtual TQSize tqsizeHint( void ) const;
signals:
/**
diff --git a/lib/kotext/KoAutoFormat.cpp b/lib/kotext/KoAutoFormat.cpp
index 7ca6f1a7..c859d26c 100644
--- a/lib/kotext/KoAutoFormat.cpp
+++ b/lib/kotext/KoAutoFormat.cpp
@@ -932,7 +932,7 @@ bool KoAutoFormat::doCompletion( KoTextCursor* textEditCursor, KoTextParag *para
uint maxlength = 0;
for ( TQStringList::ConstIterator it = wordlist.begin(); it != wordlist.end(); ++it ) // several completion words were found
{
- if ( (*it).startsWith( lastWord, false ) && new_wordlist.find(*it) == new_wordlist.end() ) //the completion words that begin with lastWord
+ if ( (*it).tqstartsWith( lastWord, false ) && new_wordlist.find(*it) == new_wordlist.end() ) //the completion words that begin with lastWord
{
if ( (*it).length() > maxlength )
maxlength = (*it).length();
@@ -952,7 +952,7 @@ bool KoAutoFormat::doCompletion( KoTextCursor* textEditCursor, KoTextParag *para
TQChar ch = new_wordlist.first().at(i);
for (TQStringList::ConstIterator it = new_wordlist.begin(); it != new_wordlist.end(); ++it )
{
- if ( (*it).at(i).lower() != ch.lower() )
+ if ( (*it).tqat(i).lower() != ch.lower() )
{
word = (*it).left(i); //the completion word is truncated here
//kdDebug() << "set the word completion to:" << word << endl;
@@ -1063,7 +1063,7 @@ void KoAutoFormat::showToolTipBox(KoTextParag *parag, int index, TQWidget *widg
m_completionBox->setText(word);
m_completionBox->setLastWord(lastWord);
m_completionBox->adjustSize();
- int const height = m_completionBox->sizeHint().height();
+ int const height = m_completionBox->tqsizeHint().height();
m_completionBox->move( show_pos.x(), show_pos.y() - height );
if (!m_completionBox->isShown() )
@@ -1778,7 +1778,7 @@ void KoAutoFormat::doAutoDetectUrl( KoTextCursor *textEditCursor, KoTextParag *p
txtObj->insert( textEditCursor, lastFormat, KoTextObject::customItemChar(), i18n("Insert Variable"),
KoTextDocument::HighlightSelection, KoTextObject::DefaultInsertFlags, customItemsMap );
var->recalc();
- parag->invalidate(0);
+ parag->tqinvalidate(0);
parag->setChanged( true );
// adjust index
@@ -1819,7 +1819,7 @@ void KoAutoFormat::doAutoIncludeUpperUpper(KoTextCursor* /*textEditCursor*/, KoT
break;
word.append( ch );
}
- if( word.length() > 2 && word.left(2)==word.left(2).upper() && word.at(3)!=word.at(3).upper() )
+ if( word.length() > 2 && word.left(2)==word.left(2).upper() && word.tqat(3)!=word.tqat(3).upper() )
{
if ( m_twoUpperLetterException.findIndex(word )==-1)
m_twoUpperLetterException.append( word);
@@ -1856,7 +1856,7 @@ void KoAutoFormat::doAutoIncludeAbbreviation(KoTextCursor* /*textEditCursor*/, K
break;
wordAfter.append( ch );
}
- if( word.length()>1 && !wordAfter.isEmpty() && wordAfter.at(0)==wordAfter.at(0).lower())
+ if( word.length()>1 && !wordAfter.isEmpty() && wordAfter.tqat(0)==wordAfter.tqat(0).lower())
{
if ( m_upperCaseExceptions.findIndex(word )==-1)
m_upperCaseExceptions.append( word );
@@ -2158,14 +2158,14 @@ KCommand *KoAutoFormat::doCapitalizeNameOfDays( KoTextCursor* textEditCursor, Ko
TQString replaceStr= m_cacheNameOfDays[pos];
int start = index - replaceStr.length();
int length = replaceStr.length();
- if( word.at(0).isLetter() && word.at(0)==word.at(0).lower() )
+ if( word.tqat(0).isLetter() && word.tqat(0)==word.tqat(0).lower() )
{
KoTextCursor cursor( parag->document() );
cursor.setParag( parag );
cursor.setIndex( start );
textdoc->setSelectionStart( KoTextDocument::HighlightSelection, &cursor );
cursor.setIndex( start + length );
- TQString replacement = replaceStr.at(0).upper() + replaceStr.right( length-1 );
+ TQString replacement = replaceStr.tqat(0).upper() + replaceStr.right( length-1 );
textdoc->setSelectionEnd( KoTextDocument::HighlightSelection, &cursor );
TQString cmdName=i18n("Capitalize Name of Days");
KCommand *cmd =txtObj->replaceSelectionCommand( textEditCursor, replacement,
diff --git a/lib/kotext/KoAutoFormatDia.cpp b/lib/kotext/KoAutoFormatDia.cpp
index 30a110a0..e6dce371 100644
--- a/lib/kotext/KoAutoFormatDia.cpp
+++ b/lib/kotext/KoAutoFormatDia.cpp
@@ -28,7 +28,7 @@
#include <klistview.h>
#include <kstandarddirs.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqwhatsthis.h>
#include <tqcheckbox.h>
#include <tqpushbutton.h>
@@ -286,7 +286,7 @@ void KoAutoFormatDia::setupTab1()
cbAutoReplaceNumber=new TQCheckBox( tab1 );
cbAutoReplaceNumber->setText( i18n(
"We add the 1/2 char at the %1", "Re&place 1/2... with %1..." )
- .arg( TQString( "�" ) ) );
+ .tqarg( TQString( "�" ) ) );
TQWhatsThis::add( cbAutoReplaceNumber, i18n(
"Most standard fraction notations will be converted when available"
) );
@@ -331,11 +331,11 @@ void KoAutoFormatDia::setupTab1()
hbox->addSpacing( 20 );
hbox->setSpacing(KDialog::spacingHint());
pbBulletStyle = new TQPushButton( tab1 );
- pbBulletStyle->setFixedSize( pbBulletStyle->sizeHint() );
+ pbBulletStyle->setFixedSize( pbBulletStyle->tqsizeHint() );
hbox->addWidget( pbBulletStyle );
pbDefaultBulletStyle = new TQPushButton( tab1 );
pbDefaultBulletStyle->setText(i18n("Default"));
- pbDefaultBulletStyle->setFixedSize( pbDefaultBulletStyle->sizeHint() );
+ pbDefaultBulletStyle->setFixedSize( pbDefaultBulletStyle->tqsizeHint() );
hbox->addWidget( pbDefaultBulletStyle );
hbox->addStretch( 1 );
@@ -393,10 +393,10 @@ void KoAutoFormatDia::setupTab2()
hbox->addSpacing( 20 );
pbDoubleQuote1 = new TQPushButton( tab2 );
- pbDoubleQuote1->setFixedSize( pbDoubleQuote1->sizeHint() );
+ pbDoubleQuote1->setFixedSize( pbDoubleQuote1->tqsizeHint() );
pbDoubleQuote2 = new TQPushButton( tab2 );
- pbDoubleQuote2->setFixedSize( pbDoubleQuote2->sizeHint() );
+ pbDoubleQuote2->setFixedSize( pbDoubleQuote2->tqsizeHint() );
if (TQApplication::reverseLayout()) {
hbox->addWidget( pbDoubleQuote2 );
@@ -410,7 +410,7 @@ void KoAutoFormatDia::setupTab2()
pbDoubleDefault = new TQPushButton( tab2 );
pbDoubleDefault->setText(i18n("Default"));
- pbDoubleDefault->setFixedSize( pbDoubleDefault->sizeHint() );
+ pbDoubleDefault->setFixedSize( pbDoubleDefault->tqsizeHint() );
hbox->addWidget( pbDoubleDefault );
hbox->addStretch( 1 );
@@ -434,10 +434,10 @@ void KoAutoFormatDia::setupTab2()
hbox->addSpacing( 20 );
pbSimpleQuote1 = new TQPushButton( tab2 );
- pbSimpleQuote1->setFixedSize( pbSimpleQuote1->sizeHint() );
+ pbSimpleQuote1->setFixedSize( pbSimpleQuote1->tqsizeHint() );
pbSimpleQuote2 = new TQPushButton( tab2 );
- pbSimpleQuote2->setFixedSize( pbSimpleQuote2->sizeHint() );
+ pbSimpleQuote2->setFixedSize( pbSimpleQuote2->tqsizeHint() );
if (TQApplication::reverseLayout()) {
hbox->addWidget( pbSimpleQuote2 );
@@ -451,7 +451,7 @@ void KoAutoFormatDia::setupTab2()
pbSimpleDefault = new TQPushButton( tab2 );
pbSimpleDefault->setText(i18n("Default"));
- pbSimpleDefault->setFixedSize( pbSimpleDefault->sizeHint() );
+ pbSimpleDefault->setFixedSize( pbSimpleDefault->tqsizeHint() );
hbox->addWidget( pbSimpleDefault );
hbox->addStretch( 1 );
diff --git a/lib/kotext/KoBgSpellCheck.cpp b/lib/kotext/KoBgSpellCheck.cpp
index 612f0be7..f3b8928b 100644
--- a/lib/kotext/KoBgSpellCheck.cpp
+++ b/lib/kotext/KoBgSpellCheck.cpp
@@ -135,7 +135,7 @@ void KoBgSpellCheck::spellCheckerMisspelling( const TQString &old, int pos )
#endif
markWord( parag, pos, old.length(), true );
// Repaint immediately, since the checking is timer-based (slow), it looks
- // slow (chunky) if we only repaint once a paragraph is completely done.
+ // slow (chunky) if we only tqrepaint once a paragraph is completely done.
parag->document()->emitRepaintChanged();
if ( d->startupChecking && d->marked > delayAfterMarked ) {
@@ -171,7 +171,7 @@ void KoBgSpellCheck::markWord( KoTextParag* parag, int pos, int length, bool mis
#endif
parag->setFormat( pos, length, &format, true, KoTextFormat::Misspelled );
parag->setChanged( true );
- // don't repaint here, in the slotParagraphModified case we want to repaint only once at the end
+ // don't tqrepaint here, in the slotParagraphModified case we want to tqrepaint only once at the end
}
void KoBgSpellCheck::checkerContinue()
diff --git a/lib/kotext/KoChangeCaseDia.cpp b/lib/kotext/KoChangeCaseDia.cpp
index cde58f0a..8f7c2515 100644
--- a/lib/kotext/KoChangeCaseDia.cpp
+++ b/lib/kotext/KoChangeCaseDia.cpp
@@ -36,7 +36,7 @@ KoChangeCaseDia::KoChangeCaseDia( TQWidget *parent, const char *name )
TQButtonGroup *grp = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Case" ),page );
grp->setRadioButtonExclusive( TRUE );
- grp->layout();
+ grp->tqlayout();
m_upperCase=new TQRadioButton( i18n("&Uppercase"), grp );
m_lowerCase=new TQRadioButton( i18n("&Lowercase"), grp );
diff --git a/lib/kotext/KoCommentDia.cpp b/lib/kotext/KoCommentDia.cpp
index 370befe8..a6c8b2bb 100644
--- a/lib/kotext/KoCommentDia.cpp
+++ b/lib/kotext/KoCommentDia.cpp
@@ -21,7 +21,7 @@
#include <tqvbox.h>
#include <tqmultilineedit.h>
#include "KoCommentDia.h"
-#include <layout.h>
+#include <tqlayout.h>
#include <tqpushbutton.h>
#include <kglobal.h>
#include <tqdatetime.h>
@@ -64,9 +64,9 @@ TQString KoCommentDia::commentText()
void KoCommentDia::slotAddAuthorName()
{
- TQString date = KGlobal::locale()->formatDate( TQDate::currentDate() );
+ TQString date = KGlobal::locale()->formatDate( TQDate::tqcurrentDate() );
TQString time = KGlobal::locale()->formatTime( TQTime::currentTime() );
- TQString result = TQString("--------%1 ,%2, %3------\n").arg(authorName).arg(date).arg(time);
+ TQString result = TQString("--------%1 ,%2, %3------\n").tqarg(authorName).tqarg(date).tqarg(time);
m_multiLine->insertLine( result, m_multiLine->numLines() );
}
diff --git a/lib/kotext/KoCompletionBase.ui b/lib/kotext/KoCompletionBase.ui
index babc467c..12ae9d5d 100644
--- a/lib/kotext/KoCompletionBase.ui
+++ b/lib/kotext/KoCompletionBase.ui
@@ -29,7 +29,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout9</cstring>
+ <cstring>tqlayout9</cstring>
</property>
<hbox>
<property name="name">
@@ -45,7 +45,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout8</cstring>
+ <cstring>tqlayout8</cstring>
</property>
<vbox>
<property name="name">
@@ -83,7 +83,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>31</height>
@@ -129,7 +129,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout11</cstring>
+ <cstring>tqlayout11</cstring>
</property>
<grid>
<property name="name">
@@ -254,7 +254,7 @@ This option is most important when Automatically add words to completion list is
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout10</cstring>
+ <cstring>tqlayout10</cstring>
</property>
<hbox>
<property name="name">
@@ -289,7 +289,7 @@ This option is most important when Automatically add words to completion list is
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>101</width>
<height>20</height>
@@ -302,7 +302,7 @@ This option is most important when Automatically add words to completion list is
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
@@ -329,7 +329,7 @@ This option is most important when Automatically add words to completion list is
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>101</width>
<height>20</height>
diff --git a/lib/kotext/KoCompletionDia.cpp b/lib/kotext/KoCompletionDia.cpp
index 2f5729b2..66d8d374 100644
--- a/lib/kotext/KoCompletionDia.cpp
+++ b/lib/kotext/KoCompletionDia.cpp
@@ -25,7 +25,7 @@
#include <kcompletion.h>
#include <kconfig.h>
#include <kdebug.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqvbox.h>
#include <tqcheckbox.h>
#include <tqpushbutton.h>
@@ -40,7 +40,7 @@ KoCompletionDia::KoCompletionDia( TQWidget *parent, const char *name, KoAutoForm
{
TQVBox *page = makeVBoxMainWidget();
m_widget = new KoCompletion(page, autoFormat);
- m_widget->layout()->setMargin(0);
+ m_widget->tqlayout()->setMargin(0);
connect( this, TQT_SIGNAL( user1Clicked() ), m_widget, TQT_SLOT(slotResetConf()));
setButtonWhatsThis(Ok,i18n("This will save your options."));
setButtonWhatsThis(Cancel,i18n("This will abort all changes."));
@@ -57,7 +57,7 @@ KoCompletion::KoCompletion(TQWidget *parent, KoAutoFormat *autoFormat) : KoCompl
m_autoFormat( *autoFormat ),
m_docAutoFormat( autoFormat )
{
- connect(cbAllowCompletion, TQT_SIGNAL(toggled ( bool )), this, TQT_SLOT( changeButtonStatus()));
+ connect(cbAllowCompletion, TQT_SIGNAL(toggled ( bool )), this, TQT_SLOT( changeButtontqStatus()));
TQStringList lst;
lst << i18n( "Enter" );
lst << i18n( "Tab" );
@@ -74,10 +74,10 @@ KoCompletion::KoCompletion(TQWidget *parent, KoAutoFormat *autoFormat) : KoCompl
connect( pbSaveCompletionEntry, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotSaveCompletionEntry()));
slotResetConf(); // aka load config
- changeButtonStatus();
+ changeButtontqStatus();
}
-void KoCompletion::changeButtonStatus() {
+void KoCompletion::changeButtontqStatus() {
bool state = cbAllowCompletion->isChecked();
completionBox->setEnabled( state);
@@ -122,7 +122,7 @@ void KoCompletion::slotResetConf() {
default:
m_completionKeyAction->setCurrentItem( 0 );
}
- changeButtonStatus();
+ changeButtontqStatus();
}
void KoCompletion::slotAddCompletionEntry() {
diff --git a/lib/kotext/KoCompletionDia.h b/lib/kotext/KoCompletionDia.h
index 98927e0b..1aefb39a 100644
--- a/lib/kotext/KoCompletionDia.h
+++ b/lib/kotext/KoCompletionDia.h
@@ -35,7 +35,7 @@ public:
void saveSettings();
protected slots:
- void changeButtonStatus();
+ void changeButtontqStatus();
void slotResetConf();
void slotAddCompletionEntry();
void slotRemoveCompletionEntry();
diff --git a/lib/kotext/KoComplexText.cpp b/lib/kotext/KoComplexText.cpp
index 475f439d..54599d07 100644
--- a/lib/kotext/KoComplexText.cpp
+++ b/lib/kotext/KoComplexText.cpp
@@ -65,14 +65,14 @@ KoBidiContext::~KoBidiContext()
delete parent;
}
-static TQChar *shapeBuffer = 0;
-static int shapeBufSize = 0;
+static TQChar *tqshapeBuffer = 0;
+static int tqshapeBufSize = 0;
/*
Arabic shaping obeys a number of rules according to the joining classes (see Unicode book, section on
arabic).
- Each unicode char has a joining class (right, dual (left&right), center (joincausing) or transparent).
+ Each tqunicode char has a joining class (right, dual (left&right), center (joincausing) or transparent).
transparent joining is not encoded in TQChar::joining(), but applies to all combining marks and format marks.
Right join-causing: dual + center
@@ -103,7 +103,7 @@ static int shapeBufSize = 0;
*/
/*
- Two small helper functions for arabic shaping. They get the next shape causing character on either
+ Two small helper functions for arabic shaping. They get the next tqshape causing character on either
side of the char in question. Implements rule R1.
leftChar() returns true if the char to the left is a left join-causing char
@@ -113,7 +113,7 @@ static inline const TQChar *prevChar( const TQString &str, int pos )
{
//kdDebug() << "leftChar: pos=" << pos << endl;
pos--;
- const TQChar *ch = str.unicode() + pos;
+ const TQChar *ch = str.tqunicode() + pos;
while( pos > -1 ) {
if( !ch->isMark() )
return ch;
@@ -127,7 +127,7 @@ static inline const TQChar *nextChar( const TQString &str, int pos)
{
pos++;
int len = str.length();
- const TQChar *ch = str.unicode() + pos;
+ const TQChar *ch = str.tqunicode() + pos;
while( pos < len ) {
//kdDebug() << "rightChar: " << pos << " isLetter=" << ch.isLetter() << ", joining=" << ch.joining() << endl;
if( !ch->isMark() )
@@ -155,11 +155,11 @@ KoComplexText::Shape KoComplexText::glyphVariant( const TQString &str, int pos)
{
// ignores L1 - L3, done in the codec
TQChar::Joining joining = str[pos].joining();
- //kdDebug() << "checking " << str[pos].unicode() << ", joining=" << joining << endl;
+ //kdDebug() << "checking " << str[pos].tqunicode() << ", joining=" << joining << endl;
switch ( joining ) {
case TQChar::OtherJoining:
case TQChar::Center:
- // these don't change shape
+ // these don't change tqshape
return XIsolated;
case TQChar::Right:
// only rule R2 applies
@@ -200,11 +200,11 @@ KoComplexText::Shape KoComplexText::glyphVariantLogical( const TQString &str, in
{
// ignores L1 - L3, ligatures are job of the codec
TQChar::Joining joining = str[pos].joining();
- //kdDebug() << "checking " << str[pos].unicode() << ", joining=" << joining << endl;
+ //kdDebug() << "checking " << str[pos].tqunicode() << ", joining=" << joining << endl;
switch ( joining ) {
case TQChar::OtherJoining:
case TQChar::Center:
- // these don't change shape
+ // these don't change tqshape
return XIsolated;
case TQChar::Right:
// only rule R2 applies
@@ -229,11 +229,11 @@ KoComplexText::Shape KoComplexText::glyphVariantLogical( const TQString &str, in
// -------------------------------------------------------------
-// The unicode to unicode shaping codec.
+// The tqunicode to tqunicode shaping codec.
// does only presentation forms B at the moment, but that should be enough for
// simple display
static const ushort arabicUnicodeMapping[256][2] = {
- // base of shaped forms, and number-1 of them ( 0 for non shaping,
+ // base of tqshaped forms, and number-1 of them ( 0 for non shaping,
// 1 for right binding and 3 for dual binding
{ 0x0600, 0 }, // 0x600
{ 0x0601, 0 }, // 0x601
@@ -355,7 +355,7 @@ static const ushort arabicUnicodeMapping[256][2] = {
{ 0x066e, 0 }, // 0x66e
{ 0x066f, 0 }, // 0x66f
- // ### some glyphs do not have shaped mappings in the presentation forms A.
+ // ### some glyphs do not have tqshaped mappings in the presentation forms A.
// these have the shaping set to 0 for the moment. Will have to find out better mappings for them.
{ 0x0670, 0 }, // 0x670
{ 0xfb50, 1 }, // 0x671 R Alef Wasla
@@ -512,7 +512,7 @@ static const ushort arabicUnicodeMapping[256][2] = {
};
-// this is a bit tricky. Alef always binds to the right, so the second parameter descibing the shape
+// this is a bit tricky. Alef always binds to the right, so the second parameter descibing the tqshape
// of the lam can be either initial of medial. So initial maps to the isolated form of the ligature,
// medial to the final form
static const ushort arabicUnicodeLamAlefMapping[6][4] = {
@@ -524,14 +524,14 @@ static const ushort arabicUnicodeLamAlefMapping[6][4] = {
{ 0xfffd, 0xfffd, 0xfefb, 0xfefc } // 0x627 R Alef
};
-static inline int getShape( const TQChar * /* base */, uchar cell, int shape,
+static inline int getShape( const TQChar * /* base */, uchar cell, int tqshape,
const TQFontMetrics * /* fm */ )
{
- uint ch = arabicUnicodeMapping[cell][0] + shape;
+ uint ch = arabicUnicodeMapping[cell][0] + tqshape;
/*
- // we revert to the unshaped glyph in case the shaped version doesn't exist
+ // we revert to the untqshaped glyph in case the tqshaped version doesn't exist
if ( fm && !fm->inFont( ch ) ) {
- switch( shape ) {
+ switch( tqshape ) {
case KoComplexText::XIsolated:
break; // try base form
case KoComplexText::XFinal:
@@ -551,7 +551,7 @@ static inline int getShape( const TQChar * /* base */, uchar cell, int shape,
return ch;
}
-TQString KoComplexText::shapedString(const TQString& uc, int from, int len, TQPainter::TextDirection dir, const TQFontMetrics *fm )
+TQString KoComplexText::tqshapedString(const TQString& uc, int from, int len, TQPainter::TextDirection dir, const TQFontMetrics *fm )
{
if( len < 0 )
len = uc.length() - from;
@@ -561,13 +561,13 @@ TQString KoComplexText::shapedString(const TQString& uc, int from, int len, TQPa
// we have to ignore NSMs at the beginning and add at the end.
int num = uc.length() - from - len;
- const TQChar *ch = uc.unicode() + from + len;
+ const TQChar *ch = uc.tqunicode() + from + len;
while ( num > 0 && ch->combiningClass() != 0 ) {
ch++;
num--;
len++;
}
- ch = uc.unicode() + from;
+ ch = uc.tqunicode() + from;
while ( len > 0 && ch->combiningClass() != 0 ) {
ch++;
len--;
@@ -575,16 +575,16 @@ TQString KoComplexText::shapedString(const TQString& uc, int from, int len, TQPa
}
if ( len == 0 ) return TQString();
- if( !shapeBuffer || len > shapeBufSize ) {
- if( shapeBuffer ) free( (void *) shapeBuffer );
- shapeBuffer = (TQChar *) malloc( len*sizeof( TQChar ) );
-// delete [] shapeBuffer;
-// shapeBuffer = new TQChar[ len + 1];
- shapeBufSize = len;
+ if( !tqshapeBuffer || len > tqshapeBufSize ) {
+ if( tqshapeBuffer ) free( (void *) tqshapeBuffer );
+ tqshapeBuffer = (TQChar *) malloc( len*sizeof( TQChar ) );
+// delete [] tqshapeBuffer;
+// tqshapeBuffer = new TQChar[ len + 1];
+ tqshapeBufSize = len;
}
int lenOut = 0;
- TQChar *data = shapeBuffer;
+ TQChar *data = tqshapeBuffer;
if ( dir == TQPainter::RTL )
ch += len - 1;
for ( int i = 0; i < len; i++ ) {
@@ -601,8 +601,8 @@ TQString KoComplexText::shapedString(const TQString& uc, int from, int len, TQPa
int pos = i + from;
if ( dir == TQPainter::RTL )
pos = from + len - 1 - i;
- int shape = glyphVariantLogical( uc, pos );
- //kdDebug() << "mapping U+" << ch->unicode() << " to shape " << shape << " glyph=0x" << arabicUnicodeMapping[ch->cell()][shape] << endl;
+ int tqshape = glyphVariantLogical( uc, pos );
+ //kdDebug() << "mapping U+" << ch->tqunicode() << " to tqshape " << tqshape << " glyph=0x" << arabicUnicodeMapping[ch->cell()][tqshape] << endl;
// take care of lam-alef ligatures (lam right of alef)
ushort map;
switch ( c ) {
@@ -615,7 +615,7 @@ TQString KoComplexText::shapedString(const TQString& uc, int from, int len, TQPa
case 0x25:
case 0x27:
//kdDebug() << " lam of lam-alef ligature" << endl;
- map = arabicUnicodeLamAlefMapping[pch->cell() - 0x22][shape];
+ map = arabicUnicodeLamAlefMapping[pch->cell() - 0x22][tqshape];
goto next;
default:
break;
@@ -627,7 +627,7 @@ TQString KoComplexText::shapedString(const TQString& uc, int from, int len, TQPa
case 0x23: // alef with hamza above
case 0x25: // alef with hamza below
case 0x27: // alef
- if ( prevChar( uc, pos )->unicode() == 0x0644 ) {
+ if ( prevChar( uc, pos )->tqunicode() == 0x0644 ) {
// have a lam alef ligature
//kdDebug() << " alef of lam-alef ligature" << endl;
goto skip;
@@ -635,7 +635,7 @@ TQString KoComplexText::shapedString(const TQString& uc, int from, int len, TQPa
default:
break;
}
- map = getShape( ch, c, shape, fm );
+ map = getShape( ch, c, tqshape, fm );
next:
*data = map;
data++;
@@ -649,11 +649,11 @@ TQString KoComplexText::shapedString(const TQString& uc, int from, int len, TQPa
}
if ( dir == TQPainter::Auto && !uc.simpleText() ) {
- return bidiReorderString( TQConstString( shapeBuffer, lenOut ).string() );
+ return bidiReorderString( TQConstString( tqshapeBuffer, lenOut ).string() );
}
if ( dir == TQPainter::RTL ) {
// reverses the non spacing marks to be again after the base char
- TQChar *s = shapeBuffer;
+ TQChar *s = tqshapeBuffer;
int i = 0;
while ( i < lenOut ) {
if ( s->combiningClass() != 0 ) {
@@ -684,17 +684,17 @@ TQString KoComplexText::shapedString(const TQString& uc, int from, int len, TQPa
}
}
- return TQConstString( shapeBuffer, lenOut ).string();
+ return TQConstString( tqshapeBuffer, lenOut ).string();
}
-TQChar KoComplexText::shapedCharacter( const TQString &str, int pos, const TQFontMetrics *fm )
+TQChar KoComplexText::tqshapedCharacter( const TQString &str, int pos, const TQFontMetrics *fm )
{
- const TQChar *ch = str.unicode() + pos;
+ const TQChar *ch = str.tqunicode() + pos;
if ( ch->row() != 0x06 )
return *ch;
else {
- int shape = glyphVariantLogical( str, pos );
- //kdDebug() << "mapping U+" << ch->unicode() << " to shape " << shape << " glyph=0x" << arabicUnicodeMapping[ch->cell()][shape] << endl;
+ int tqshape = glyphVariantLogical( str, pos );
+ //kdDebug() << "mapping U+" << ch->tqunicode() << " to tqshape " << tqshape << " glyph=0x" << arabicUnicodeMapping[ch->cell()][tqshape] << endl;
// lam aleph ligatures
switch ( ch->cell() ) {
case 0x44: { // lam
@@ -705,7 +705,7 @@ TQChar KoComplexText::shapedCharacter( const TQString &str, int pos, const TQFon
case 0x23:
case 0x25:
case 0x27:
- return TQChar(arabicUnicodeLamAlefMapping[nch->cell() - 0x22][shape]);
+ return TQChar(arabicUnicodeLamAlefMapping[nch->cell() - 0x22][tqshape]);
default:
break;
}
@@ -716,13 +716,13 @@ TQChar KoComplexText::shapedCharacter( const TQString &str, int pos, const TQFon
case 0x23: // alef with hamza above
case 0x25: // alef with hamza below
case 0x27: // alef
- if ( prevChar( str, pos )->unicode() == 0x0644 )
+ if ( prevChar( str, pos )->tqunicode() == 0x0644 )
// have a lam alef ligature
return TQChar(0);
default:
break;
}
- return TQChar( getShape( ch, ch->cell(), shape, fm ) );
+ return TQChar( getShape( ch, ch->cell(), tqshape, fm ) );
}
}
@@ -739,7 +739,7 @@ TQPointArray KoComplexText::positionMarks( TQFontPrivate *f, const TQString &str
if ( !nmarks )
return TQPointArray();
- TQChar baseChar = KoComplexText::shapedCharacter( str, pos );
+ TQChar baseChar = KoComplexText::tqshapedCharacter( str, pos );
TQRect baseRect = f->boundingRect( baseChar );
int baseOffset = f->textWidth( str, pos, 1 );
@@ -842,7 +842,7 @@ TQPointArray KoComplexText::positionMarks( TQFontPrivate *f, const TQString &str
default:
break;
}
- //kdDebug() << "char=" << mark.unicode() << " combiningClass = " << cmb << " offset=" << p.x() << "/" << p.y() << endl;
+ //kdDebug() << "char=" << mark.tqunicode() << " combiningClass = " << cmb << " offset=" << p.x() << "/" << p.y() << endl;
markRect.moveBy( p.x(), p.y() );
p += TQPoint( -baseOffset, 0 );
attachmentRect |= markRect;
@@ -864,7 +864,7 @@ static TQChar::Direction basicDirection(const TQString &str, int start = 0)
{
int len = str.length();
int pos = start > len ? len -1 : start;
- const TQChar *uc = str.unicode() + pos;
+ const TQChar *uc = str.tqunicode() + pos;
while( pos < len ) {
switch( uc->direction() )
{
@@ -913,7 +913,7 @@ TQPtrList<KoTextRun> *KoComplexText::bidiReorderLine( KoBidiControl *control, co
}
}
- KoBidiStatus status = control->status;
+ KoBiditqStatus status = control->status;
TQChar::Direction dir = TQChar::DirON;
int sor = start;
@@ -1406,8 +1406,8 @@ TQString KoComplexText::bidiReorderString( const TQString &str, TQChar::Directio
int len = str.length();
TQString visual;
visual.setUnicode( 0, len );
- TQChar *vch = (TQChar *)visual.unicode();
- const TQChar *ch = str.unicode();
+ TQChar *vch = (TQChar *)visual.tqunicode();
+ const TQChar *ch = str.tqunicode();
while( lineStart < len ) {
lineEnd = lineStart;
while( *ch != '\n' && lineEnd < len ) {
diff --git a/lib/kotext/KoComplexText.h b/lib/kotext/KoComplexText.h
index 8a22d152..72abfbed 100644
--- a/lib/kotext/KoComplexText.h
+++ b/lib/kotext/KoComplexText.h
@@ -62,8 +62,8 @@
#ifndef TQT_NO_COMPLEXTEXT
// bidi helper classes. Internal to TQt
-struct TQ_EXPORT KoBidiStatus {
- KoBidiStatus() {
+struct TQ_EXPORT KoBiditqStatus {
+ KoBiditqStatus() {
eor = TQChar::DirON;
lastStrong = TQChar::DirON;
last = TQChar:: DirON;
@@ -87,12 +87,12 @@ struct TQ_EXPORT KoBidiContext : public TQShared {
struct TQ_EXPORT KoBidiControl {
KoBidiControl() { context = 0; }
- KoBidiControl( KoBidiContext *c, KoBidiStatus s)
+ KoBidiControl( KoBidiContext *c, KoBiditqStatus s)
{ context = c; if( context ) context->ref(); status = s; }
~KoBidiControl() { if ( context && context->deref() ) delete context; }
void setContext( KoBidiContext *c ) { if ( context == c ) return; if ( context && context->deref() ) delete context; context = c; context->ref(); }
KoBidiContext *context;
- KoBidiStatus status;
+ KoBiditqStatus status;
};
struct TQ_EXPORT KoTextRun {
@@ -115,8 +115,8 @@ public:
static Shape glyphVariant( const TQString &str, int pos);
static Shape glyphVariantLogical( const TQString &str, int pos);
- static TQString shapedString( const TQString &str, int from = 0, int len = -1, TQPainter::TextDirection dir = TQPainter::Auto, const TQFontMetrics *fm = 0);
- static TQChar shapedCharacter(const TQString &str, int pos, const TQFontMetrics *fm = 0);
+ static TQString tqshapedString( const TQString &str, int from = 0, int len = -1, TQPainter::TextDirection dir = TQPainter::Auto, const TQFontMetrics *fm = 0);
+ static TQChar tqshapedCharacter(const TQString &str, int pos, const TQFontMetrics *fm = 0);
// positions non spacing marks relative to the base character at position pos.
//static TQPointArray positionMarks( TQFontPrivate *f, const TQString &str, int pos, TQRect *boundingRect = 0 );
diff --git a/lib/kotext/KoCreateStyleDia.cpp b/lib/kotext/KoCreateStyleDia.cpp
index fb7d9b9d..e4b9f339 100644
--- a/lib/kotext/KoCreateStyleDia.cpp
+++ b/lib/kotext/KoCreateStyleDia.cpp
@@ -33,7 +33,7 @@ KoCreateStyleDia::KoCreateStyleDia( const TQStringList & _list, TQWidget *parent
TQVBox *page = makeVBoxMainWidget();
new TQLabel(i18n("Please specify a new style name:"), page);
m_styleName = new TQLineEdit( page );
- m_styleName->setMinimumWidth( m_styleName->sizeHint().width() * 3 );
+ m_styleName->setMinimumWidth( m_styleName->tqsizeHint().width() * 3 );
connect( m_styleName, TQT_SIGNAL(textChanged ( const TQString & )), this, TQT_SLOT(nameChanged( const TQString &)));
m_styleName->setFocus();
diff --git a/lib/kotext/KoCustomVariablesDia.cpp b/lib/kotext/KoCustomVariablesDia.cpp
index f3b84121..aa74d133 100644
--- a/lib/kotext/KoCustomVariablesDia.cpp
+++ b/lib/kotext/KoCustomVariablesDia.cpp
@@ -67,7 +67,7 @@ void KoVariableNameDia::init()
row1->setSpacing( KDialog::spacingHint() );
TQLabel *l = new TQLabel( i18n( "Name:" ), row1 );
- l->setFixedSize( l->sizeHint() );
+ l->setFixedSize( l->tqsizeHint() );
names = new TQComboBox( TRUE, row1 );
names->setFocus();
@@ -108,9 +108,9 @@ void KoCustomVariablesListItem::setup()
{
TQListViewItem::setup();
setHeight( TQMAX( listView()->fontMetrics().height(),
- editWidget->sizeHint().height() ) );
- //if ( listView()->columnWidth( 1 ) < editWidget->sizeHint().width() )
- // listView()->setColumnWidth( 1, editWidget->sizeHint().width() );
+ editWidget->tqsizeHint().height() ) );
+ //if ( listView()->columnWidth( 1 ) < editWidget->tqsizeHint().width() )
+ // listView()->setColumnWidth( 1, editWidget->tqsizeHint().width() );
}
void KoCustomVariablesListItem::update()
@@ -297,13 +297,13 @@ void KoCustomVarDialog::init()
TQHBox *row1 = new TQHBox( back );
row1->setSpacing( KDialog::spacingHint() );
TQLabel *ln = new TQLabel( i18n( "Name:" ), row1 );
- ln->setFixedSize( ln->sizeHint() );
+ ln->setFixedSize( ln->tqsizeHint() );
m_name = new KLineEdit( row1 );
TQHBox *row2 = new TQHBox( back );
row2->setSpacing( KDialog::spacingHint() );
TQLabel *lv = new TQLabel( i18n( "Value:" ), row2 );
- lv->setFixedSize( lv->sizeHint() );
+ lv->setFixedSize( lv->tqsizeHint() );
m_value = new KLineEdit( row2 );
}
diff --git a/lib/kotext/KoImportStyleDia.cpp b/lib/kotext/KoImportStyleDia.cpp
index 1cab9dae..327dbe53 100644
--- a/lib/kotext/KoImportStyleDia.cpp
+++ b/lib/kotext/KoImportStyleDia.cpp
@@ -19,7 +19,7 @@
#include <klocale.h>
#include <tqvbox.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlineedit.h>
#include <tqpushbutton.h>
#include <tqlistbox.h>
@@ -98,7 +98,7 @@ TQString KoImportStyleDia::generateStyleName( const TQString & templateName ) co
int num = 1;
bool exists;
do {
- name = templateName.arg( num );
+ name = templateName.tqarg( num );
exists = m_currentCollection->findStyle( name ) != 0;
++num;
} while ( exists );
@@ -111,7 +111,7 @@ TQString KoImportStyleDia::generateStyleDisplayName( const TQString & templateNa
int num = 1;
bool exists;
do {
- name = templateName.arg( num );
+ name = templateName.tqarg( num );
exists = m_currentCollection->findStyleByDisplayName( name ) != 0;
++num;
} while ( exists );
diff --git a/lib/kotext/KoParagCounter.cpp b/lib/kotext/KoParagCounter.cpp
index 9810e8b0..6126d6c5 100644
--- a/lib/kotext/KoParagCounter.cpp
+++ b/lib/kotext/KoParagCounter.cpp
@@ -43,7 +43,7 @@ KoParagCounter::KoParagCounter()
m_customBulletChar = TQChar( '-' );
m_customBulletFont = TQString();
m_align = TQt::AlignAuto;
- invalidate();
+ tqinvalidate();
}
bool KoParagCounter::operator==( const KoParagCounter & c2 ) const
@@ -83,7 +83,7 @@ unsigned int KoParagCounter::depth() const
return m_depth;
}
-void KoParagCounter::invalidate()
+void KoParagCounter::tqinvalidate()
{
m_cache.number = -1;
m_cache.text = TQString();
@@ -144,7 +144,7 @@ void KoParagCounter::load( TQDomElement & element )
m_align = element.attribute("align", "0").toInt(); //AlignAuto as defeult
TQString restart = element.attribute("restart");
m_restartCounter = (restart == "true") || (restart == "1");
- invalidate();
+ tqinvalidate();
}
static int importCounterType( TQChar numFormat )
@@ -216,7 +216,7 @@ void KoParagCounter::loadOasisListStyle( const TQDomElement& listStyle,
TQString bulletChar = listStyle.attributeNS( KoXmlNS::text, "bullet-char", TQString() );
if ( !bulletChar.isEmpty() ) {
// Reverse engineering, I found those codes:
- switch( bulletChar[0].unicode() ) {
+ switch( bulletChar[0].tqunicode() ) {
case 0x2022: // small disc -> circle
m_style = STYLE_CIRCLEBULLET;
break;
@@ -235,7 +235,7 @@ void KoParagCounter::loadOasisListStyle( const TQDomElement& listStyle,
m_style = STYLE_BOXBULLET;
break;
default:
- kdDebug() << "Unhandled bullet code 0x" << TQString::number( (uint)m_customBulletChar.unicode(), 16 ) << endl;
+ kdDebug() << "Unhandled bullet code 0x" << TQString::number( (uint)m_customBulletChar.tqunicode(), 16 ) << endl;
// fallback
case 0x2794: // arrow
case 0x2717: // cross
@@ -259,7 +259,7 @@ void KoParagCounter::loadOasisListStyle( const TQDomElement& listStyle,
m_style = STYLE_DISCBULLET;
}
}
- invalidate();
+ tqinvalidate();
}
void KoParagCounter::saveOasis( KoGenStyle& listStyle, bool savingStyle ) const
@@ -326,7 +326,7 @@ void KoParagCounter::saveOasisListLevel( KoXmlWriter& listLevelWriter, bool incl
listLevelWriter.startElement( "style:list-level-properties" );
listLevelWriter.addAttribute( "fo:text-align", KoParagLayout::saveOasisAlignment( (TQt::AlignmentFlags)m_align ) );
// OASIS has other style properties: text:space-before (indent), text:min-label-width (TODO),
- // text:min-label-distance, style:font-name (for bullets), image size and vertical alignment.
+ // text:min-label-distance, style:font-name (for bullets), image size and vertical tqalignment.
listLevelWriter.endElement(); // style:list-level-properties
}
}
@@ -504,7 +504,7 @@ void KoParagCounter::save( TQDomElement & element )
element.setAttribute( "depth", m_depth );
if ( (Style)m_style == STYLE_CUSTOMBULLET )
{
- element.setAttribute( "bullet", m_customBulletChar.unicode() );
+ element.setAttribute( "bullet", m_customBulletChar.tqunicode() );
if ( !m_customBulletFont.isEmpty() )
element.setAttribute( "bulletfont", m_customBulletFont );
}
@@ -531,66 +531,66 @@ void KoParagCounter::save( TQDomElement & element )
void KoParagCounter::setCustom( TQString c )
{
m_custom = c;
- invalidate();
+ tqinvalidate();
}
void KoParagCounter::setCustomBulletCharacter( TQChar c )
{
m_customBulletChar = c;
- invalidate();
+ tqinvalidate();
}
void KoParagCounter::setCustomBulletFont( TQString f )
{
m_customBulletFont = f;
- invalidate();
+ tqinvalidate();
}
void KoParagCounter::setDepth( unsigned int d )
{
m_depth = d;
- invalidate();
+ tqinvalidate();
}
void KoParagCounter::setNumbering( Numbering n )
{
m_numbering = n;
- invalidate();
+ tqinvalidate();
}
void KoParagCounter::setPrefix( TQString p )
{
m_prefix = p;
- invalidate();
+ tqinvalidate();
}
void KoParagCounter::setStartNumber( int s )
{
m_startNumber = s;
- invalidate();
+ tqinvalidate();
}
void KoParagCounter::setDisplayLevels( int l )
{
m_displayLevels = l;
- invalidate();
+ tqinvalidate();
}
-void KoParagCounter::setAlignment( int a )
+void KoParagCounter::tqsetAlignment( int a )
{
m_align = a;
- invalidate();
+ tqinvalidate();
}
void KoParagCounter::setStyle( Style s )
{
m_style = s;
- invalidate();
+ tqinvalidate();
}
void KoParagCounter::setSuffix( TQString s )
{
m_suffix = s;
- invalidate();
+ tqinvalidate();
}
int KoParagCounter::startNumber() const
@@ -603,7 +603,7 @@ int KoParagCounter::displayLevels() const
return m_displayLevels;
}
-int KoParagCounter::alignment() const
+int KoParagCounter::tqalignment() const
{
return m_align;
}
@@ -626,7 +626,7 @@ bool KoParagCounter::restartCounter() const
void KoParagCounter::setRestartCounter( bool restart )
{
m_restartCounter = restart;
- invalidate();
+ tqinvalidate();
}
// Return the text for that level only
@@ -839,7 +839,7 @@ const TQCString RNThousands[] = {"", "m", "mm", "mmm"};
TQString KoParagCounter::makeRomanNumber( int n )
{
if ( n >= 0 )
- return TQString::fromLatin1( RNThousands[ ( n / 1000 ) ] +
+ return TQString::tqfromLatin1( RNThousands[ ( n / 1000 ) ] +
RNHundreds[ ( n / 100 ) % 10 ] +
RNTens[ ( n / 10 ) % 10 ] +
RNUnits[ ( n ) % 10 ] );
@@ -973,7 +973,7 @@ void KoParagCounter::printRTDebug( KoTextParag* parag )
if ( restartCounter() )
additionalInfo = "[restartCounter]";
if ( m_style == STYLE_CUSTOMBULLET )
- additionalInfo += " [customBullet: " + TQString::number( m_customBulletChar.unicode() )
+ additionalInfo += " [customBullet: " + TQString::number( m_customBulletChar.tqunicode() )
+ " in font '" + m_customBulletFont + "']";
static const char * const s_numbering[] = { "List", "Chapter", "None", "Footnote" };
kdDebug(32500) << " Counter style=" << style()
diff --git a/lib/kotext/KoParagCounter.h b/lib/kotext/KoParagCounter.h
index d45b2435..dbedb3e8 100644
--- a/lib/kotext/KoParagCounter.h
+++ b/lib/kotext/KoParagCounter.h
@@ -40,7 +40,7 @@ public:
/** Invalidate the internal cache. Use it whenever the number associated with this
* counter may have changed. */
- void invalidate();
+ void tqinvalidate();
/** Return the current value of the counter as a number.
*/
@@ -172,10 +172,10 @@ public:
TQString custom() const;
void setCustom( TQString c );
- /** Counter alignment
+ /** Counter tqalignment
*/
- int alignment() const;
- void setAlignment( int a );
+ int tqalignment() const;
+ void tqsetAlignment( int a );
/**
* Return the format to use for the counter.
diff --git a/lib/kotext/KoParagDecorationTab.ui b/lib/kotext/KoParagDecorationTab.ui
index 131e1b0c..4c93c261 100644
--- a/lib/kotext/KoParagDecorationTab.ui
+++ b/lib/kotext/KoParagDecorationTab.ui
@@ -131,7 +131,7 @@ modified in the preview.&lt;/p&gt;</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>200</width>
<height>200</height>
@@ -361,7 +361,7 @@ regardless of the style of the preceeding and subsequent paragraphs.&lt;/p&gt;</
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>250</width>
<height>21</height>
diff --git a/lib/kotext/KoParagDia.cpp b/lib/kotext/KoParagDia.cpp
index ed7700e2..2bc0262d 100644
--- a/lib/kotext/KoParagDia.cpp
+++ b/lib/kotext/KoParagDia.cpp
@@ -50,7 +50,7 @@
#include <tqvbox.h>
#include <tqhbox.h>
#include <tqtooltip.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqapplication.h>
#include <tqwidgetstack.h>
@@ -129,7 +129,7 @@ KoCounterStyleWidget::KoCounterStyleWidget( bool displayDepth, bool onlyStyleTyp
grid->addWidget( spnStart, 2, 2);
lAlignment = new TQLabel( gStyle, "lAlignment" );
- lAlignment->setText( i18n( "Counter alignment:" ) );
+ lAlignment->setText( i18n( "Counter tqalignment:" ) );
grid->addWidget( lAlignment, 2, 3 );
cbAlignment = new KComboBox( gStyle, "cbAlignment" );
@@ -205,7 +205,7 @@ void KoCounterStyleWidget::alignmentChanged(const TQString& s)
kdError()<<"Not Implemented"<<endl;
return;
}
- m_counter.setAlignment(a);
+ m_counter.tqsetAlignment(a);
emit sig_alignmentChanged(a);
}
@@ -296,11 +296,11 @@ void KoCounterStyleWidget::displayStyle( KoParagCounter::Style style )
spnStart->setValue( m_counter.startNumber() );
cbRestart->setChecked( m_counter.restartCounter() );
- if(m_counter.alignment()==TQt::AlignLeft)
+ if(m_counter.tqalignment()==TQt::AlignLeft)
cbAlignment->setCurrentText(i18n("Align Left"));
- else if(m_counter.alignment()==TQt::AlignRight)
+ else if(m_counter.tqalignment()==TQt::AlignRight)
cbAlignment->setCurrentText(i18n("Align Right"));
- else if(m_counter.alignment()==TQt::AlignAuto)
+ else if(m_counter.tqalignment()==TQt::AlignAuto)
cbAlignment->setCurrentText(i18n("Align Auto"));
else
kdError()<<"Not Implemented"<<endl;
@@ -812,14 +812,14 @@ void KoStylePreview::setCounter( const KoParagCounter & counter )
{
KoTextParag * parag = m_textdoc->firstParag();
parag->setCounter( counter );
- repaint( true );
+ tqrepaint( true );
}
void KoStylePreview::setStyle( KoParagStyle * style )
{
KoTextParag * parag = m_textdoc->firstParag();
parag->applyStyle( style );
- repaint(true);
+ tqrepaint(true);
}
void KoStylePreview::drawContents( TQPainter *painter )
@@ -830,7 +830,7 @@ void KoStylePreview::drawContents( TQPainter *painter )
TQRect whiteRect( r.x() + 10, r.y() + 10,
r.width() - 20, r.height() - 20 );
- TQColorGroup cg = TQApplication::palette().active();
+ TQColorGroup cg = TQApplication::tqpalette().active();
painter->fillRect( whiteRect, cg.brush( TQColorGroup::Base ) );
KoTextParag * parag = m_textdoc->firstParag();
@@ -839,13 +839,13 @@ void KoStylePreview::drawContents( TQPainter *painter )
{
// For centering to work, and to even get word wrapping when the thing is too big :)
m_textdoc->setWidth( widthLU );
- parag->invalidate(0);
+ parag->tqinvalidate(0);
}
parag->format();
TQRect textRect = parag->pixelRect( m_zoomHandler );
- // Center vertically, but not horizontally, to keep the parag alignment working,
+ // Center vertically, but not horizontally, to keep the parag tqalignment working,
textRect.moveTopLeft( TQPoint( whiteRect.x(),
whiteRect.y() + ( whiteRect.height() - textRect.height() ) / 2 ) );
// Move it from the left border a little
@@ -879,8 +879,8 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameW
frameWidth=9999;
} else {
length=i18n("Frame width: %1 %2")
- .arg(KoUnit::toUserStringValue(frameWidth,m_unit))
- .arg(KoUnit::unitName(m_unit));
+ .tqarg(KoUnit::toUserStringValue(frameWidth,m_unit))
+ .tqarg(KoUnit::unitName(m_unit));
frameWidth=KoUnit::toUserValue(frameWidth,m_unit);
}
@@ -890,12 +890,12 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameW
TQLabel * lLimit = new TQLabel(length , indentFrame );
if(frameWidth!=-1)
{
- lLimit->setAlignment( AlignRight );
+ lLimit->tqsetAlignment( AlignRight );
indentGrid->addWidget( lLimit, 1,0 );
}
TQLabel * lLeft = new TQLabel( i18n("&Left:"), indentFrame );
- lLeft->setAlignment( TQt::AlignVCenter | TQt::AlignRight );
+ lLeft->tqsetAlignment( TQt::AlignVCenter | TQt::AlignRight );
indentGrid->addWidget( lLeft, 1, 0 );
eLeft = new KoUnitDoubleSpinBox( indentFrame, 0, 9999, 1, 0.0, m_unit );
@@ -904,7 +904,7 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameW
connect( eLeft, TQT_SIGNAL( valueChangedPt(double ) ), this, TQT_SLOT( leftChanged( double ) ) );
TQLabel * lRight = new TQLabel( i18n("&Right:"), indentFrame );
- lRight->setAlignment( TQt::AlignVCenter | TQt::AlignRight );
+ lRight->tqsetAlignment( TQt::AlignVCenter | TQt::AlignRight );
indentGrid->addWidget( lRight, 2, 0 );
eRight = new KoUnitDoubleSpinBox( indentFrame, 0, 9999, 1, 0.0, m_unit );
@@ -913,7 +913,7 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameW
connect( eRight, TQT_SIGNAL( valueChangedPt( double ) ), this, TQT_SLOT( rightChanged( double ) ) );
TQLabel * lFirstLine = new TQLabel( i18n("&First line:"), indentFrame );
- lFirstLine->setAlignment( TQt::AlignVCenter | TQt::AlignRight );
+ lFirstLine->tqsetAlignment( TQt::AlignVCenter | TQt::AlignRight );
indentGrid->addWidget( lFirstLine, 3, 0 );
eFirstLine = new KoUnitDoubleSpinBox( indentFrame, -9999, 9999, 1, 0.0, m_unit );
@@ -938,9 +938,9 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameW
cSpacing->insertItem( i18n( "Line spacing value", "1.5 Lines" ) );
cSpacing->insertItem( i18n( "Line spacing value", "Double" ) );
cSpacing->insertItem( i18n( "Proportional") ); // LS_MULTIPLE, called Proportional like in OO
- cSpacing->insertItem( i18n( "Line Distance (%1)" ).arg(unitName) ); // LS_CUSTOM
- cSpacing->insertItem( i18n( "At Least (%1)" ).arg(unitName) );
- cSpacing->insertItem( i18n( "Fixed (%1)").arg(unitName) ); // LS_FIXED
+ cSpacing->insertItem( i18n( "Line Distance (%1)" ).tqarg(unitName) ); // LS_CUSTOM
+ cSpacing->insertItem( i18n( "At Least (%1)" ).tqarg(unitName) );
+ cSpacing->insertItem( i18n( "Fixed (%1)").tqarg(unitName) ); // LS_FIXED
connect( cSpacing, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( spacingActivated( int ) ) );
spacingGrid->addWidget( cSpacing, 1, 0 );
@@ -974,7 +974,7 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameW
KDialog::marginHint(), KDialog::spacingHint() );
TQLabel * lBefore = new TQLabel( i18n("Before:"), pSpaceFrame );
- lBefore->setAlignment( AlignRight );
+ lBefore->tqsetAlignment( AlignRight );
pSpaceGrid->addWidget( lBefore, 1, 0 );
eBefore = new KoUnitDoubleSpinBox( pSpaceFrame, 0, 9999, CM_TO_POINT(1), 0.0, m_unit );
@@ -983,7 +983,7 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameW
pSpaceGrid->addWidget( eBefore, 1, 1 );
TQLabel * lAfter = new TQLabel( i18n("After:"), pSpaceFrame );
- lAfter->setAlignment( AlignRight );
+ lAfter->tqsetAlignment( AlignRight );
pSpaceGrid->addWidget( lAfter, 2, 0 );
eAfter = new KoUnitDoubleSpinBox( pSpaceFrame, 0, 9999, 1, 0.0, m_unit );
@@ -1273,7 +1273,7 @@ int KoParagAlignWidget::pageBreaking() const
void KoParagAlignWidget::display( const KoParagLayout & lay )
{
- int align = lay.alignment;
+ int align = lay.tqalignment;
prev2->setAlign( align );
clearAligns();
@@ -1302,7 +1302,7 @@ void KoParagAlignWidget::display( const KoParagLayout & lay )
void KoParagAlignWidget::save( KoParagLayout & lay )
{
- lay.alignment = align();
+ lay.tqalignment = align();
lay.pageBreaking = pageBreaking();
}
@@ -1605,10 +1605,10 @@ KoParagCounterWidget::KoParagCounterWidget( bool disableAll, TQWidget * parent,
gNumbering = new TQButtonGroup( this, "numberingGroup" );
gNumbering->setTitle( i18n( "Numbering" ) );
gNumbering->setColumnLayout(0, Qt::Vertical );
- gNumbering->layout()->setSpacing( 0 );
- gNumbering->layout()->setMargin( 0 );
- TQHBoxLayout *numberingGroupLayout = new TQHBoxLayout( gNumbering->layout() );
- numberingGroupLayout->setAlignment( TQt::AlignTop );
+ gNumbering->tqlayout()->setSpacing( 0 );
+ gNumbering->tqlayout()->setMargin( 0 );
+ TQHBoxLayout *numberingGroupLayout = new TQHBoxLayout( gNumbering->tqlayout() );
+ numberingGroupLayout->tqsetAlignment( TQt::AlignTop );
numberingGroupLayout->setSpacing( KDialog::spacingHint() );
numberingGroupLayout->setMargin( KDialog::marginHint() );
@@ -1705,7 +1705,7 @@ void KoParagCounterWidget::display( const KoParagLayout & lay ) {
void KoParagCounterWidget::updatePreview() {
preview->setCounter(m_counter);
- preview->repaint(true);
+ preview->tqrepaint(true);
}
void KoParagCounterWidget::save( KoParagLayout & lay ) {
@@ -1746,8 +1746,8 @@ KoParagTabulatorsWidget::KoParagTabulatorsWidget( KoUnit::Unit unit, double fram
} else {
m_toplimit=frameWidth;
length=i18n("Frame width: %1 %2")
- .arg(KoUnit::toUserStringValue(frameWidth,m_unit))
- .arg(KoUnit::unitName(m_unit));
+ .tqarg(KoUnit::toUserStringValue(frameWidth,m_unit))
+ .tqarg(KoUnit::unitName(m_unit));
frameWidth=KoUnit::toUserValue(frameWidth,m_unit);
}
TQVBoxLayout* Form1Layout = new TQVBoxLayout( this );
@@ -1770,10 +1770,10 @@ KoParagTabulatorsWidget::KoParagTabulatorsWidget( KoUnit::Unit unit, double fram
gPosition = new TQGroupBox( this, "gPosition" );
gPosition->setTitle( i18n( "Po&sition" ) );
gPosition->setColumnLayout(0, Qt::Vertical );
- gPosition->layout()->setSpacing( 0 );
- gPosition->layout()->setMargin( 0 );
- TQVBoxLayout* GroupBox2Layout = new TQVBoxLayout( gPosition->layout() );
- GroupBox2Layout->setAlignment( TQt::AlignTop );
+ gPosition->tqlayout()->setSpacing( 0 );
+ gPosition->tqlayout()->setMargin( 0 );
+ TQVBoxLayout* GroupBox2Layout = new TQVBoxLayout( gPosition->tqlayout() );
+ GroupBox2Layout->tqsetAlignment( TQt::AlignTop );
GroupBox2Layout->setSpacing( KDialog::spacingHint() );
GroupBox2Layout->setMargin( KDialog::marginHint() );
@@ -1798,10 +1798,10 @@ KoParagTabulatorsWidget::KoParagTabulatorsWidget( KoUnit::Unit unit, double fram
bgAlign = new TQButtonGroup( this );
bgAlign->setTitle( i18n( "Alignment" ) );
bgAlign->setColumnLayout(0, Qt::Vertical );
- bgAlign->layout()->setSpacing( 0 );
- bgAlign->layout()->setMargin( 0 );
- TQVBoxLayout* ButtonGroup1Layout = new TQVBoxLayout( bgAlign->layout() );
- ButtonGroup1Layout->setAlignment( TQt::AlignTop );
+ bgAlign->tqlayout()->setSpacing( 0 );
+ bgAlign->tqlayout()->setMargin( 0 );
+ TQVBoxLayout* ButtonGroup1Layout = new TQVBoxLayout( bgAlign->tqlayout() );
+ ButtonGroup1Layout->tqsetAlignment( TQt::AlignTop );
ButtonGroup1Layout->setSpacing( KDialog::spacingHint() );
ButtonGroup1Layout->setMargin( KDialog::marginHint() );
@@ -1837,7 +1837,7 @@ KoParagTabulatorsWidget::KoParagTabulatorsWidget( KoUnit::Unit unit, double fram
gTabLeader = new TQGroupBox( this, "gTabLeader" );
gTabLeader->setTitle( i18n( "Tab Leader" ) );
TQVBoxLayout* GroupBox5Layout = new TQVBoxLayout( gTabLeader );
- GroupBox5Layout->setAlignment( TQt::AlignTop );
+ GroupBox5Layout->tqsetAlignment( TQt::AlignTop );
GroupBox5Layout->setSpacing( KDialog::spacingHint() );
GroupBox5Layout->setMargin( KDialog::marginHint() );
GroupBox5Layout->addSpacing( fontMetrics().height() / 2 ); // groupbox title
@@ -1850,7 +1850,7 @@ KoParagTabulatorsWidget::KoParagTabulatorsWidget( KoUnit::Unit unit, double fram
TQLabel* TextLabel2 = new TQLabel( gTabLeader);
TextLabel2->setText( i18n( "&Filling:" ) );
- TextLabel2->setAlignment( AlignRight );
+ TextLabel2->tqsetAlignment( AlignRight );
fillingGrid->addWidget( TextLabel2, 0, 0 );
cFilling = new TQComboBox( FALSE, gTabLeader);
@@ -1864,7 +1864,7 @@ KoParagTabulatorsWidget::KoParagTabulatorsWidget( KoUnit::Unit unit, double fram
fillingGrid->addWidget( cFilling, 0, 1 );
TQLabel * TextLabel3 = new TQLabel( i18n("&Width:"), gTabLeader );
- TextLabel3->setAlignment( AlignRight );
+ TextLabel3->tqsetAlignment( AlignRight );
fillingGrid->addWidget( TextLabel3, 1, 0 );
eWidth = new KoUnitDoubleSpinBox( gTabLeader );
@@ -2159,31 +2159,31 @@ KoParagDia::KoParagDia( TQWidget* parent, const char* name,
{
TQVBox * page = addVBoxPage( i18n( "Indent && S&pacing" ) );
m_indentSpacingWidget = new KoIndentSpacingWidget( unit,_frameWidth,page, "indent-spacing" );
- m_indentSpacingWidget->layout()->setMargin(0);
+ m_indentSpacingWidget->tqlayout()->setMargin(0);
}
if ( m_flags & PD_ALIGN )
{
TQVBox * page = addVBoxPage( i18n( "General &Layout" ) );
m_alignWidget = new KoParagAlignWidget( breakLine, page, "align" );
- m_alignWidget->layout()->setMargin(0);
+ m_alignWidget->tqlayout()->setMargin(0);
}
if ( m_flags & PD_DECORATION )
{
TQVBox * page = addVBoxPage( i18n( "D&ecorations" ) );
m_decorationsWidget = new KoParagDecorationWidget( page, "decorations");
- m_decorationsWidget->layout()->setMargin(0);
+ m_decorationsWidget->tqlayout()->setMargin(0);
}
if ( m_flags & PD_NUMBERING )
{
TQVBox * page = addVBoxPage( i18n( "B&ullets/Numbers" ) );
m_counterWidget = new KoParagCounterWidget( disableAll , page, "numbers" );
- m_counterWidget->layout()->setMargin(0);
+ m_counterWidget->tqlayout()->setMargin(0);
}
if ( m_flags & PD_TABS )
{
TQVBox * page = addVBoxPage( i18n( "&Tabulators" ) );
m_tabulatorsWidget = new KoParagTabulatorsWidget( unit,_frameWidth, page, "tabs");
- m_tabulatorsWidget->layout()->setMargin(0);
+ m_tabulatorsWidget->tqlayout()->setMargin(0);
}
connect( this, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT(slotReset()));
@@ -2272,7 +2272,7 @@ KoParagLayout KoParagDia::paragLayout() const
newLayout.setLineSpacingValue( lineSpacing() );
newLayout.lineSpacingType = lineSpacingType();
newLayout.setTabList( tabListTabulator() );
- newLayout.alignment = align();
+ newLayout.tqalignment = align();
newLayout.margins[TQStyleSheetItem::MarginFirstLine] = firstLineIndent();
newLayout.margins[TQStyleSheetItem::MarginLeft] = leftIndent();
newLayout.margins[TQStyleSheetItem::MarginRight] = rightIndent();
diff --git a/lib/kotext/KoParagDia.h b/lib/kotext/KoParagDia.h
index 2f3cc751..c4bbed92 100644
--- a/lib/kotext/KoParagDia.h
+++ b/lib/kotext/KoParagDia.h
@@ -24,7 +24,7 @@
#include <kdialogbase.h>
#include <tqstringlist.h>
#include <tqptrlist.h>
-#include <stylesheet.h>
+#include <tqstylesheet.h>
#include <KoRuler.h>
#include <KoUnit.h>
#include <KoUnitWidgets.h>
@@ -95,7 +95,7 @@ public:
/** return the (i18n-ed) name of the tab */
virtual TQString tabName() = 0;
- // Return the part of the paraglayout that this widget cares about
+ // Return the part of the paragtqlayout that this widget cares about
int flag() const { return m_flag; }
private:
@@ -147,7 +147,7 @@ private:
};
/**
- * The widget for editing paragraph alignment (tab 2)
+ * The widget for editing paragraph tqalignment (tab 2)
*/
class KOTEXT_EXPORT KoParagAlignWidget : public KoParagLayoutWidget
{
@@ -369,7 +369,7 @@ protected slots:
void restartChanged(bool b) {m_counter.setRestartCounter(b); }
void depthChanged(int i) {m_counter.setDepth(i); updatePreview();}
void displayLevelsChanged(int i) {m_counter.setDisplayLevels(i); updatePreview();}
- void alignmentChanged(int i) {m_counter.setAlignment(i); updatePreview();}
+ void alignmentChanged(int i) {m_counter.tqsetAlignment(i); updatePreview();}
void slotChangeCustomBullet( const TQString & f, TQChar c);
void styleChanged (KoParagCounter::Style st );
@@ -549,7 +549,7 @@ public:
TQColor backgroundColor() const { return m_decorationsWidget->backgroundColor(); }
// Support for "what has changed?"
- bool isAlignChanged() const {return oldLayout.alignment!=align();}
+ bool isAlignChanged() const {return oldLayout.tqalignment!=align();}
bool isLineSpacingChanged() const {
return (oldLayout.lineSpacingValue() !=lineSpacing() ||
oldLayout.lineSpacingType != lineSpacingType());
diff --git a/lib/kotext/KoParagDia_p.h b/lib/kotext/KoParagDia_p.h
index 48f77ea1..a1ca5737 100644
--- a/lib/kotext/KoParagDia_p.h
+++ b/lib/kotext/KoParagDia_p.h
@@ -66,17 +66,17 @@ public:
~KPagePreview() {}
void setLeft( double _left )
- { left = _left; repaint( false ); }
+ { left = _left; tqrepaint( false ); }
void setRight( double _right )
- { right = _right; repaint( false ); }
+ { right = _right; tqrepaint( false ); }
void setFirst( double _first )
- { first = _first; repaint( false ); }
+ { first = _first; tqrepaint( false ); }
void setSpacing( double _spacing )
- { spacing = _spacing; repaint( false ); }
+ { spacing = _spacing; tqrepaint( false ); }
void setBefore( double _before )
- { before = _before; repaint( false ); }
+ { before = _before; tqrepaint( false ); }
void setAfter( double _after )
- { after = _after; repaint( false ); }
+ { after = _after; tqrepaint( false ); }
protected:
void drawContents( TQPainter* );
@@ -100,7 +100,7 @@ public:
~KPagePreview2() {}
void setAlign( int _align )
- { align = _align; repaint( false ); }
+ { align = _align; tqrepaint( false ); }
protected:
void drawContents( TQPainter* );
@@ -124,16 +124,16 @@ public:
KoBorder leftBorder()const { return m_leftBorder; }
void setLeftBorder( const KoBorder& _leftBorder )
- { m_leftBorder = _leftBorder; repaint( true ); }
+ { m_leftBorder = _leftBorder; tqrepaint( true ); }
KoBorder rightBorder() const { return m_rightBorder; }
void setRightBorder( const KoBorder& _rightBorder )
- { m_rightBorder = _rightBorder; repaint( true ); }
+ { m_rightBorder = _rightBorder; tqrepaint( true ); }
KoBorder topBorder()const { return m_topBorder; }
void setTopBorder( const KoBorder& _topBorder )
- { m_topBorder = _topBorder; repaint( true ); }
+ { m_topBorder = _topBorder; tqrepaint( true ); }
KoBorder bottomBorder()const { return m_bottomBorder; }
void setBottomBorder( const KoBorder& _bottomBorder )
- { m_bottomBorder = _bottomBorder; repaint( true ); }
+ { m_bottomBorder = _bottomBorder; tqrepaint( true ); }
void setBorder( KoBorder::BorderType which, const KoBorder& border);
diff --git a/lib/kotext/KoParagLayout.cpp b/lib/kotext/KoParagLayout.cpp
index 37fbbfb5..fd1a9453 100644
--- a/lib/kotext/KoParagLayout.cpp
+++ b/lib/kotext/KoParagLayout.cpp
@@ -44,72 +44,72 @@ KoParagLayout::KoParagLayout()
initialise();
}
-void KoParagLayout::operator=( const KoParagLayout &layout )
+void KoParagLayout::operator=( const KoParagLayout &tqlayout )
{
- alignment = layout.alignment;
+ tqalignment = tqlayout.tqalignment;
for ( int i = 0 ; i < 5 ; ++i )
- margins[i] = layout.margins[i];
- pageBreaking = layout.pageBreaking;
- leftBorder = layout.leftBorder;
- rightBorder = layout.rightBorder;
- topBorder = layout.topBorder;
- bottomBorder = layout.bottomBorder;
- joinBorder = layout.joinBorder;
- backgroundColor = layout.backgroundColor;
- if ( layout.counter )
- counter = new KoParagCounter( *layout.counter );
+ margins[i] = tqlayout.margins[i];
+ pageBreaking = tqlayout.pageBreaking;
+ leftBorder = tqlayout.leftBorder;
+ rightBorder = tqlayout.rightBorder;
+ topBorder = tqlayout.topBorder;
+ bottomBorder = tqlayout.bottomBorder;
+ joinBorder = tqlayout.joinBorder;
+ backgroundColor = tqlayout.backgroundColor;
+ if ( tqlayout.counter )
+ counter = new KoParagCounter( *tqlayout.counter );
else
counter = 0L;
- lineSpacing = layout.lineSpacing;
- lineSpacingType = layout.lineSpacingType;
- style = layout.style;
- direction = layout.direction;
- setTabList( layout.tabList() );
+ lineSpacing = tqlayout.lineSpacing;
+ lineSpacingType = tqlayout.lineSpacingType;
+ style = tqlayout.style;
+ direction = tqlayout.direction;
+ setTabList( tqlayout.tabList() );
}
-int KoParagLayout::compare( const KoParagLayout & layout ) const
+int KoParagLayout::compare( const KoParagLayout & tqlayout ) const
{
int flags = 0;
- if ( alignment != layout.alignment )
+ if ( tqalignment != tqlayout.tqalignment )
flags |= Alignment;
for ( int i = 0 ; i < 5 ; ++i )
- if ( margins[i] != layout.margins[i] )
+ if ( margins[i] != tqlayout.margins[i] )
{
flags |= Margins;
break;
}
- if ( pageBreaking != layout.pageBreaking )
+ if ( pageBreaking != tqlayout.pageBreaking )
flags |= PageBreaking;
- if ( leftBorder != layout.leftBorder
- || rightBorder != layout.rightBorder
- || topBorder != layout.topBorder
- || bottomBorder != layout.bottomBorder
- || joinBorder != layout.joinBorder )
+ if ( leftBorder != tqlayout.leftBorder
+ || rightBorder != tqlayout.rightBorder
+ || topBorder != tqlayout.topBorder
+ || bottomBorder != tqlayout.bottomBorder
+ || joinBorder != tqlayout.joinBorder )
flags |= Borders;
- if ( layout.counter )
+ if ( tqlayout.counter )
{
if ( counter )
{
- if ( ! ( *layout.counter == *counter ) )
+ if ( ! ( *tqlayout.counter == *counter ) )
flags |= BulletNumber;
} else
- if ( layout.counter->numbering() != KoParagCounter::NUM_NONE )
+ if ( tqlayout.counter->numbering() != KoParagCounter::NUM_NONE )
flags |= BulletNumber;
}
else
if ( counter && counter->numbering() != KoParagCounter::NUM_NONE )
flags |= BulletNumber;
- if ( lineSpacing != layout.lineSpacing
- || lineSpacingType != layout.lineSpacingType )
+ if ( lineSpacing != tqlayout.lineSpacing
+ || lineSpacingType != tqlayout.lineSpacingType )
flags |= LineSpacing;
- //if ( style != layout.style )
+ //if ( style != tqlayout.style )
// flags |= Style;
- if ( m_tabList != layout.m_tabList )
+ if ( m_tabList != tqlayout.m_tabList )
flags |= Tabulator;
- if ( backgroundColor != layout.backgroundColor)
+ if ( backgroundColor != tqlayout.backgroundColor)
flags |= BackgroundColor;
// This method is used for the GUI stuff only, so we don't have a flag
@@ -119,7 +119,7 @@ int KoParagLayout::compare( const KoParagLayout & layout ) const
void KoParagLayout::initialise()
{
- alignment = TQt::AlignAuto;
+ tqalignment = TQt::AlignAuto;
for ( int i = 0 ; i < 5 ; ++i ) // use memset ?
margins[i] = 0;
lineSpacingType = LS_SINGLE;
@@ -141,13 +141,13 @@ KoParagLayout::~KoParagLayout()
delete counter;
}
-void KoParagLayout::loadParagLayout( KoParagLayout& layout, const TQDomElement& parentElem, int docVersion )
+void KoParagLayout::loadParagLayout( KoParagLayout& tqlayout, const TQDomElement& parentElem, int docVersion )
{
- // layout is an input and output parameter
+ // tqlayout is an input and output parameter
// It can have been initialized already, e.g. by copying from a style
// (we don't do that anymore though).
- // Load the paragraph tabs - we load into a clean list, not mixing with those already in "layout"
+ // Load the paragraph tabs - we load into a clean list, not mixing with those already in "tqlayout"
// We can't apply the 'default comes from the style' in this case, because
// there is no way to differentiate between "I want no tabs in the parag"
// and "use default from style".
@@ -171,15 +171,15 @@ void KoParagLayout::loadParagLayout( KoParagLayout& layout, const TQDomElement&
}
}
qHeapSort( tabList );
- layout.setTabList( tabList );
- layout.alignment = TQt::AlignAuto;
- element = parentElem.namedItem( "FLOW" ).toElement(); // Flow is what is now called alignment internally
+ tqlayout.setTabList( tabList );
+ tqlayout.tqalignment = TQt::AlignAuto;
+ element = parentElem.namedItem( "FLOW" ).toElement(); // Flow is what is now called tqalignment internally
if ( !element.isNull() )
{
TQString flow = element.attribute( "align" ); // KWord-1.0 DTD
if ( !flow.isEmpty() )
{
- layout.alignment = flow=="right" ? TQt::AlignRight :
+ tqlayout.tqalignment = flow=="right" ? TQt::AlignRight :
flow=="center" ? TQt::AlignHCenter :
flow=="justify" ? TQt::AlignJustify :
flow=="left" ? TQt::AlignLeft : TQt::AlignAuto;
@@ -187,9 +187,9 @@ void KoParagLayout::loadParagLayout( KoParagLayout& layout, const TQDomElement&
TQString dir = element.attribute( "dir" ); // KWord-1.2
if ( !dir.isEmpty() ) {
if ( dir == "L" )
- layout.direction = TQChar::DirL;
+ tqlayout.direction = TQChar::DirL;
else if ( dir == "R" )
- layout.direction = TQChar::DirR;
+ tqlayout.direction = TQChar::DirR;
else
kdWarning() << "Unexpected value for paragraph direction: " << dir << endl;
}
@@ -197,7 +197,7 @@ void KoParagLayout::loadParagLayout( KoParagLayout& layout, const TQDomElement&
flow = element.attribute( "value" ); // KWord-0.8
static const int flow2align[] = { TQt::AlignAuto, TQt::AlignRight, TQt::AlignHCenter, TQt::AlignJustify };
if ( !flow.isEmpty() && flow.toInt() < 4 )
- layout.alignment = flow2align[flow.toInt()];
+ tqlayout.tqalignment = flow2align[flow.toInt()];
}
}
@@ -205,34 +205,34 @@ void KoParagLayout::loadParagLayout( KoParagLayout& layout, const TQDomElement&
{
element = parentElem.namedItem( "OHEAD" ).toElement(); // used by KWord-0.8
if ( !element.isNull() )
- layout.margins[TQStyleSheetItem::MarginTop] = getAttribute( element, "pt", 0.0 );
+ tqlayout.margins[TQStyleSheetItem::MarginTop] = getAttribute( element, "pt", 0.0 );
element = parentElem.namedItem( "OFOOT" ).toElement(); // used by KWord-0.8
if ( !element.isNull() )
- layout.margins[TQStyleSheetItem::MarginBottom] = getAttribute( element, "pt", 0.0 );
+ tqlayout.margins[TQStyleSheetItem::MarginBottom] = getAttribute( element, "pt", 0.0 );
element = parentElem.namedItem( "IFIRST" ).toElement(); // used by KWord-0.8
if ( !element.isNull() )
- layout.margins[TQStyleSheetItem::MarginFirstLine] = getAttribute( element, "pt", 0.0 );
+ tqlayout.margins[TQStyleSheetItem::MarginFirstLine] = getAttribute( element, "pt", 0.0 );
element = parentElem.namedItem( "ILEFT" ).toElement(); // used by KWord-0.8
if ( !element.isNull() )
- layout.margins[TQStyleSheetItem::MarginLeft] = getAttribute( element, "pt", 0.0 );
+ tqlayout.margins[TQStyleSheetItem::MarginLeft] = getAttribute( element, "pt", 0.0 );
}
// KWord-1.0 DTD
element = parentElem.namedItem( "INDENTS" ).toElement();
if ( !element.isNull() )
{
- layout.margins[TQStyleSheetItem::MarginFirstLine] = getAttribute( element, "first", 0.0 );
- layout.margins[TQStyleSheetItem::MarginLeft] = getAttribute( element, "left", 0.0 );
- layout.margins[TQStyleSheetItem::MarginRight] = getAttribute( element, "right", 0.0 );
+ tqlayout.margins[TQStyleSheetItem::MarginFirstLine] = getAttribute( element, "first", 0.0 );
+ tqlayout.margins[TQStyleSheetItem::MarginLeft] = getAttribute( element, "left", 0.0 );
+ tqlayout.margins[TQStyleSheetItem::MarginRight] = getAttribute( element, "right", 0.0 );
}
element = parentElem.namedItem( "OFFSETS" ).toElement();
if ( !element.isNull() )
{
- layout.margins[TQStyleSheetItem::MarginTop] = getAttribute( element, "before", 0.0 );
- layout.margins[TQStyleSheetItem::MarginBottom] = getAttribute( element, "after", 0.0 );
+ tqlayout.margins[TQStyleSheetItem::MarginTop] = getAttribute( element, "before", 0.0 );
+ tqlayout.margins[TQStyleSheetItem::MarginBottom] = getAttribute( element, "after", 0.0 );
}
if ( docVersion < 2 )
@@ -240,8 +240,8 @@ void KoParagLayout::loadParagLayout( KoParagLayout& layout, const TQDomElement&
element = parentElem.namedItem( "LINESPACE" ).toElement(); // used by KWord-0.8
if ( !element.isNull() )
{
- layout.lineSpacingType = KoParagLayout::LS_CUSTOM;
- layout.lineSpacing = getAttribute( element, "pt", 0.0 );
+ tqlayout.lineSpacingType = KoParagLayout::LS_CUSTOM;
+ tqlayout.lineSpacing = getAttribute( element, "pt", 0.0 );
}
}
@@ -254,18 +254,18 @@ void KoParagLayout::loadParagLayout( KoParagLayout& layout, const TQDomElement&
TQString value = element.attribute( "value" );
if ( value == "oneandhalf" )
{
- layout.lineSpacingType = KoParagLayout::LS_ONEANDHALF;
- layout.lineSpacing = 0;
+ tqlayout.lineSpacingType = KoParagLayout::LS_ONEANDHALF;
+ tqlayout.lineSpacing = 0;
}
else if ( value == "double" )
{
- layout.lineSpacingType = KoParagLayout::LS_DOUBLE;
- layout.lineSpacing = 0;
+ tqlayout.lineSpacingType = KoParagLayout::LS_DOUBLE;
+ tqlayout.lineSpacing = 0;
}
else
{
- layout.lineSpacingType = KoParagLayout::LS_CUSTOM;
- layout.lineSpacing = value.toDouble();
+ tqlayout.lineSpacingType = KoParagLayout::LS_CUSTOM;
+ tqlayout.lineSpacing = value.toDouble();
}
}
else
@@ -273,36 +273,36 @@ void KoParagLayout::loadParagLayout( KoParagLayout& layout, const TQDomElement&
TQString type = element.attribute( "type" );
if ( type == "oneandhalf" )
{
- layout.lineSpacingType = KoParagLayout::LS_ONEANDHALF;
- layout.lineSpacing = 0;
+ tqlayout.lineSpacingType = KoParagLayout::LS_ONEANDHALF;
+ tqlayout.lineSpacing = 0;
}
else if ( type == "double" )
{
- layout.lineSpacingType = KoParagLayout::LS_DOUBLE;
- layout.lineSpacing = 0;
+ tqlayout.lineSpacingType = KoParagLayout::LS_DOUBLE;
+ tqlayout.lineSpacing = 0;
}
else if ( type == "custom" )
{
- layout.lineSpacingType = KoParagLayout::LS_CUSTOM;
- layout.lineSpacing = element.attribute( "spacingvalue" ).toDouble();
+ tqlayout.lineSpacingType = KoParagLayout::LS_CUSTOM;
+ tqlayout.lineSpacing = element.attribute( "spacingvalue" ).toDouble();
}
else if ( type == "atleast" )
{
- layout.lineSpacingType = KoParagLayout::LS_AT_LEAST;
- layout.lineSpacing = element.attribute( "spacingvalue" ).toDouble();
+ tqlayout.lineSpacingType = KoParagLayout::LS_AT_LEAST;
+ tqlayout.lineSpacing = element.attribute( "spacingvalue" ).toDouble();
}
else if ( type == "multiple" )
{
- layout.lineSpacingType = KoParagLayout::LS_MULTIPLE;
- layout.lineSpacing = element.attribute( "spacingvalue" ).toDouble();
+ tqlayout.lineSpacingType = KoParagLayout::LS_MULTIPLE;
+ tqlayout.lineSpacing = element.attribute( "spacingvalue" ).toDouble();
}
else if ( type == "fixed" )
{
- layout.lineSpacingType = KoParagLayout::LS_FIXED;
- layout.lineSpacing = element.attribute( "spacingvalue" ).toDouble();
+ tqlayout.lineSpacingType = KoParagLayout::LS_FIXED;
+ tqlayout.lineSpacing = element.attribute( "spacingvalue" ).toDouble();
}
else if ( type == "single" ) // not used; just in case future versions use it.
- layout.lineSpacingType = KoParagLayout::LS_SINGLE;
+ tqlayout.lineSpacingType = KoParagLayout::LS_SINGLE;
}
}
@@ -323,37 +323,37 @@ void KoParagLayout::loadParagLayout( KoParagLayout& layout, const TQDomElement&
if ( !element.isNull() )
pageBreaking |= KoParagLayout::HardFrameBreakBefore;
}
- layout.pageBreaking = pageBreaking;
+ tqlayout.pageBreaking = pageBreaking;
element = parentElem.namedItem( "LEFTBORDER" ).toElement();
if ( !element.isNull() )
- layout.leftBorder = KoBorder::loadBorder( element );
+ tqlayout.leftBorder = KoBorder::loadBorder( element );
else
- layout.leftBorder.setPenWidth(0);
+ tqlayout.leftBorder.setPenWidth(0);
element = parentElem.namedItem( "RIGHTBORDER" ).toElement();
if ( !element.isNull() )
- layout.rightBorder = KoBorder::loadBorder( element );
+ tqlayout.rightBorder = KoBorder::loadBorder( element );
else
- layout.rightBorder.setPenWidth(0);
+ tqlayout.rightBorder.setPenWidth(0);
element = parentElem.namedItem( "TOPBORDER" ).toElement();
if ( !element.isNull() )
- layout.topBorder = KoBorder::loadBorder( element );
+ tqlayout.topBorder = KoBorder::loadBorder( element );
else
- layout.topBorder.setPenWidth(0);
+ tqlayout.topBorder.setPenWidth(0);
element = parentElem.namedItem( "BOTTOMBORDER" ).toElement();
if ( !element.isNull() )
- layout.bottomBorder = KoBorder::loadBorder( element );
+ tqlayout.bottomBorder = KoBorder::loadBorder( element );
else
- layout.bottomBorder.setPenWidth(0);
+ tqlayout.bottomBorder.setPenWidth(0);
element = parentElem.namedItem( "COUNTER" ).toElement();
if ( !element.isNull() )
{
- layout.counter = new KoParagCounter;
- layout.counter->load( element );
+ tqlayout.counter = new KoParagCounter;
+ tqlayout.counter->load( element );
}
// Compatibility with KOffice-1.2
@@ -425,38 +425,38 @@ TQt::AlignmentFlags KoParagLayout::loadOasisAlignment( const TQCString& str )
}
//static
-TQCString KoParagLayout::saveOasisAlignment( TQt::AlignmentFlags alignment )
+TQCString KoParagLayout::saveOasisAlignment( TQt::AlignmentFlags tqalignment )
{
- return alignment == TQt::AlignLeft ? "left" :
- alignment == TQt::AlignRight ? "right" :
- alignment == TQt::AlignHCenter ? "center" :
- alignment == TQt::AlignJustify ? "justify" :
+ return tqalignment == TQt::AlignLeft ? "left" :
+ tqalignment == TQt::AlignRight ? "right" :
+ tqalignment == TQt::AlignHCenter ? "center" :
+ tqalignment == TQt::AlignJustify ? "justify" :
"start"; // i.e. direction-dependent
}
-void KoParagLayout::loadOasisParagLayout( KoParagLayout& layout, KoOasisContext& context )
+void KoParagLayout::loadOasisParagLayout( KoParagLayout& tqlayout, KoOasisContext& context )
{
context.styleStack().setTypeProperties( "paragraph" );
- // layout is an input and output parameter
+ // tqlayout is an input and output parameter
// It can have been initialized already, e.g. by copying from a style
// code from OoWriterImport::writeLayout
if ( context.styleStack().hasAttributeNS( KoXmlNS::fo, "text-align" ) ) {
TQCString align = context.styleStack().attributeNS( KoXmlNS::fo, "text-align" ).latin1();
- layout.alignment = loadOasisAlignment( align );
+ tqlayout.tqalignment = loadOasisAlignment( align );
}
if ( context.styleStack().hasAttributeNS( KoXmlNS::style, "writing-mode" ) ) { // http://web4.w3.org/TR/xsl/slice7.html#writing-mode
// LTR is lr-tb. RTL is rl-tb
TQString writingMode = context.styleStack().attributeNS( KoXmlNS::style, "writing-mode" );
- layout.direction = ( writingMode=="rl-tb" || writingMode=="rl" ) ? TQChar::DirR : TQChar::DirL;
+ tqlayout.direction = ( writingMode=="rl-tb" || writingMode=="rl" ) ? TQChar::DirR : TQChar::DirL;
}
// Indentation (margins)
if ( context.styleStack().hasAttributeNS( KoXmlNS::fo, "margin-left" ) || // 3.11.19
context.styleStack().hasAttributeNS( KoXmlNS::fo, "margin-right" ) ) {
- layout.margins[TQStyleSheetItem::MarginLeft] = KoUnit::parseValue( context.styleStack().attributeNS( KoXmlNS::fo, "margin-left" ) );
- layout.margins[TQStyleSheetItem::MarginRight] = KoUnit::parseValue( context.styleStack().attributeNS( KoXmlNS::fo, "margin-right" ) );
+ tqlayout.margins[TQStyleSheetItem::MarginLeft] = KoUnit::parseValue( context.styleStack().attributeNS( KoXmlNS::fo, "margin-left" ) );
+ tqlayout.margins[TQStyleSheetItem::MarginRight] = KoUnit::parseValue( context.styleStack().attributeNS( KoXmlNS::fo, "margin-right" ) );
// *text-indent must always be bound to either margin-left or margin-right
double first = 0;
if ( context.styleStack().attributeNS( KoXmlNS::style, "auto-text-indent") == "true" ) // style:auto-text-indent takes precedence
@@ -467,14 +467,14 @@ void KoParagLayout::loadOasisParagLayout( KoParagLayout& layout, KoOasisContext&
else if ( context.styleStack().hasAttributeNS( KoXmlNS::fo, "text-indent") )
first = KoUnit::parseValue( context.styleStack().attributeNS( KoXmlNS::fo, "text-indent") );
- layout.margins[TQStyleSheetItem::MarginFirstLine] = first;
+ tqlayout.margins[TQStyleSheetItem::MarginFirstLine] = first;
}
// Offset before and after paragraph
if( context.styleStack().hasAttributeNS( KoXmlNS::fo, "margin-top") || // 3.11.22
context.styleStack().hasAttributeNS( KoXmlNS::fo, "margin-bottom")) {
- layout.margins[TQStyleSheetItem::MarginTop] = KoUnit::parseValue( context.styleStack().attributeNS( KoXmlNS::fo, "margin-top" ) );
- layout.margins[TQStyleSheetItem::MarginBottom] = KoUnit::parseValue( context.styleStack().attributeNS( KoXmlNS::fo, "margin-bottom" ) );
+ tqlayout.margins[TQStyleSheetItem::MarginTop] = KoUnit::parseValue( context.styleStack().attributeNS( KoXmlNS::fo, "margin-top" ) );
+ tqlayout.margins[TQStyleSheetItem::MarginBottom] = KoUnit::parseValue( context.styleStack().attributeNS( KoXmlNS::fo, "margin-bottom" ) );
}
// Line spacing
@@ -483,23 +483,23 @@ void KoParagLayout::loadOasisParagLayout( KoParagLayout& layout, KoOasisContext&
TQString value = context.styleStack().attributeNS( KoXmlNS::fo, "line-height" );
if ( value != "normal" ) {
if ( value == "100%" )
- layout.lineSpacingType = KoParagLayout::LS_SINGLE;
+ tqlayout.lineSpacingType = KoParagLayout::LS_SINGLE;
else if( value=="150%")
- layout.lineSpacingType = KoParagLayout::LS_ONEANDHALF;
+ tqlayout.lineSpacingType = KoParagLayout::LS_ONEANDHALF;
else if( value=="200%")
- layout.lineSpacingType = KoParagLayout::LS_DOUBLE;
+ tqlayout.lineSpacingType = KoParagLayout::LS_DOUBLE;
else if ( value.find('%') > -1 )
{
value = value.remove( '%' );
double percent = value.toDouble();
- layout.lineSpacingType = KoParagLayout::LS_MULTIPLE;
- layout.lineSpacing = percent / 100.0;
- kdDebug(33001) << "line-height =" << percent << ", " << layout.lineSpacing << ", " << percent/100 << endl;
+ tqlayout.lineSpacingType = KoParagLayout::LS_MULTIPLE;
+ tqlayout.lineSpacing = percent / 100.0;
+ kdDebug(33001) << "line-height =" << percent << ", " << tqlayout.lineSpacing << ", " << percent/100 << endl;
}
else // fixed value
{
- layout.lineSpacingType = KoParagLayout::LS_FIXED;
- layout.lineSpacing = KoUnit::parseValue( value );
+ tqlayout.lineSpacingType = KoParagLayout::LS_FIXED;
+ tqlayout.lineSpacing = KoUnit::parseValue( value );
}
}
}
@@ -512,8 +512,8 @@ void KoParagLayout::loadOasisParagLayout( KoParagLayout& layout, KoOasisContext&
// Did we make the wrong choice in kotext?
//kdWarning() << "Unimplemented support for style:line-height-at-least: " << value << endl;
// Well let's see if this makes a big difference.
- layout.lineSpacingType = KoParagLayout::LS_AT_LEAST;
- layout.lineSpacing = KoUnit::parseValue( value );
+ tqlayout.lineSpacingType = KoParagLayout::LS_AT_LEAST;
+ tqlayout.lineSpacing = KoUnit::parseValue( value );
}
// Line-spacing is mutually exclusive with line-height and line-height-at-least
else if ( context.styleStack().hasAttributeNS( KoXmlNS::style, "line-spacing") ) // 3.11.3
@@ -521,8 +521,8 @@ void KoParagLayout::loadOasisParagLayout( KoParagLayout& layout, KoOasisContext&
double value = KoUnit::parseValue( context.styleStack().attributeNS( KoXmlNS::style, "line-spacing" ) );
if ( value != 0.0 )
{
- layout.lineSpacingType = KoParagLayout::LS_CUSTOM;
- layout.lineSpacing = value;
+ tqlayout.lineSpacingType = KoParagLayout::LS_CUSTOM;
+ tqlayout.lineSpacing = value;
}
}
@@ -530,7 +530,7 @@ void KoParagLayout::loadOasisParagLayout( KoParagLayout& layout, KoOasisContext&
KoTabulatorList tabList;
if ( context.styleStack().hasChildNodeNS( KoXmlNS::style, "tab-stops" ) ) { // 3.11.10
TQDomElement tabStops = context.styleStack().childNodeNS( KoXmlNS::style, "tab-stops" );
- //kdDebug(30519) << k_funcinfo << tabStops.childNodes().count() << " tab stops in layout." << endl;
+ //kdDebug(30519) << k_funcinfo << tabStops.childNodes().count() << " tab stops in tqlayout." << endl;
TQDomElement tabStop;
forEachElement( tabStop, tabStops )
{
@@ -540,7 +540,7 @@ void KoParagLayout::loadOasisParagLayout( KoParagLayout& layout, KoOasisContext&
KoTabulator tab;
tab.ptPos = KoUnit::parseValue( tabStop.attributeNS( KoXmlNS::style, "position", TQString() ) );
// Tab stop positions in the XML are relative to the left-margin
- tab.ptPos += layout.margins[TQStyleSheetItem::MarginLeft];
+ tab.ptPos += tqlayout.margins[TQStyleSheetItem::MarginLeft];
if ( type == "center" )
tab.type = T_CENTER;
else if ( type == "right" )
@@ -549,7 +549,7 @@ void KoParagLayout::loadOasisParagLayout( KoParagLayout& layout, KoOasisContext&
TQString delimiterChar = tabStop.attributeNS( KoXmlNS::style, "char", TQString() ); // single character
if ( !delimiterChar.isEmpty() )
tab.alignChar = delimiterChar[0];
- tab.type = T_DEC_PNT; // "alignment on decimal point"
+ tab.type = T_DEC_PNT; // "tqalignment on decimal point"
}
else //if ( type == "left" )
tab.type = T_LEFT;
@@ -573,7 +573,7 @@ void KoParagLayout::loadOasisParagLayout( KoParagLayout& layout, KoOasisContext&
}
else
{
- // Fallback: convert leaderChar's unicode value
+ // Fallback: convert leaderChar's tqunicode value
TQString leaderChar = tabStop.attributeNS( KoXmlNS::style, "leader-text", TQString() );
if ( !leaderChar.isEmpty() )
{
@@ -594,27 +594,27 @@ void KoParagLayout::loadOasisParagLayout( KoParagLayout& layout, KoOasisContext&
} //for
}
qHeapSort( tabList );
- layout.setTabList( tabList );
+ tqlayout.setTabList( tabList );
- layout.joinBorder = !( context.styleStack().attributeNS( KoXmlNS::style, "join-border") == "false" );
+ tqlayout.joinBorder = !( context.styleStack().attributeNS( KoXmlNS::style, "join-border") == "false" );
// Borders
if ( context.styleStack().hasAttributeNS( KoXmlNS::fo, "border","left") )
- layout.leftBorder.loadFoBorder( context.styleStack().attributeNS( KoXmlNS::fo, "border","left") );
+ tqlayout.leftBorder.loadFoBorder( context.styleStack().attributeNS( KoXmlNS::fo, "border","left") );
else
- layout.leftBorder.setPenWidth(0);
+ tqlayout.leftBorder.setPenWidth(0);
if ( context.styleStack().hasAttributeNS( KoXmlNS::fo, "border","right") )
- layout.rightBorder.loadFoBorder( context.styleStack().attributeNS( KoXmlNS::fo, "border","right") );
+ tqlayout.rightBorder.loadFoBorder( context.styleStack().attributeNS( KoXmlNS::fo, "border","right") );
else
- layout.rightBorder.setPenWidth(0);
+ tqlayout.rightBorder.setPenWidth(0);
if ( context.styleStack().hasAttributeNS( KoXmlNS::fo, "border","top") )
- layout.topBorder.loadFoBorder( context.styleStack().attributeNS( KoXmlNS::fo, "border","top") );
+ tqlayout.topBorder.loadFoBorder( context.styleStack().attributeNS( KoXmlNS::fo, "border","top") );
else
- layout.topBorder.setPenWidth(0);
+ tqlayout.topBorder.setPenWidth(0);
if ( context.styleStack().hasAttributeNS( KoXmlNS::fo, "border","bottom") )
- layout.bottomBorder.loadFoBorder( context.styleStack().attributeNS( KoXmlNS::fo, "border","bottom") );
+ tqlayout.bottomBorder.loadFoBorder( context.styleStack().attributeNS( KoXmlNS::fo, "border","bottom") );
else
- layout.bottomBorder.setPenWidth(0);
+ tqlayout.bottomBorder.setPenWidth(0);
// Page breaking
@@ -647,148 +647,148 @@ void KoParagLayout::loadOasisParagLayout( KoParagLayout& layout, KoOasisContext&
pageBreaking |= KoParagLayout::KeepWithNext;
}
}
- layout.pageBreaking = pageBreaking;
+ tqlayout.pageBreaking = pageBreaking;
// Paragraph background color - fo:background-color
// The background color for parts of a paragraph that have no text underneath
if ( context.styleStack().hasAttributeNS( KoXmlNS::fo, "background-color" ) ) {
TQString bgColor = context.styleStack().attributeNS( KoXmlNS::fo, "background-color");
if (bgColor != "transparent")
- layout.backgroundColor.setNamedColor( bgColor );
+ tqlayout.backgroundColor.setNamedColor( bgColor );
}
}
-void KoParagLayout::saveParagLayout( TQDomElement & parentElem, int alignment ) const
+void KoParagLayout::saveParagLayout( TQDomElement & parentElem, int tqalignment ) const
{
- const KoParagLayout& layout = *this; // code moved from somewhere else;)
+ const KoParagLayout& tqlayout = *this; // code moved from somewhere else;)
TQDomDocument doc = parentElem.ownerDocument();
TQDomElement element = doc.createElement( "NAME" );
parentElem.appendChild( element );
- if ( layout.style )
- element.setAttribute( "value", layout.style->displayName() );
+ if ( tqlayout.style )
+ element.setAttribute( "value", tqlayout.style->displayName() );
//else
// kdWarning() << "KoParagLayout::saveParagLayout: style==0!" << endl;
element = doc.createElement( "FLOW" );
parentElem.appendChild( element );
- element.setAttribute( "align", alignment==TQt::AlignRight ? "right" :
- alignment==TQt::AlignHCenter ? "center" :
- alignment==TQt::AlignJustify ? "justify" :
- alignment==TQt::AlignAuto ? "auto" : "left" ); // Note: styles can have AlignAuto. Not paragraphs.
+ element.setAttribute( "align", tqalignment==TQt::AlignRight ? "right" :
+ tqalignment==TQt::AlignHCenter ? "center" :
+ tqalignment==TQt::AlignJustify ? "justify" :
+ tqalignment==TQt::AlignAuto ? "auto" : "left" ); // Note: styles can have AlignAuto. Not paragraphs.
- if ( static_cast<TQChar::Direction>(layout.direction) == TQChar::DirR )
+ if ( static_cast<TQChar::Direction>(tqlayout.direction) == TQChar::DirR )
element.setAttribute( "dir", "R" );
else
- if ( static_cast<TQChar::Direction>(layout.direction) == TQChar::DirL )
+ if ( static_cast<TQChar::Direction>(tqlayout.direction) == TQChar::DirL )
element.setAttribute( "dir", "L" );
- if ( layout.margins[TQStyleSheetItem::MarginFirstLine] != 0 ||
- layout.margins[TQStyleSheetItem::MarginLeft] != 0 ||
- layout.margins[TQStyleSheetItem::MarginRight] != 0 )
+ if ( tqlayout.margins[TQStyleSheetItem::MarginFirstLine] != 0 ||
+ tqlayout.margins[TQStyleSheetItem::MarginLeft] != 0 ||
+ tqlayout.margins[TQStyleSheetItem::MarginRight] != 0 )
{
element = doc.createElement( "INDENTS" );
parentElem.appendChild( element );
- if ( layout.margins[TQStyleSheetItem::MarginFirstLine] != 0 )
- element.setAttribute( "first", layout.margins[TQStyleSheetItem::MarginFirstLine] );
- if ( layout.margins[TQStyleSheetItem::MarginLeft] != 0 )
- element.setAttribute( "left", layout.margins[TQStyleSheetItem::MarginLeft] );
- if ( layout.margins[TQStyleSheetItem::MarginRight] != 0 )
- element.setAttribute( "right", layout.margins[TQStyleSheetItem::MarginRight] );
+ if ( tqlayout.margins[TQStyleSheetItem::MarginFirstLine] != 0 )
+ element.setAttribute( "first", tqlayout.margins[TQStyleSheetItem::MarginFirstLine] );
+ if ( tqlayout.margins[TQStyleSheetItem::MarginLeft] != 0 )
+ element.setAttribute( "left", tqlayout.margins[TQStyleSheetItem::MarginLeft] );
+ if ( tqlayout.margins[TQStyleSheetItem::MarginRight] != 0 )
+ element.setAttribute( "right", tqlayout.margins[TQStyleSheetItem::MarginRight] );
}
- if ( layout.margins[TQStyleSheetItem::MarginTop] != 0 ||
- layout.margins[TQStyleSheetItem::MarginBottom] != 0 )
+ if ( tqlayout.margins[TQStyleSheetItem::MarginTop] != 0 ||
+ tqlayout.margins[TQStyleSheetItem::MarginBottom] != 0 )
{
element = doc.createElement( "OFFSETS" );
parentElem.appendChild( element );
- if ( layout.margins[TQStyleSheetItem::MarginTop] != 0 )
- element.setAttribute( "before", layout.margins[TQStyleSheetItem::MarginTop] );
- if ( layout.margins[TQStyleSheetItem::MarginBottom] != 0 )
- element.setAttribute( "after", layout.margins[TQStyleSheetItem::MarginBottom] );
+ if ( tqlayout.margins[TQStyleSheetItem::MarginTop] != 0 )
+ element.setAttribute( "before", tqlayout.margins[TQStyleSheetItem::MarginTop] );
+ if ( tqlayout.margins[TQStyleSheetItem::MarginBottom] != 0 )
+ element.setAttribute( "after", tqlayout.margins[TQStyleSheetItem::MarginBottom] );
}
- if ( layout.lineSpacingType != LS_SINGLE )
+ if ( tqlayout.lineSpacingType != LS_SINGLE )
{
element = doc.createElement( "LINESPACING" );
parentElem.appendChild( element );
- if ( layout.lineSpacingType == KoParagLayout::LS_ONEANDHALF ) {
+ if ( tqlayout.lineSpacingType == KoParagLayout::LS_ONEANDHALF ) {
element.setAttribute( "type", "oneandhalf" );
element.setAttribute( "value", "oneandhalf" ); //compatibility with koffice 1.2
}
- else if ( layout.lineSpacingType == KoParagLayout::LS_DOUBLE ) {
+ else if ( tqlayout.lineSpacingType == KoParagLayout::LS_DOUBLE ) {
element.setAttribute( "type", "double" );
element.setAttribute( "value", "double" ); //compatibility with koffice 1.2
}
- else if ( layout.lineSpacingType == KoParagLayout::LS_CUSTOM )
+ else if ( tqlayout.lineSpacingType == KoParagLayout::LS_CUSTOM )
{
element.setAttribute( "type", "custom" );
- element.setAttribute( "spacingvalue", layout.lineSpacing);
- element.setAttribute( "value", layout.lineSpacing ); //compatibility with koffice 1.2
+ element.setAttribute( "spacingvalue", tqlayout.lineSpacing);
+ element.setAttribute( "value", tqlayout.lineSpacing ); //compatibility with koffice 1.2
}
- else if ( layout.lineSpacingType == KoParagLayout::LS_AT_LEAST )
+ else if ( tqlayout.lineSpacingType == KoParagLayout::LS_AT_LEAST )
{
element.setAttribute( "type", "atleast" );
- element.setAttribute( "spacingvalue", layout.lineSpacing);
+ element.setAttribute( "spacingvalue", tqlayout.lineSpacing);
}
- else if ( layout.lineSpacingType == KoParagLayout::LS_MULTIPLE )
+ else if ( tqlayout.lineSpacingType == KoParagLayout::LS_MULTIPLE )
{
element.setAttribute( "type", "multiple" );
- element.setAttribute( "spacingvalue", layout.lineSpacing);
+ element.setAttribute( "spacingvalue", tqlayout.lineSpacing);
}
- else if ( layout.lineSpacingType == KoParagLayout::LS_FIXED )
+ else if ( tqlayout.lineSpacingType == KoParagLayout::LS_FIXED )
{
element.setAttribute( "type", "fixed" );
- element.setAttribute( "spacingvalue", layout.lineSpacing);
+ element.setAttribute( "spacingvalue", tqlayout.lineSpacing);
}
else
kdDebug()<<" error in lineSpacing Type\n";
}
- if ( layout.pageBreaking != 0 )
+ if ( tqlayout.pageBreaking != 0 )
{
element = doc.createElement( "PAGEBREAKING" );
parentElem.appendChild( element );
- if ( layout.pageBreaking & KoParagLayout::KeepLinesTogether )
+ if ( tqlayout.pageBreaking & KoParagLayout::KeepLinesTogether )
element.setAttribute( "linesTogether", "true" );
- if ( layout.pageBreaking & KoParagLayout::HardFrameBreakBefore )
+ if ( tqlayout.pageBreaking & KoParagLayout::HardFrameBreakBefore )
element.setAttribute( "hardFrameBreak", "true" );
- if ( layout.pageBreaking & KoParagLayout::HardFrameBreakAfter )
+ if ( tqlayout.pageBreaking & KoParagLayout::HardFrameBreakAfter )
element.setAttribute( "hardFrameBreakAfter", "true" );
}
- if ( layout.leftBorder.penWidth() > 0 )
+ if ( tqlayout.leftBorder.penWidth() > 0 )
{
element = doc.createElement( "LEFTBORDER" );
parentElem.appendChild( element );
- layout.leftBorder.save( element );
+ tqlayout.leftBorder.save( element );
}
- if ( layout.rightBorder.penWidth() > 0 )
+ if ( tqlayout.rightBorder.penWidth() > 0 )
{
element = doc.createElement( "RIGHTBORDER" );
parentElem.appendChild( element );
- layout.rightBorder.save( element );
+ tqlayout.rightBorder.save( element );
}
- if ( layout.topBorder.penWidth() > 0 )
+ if ( tqlayout.topBorder.penWidth() > 0 )
{
element = doc.createElement( "TOPBORDER" );
parentElem.appendChild( element );
- layout.topBorder.save( element );
+ tqlayout.topBorder.save( element );
}
- if ( layout.bottomBorder.penWidth() > 0 )
+ if ( tqlayout.bottomBorder.penWidth() > 0 )
{
element = doc.createElement( "BOTTOMBORDER" );
parentElem.appendChild( element );
- layout.bottomBorder.save( element );
+ tqlayout.bottomBorder.save( element );
}
- if ( layout.counter && layout.counter->numbering() != KoParagCounter::NUM_NONE )
+ if ( tqlayout.counter && tqlayout.counter->numbering() != KoParagCounter::NUM_NONE )
{
element = doc.createElement( "COUNTER" );
parentElem.appendChild( element );
- if ( layout.counter )
- layout.counter->save( element );
+ if ( tqlayout.counter )
+ tqlayout.counter->save( element );
}
- KoTabulatorList tabList = layout.tabList();
+ KoTabulatorList tabList = tqlayout.tabList();
KoTabulatorList::ConstIterator it = tabList.begin();
for ( ; it != tabList.end() ; it++ )
{
@@ -806,7 +806,7 @@ void KoParagLayout::saveParagLayout( TQDomElement & parentElem, int alignment )
void KoParagLayout::saveOasis( KoGenStyle& gs, KoSavingContext& context, bool savingStyle ) const
{
- gs.addProperty( "fo:text-align", saveOasisAlignment( (TQt::AlignmentFlags)alignment ).data() );
+ gs.addProperty( "fo:text-align", saveOasisAlignment( (TQt::AlignmentFlags)tqalignment ).data() );
// Don't save the direction for a style, if "auto", so that the
// auto-determination of direction based on first char, works.
if ( !savingStyle || (TQChar::Direction) direction != TQChar::DirON )
@@ -863,7 +863,7 @@ void KoParagLayout::saveOasis( KoGenStyle& gs, KoSavingContext& context, bool sa
case T_RIGHT:
tabsWriter.addAttribute( "style:type", "right" );
break;
- case T_DEC_PNT: // "alignment on decimal point"
+ case T_DEC_PNT: // "tqalignment on decimal point"
tabsWriter.addAttribute( "style:type", "char" );
if ( !(*it).alignChar.isNull() )
tabsWriter.addAttribute( "style:char", TQString( (*it).alignChar ) );
diff --git a/lib/kotext/KoParagLayout.h b/lib/kotext/KoParagLayout.h
index 975fdaf0..2c9b9dea 100644
--- a/lib/kotext/KoParagLayout.h
+++ b/lib/kotext/KoParagLayout.h
@@ -40,7 +40,7 @@ class KOTEXT_EXPORT KoParagLayout
{
public:
KoParagLayout();
- KoParagLayout( const KoParagLayout &layout ) { operator=( layout ); }
+ KoParagLayout( const KoParagLayout &tqlayout ) { operator=( tqlayout ); }
~KoParagLayout();
@@ -96,7 +96,7 @@ public:
char pageBreaking; // Page breaking flags
char direction; // TQChar::Direction
/// Alignment flag (AlignAuto/AlignLeft/AlignRight/AlignJustify)
- char alignment; // TQt::AlignmentFlags
+ char tqalignment; // TQt::AlignmentFlags
KoBorder leftBorder, rightBorder, topBorder, bottomBorder;
/// The background color of the paragraph
@@ -122,39 +122,39 @@ public:
const KoTabulatorList& tabList() const { return m_tabList; }
//! Assignment operator for KoParagLayout
- /** Copy a paragraph layout.
+ /** Copy a paragraph tqlayout.
*
* If you're modifying this, you might also need to modify
* KoTextParag::setParagLayout
*/
void operator=( const KoParagLayout & );
- /** Return a set of flags showing the differences between this and 'layout' */
- int compare( const KoParagLayout & layout ) const;
+ /** Return a set of flags showing the differences between this and 'tqlayout' */
+ int compare( const KoParagLayout & tqlayout ) const;
- /** Save this parag layout to XML.
+ /** Save this parag tqlayout to XML.
* This format is used by KWord for paragraphs, and by KPresenter+KWord for styles.
*/
- void saveParagLayout( TQDomElement & parentElem, int alignment ) const;
+ void saveParagLayout( TQDomElement & parentElem, int tqalignment ) const;
- /** Load this parag layout from XML.
+ /** Load this parag tqlayout from XML.
* This format is used by KWord for paragraphs, and by KPresenter+KWord for styles.
*/
- static void loadParagLayout( KoParagLayout& layout, const TQDomElement& parentElem, int docVersion = 2 );
+ static void loadParagLayout( KoParagLayout& tqlayout, const TQDomElement& parentElem, int docVersion = 2 );
- /// Load this parag layout from Oasis XML
- static void loadOasisParagLayout( KoParagLayout& layout, KoOasisContext& context );
- /// Save this parag layout to Oasis XML
+ /// Load this parag tqlayout from Oasis XML
+ static void loadOasisParagLayout( KoParagLayout& tqlayout, KoOasisContext& context );
+ /// Save this parag tqlayout to Oasis XML
/// @param savingStyle true if this is saved as part of a user style,
/// false when saving a paragraph
/// @param gs the style where all the properties will be saved to
/// @param context the current context
void saveOasis( KoGenStyle& gs, KoSavingContext& context, bool savingStyle ) const;
- /// Convert an alignment string into an alignment flag (load)
+ /// Convert an tqalignment string into an tqalignment flag (load)
static TQt::AlignmentFlags loadOasisAlignment( const TQCString& str );
- /// Convert an alignment flag into an alignment string (save)
- static TQCString saveOasisAlignment( TQt::AlignmentFlags alignment );
+ /// Convert an tqalignment flag into an tqalignment string (save)
+ static TQCString saveOasisAlignment( TQt::AlignmentFlags tqalignment );
private:
static int getAttribute(const TQDomElement &element, const char *attributeName, int defaultValue) {
diff --git a/lib/kotext/KoParagStyle.cpp b/lib/kotext/KoParagStyle.cpp
index fcae882c..a68c6768 100644
--- a/lib/kotext/KoParagStyle.cpp
+++ b/lib/kotext/KoParagStyle.cpp
@@ -88,7 +88,7 @@ void KoParagStyle::setFollowingStyle( KoParagStyle *fst )
void KoParagStyle::saveStyle( TQDomElement & parentElem )
{
- m_paragLayout.saveParagLayout( parentElem, m_paragLayout.alignment );
+ m_paragLayout.saveParagLayout( parentElem, m_paragLayout.tqalignment );
if ( followingStyle() )
{
@@ -103,12 +103,12 @@ void KoParagStyle::saveStyle( TQDomElement & parentElem )
void KoParagStyle::loadStyle( TQDomElement & parentElem, int docVersion )
{
- KoParagLayout layout;
- KoParagLayout::loadParagLayout( layout, parentElem, docVersion );
+ KoParagLayout tqlayout;
+ KoParagLayout::loadParagLayout( tqlayout, parentElem, docVersion );
// This way, KoTextParag::setParagLayout also sets the style pointer, to this style
- layout.style = this;
- m_paragLayout = layout;
+ tqlayout.style = this;
+ m_paragLayout = tqlayout;
// Load name
TQDomElement nameElem = parentElem.namedItem("NAME").toElement();
@@ -138,8 +138,8 @@ void KoParagStyle::loadStyle( TQDomElement & styleElem, KoOasisContext& context
context.styleStack().save();
context.addStyles( &styleElem, "paragraph" ); // Load all parents - only because we don't support inheritance.
- KoParagLayout layout;
- KoParagLayout::loadOasisParagLayout( layout, context );
+ KoParagLayout tqlayout;
+ KoParagLayout::loadOasisParagLayout( tqlayout, context );
// loadOasisParagLayout doesn't load the counter. It's modelled differently for parags and for styles.
int level = 0;
@@ -172,15 +172,15 @@ void KoParagStyle::loadStyle( TQDomElement & styleElem, KoOasisContext& context
const TQDomElement listStyle = context.listStyleStack().currentListStyle();
// The tag is either text:list-level-style-number or text:list-level-style-bullet
const bool ordered = listStyle.localName() == "list-level-style-number";
- Q_ASSERT( !layout.counter );
- layout.counter = new KoParagCounter;
- layout.counter->loadOasis( context, -1, ordered, m_bOutline, level, true );
+ Q_ASSERT( !tqlayout.counter );
+ tqlayout.counter = new KoParagCounter;
+ tqlayout.counter->loadOasis( context, -1, ordered, m_bOutline, level, true );
context.listStyleStack().pop();
}
// This way, KoTextParag::setParagLayout also sets the style pointer, to this style
- layout.style = this;
- m_paragLayout = layout;
+ tqlayout.style = this;
+ m_paragLayout = tqlayout;
m_format.load( context );
@@ -207,7 +207,7 @@ TQString KoParagStyle::saveStyle( KoGenStyles& genStyles, int styleType, const T
// This display-name will probably look nicer in OO, but this also means
// no re-use possible between list styles...
listStyle.addAttribute( "style:display-name",
- i18n( "Numbering Style for %1" ).arg( m_displayName ) );
+ i18n( "Numbering Style for %1" ).tqarg( m_displayName ) );
TQString autoListStyleName = genStyles.lookup( listStyle, "L", KoGenStyles::ForceNumbering );
gs.addAttribute( "style:list-style-name", autoListStyleName );
@@ -245,7 +245,7 @@ void KoParagStyle::propagateChanges( int paragLayoutFlag, int /*formatFlag*/ )
if ( !m_parentStyle )
return;
if ( !(paragLayoutFlag & KoParagLayout::Alignment) )
- m_paragLayout.alignment = m_parentStyle->paragLayout().alignment;
+ m_paragLayout.tqalignment = m_parentStyle->paragLayout().tqalignment;
if ( !(paragLayoutFlag & KoParagLayout::Margins) )
for ( int i = 0 ; i < 5 ; ++i )
m_paragLayout.margins[i] = m_parentStyle->paragLayout().margins[i];
@@ -269,9 +269,9 @@ void KoParagStyle::propagateChanges( int paragLayoutFlag, int /*formatFlag*/ )
#if 0
if ( paragLayoutFlag == KoParagLayout::All )
{
- setDirection( static_cast<TQChar::Direction>(layout.direction) );
+ setDirection( static_cast<TQChar::Direction>(tqlayout.direction) );
// Don't call applyStyle from here, it would overwrite any paragraph-specific settings
- setStyle( layout.style );
+ setStyle( tqlayout.style );
}
#endif
// TODO a flag for the "is outline" bool? Otherwise we have no way to inherit
diff --git a/lib/kotext/KoParagStyle.h b/lib/kotext/KoParagStyle.h
index 0e396b64..190ad345 100644
--- a/lib/kotext/KoParagStyle.h
+++ b/lib/kotext/KoParagStyle.h
@@ -49,7 +49,7 @@ protected:
/**
* A paragraph style is a combination of a character style
- * and paragraph-layout attributes, all grouped under a name.
+ * and paragraph-tqlayout attributes, all grouped under a name.
*/
class KOTEXT_EXPORT KoParagStyle : public KoCharStyle
{
@@ -71,10 +71,10 @@ public:
KoParagStyle *followingStyle() const { return m_followingStyle; }
void setFollowingStyle( KoParagStyle *fst );
- /// Saves the name, layout, the following style and the outline bool. Not the format.
+ /// Saves the name, tqlayout, the following style and the outline bool. Not the format.
/// @deprecated (1.3 format)
void saveStyle( TQDomElement & parentElem );
- /// Loads the name, layout and the outline bool. Not the "following style" nor the format.
+ /// Loads the name, tqlayout and the outline bool. Not the "following style" nor the format.
/// (1.3 format)
void loadStyle( TQDomElement & parentElem, int docVersion = 2 );
diff --git a/lib/kotext/KoRichText.cpp b/lib/kotext/KoRichText.cpp
index cfce5f31..42e8d2b0 100644
--- a/lib/kotext/KoRichText.cpp
+++ b/lib/kotext/KoRichText.cpp
@@ -47,7 +47,7 @@
#include <tdeversion.h>
#include <kglobal.h>
#include <klocale.h>
-#include <textengine_p.h>
+#include <tqtextengine_p.h>
//#define DEBUG_COLLECTION
//#define DEBUG_TABLE_RENDERING
@@ -310,7 +310,7 @@ KoTextCursor *KoTextAlignmentCommand::execute( KoTextCursor *c )
if ( !p )
return c;
while ( p ) {
- p->setAlignment( newAlign );
+ p->tqsetAlignment( newAlign );
if ( p->paragId() == lastParag )
break;
p = p->next();
@@ -326,7 +326,7 @@ KoTextCursor *KoTextAlignmentCommand::unexecute( KoTextCursor *c )
int i = 0;
while ( p ) {
if ( i < (int)oldAligns.size() )
- p->setAlignment( oldAligns.at( i ) );
+ p->tqsetAlignment( oldAligns.at( i ) );
if ( p->paragId() == lastParag )
break;
p = p->next();
@@ -375,7 +375,7 @@ bool KoTextCursor::operator==( const KoTextCursor &c ) const
void KoTextCursor::insert( const TQString &str, bool checkNewLine, TQMemArray<KoTextStringChar> *formatting )
{
- string->invalidate( idx );
+ string->tqinvalidate( idx );
tmpIndex = -1;
bool justInsert = TRUE;
TQString s( str );
@@ -420,7 +420,7 @@ void KoTextCursor::insert( const TQString &str, bool checkNewLine, TQMemArray<Ko
if ( !s.isEmpty() )
string->insert( idx, s );
else
- string->invalidate( 0 );
+ string->tqinvalidate( 0 );
if ( formatting ) {
int len = s.length();
@@ -448,7 +448,7 @@ void KoTextCursor::insert( const TQString &str, bool checkNewLine, TQMemArray<Ko
while ( p ) {
p->setParagId( p->prev()->paragId() + 1 );
//p->move( dy );
- p->invalidate( 0 );
+ p->tqinvalidate( 0 );
p = p->next();
}
}
@@ -963,7 +963,7 @@ bool KoTextCursor::remove()
KoTextParag *p = string->next();
delete string;
string = p;
- string->invalidate( 0 );
+ string->tqinvalidate( 0 );
//// kotext
string->invalidateCounters();
////
@@ -1332,7 +1332,7 @@ TQString KoTextString::toString( const TQMemArray<KoTextStringChar> &data )
int l = data.size();
s.setUnicode( 0, l );
KoTextStringChar *c = data.data();
- TQChar *uc = (TQChar *)s.unicode();
+ TQChar *uc = (TQChar *)s.tqunicode();
while ( l-- ) {
*uc = c->c;
uc++;
@@ -1348,7 +1348,7 @@ TQString KoTextString::toReverseString() const
int l = length();
s.setUnicode(0, l);
KoTextStringChar *c = data.data() + (l-1);
- TQChar *uc = (TQChar *)s.unicode();
+ TQChar *uc = (TQChar *)s.tqunicode();
while ( l-- ) {
*uc = c->c;
uc++;
@@ -1505,7 +1505,7 @@ KoTextParagLineStart *KoTextFormatterBase::bidiReorderLine( KoTextParag * /*para
str.setUnicode( 0, last - start + 1 );
// fill string with logically ordered chars.
KoTextStringChar *ch = startChar;
- TQChar *qch = (TQChar *)str.unicode();
+ TQChar *qch = (TQChar *)str.tqunicode();
while ( ch <= lastChar ) {
*qch = ch->c;
qch++;
@@ -1520,7 +1520,7 @@ KoTextParagLineStart *KoTextFormatterBase::bidiReorderLine( KoTextParag * /*para
// now construct the reordered string out of the runs...
int numSpaces = 0;
- // set the correct alignment. This is a bit messy....
+ // set the correct tqalignment. This is a bit messy....
if( align == TQt::AlignAuto ) {
// align according to directionality of the paragraph...
if ( text->isRightToLeft() )
@@ -1562,7 +1562,7 @@ KoTextParagLineStart *KoTextFormatterBase::bidiReorderLine( KoTextParag * /*para
c->rightToLeft = TRUE;
c->startOfRun = FALSE;
int ww = 0;
- if ( c->c.unicode() >= 32 || c->c == '\t' || c->c == '\n' || c->isCustom() ) {
+ if ( c->c.tqunicode() >= 32 || c->c == '\t' || c->c == '\n' || c->isCustom() ) {
ww = c->width;
} else {
ww = c->format()->width( ' ' );
@@ -1589,7 +1589,7 @@ KoTextParagLineStart *KoTextFormatterBase::bidiReorderLine( KoTextParag * /*para
c->rightToLeft = FALSE;
c->startOfRun = FALSE;
int ww = 0;
- if ( c->c.unicode() >= 32 || c->c == '\t' || c->isCustom() ) {
+ if ( c->c.tqunicode() >= 32 || c->c == '\t' || c->isCustom() ) {
ww = c->width;
} else {
ww = c->format()->width( ' ' );
diff --git a/lib/kotext/KoRichText.h b/lib/kotext/KoRichText.h
index 8e82bd9c..44c360d5 100644
--- a/lib/kotext/KoRichText.h
+++ b/lib/kotext/KoRichText.h
@@ -45,7 +45,7 @@
#include <tqsize.h>
#include <tqvaluelist.h>
#include <tqobject.h>
-#include <stylesheet.h>
+#include <tqstylesheet.h>
#include <tqpainter.h>
#include "KoComplexText.h"
@@ -93,7 +93,7 @@ public:
// this is the same struct as in qtextengine_p.h. Don't change!
uchar softBreak :1; // Potential linebreak point
- uchar whiteSpace :1; // A unicode whitespace character, except NBSP, ZWNBSP
+ uchar whiteSpace :1; // A tqunicode whitespace character, except NBSP, ZWNBSP
uchar charStop :1; // Valid cursor position (for left/right arrow)
uchar wordStop :1; // Valid cursor position (for ctrl + left/right arrow) (TODO: use)
//uchar nobreak :1;
@@ -477,13 +477,13 @@ public:
KoTextTableCell( KoTextTable* table, int row, int column );
virtual ~KoTextTableCell();
- TQSize sizeHint() const ;
- TQSize minimumSize() const ;
- TQSize maximumSize() const ;
+ TQSize tqsizeHint() const ;
+ TQSize tqminimumSize() const ;
+ TQSize tqmaximumSize() const ;
TQSizePolicy::ExpandData expanding() const;
bool isEmpty() const;
void setGeometry( const TQRect& ) ;
- TQRect geometry() const;
+ TQRect tqgeometry() const;
bool hasHeightForWidth() const;
int heightForWidth( int ) const;
@@ -502,7 +502,7 @@ public:
void draw( int x, int y, int cx, int cy, int cw, int ch, const TQColorGroup& cg, bool selected );
TQBrush *backGround() const { return background; }
- virtual void invalidate();
+ virtual void tqinvalidate();
int verticalAlignmentOffset() const;
int horizontalAlignmentOffset() const;
@@ -552,7 +552,7 @@ public:
Placement placement() const { return place; }
bool isNested() const { return TRUE; }
void resize( int nwidth );
- virtual void invalidate();
+ virtual void tqinvalidate();
/// ## TQString anchorAt( TQPainter* p, int x, int y );
virtual bool enter( KoTextCursor *c, KoTextDocument *&doc, KoTextParag *&parag, int &idx, int &ox, int &oy, bool atEnd = FALSE );
@@ -564,12 +564,12 @@ public:
TQString richText() const;
- int minimumWidth() const { return layout ? layout->minimumSize().width() : 0; }
- int widthHint() const { return ( layout ? layout->sizeHint().width() : 0 ) + 2 * outerborder; }
+ int minimumWidth() const { return tqlayout ? tqlayout->tqminimumSize().width() : 0; }
+ int widthHint() const { return ( tqlayout ? tqlayout->tqsizeHint().width() : 0 ) + 2 * outerborder; }
TQPtrList<KoTextTableCell> tableCells() const { return cells; }
- TQRect geometry() const { return layout ? layout->geometry() : TQRect(); }
+ TQRect tqgeometry() const { return tqlayout ? tqlayout->tqgeometry() : TQRect(); }
bool isStretching() const { return stretch; }
private:
@@ -577,7 +577,7 @@ private:
void addCell( KoTextTableCell* cell );
private:
- TQGridLayout* layout;
+ TQGridLayout* tqlayout;
TQPtrList<KoTextTableCell> cells;
TQPainter* painter;
int cachewidth;
@@ -697,7 +697,7 @@ struct KoTextParagLineStart
#endif
{ }
#ifndef TQT_NO_COMPLEXTEXT
- KoTextParagLineStart( KoBidiContext *c, KoBidiStatus s ) : y(0), baseLine(0), h(0),
+ KoTextParagLineStart( KoBidiContext *c, KoBiditqStatus s ) : y(0), baseLine(0), h(0),
lineSpacing( 0 ), hyphenated( false ),
status( s ), bidicontext( c ) { if ( bidicontext ) bidicontext->ref(); }
#endif
@@ -728,7 +728,7 @@ public:
short lineSpacing;
bool hyphenated;
#ifndef TQT_NO_COMPLEXTEXT
- KoBidiStatus status;
+ KoBiditqStatus status;
#endif
int w;
diff --git a/lib/kotext/KoSearchDia.cpp b/lib/kotext/KoSearchDia.cpp
index 955b3f1c..a41de932 100644
--- a/lib/kotext/KoSearchDia.cpp
+++ b/lib/kotext/KoSearchDia.cpp
@@ -39,7 +39,7 @@
#include <tqradiobutton.h>
#include <tqregexp.h>
#include <tqspinbox.h>
-#include <layout.h>
+#include <tqlayout.h>
KoSearchContext::KoSearchContext()
{
@@ -382,8 +382,8 @@ void KoFindReplace::replace( const TQString &text, int matchingIndex,
{
replaceWithAttribut( &cursor, index );
}
- // Don't repaint if we're doing batch changes
- bool repaint = options() & KReplaceDialog::PromptOnReplace;
+ // Don't tqrepaint if we're doing batch changes
+ bool tqrepaint = options() & KReplaceDialog::PromptOnReplace;
// Grab replacement string
TQString rep = text.mid( matchingIndex, replacementLength );
@@ -395,7 +395,7 @@ void KoFindReplace::replace( const TQString &text, int matchingIndex,
KCommand *cmd = currentTextObj->replaceSelectionCommand(
&cursor, rep, TQString(),
KoTextDocument::HighlightSelection,
- repaint ? KoTextObject::DefaultInsertFlags : KoTextObject::DoNotRepaint );
+ tqrepaint ? KoTextObject::DefaultInsertFlags : KoTextObject::DoNotRepaint );
connect( &m_textIterator, TQT_SIGNAL( currentParagraphModified( int, int, int ) ),
this, TQT_SLOT( slotCurrentParagraphModified( int, int, int ) ) );
@@ -587,7 +587,7 @@ KoFormatDia::KoFormatDia( TQWidget* parent, const TQString & _caption, KoSearchC
m_languageItem->setCurrentText( KoGlobal::languageFromTag( m_ctx->m_language ) );
- m_checkVertAlign = new TQCheckBox( i18n( "Vertical alignment:" ), page );
+ m_checkVertAlign = new TQCheckBox( i18n( "Vertical tqalignment:" ), page );
m_familyItem = new KFontCombo(page);
m_familyItem->setCurrentFont(m_ctx->m_family);
@@ -605,25 +605,25 @@ KoFormatDia::KoFormatDia( TQWidget* parent, const TQString & _caption, KoSearchC
TQButtonGroup *grpBold = new TQButtonGroup( 1, Qt::Vertical, page );
grpBold->setRadioButtonExclusive( TRUE );
- grpBold->layout();
+ grpBold->tqlayout();
m_boldYes=new TQRadioButton( i18n("Yes"), grpBold );
m_boldNo=new TQRadioButton( i18n("No"), grpBold );
TQButtonGroup *grpItalic = new TQButtonGroup( 1, Qt::Vertical, page );
grpItalic->setRadioButtonExclusive( TRUE );
- grpItalic->layout();
+ grpItalic->tqlayout();
m_italicYes=new TQRadioButton( i18n("Yes"), grpItalic );
m_italicNo=new TQRadioButton( i18n("No"), grpItalic );
TQButtonGroup *grpShadow = new TQButtonGroup( 1, Qt::Vertical, page );
grpShadow->setRadioButtonExclusive( TRUE );
- grpShadow->layout();
+ grpShadow->tqlayout();
m_shadowYes=new TQRadioButton( i18n("Yes"), grpShadow );
m_shadowNo=new TQRadioButton( i18n("No"), grpShadow );
TQButtonGroup *grpWordByWord = new TQButtonGroup( 1, Qt::Vertical, page );
grpWordByWord->setRadioButtonExclusive( TRUE );
- grpWordByWord->layout();
+ grpWordByWord->tqlayout();
m_wordByWordYes=new TQRadioButton( i18n("Yes"), grpWordByWord );
m_wordByWordNo=new TQRadioButton( i18n("No"), grpWordByWord );
diff --git a/lib/kotext/KoStyleCollection.cpp b/lib/kotext/KoStyleCollection.cpp
index fa0818d8..f8c93f01 100644
--- a/lib/kotext/KoStyleCollection.cpp
+++ b/lib/kotext/KoStyleCollection.cpp
@@ -242,7 +242,7 @@ void KoStyleCollection::printDebug() const
kdDebug() << "Style " << style << " " << style->name() << " isOutline=" << style->isOutline() << endl;
kdDebug() << " format: " << style->format().key() <<endl;
static const char * const s_align[] = { "Auto", "Left", "Right", "ERROR", "HCenter", "ERR", "ERR", "ERR", "Justify", };
- kdDebug() << " align: " << s_align[(TQt::AlignmentFlags)style->paragLayout().alignment] << endl;
+ kdDebug() << " align: " << s_align[(TQt::AlignmentFlags)style->paragLayout().tqalignment] << endl;
if ( style->paragLayout().counter )
kdDebug() << " counter level=" << style->paragLayout().counter->depth() << endl;
diff --git a/lib/kotext/KoStyleCollection.h b/lib/kotext/KoStyleCollection.h
index 811bbaea..66a244e5 100644
--- a/lib/kotext/KoStyleCollection.h
+++ b/lib/kotext/KoStyleCollection.h
@@ -68,7 +68,7 @@ public:
* Overloaded for convenience.
*/
KoParagStyle* findStyle( const TQString & name ) const {
- return static_cast<KoParagStyle*>( KoUserStyleCollection::findStyle( name, TQString::fromLatin1( "Standard" ) ) );
+ return static_cast<KoParagStyle*>( KoUserStyleCollection::findStyle( name, TQString::tqfromLatin1( "Standard" ) ) );
}
/**
diff --git a/lib/kotext/KoStyleManager.cpp b/lib/kotext/KoStyleManager.cpp
index 871b8f98..e5a7dbfa 100644
--- a/lib/kotext/KoStyleManager.cpp
+++ b/lib/kotext/KoStyleManager.cpp
@@ -33,7 +33,7 @@
#include <tqlabel.h>
#include <tqcombobox.h>
#include <tqcheckbox.h>
-#include <layout.h>
+#include <tqlayout.h>
/******************************************************************/
/* Class: KoStyleManager */
@@ -86,7 +86,7 @@ KoStyleManager::KoStyleManager( TQWidget *_parent, KoUnit::Unit unit,
newTab = new KoStyleParagTab( m_tabs );
KoParagLayoutWidget *decorations = new KoParagDecorationWidget( newTab );
- decorations->layout()->setMargin(KDialog::marginHint());
+ decorations->tqlayout()->setMargin(KDialog::marginHint());
newTab->setWidget( decorations );
addTab( newTab );
@@ -122,7 +122,7 @@ void KoStyleManager::addTab( KoStyleManagerTab * tab )
{
m_tabsList.append( tab );
m_tabs->insertTab( tab, tab->tabName() );
- tab->layout()->activate();
+ tab->tqlayout()->activate();
}
void KoStyleManager::setupWidget(const KoStyleCollection& styleCollection)
@@ -185,15 +185,15 @@ void KoStyleManager::addGeneralTab( int flags ) {
tabLayout->setMargin( KDialog::marginHint() );
m_nameString = new TQLineEdit( tab );
- m_nameString->resize(m_nameString->sizeHint() );
+ m_nameString->resize(m_nameString->tqsizeHint() );
connect( m_nameString, TQT_SIGNAL( textChanged( const TQString &) ), this, TQT_SLOT( renameStyle(const TQString &) ) );
tabLayout->addWidget( m_nameString, 0, 1 );
TQLabel *nameLabel = new TQLabel( tab );
nameLabel->setText( i18n( "Name:" ) );
- nameLabel->resize(nameLabel->sizeHint());
- nameLabel->setAlignment( AlignRight | AlignVCenter );
+ nameLabel->resize(nameLabel->tqsizeHint());
+ nameLabel->tqsetAlignment( AlignRight | AlignVCenter );
tabLayout->addWidget( nameLabel, 0, 0 );
@@ -203,7 +203,7 @@ void KoStyleManager::addGeneralTab( int flags ) {
TQLabel *nextStyleLabel = new TQLabel( tab );
nextStyleLabel->setText( i18n( "Next style:" ) );
- nextStyleLabel->setAlignment( AlignRight | AlignVCenter );
+ nextStyleLabel->tqsetAlignment( AlignRight | AlignVCenter );
tabLayout->addWidget( nextStyleLabel, 1, 0 );
@@ -212,7 +212,7 @@ void KoStyleManager::addGeneralTab( int flags ) {
TQLabel *inheritStyleLabel = new TQLabel( tab );
inheritStyleLabel->setText( i18n( "Inherit style:" ) );
- inheritStyleLabel->setAlignment( AlignRight | AlignVCenter );
+ inheritStyleLabel->tqsetAlignment( AlignRight | AlignVCenter );
tabLayout->addWidget( inheritStyleLabel, 2, 0 );
@@ -345,7 +345,7 @@ void KoStyleManager::updateGUI() {
void KoStyleManager::updatePreview()
{
d->preview->setStyle(m_currentStyle);
- d->preview->repaint(true);
+ d->preview->tqrepaint(true);
}
void KoStyleManager::save() {
@@ -408,7 +408,7 @@ TQString KoStyleManager::generateUniqueName()
void KoStyleManager::addStyle() {
save();
- TQString str = i18n( "New Style Template (%1)" ).arg(numStyles++);
+ TQString str = i18n( "New Style Template (%1)" ).tqarg(numStyles++);
if ( m_currentStyle )
{
m_currentStyle = new KoParagStyle( *m_currentStyle ); // Create a new style, initializing from the current one
diff --git a/lib/kotext/KoStyleManager.h b/lib/kotext/KoStyleManager.h
index b562e1f6..af848e1d 100644
--- a/lib/kotext/KoStyleManager.h
+++ b/lib/kotext/KoStyleManager.h
@@ -137,7 +137,7 @@ protected:
KoParagStyle *m_style;
};
-// A tab to edit parts of the parag-layout of the style
+// A tab to edit parts of the parag-tqlayout of the style
// Acts as a wrapper around KoParagLayoutWidget [which doesn't know about styles].
class KOTEXT_EXPORT KoStyleParagTab : public KoStyleManagerTab
{
@@ -181,7 +181,7 @@ private:
Font simple font dia
Color simple color dia
Spacing and Indents paragraph spacing dia (KWParagDia)
-alignments KoParagDia alignment tab
+alignments KoParagDia tqalignment tab
borders KoParagDia borders tab
numbering KoParagDia tab numbering
tabulators KoParagDia tab tabs */
diff --git a/lib/kotext/KoTextCommand.cpp b/lib/kotext/KoTextCommand.cpp
index 875c1e71..fb496836 100644
--- a/lib/kotext/KoTextCommand.cpp
+++ b/lib/kotext/KoTextCommand.cpp
@@ -96,7 +96,7 @@ KoTextCursor * KoTextDeleteCommand::unexecute( KoTextCursor *c )
while ( p ) {
if ( lit != m_oldParagLayouts.end() )
{
- kdDebug(32500) << "KoTextDeleteCommand::unexecute applying paraglayout to parag " << p->paragId() << endl;
+ kdDebug(32500) << "KoTextDeleteCommand::unexecute applying paragtqlayout to parag " << p->paragId() << endl;
p->setParagLayout( *lit );
}
else
@@ -211,7 +211,7 @@ KoTextCursor * KoParagFormatCommand::execute( KoTextCursor *c )
}
while ( p ) {
p->setFormat( m_newFormat );
- p->invalidate(0);
+ p->tqinvalidate(0);
if ( p->paragId() == lastParag )
break;
p = p->next();
diff --git a/lib/kotext/KoTextCustomItem.h b/lib/kotext/KoTextCustomItem.h
index 7df4d515..d232bedc 100644
--- a/lib/kotext/KoTextCustomItem.h
+++ b/lib/kotext/KoTextCustomItem.h
@@ -57,7 +57,7 @@ public:
virtual bool ownLine() const { return FALSE; }
// Called for "ownline" items
virtual void resize( int nwidth ) { width = nwidth; }
- virtual void invalidate() {};
+ virtual void tqinvalidate() {};
virtual bool isNested() const { return FALSE; }
virtual int minimumWidth() const { return 0; }
@@ -69,7 +69,7 @@ public:
int width;
int height;
- TQRect geometry() const { return TQRect( xpos, ypos, width, height ); }
+ TQRect tqgeometry() const { return TQRect( xpos, ypos, width, height ); }
virtual bool enter( KoTextCursor *, KoTextDocument *&doc, KoTextParag *&parag, int &idx, int &ox, int &oy, bool atEnd = FALSE );
virtual bool enterAt( KoTextCursor *, KoTextDocument *&doc, KoTextParag *&parag, int &idx, int &ox, int &oy, const TQPoint & );
diff --git a/lib/kotext/KoTextDocument.cpp b/lib/kotext/KoTextDocument.cpp
index 35adf814..b3f24708 100644
--- a/lib/kotext/KoTextDocument.cpp
+++ b/lib/kotext/KoTextDocument.cpp
@@ -154,13 +154,13 @@ int KoTextDocument::widthUsed() const
KoTextParag *p = fParag;
int w = 0;
while ( p ) {
- int a = p->alignment();
- p->setAlignment( TQt::AlignLeft );
- p->invalidate( 0 );
+ int a = p->tqalignment();
+ p->tqsetAlignment( TQt::AlignLeft );
+ p->tqinvalidate( 0 );
p->format();
w = TQMAX( w, p->rect().width() );
- p->setAlignment( a );
- p->invalidate( 0 );
+ p->tqsetAlignment( a );
+ p->tqinvalidate( 0 );
p = p->next();
}
return w;
@@ -247,11 +247,11 @@ TQString KoTextDocument::plainText() const
return buffer;
}
-void KoTextDocument::invalidate()
+void KoTextDocument::tqinvalidate()
{
KoTextParag *s = fParag;
while ( s ) {
- s->invalidate( 0 );
+ s->tqinvalidate( 0 );
s = s->next();
}
}
@@ -729,7 +729,7 @@ void KoTextDocument::setFormat( int id, const KoTextFormat *f, int flags )
if ( !hasSelection( id ) )
return;
- TQApplication::clipboard()->setText( selectedText( id ) );
+ TQApplication::tqclipboard()->setText( selectedText( id ) );
#endif
}*/
@@ -785,9 +785,9 @@ void KoTextDocument::removeSelectedText( int id, KoTextCursor *cursor )
p->move( dy );
//// kotext
if ( p->paragLayout().counter )
- p->paragLayout().counter->invalidate();
+ p->paragLayout().counter->tqinvalidate();
////
- p->invalidate( 0 );
+ p->tqinvalidate( 0 );
//p->setEndState( -1 );
p = p->next();
}
@@ -1217,7 +1217,7 @@ void KoTextDocument::drawWithoutDoubleBuffer( TQPainter *p, const TQRect &cr, co
TQRect pr( parag->pixelRect( zoomHandler ) );
pr.setLeft( 0 );
pr.setWidth( TQWIDGETSIZE_MAX );
- // The cliprect is checked in layout units, in KoTextParag::paint
+ // The cliprect is checked in tqlayout units, in KoTextParag::paint
TQRect crect_lu( parag->rect() );
if ( !cr.isNull() && !cr.intersects( pr ) ) {
@@ -1295,7 +1295,7 @@ void KoTextDocument::drawParagWYSIWYG( TQPainter *p, KoTextParag *parag, int cx,
// The test on mat is almost like isIdentity(), but allows for translation.
//// ##### The way to fix this: initialize the pixmap to be fully transparent instead
// of being white.
- TQWMatrix mat = p->worldMatrix();
+ TQWMatrix mat = p->tqworldMatrix();
if ( ( mat.m11() != 1.0 || mat.m22() != 1.0 || mat.m12() != 0.0 || mat.m21() != 0.0 )
&& brush.style() != TQt::SolidPattern )
useDoubleBuffer = FALSE;
@@ -1350,7 +1350,7 @@ void KoTextDocument::drawParagWYSIWYG( TQPainter *p, KoTextParag *parag, int cx,
#endif
//painter->setBrushOrigin( painter->brushOrigin() + rect.topLeft() - ir.topLeft() );
- // The cliprect is checked in layout units, in KoTextParag::paint
+ // The cliprect is checked in tqlayout units, in KoTextParag::paint
TQRect crect_lu( zoomHandler->pixelToLayoutUnit( crect ) );
#ifdef DEBUG_PAINTING
kdDebug(32500) << "KoTextDocument::drawParagWYSIWYG crect_lu=" << crect_lu << endl;
diff --git a/lib/kotext/KoTextDocument.h b/lib/kotext/KoTextDocument.h
index 8cf9fd4d..8cdc1b52 100644
--- a/lib/kotext/KoTextDocument.h
+++ b/lib/kotext/KoTextDocument.h
@@ -94,7 +94,7 @@ public:
void setFirstParag( KoTextParag *p );
void setLastParag( KoTextParag *p );
- void invalidate();
+ void tqinvalidate();
//void setPreProcessor( KoTextPreProcessor *sh );
//KoTextPreProcessor *preProcessor() const;
@@ -189,8 +189,8 @@ public:
//bool focusNextPrevChild( bool next );
- int alignment() const;
- void setAlignment( int a );
+ int tqalignment() const;
+ void tqsetAlignment( int a );
int *tabArray() const;
int tabStopWidth() const;
@@ -535,12 +535,12 @@ inline KoTextFormatCollection *KoTextDocument::formatCollection() const
return fCollection;
}
-inline int KoTextDocument::alignment() const
+inline int KoTextDocument::tqalignment() const
{
return align;
}
-inline void KoTextDocument::setAlignment( int a )
+inline void KoTextDocument::tqsetAlignment( int a )
{
align = a;
}
diff --git a/lib/kotext/KoTextFormat.cpp b/lib/kotext/KoTextFormat.cpp
index 2554d4ee..24214ae4 100644
--- a/lib/kotext/KoTextFormat.cpp
+++ b/lib/kotext/KoTextFormat.cpp
@@ -675,7 +675,7 @@ void KoTextFormat::save( KoGenStyle& gs, KoSavingContext& context, KoTextFormat
void KoTextFormat::update()
{
//kdDebug(32500) << this << " KoTextFormat::update " << fn.family() << " " << pointSize() << endl;
- m_key = TQString(); // invalidate key, recalc at the next key() call
+ m_key = TQString(); // tqinvalidate key, recalc at the next key() call
assert( d );
d->clearCache(); // i.e. recalc at the next screenFont[Metrics]() call
}
@@ -1179,8 +1179,8 @@ TQFont KoTextFormat::smallCapsFont( const KoTextZoomHandler* zh, bool applyZoom
int KoTextFormat::charWidth( const KoTextZoomHandler* zh, bool applyZoom, const KoTextStringChar* c,
const KoTextParag* parag, int i ) const
{
- ushort unicode = c->c.unicode();
- if ( !c->charStop || unicode == 0xad || unicode == 0x2028 )
+ ushort tqunicode = c->c.tqunicode();
+ if ( !c->charStop || tqunicode == 0xad || tqunicode == 0x2028 )
return 0;
Q_ASSERT( !c->isCustom() ); // actually it's a bit stupid to call this for custom items
if( c->isCustom() ) {
@@ -1209,13 +1209,13 @@ int KoTextFormat::charWidth( const KoTextZoomHandler* zh, bool applyZoom, const
pixelww = this->screenFontMetrics( zh ).width( displayedChar( c->c ) );
} else {
// Use the m_screenWidths[] array when possible, even faster
- Q_ASSERT( unicode < 256 );
- pixelww = d->m_screenWidths[ unicode ];
+ Q_ASSERT( tqunicode < 256 );
+ pixelww = d->m_screenWidths[ tqunicode ];
// Not in cache yet -> calculate
if ( pixelww == 0 ) {
pixelww = this->screenFontMetrics( zh ).width( displayedChar( c->c ) );
Q_ASSERT( pixelww < 65535 );
- d->m_screenWidths[ unicode ] = pixelww;
+ d->m_screenWidths[ tqunicode ] = pixelww;
}
}
}
@@ -1319,7 +1319,7 @@ TQString KoTextFormat::displayedString( const TQString& str )const
TQChar KoTextFormat::displayedChar( TQChar c )const
{
- if ( c.unicode() == 0xa0 ) // nbsp
+ if ( c.tqunicode() == 0xa0 ) // nbsp
return ' ';
switch ( m_attributeFont ) {
case ATT_NONE:
diff --git a/lib/kotext/KoTextFormat.h b/lib/kotext/KoTextFormat.h
index 4c155b91..0e7c1a13 100644
--- a/lib/kotext/KoTextFormat.h
+++ b/lib/kotext/KoTextFormat.h
@@ -75,7 +75,7 @@ public:
// caching for speedup when formatting
TQFont* m_screenFont; // font to be used when painting (zoom-dependent)
TQFontMetrics* m_screenFontMetrics; // font metrics on screen (zoom-dependent)
- TQFont* m_refFont; // font to be used when formatting text for layout units
+ TQFont* m_refFont; // font to be used when formatting text for tqlayout units
TQFontMetrics* m_refFontMetrics; // font metrics for m_refFontMetrics
int m_refAscent;
int m_refDescent;
@@ -308,7 +308,7 @@ public:
/**
* @return the reference font, i.e. with the size specified by the user.
- * This is used at text layout time (e.g. kotextformatter)
+ * This is used at text tqlayout time (e.g. kotextformatter)
*/
TQFont refFont() const;
diff --git a/lib/kotext/KoTextFormatter.cpp b/lib/kotext/KoTextFormatter.cpp
index 552bcf27..7bdfbc0c 100644
--- a/lib/kotext/KoTextFormatter.cpp
+++ b/lib/kotext/KoTextFormatter.cpp
@@ -131,8 +131,8 @@ int KoTextFormatterCore::leftMargin( bool firstLine, bool includeFirstLineMargin
left += parag->firstLineMargin();
// Add the width of the paragraph counter - first line of parag only.
if( parag->counter() &&
- ( parag->counter()->alignment() == TQt::AlignLeft ||
- parag->counter()->alignment() == TQt::AlignAuto ) )
+ ( parag->counter()->tqalignment() == TQt::AlignLeft ||
+ parag->counter()->tqalignment() == TQt::AlignAuto ) )
left += parag->counterWidth(); // in LU pixels
}
return left;
@@ -196,7 +196,7 @@ bool KoTextFormatterCore::format()
// but with counters/margins this might be different). This is why
// we call determineCharWidth() again from within the loop.
TQPair<int, int> widths = determineCharWidth();
- int ww = widths.first; // width in layout units
+ int ww = widths.first; // width in tqlayout units
#ifndef REF_IS_LU
int pixelww = widths.second; // width in pixels
#endif
@@ -251,9 +251,9 @@ bool KoTextFormatterCore::format()
bool lastWasNonInlineCustom = FALSE;
bool abort = false;
- int align = parag->alignment();
- if ( align == TQt::AlignAuto && doc && doc->alignment() != TQt::AlignAuto )
- align = doc->alignment();
+ int align = parag->tqalignment();
+ if ( align == TQt::AlignAuto && doc && doc->tqalignment() != TQt::AlignAuto )
+ align = doc->tqalignment();
int col = 0;
@@ -516,11 +516,11 @@ bool KoTextFormatterCore::format()
spaceAfterLine -= c->width;
//else
- if ( c->c.unicode() == 0xad || hyphenated ) // soft hyphen or hyphenation
+ if ( c->c.tqunicode() == 0xad || hyphenated ) // soft hyphen or hyphenation
{
// Recalculate its width, the hyphen will appear finally (important for the parag rect)
int width = KoTextZoomHandler::ptToLayoutUnitPt( c->format()->refFontMetrics().width( TQChar(0xad) ) );
- if ( c->c.unicode() == 0xad )
+ if ( c->c.tqunicode() == 0xad )
c->width = width;
spaceAfterLine -= width;
}
@@ -810,7 +810,7 @@ KoTextParagLineStart *KoTextFormatterCore::koFormatLine(
if (space < 0)
space = 0;
- // do alignment Auto == Left in this case
+ // do tqalignment Auto == Left in this case
if ( align & TQt::AlignHCenter || align & TQt::AlignRight ) {
if ( align & TQt::AlignHCenter )
space /= 2;
@@ -934,7 +934,7 @@ KoTextParagLineStart *KoTextFormatterCore::koBidiReorderLine(
str.setUnicode( 0, last - start + 1 );
// fill string with logically ordered chars.
KoTextStringChar *ch = startChar;
- TQChar *qch = (TQChar *)str.unicode();
+ TQChar *qch = (TQChar *)str.tqunicode();
while ( ch <= lastChar ) {
*qch = ch->c;
qch++;
@@ -949,7 +949,7 @@ KoTextParagLineStart *KoTextFormatterCore::koBidiReorderLine(
// now construct the reordered string out of the runs...
int numSpaces = 0;
- // set the correct alignment. This is a bit messy....
+ // set the correct tqalignment. This is a bit messy....
if( align == TQt::AlignAuto ) {
// align according to directionality of the paragraph...
if ( text->isRightToLeft() )
diff --git a/lib/kotext/KoTextObject.cpp b/lib/kotext/KoTextObject.cpp
index afd18909..30bf6dd3 100644
--- a/lib/kotext/KoTextObject.cpp
+++ b/lib/kotext/KoTextObject.cpp
@@ -564,7 +564,7 @@ void KoTextObject::doKeyboardAction( KoTextCursor * cursor, KoTextFormat * & /*c
undoRedoInfo.oldParagLayouts << parag->paragLayout();
}
if ( cursor->atParagEnd() ) {
- // Get paraglayout from next parag (next can't be 0 here)
+ // Get paragtqlayout from next parag (next can't be 0 here)
KoParagLayout paragLayout = parag->next()->paragLayout();
if ( cursor->remove() )
{
@@ -602,10 +602,10 @@ void KoTextObject::insert( KoTextCursor * cursor, KoTextFormat * currentFormat,
return;
const bool checkNewLine = insertFlags & CheckNewLine;
const bool removeSelected = ( insertFlags & DoNotRemoveSelected ) == 0;
- const bool repaint = ( insertFlags & DoNotRepaint ) == 0;
+ const bool tqrepaint = ( insertFlags & DoNotRepaint ) == 0;
//kdDebug(32500) << "KoTextObject::insert txt=" << txt << endl;
bool tinyRepaint = !checkNewLine;
- if ( repaint )
+ if ( tqrepaint )
emit hideCursor();
if ( textdoc->hasSelection( selectionId, true ) && removeSelected ) {
kdDebug() << k_funcinfo << "removing selection " << selectionId << endl;
@@ -673,7 +673,7 @@ void KoTextObject::insert( KoTextCursor * cursor, KoTextFormat * currentFormat,
}
// Speed optimization: if we only type a char, and it doesn't
- // invalidate the next parag, only format the current one
+ // tqinvalidate the next parag, only format the current one
// ### This idea is wrong. E.g. when the last parag grows and must create a new page.
#if 0
KoTextParag *parag = cursor->parag();
@@ -687,9 +687,9 @@ void KoTextObject::insert( KoTextCursor * cursor, KoTextFormat * currentFormat,
// Doing this here means callers don't have to do it, and cursor can be positionned correctly.
ensureFormatted( cursor->parag() );
- // Speed optimization: if we only type a char, only repaint from current line
+ // Speed optimization: if we only type a char, only tqrepaint from current line
// (In fact the one before. When typing a space, a word could move up to the
- // line before, we need to repaint it too...)
+ // line before, we need to tqrepaint it too...)
if ( !checkNewLine && tinyRepaint && !wasChanged )
{
// insert() called format() which called setChanged().
@@ -703,12 +703,12 @@ void KoTextObject::insert( KoTextCursor * cursor, KoTextFormat * currentFormat,
parag->setLineChanged( origLine - 1 ); // if origLine=0, it'll pass -1, which is 'all'
}
- if ( repaint ) {
+ if ( tqrepaint ) {
emit repaintChanged( this );
emit ensureCursorVisible();
emit showCursor();
- // we typed the first char of a paragraph in AlignAuto mode -> show correct alignment in UI
- if ( oldCursor.index() == 0 && oldCursor.parag()->alignment() == TQt::AlignAuto )
+ // we typed the first char of a paragraph in AlignAuto mode -> show correct tqalignment in UI
+ if ( oldCursor.index() == 0 && oldCursor.parag()->tqalignment() == TQt::AlignAuto )
emit updateUI( true );
}
@@ -722,8 +722,8 @@ void KoTextObject::insert( KoTextCursor * cursor, KoTextFormat * currentFormat,
if ( !removeSelected ) {
// ## not sure why we do this. I'd prefer leaving the selection unchanged...
// but then it'd need adjustements in the offsets etc.
- if ( textdoc->removeSelection( selectionId ) && repaint )
- selectionChangedNotify(); // does the repaint
+ if ( textdoc->removeSelection( selectionId ) && tqrepaint )
+ selectionChangedNotify(); // does the tqrepaint
}
if ( !customItemsMap.isEmpty()
&& !commandName.isNull() /* see replace-selection; #139890 */ ) {
@@ -748,7 +748,7 @@ void KoTextObject::pasteText( KoTextCursor * cursor, const TQString & text, KoTe
kdDebug(32500) << "KoTextObject::pasteText cursor parag=" << cursor->parag()->paragId() << endl;
TQString t = text;
// Need to convert CRLF to NL
- TQRegExp crlf( TQString::fromLatin1("\r\n") );
+ TQRegExp crlf( TQString::tqfromLatin1("\r\n") );
t.replace( crlf, TQChar('\n') );
// Convert non-printable chars
for ( int i=0; (uint) i<t.length(); i++ ) {
@@ -1066,7 +1066,7 @@ KCommand * KoTextObject::setFormatCommand( KoTextCursor * cursor, KoTextFormat *
if ( cursor->parag()->length() == 1 ) {
newFormat->addRef();
cursor->parag()->setFormat( newFormat );
- cursor->parag()->invalidate(0);
+ cursor->parag()->tqinvalidate(0);
cursor->parag()->format();
emit repaintChanged( this );
}
@@ -1146,7 +1146,7 @@ KCommand * KoTextObject::setAlignCommand( KoTextCursor * cursor, int align, KoTe
if ( protectContent() )
return 0L;
if ( !textdoc->hasSelection( selectionId, true ) && cursor &&
- (int)cursor->parag()->alignment() == align )
+ (int)cursor->parag()->tqalignment() == align )
return 0L; // No change needed.
emit hideCursor();
@@ -1165,7 +1165,7 @@ KCommand * KoTextObject::setAlignCommand( KoTextCursor * cursor, int align, KoTe
}
formatMore( 2 );
emit repaintChanged( this );
- undoRedoInfo.newParagLayout.alignment = align;
+ undoRedoInfo.newParagLayout.tqalignment = align;
KoTextParagCommand *cmd = new KoTextParagCommand(
textdoc, undoRedoInfo.id, undoRedoInfo.eid,
undoRedoInfo.oldParagLayouts, undoRedoInfo.newParagLayout,
@@ -1547,7 +1547,7 @@ void KoTextObject::removeSelectedText( KoTextCursor * cursor, KoTextDocument::Se
undoRedoInfo.clear();
}
-KCommand * KoTextObject::removeSelectedTextCommand( KoTextCursor * cursor, KoTextDocument::SelectionId selectionId, bool repaint )
+KCommand * KoTextObject::removeSelectedTextCommand( KoTextCursor * cursor, KoTextDocument::SelectionId selectionId, bool tqrepaint )
{
if ( protectContent() )
return 0L;
@@ -1578,7 +1578,7 @@ KCommand * KoTextObject::removeSelectedTextCommand( KoTextCursor * cursor, KoTex
undoRedoInfo.type = UndoRedoInfo::Invalid; // we don't want clear() to create a command
undoRedoInfo.clear();
- if ( repaint )
+ if ( tqrepaint )
selectionChangedNotify();
return macroCmd;
}
@@ -1592,8 +1592,8 @@ KCommand* KoTextObject::replaceSelectionCommand( KoTextCursor * cursor, const TQ
if ( protectContent() )
return 0L;
Q_ASSERT( ( insertFlags & DoNotRemoveSelected ) == 0 ); // nonsensical
- const bool repaint = ( insertFlags & DoNotRepaint ) == 0; // DoNotRepaint is set during search/replace
- if ( repaint )
+ const bool tqrepaint = ( insertFlags & DoNotRepaint ) == 0; // DoNotRepaint is set during search/replace
+ if ( tqrepaint )
emit hideCursor();
// This could be improved to use a macro command only when there's a selection to remove.
KMacroCommand * macroCmd = new KMacroCommand( cmdName );
@@ -1604,7 +1604,7 @@ KCommand* KoTextObject::replaceSelectionCommand( KoTextCursor * cursor, const TQ
format->addRef();
// Remove selected text, if any
- KCommand* removeSelCmd = removeSelectedTextCommand( cursor, selectionId, repaint );
+ KCommand* removeSelCmd = removeSelectedTextCommand( cursor, selectionId, tqrepaint );
if ( removeSelCmd )
macroCmd->addCommand( removeSelCmd );
@@ -1625,7 +1625,7 @@ KCommand* KoTextObject::replaceSelectionCommand( KoTextCursor * cursor, const TQ
format->removeRef();
setLastFormattedParag( c1.parag() );
- if ( repaint )
+ if ( tqrepaint )
{
formatMore( 2 );
emit repaintChanged( this );
@@ -1645,7 +1645,7 @@ KCommand * KoTextObject::insertParagraphCommand( KoTextCursor *cursor )
return replaceSelectionCommand( cursor, "\n", TQString(), KoTextDocument::Standard, CheckNewLine );
}
-void KoTextObject::highlightPortion( KoTextParag * parag, int index, int length, bool repaint )
+void KoTextObject::highlightPortion( KoTextParag * parag, int index, int length, bool tqrepaint )
{
if ( !m_highlightSelectionAdded )
{
@@ -1656,20 +1656,20 @@ void KoTextObject::highlightPortion( KoTextParag * parag, int index, int length,
m_highlightSelectionAdded = true;
}
- removeHighlight(repaint); // remove previous highlighted selection
+ removeHighlight(tqrepaint); // remove previous highlighted selection
KoTextCursor cursor( textdoc );
cursor.setParag( parag );
cursor.setIndex( index );
textdoc->setSelectionStart( KoTextDocument::HighlightSelection, &cursor );
cursor.setIndex( index + length );
textdoc->setSelectionEnd( KoTextDocument::HighlightSelection, &cursor );
- if ( repaint ) {
+ if ( tqrepaint ) {
parag->setChanged( true );
emit repaintChanged( this );
}
}
-void KoTextObject::removeHighlight(bool repaint)
+void KoTextObject::removeHighlight(bool tqrepaint)
{
if ( textdoc->hasSelection( KoTextDocument::HighlightSelection, true ) )
{
@@ -1677,7 +1677,7 @@ void KoTextObject::removeHighlight(bool repaint)
oldParag->setChanged( true );
textdoc->removeSelection( KoTextDocument::HighlightSelection );
}
- if ( repaint )
+ if ( tqrepaint )
emit repaintChanged( this );
}
@@ -1831,7 +1831,7 @@ bool KoTextObject::formatMore( int count /* = 10 */, bool emitAfterFormatting /*
}
#ifdef DEBUG_FORMAT_MORE
TQString id;
- if ( m_lastFormatted ) id = TQString(" (%1)").arg(m_lastFormatted->paragId());
+ if ( m_lastFormatted ) id = TQString(" (%1)").tqarg(m_lastFormatted->paragId());
kdDebug(32500) << "formatMore finished formatting. "
<< " bottom=" << bottom
<< " m_lastFormatted=" << m_lastFormatted << id
@@ -2041,13 +2041,13 @@ TQString KoTextObject::textChangedCase(const TQString& _text,KoChangeCaseDia::Ty
case KoChangeCaseDia::TitleCase:
for(uint i=0;i<text.length();i++)
{
- if(text.at(i)!=' ')
+ if(text.tqat(i)!=' ')
{
- TQChar prev = text.at(TQMAX(i-1,0));
+ TQChar prev = text.tqat(TQMAX(i-1,0));
if(i==0 || prev == ' ' || prev == '\n' || prev == '\t')
- text=text.replace(i, 1, text.at(i).upper() );
+ text=text.replace(i, 1, text.tqat(i).upper() );
else
- text=text.replace(i, 1, text.at(i).lower() );
+ text=text.replace(i, 1, text.tqat(i).lower() );
}
}
break;
@@ -2055,9 +2055,9 @@ TQString KoTextObject::textChangedCase(const TQString& _text,KoChangeCaseDia::Ty
for(uint i=0;i<text.length();i++)
{
TQString repl=TQString(text.at(i));
- if(text.at(i)!=text.at(i).upper())
+ if(text.tqat(i)!=text.tqat(i).upper())
repl=repl.upper();
- else if(text.at(i).lower()!=text.at(i))
+ else if(text.tqat(i).lower()!=text.tqat(i))
repl=repl.lower();
text=text.replace(i, 1, repl );
}
@@ -2069,7 +2069,7 @@ TQString KoTextObject::textChangedCase(const TQString& _text,KoChangeCaseDia::Ty
{
TQChar prev = text.at(TQMAX(i-1,0));
if(i==0 || prev == '\n' ||prev.isPunct())
- text=text.replace(i, 1, text.at(i).upper() );
+ text=text.replace(i, 1, text.tqat(i).upper() );
}
}
break;
@@ -2167,7 +2167,7 @@ KoTextCursor KoTextObject::pasteOasisText( const TQDomElement &bodyElem, KoOasis
context.styleStack().restore();
lastParagraph->setChanged( true );
- lastParagraph->invalidate( 0 );
+ lastParagraph->tqinvalidate( 0 );
// Now split this parag, to make room for the next paragraphs
resultCursor.setParag( lastParagraph );
@@ -2692,7 +2692,7 @@ KCommand *KoTextFormatInterface::setDefaultFormatCommand()
KCommand *KoTextFormatInterface::setAlignCommand(int align)
{
KoParagLayout format( *currentParagLayoutFormat() );
- format.alignment=align;
+ format.tqalignment=align;
return setParagLayoutFormatCommand(&format,KoParagLayout::Alignment);
}
diff --git a/lib/kotext/KoTextObject.h b/lib/kotext/KoTextObject.h
index 7970a323..15574075 100644
--- a/lib/kotext/KoTextObject.h
+++ b/lib/kotext/KoTextObject.h
@@ -64,11 +64,11 @@ public:
*/
virtual KCommand *setFormatCommand( const KoTextFormat *format, int flags, bool zoomFont = false ) = 0;
- /** Interface for accessing the current parag layout */
+ /** Interface for accessing the current parag tqlayout */
virtual const KoParagLayout * currentParagLayoutFormat() const = 0;
- /** Interface for changing the paragraph layout.
- * @param newLayout pointer to the new layout to apply
+ /** Interface for changing the paragraph tqlayout.
+ * @param newLayout pointer to the new tqlayout to apply
* @param flags one of the KoParagLayout flags
* @param marginIndex type of margin. Only used if flags==KoParagLayout::Margins
*/
@@ -251,7 +251,7 @@ public:
CheckNewLine = 1, /// < if true, the text to be inserted is checked for '\\n' (as a paragraph delimiter)
OverwriteMode = 2,
DoNotRemoveSelected = 4, ///< whether to remove selected text before
- DoNotRepaint = 8 ///< usually we repaint in insert(), this allows to turn it off
+ DoNotRepaint = 8 ///< usually we tqrepaint in insert(), this allows to turn it off
};
/**
@@ -286,7 +286,7 @@ public:
KoTextDocument::SelectionId selectionId = KoTextDocument::Standard,
int insertFlags = DefaultInsertFlags, // KDE4: TODO use TQFlags
CustomItemsMap customItemsMap = CustomItemsMap() );
- KCommand * removeSelectedTextCommand( KoTextCursor * cursor, KoTextDocument::SelectionId selectionId, bool repaint = true );
+ KCommand * removeSelectedTextCommand( KoTextCursor * cursor, KoTextDocument::SelectionId selectionId, bool tqrepaint = true );
KCommand* insertParagraphCommand( KoTextCursor * cursor );
/**
@@ -308,8 +308,8 @@ public:
/** Highlighting support (for search/replace, spellchecking etc.).
* Don't forget to ensure the paragraph is visible.
*/
- void highlightPortion( KoTextParag * parag, int index, int length, bool repaint );
- void removeHighlight( bool repaint );
+ void highlightPortion( KoTextParag * parag, int index, int length, bool tqrepaint );
+ void removeHighlight( bool tqrepaint );
/** Implementation of setFormatCommand from KoTextFormatInterface - apply change to the whole document */
KCommand *setFormatCommand( const KoTextFormat *format, int flags, bool zoomFont = false );
@@ -345,7 +345,7 @@ public:
* @param cursor the current cursor; used if there is no selection. Can be 0L if there is one.
* @param style the KoParagStyle to apply
* @param selectionId the id of the selection, usually Standard or Temp
- * @param paragLayoutFlags which settings from the paragraph layout to apply
+ * @param paragLayoutFlags which settings from the paragraph tqlayout to apply
* @param formatFlags which settings from the text format to apply
* @param createUndoRedo if true, an undo/redo command will be created and emitted
* @param interactive if true, the text will be reformatted/repainted to show the new style
@@ -429,7 +429,7 @@ public:
/**
* Abort the current formatMore() loop, or prevent the next one from starting.
* Use with care. This is e.g. for KWFootNoteVariable, so that it can do
- * a frame layout before formatting the main text again.
+ * a frame tqlayout before formatting the main text again.
* It is important to make sure that formatMore will be called again ;)
*/
void abortFormatting();
diff --git a/lib/kotext/KoTextParag.cpp b/lib/kotext/KoTextParag.cpp
index cc1aecb9..23754c28 100644
--- a/lib/kotext/KoTextParag.cpp
+++ b/lib/kotext/KoTextParag.cpp
@@ -154,7 +154,7 @@ void KoTextParag::setPrev( KoTextParag *s )
doc->setFirstParag( this );
}
-void KoTextParag::invalidate( int /*chr, ignored*/ )
+void KoTextParag::tqinvalidate( int /*chr, ignored*/ )
{
m_invalid = true;
#if 0
@@ -186,7 +186,7 @@ void KoTextParag::setLineChanged( short int line )
void KoTextParag::insert( int index, const TQString &s )
{
str->insert( index, s, formatCollection()->defaultFormat() );
- invalidate( index );
+ tqinvalidate( index );
//needPreProcess = TRUE;
}
@@ -209,7 +209,7 @@ void KoTextParag::remove( int index, int len )
}
}
str->remove( index, len );
- invalidate( 0 );
+ tqinvalidate( 0 );
//needPreProcess = TRUE;
}
@@ -252,7 +252,7 @@ void KoTextParag::join( KoTextParag *s )
extraData()->join( s->extraData() );
}*/
delete s;
- invalidate( 0 );
+ tqinvalidate( 0 );
//// kotext
invalidateCounters();
////
@@ -403,14 +403,14 @@ void KoTextParag::format( int start, bool doMove )
bool makeInvalid = false; //p && p->lastInFrame;
//kdDebug(32500) << "might move of dy=" << dy << ". previous's lastInFrame (=makeInvalid): " << makeInvalid << endl;
while ( s && dy ) {
- if ( s->movedDown ) { // (not in TQRT) : moved down -> invalidate and stop moving down
- s->invalidate( 0 ); // (there is no point in moving down a parag that has a frame break...)
+ if ( s->movedDown ) { // (not in TQRT) : moved down -> tqinvalidate and stop moving down
+ s->tqinvalidate( 0 ); // (there is no point in moving down a parag that has a frame break...)
break;
}
if ( !s->isFullWidth() )
makeInvalid = TRUE;
if ( makeInvalid )
- s->invalidate( 0 );
+ s->tqinvalidate( 0 );
s->move( dy );
//if ( s->lastInFrame )
// makeInvalid = TRUE;
@@ -600,7 +600,7 @@ void KoTextParag::setFormat( int index, int len, const KoTextFormat *_f, bool us
_f->shadowDistanceX() != of->shadowDistanceX() ||
_f->shadowDistanceY() != of->shadowDistanceY()
) ) {
- invalidate( 0 );
+ tqinvalidate( 0 );
}
if ( flags == -1 || flags == KoTextFormat::Format || !fc ) {
#ifdef DEBUG_COLLECTION
@@ -690,7 +690,7 @@ void KoTextParag::setDirection( TQChar::Direction d )
{
if ( str && str->direction() != d ) {
str->setDirection( d );
- invalidate( 0 );
+ tqinvalidate( 0 );
//// kotext
m_layout.direction = d;
invalidateCounters(); // #47178
@@ -837,7 +837,7 @@ void KoTextParag::lineInfo( int l, int &y, int &h, int &bl ) const
bl = ( *it )->baseLine;
}
-uint KoTextParag::alignment() const
+uint KoTextParag::tqalignment() const
{
return align;
}
@@ -946,66 +946,66 @@ void KoTextParag::setMargin( TQStyleSheetItem::Margin m, double _i )
//kdDebug(32500) << "KoTextParag::setMargin " << m << " margin " << _i << endl;
m_layout.margins[m] = _i;
if ( m == TQStyleSheetItem::MarginTop && prev() )
- prev()->invalidate(0); // for top margin (post-1.1: remove this, not necessary anymore)
- invalidate(0);
+ prev()->tqinvalidate(0); // for top margin (post-1.1: remove this, not necessary anymore)
+ tqinvalidate(0);
}
void KoTextParag::setMargins( const double * margins )
{
for ( int i = 0 ; i < 5 ; ++i )
m_layout.margins[i] = margins[i];
- invalidate(0);
+ tqinvalidate(0);
}
void KoTextParag::setAlign( int align )
{
Q_ASSERT( align <= TQt::AlignJustify );
align &= TQt::AlignHorizontal_Mask;
- setAlignment( align );
- m_layout.alignment = align;
+ tqsetAlignment( align );
+ m_layout.tqalignment = align;
}
int KoTextParag::resolveAlignment() const
{
- if ( (int)m_layout.alignment == TQt::AlignAuto )
+ if ( (int)m_layout.tqalignment == TQt::AlignAuto )
return str->isRightToLeft() ? TQt::AlignRight : TQt::AlignLeft;
- return m_layout.alignment;
+ return m_layout.tqalignment;
}
void KoTextParag::setLineSpacing( double _i )
{
m_layout.setLineSpacingValue(_i);
- invalidate(0);
+ tqinvalidate(0);
}
void KoTextParag::setLineSpacingType( KoParagLayout::SpacingType _type )
{
m_layout.lineSpacingType = _type;
- invalidate(0);
+ tqinvalidate(0);
}
void KoTextParag::setTopBorder( const KoBorder & _brd )
{
m_layout.topBorder = _brd;
- invalidate(0);
+ tqinvalidate(0);
}
void KoTextParag::setBottomBorder( const KoBorder & _brd )
{
m_layout.bottomBorder = _brd;
- invalidate(0);
+ tqinvalidate(0);
}
void KoTextParag::setJoinBorder( bool join )
{
m_layout.joinBorder = join;
- invalidate(0);
+ tqinvalidate(0);
}
void KoTextParag::setBackgroundColor ( const TQColor& color )
{
m_layout.backgroundColor = color;
- invalidate(0);
+ tqinvalidate(0);
}
void KoTextParag::setNoCounter()
@@ -1060,17 +1060,17 @@ void KoTextParag::invalidateCounters()
{
// Invalidate this paragraph and all the following ones
// (Numbering may have changed)
- invalidate( 0 );
+ tqinvalidate( 0 );
if ( m_layout.counter )
- m_layout.counter->invalidate();
+ m_layout.counter->tqinvalidate();
KoTextParag *s = next();
// #### Possible optimization: since any invalidation propagates down,
// it's enough to stop at the first paragraph with an already-invalidated counter, isn't it?
- // This is only true if nobody else calls counter->invalidate...
+ // This is only true if nobody else calls counter->tqinvalidate...
while ( s ) {
if ( s->m_layout.counter )
- s->m_layout.counter->invalidate();
- s->invalidate( 0 );
+ s->m_layout.counter->tqinvalidate();
+ s->tqinvalidate( 0 );
s = s->next();
}
}
@@ -1290,13 +1290,13 @@ int KoTextParag::rightMargin() const
KoTextZoomHandler * zh = textDocument()->formattingZoomHandler();
int cw=0;
if( m_layout.counter && str->isRightToLeft() &&
- (( m_layout.counter->alignment() == TQt::AlignRight ) || ( m_layout.counter->alignment() == TQt::AlignAuto )))
+ (( m_layout.counter->tqalignment() == TQt::AlignRight ) || ( m_layout.counter->tqalignment() == TQt::AlignAuto )))
cw = counterWidth();
return zh->ptToLayoutUnitPixX(
m_layout.margins[ TQStyleSheetItem::MarginRight ]
+ m_layout.rightBorder.width() )
- + cw; /* in layout units already */
+ + cw; /* in tqlayout units already */
}
int KoTextParag::firstLineMargin() const
@@ -1597,13 +1597,13 @@ void KoTextParag::paintLines( TQPainter &painter, const TQColorGroup &cg, KoText
// we flush before and after tabs
flush = flush || ( chr->c == '\t' || nextchr->c == '\t' );
// we flush on soft hypens
- flush = flush || ( chr->c.unicode() == 0xad );
+ flush = flush || ( chr->c.tqunicode() == 0xad );
// we flush on custom items
flush = flush || chr->isCustom();
// we flush before custom items
flush = flush || nextchr->isCustom();
// when painting justified we flush on spaces
- if ((alignment() & TQt::AlignJustify) == TQt::AlignJustify )
+ if ((tqalignment() & TQt::AlignJustify) == TQt::AlignJustify )
//flush = flush || TQTextFormatter::isBreakable( str, i );
flush = flush || chr->whiteSpace;
// when underlining or striking "word by word" we flush before/after spaces
@@ -1847,7 +1847,7 @@ void KoTextParag::drawParagStringInternal( TQPainter &painter, const TQString &s
// 3) Paint
TQString str( s );
- if ( str[ (int)str.length() - 1 ].unicode() == 0xad )
+ if ( str[ (int)str.length() - 1 ].tqunicode() == 0xad )
str.remove( str.length() - 1, 1 );
painter.setPen( TQPen( textColor ) );
painter.setFont( font );
@@ -1877,7 +1877,7 @@ void KoTextParag::drawParagStringInternal( TQPainter &painter, const TQString &s
}
KoTextParag::drawFontEffects( &painter, format, zh, font, textColor, startX, baseLine, bw, lastY, h, str[start] );
- if ( str[ start ] != '\t' && str[ start ].unicode() != 0xad ) {
+ if ( str[ start ] != '\t' && str[ start ].tqunicode() != 0xad ) {
str = format->displayedString( str ); // #### This converts the whole string, instead of from start to start+len!
if ( format->vAlign() == KoTextFormat::AlignNormal ) {
int posY = lastY + baseLine;
@@ -1965,7 +1965,7 @@ void KoTextParag::drawParagStringInternal( TQPainter &painter, const TQString &s
#ifdef DEBUG_PAINT
//kdDebug(32500) << "we are drawing the end of line " << line << ". Auto-hyphenated: " << lineHyphenated( line ) << endl;
#endif
- bool drawHyphen = at( start+len-1 )->c.unicode() == 0xad;
+ bool drawHyphen = at( start+len-1 )->c.tqunicode() == 0xad;
drawHyphen = drawHyphen || lineHyphenated( line );
if ( drawHyphen ) {
#ifdef DEBUG_PAINT
@@ -2059,7 +2059,7 @@ void KoTextParag::copyParagData( KoTextParag *parag )
//else
// kdWarning() << "Paragraph has no style " << paragId() << endl;
- // No "following style" setting, or same style -> copy layout & format of previous paragraph
+ // No "following style" setting, or same style -> copy tqlayout & format of previous paragraph
if (!styleApplied)
{
setParagLayout( parag->paragLayout() );
@@ -2082,7 +2082,7 @@ void KoTextParag::copyParagData( KoTextParag *parag )
// Note: we don't call the original KoTextParag::copyParagData on purpose.
// We don't want setListStyle to get called - it ruins our stylesheetitems
// And we don't care about copying the stylesheetitems directly,
- // applying the parag layout will create them
+ // applying the parag tqlayout will create them
}
void KoTextParag::setTabList( const KoTabulatorList &tabList )
@@ -2104,7 +2104,7 @@ void KoTextParag::setTabList( const KoTabulatorList &tabList )
{
setTabArray( 0 );
}
- invalidate( 0 );
+ tqinvalidate( 0 );
}
/** "Reimplemented" (compared to nextTabDefault) to implement non-left-aligned tabs */
@@ -2240,43 +2240,43 @@ void KoTextParag::applyStyle( KoParagStyle *style )
setFormat( newFormat );
}
-void KoTextParag::setParagLayout( const KoParagLayout & layout, int flags, int marginIndex )
+void KoTextParag::setParagLayout( const KoParagLayout & tqlayout, int flags, int marginIndex )
{
//kdDebug(32500) << "KoTextParag::setParagLayout flags=" << flags << endl;
if ( flags & KoParagLayout::Alignment )
- setAlign( layout.alignment );
+ setAlign( tqlayout.tqalignment );
if ( flags & KoParagLayout::Margins ) {
if ( marginIndex == -1 )
- setMargins( layout.margins );
+ setMargins( tqlayout.margins );
else
- setMargin( (TQStyleSheetItem::Margin)marginIndex, layout.margins[marginIndex] );
+ setMargin( (TQStyleSheetItem::Margin)marginIndex, tqlayout.margins[marginIndex] );
}
if ( flags & KoParagLayout::LineSpacing )
{
- setLineSpacingType( layout.lineSpacingType );
- setLineSpacing( layout.lineSpacingValue() );
+ setLineSpacingType( tqlayout.lineSpacingType );
+ setLineSpacing( tqlayout.lineSpacingValue() );
}
if ( flags & KoParagLayout::Borders )
{
- setLeftBorder( layout.leftBorder );
- setRightBorder( layout.rightBorder );
- setTopBorder( layout.topBorder );
- setBottomBorder( layout.bottomBorder );
- setJoinBorder( layout.joinBorder );
+ setLeftBorder( tqlayout.leftBorder );
+ setRightBorder( tqlayout.rightBorder );
+ setTopBorder( tqlayout.topBorder );
+ setBottomBorder( tqlayout.bottomBorder );
+ setJoinBorder( tqlayout.joinBorder );
}
if ( flags & KoParagLayout::BackgroundColor )
{
- setBackgroundColor( layout.backgroundColor );
+ setBackgroundColor( tqlayout.backgroundColor );
}
if ( flags & KoParagLayout::BulletNumber )
- setCounter( layout.counter );
+ setCounter( tqlayout.counter );
if ( flags & KoParagLayout::Tabulator )
- setTabList( layout.tabList() );
+ setTabList( tqlayout.tabList() );
if ( flags == KoParagLayout::All )
{
- setDirection( static_cast<TQChar::Direction>(layout.direction) );
+ setDirection( static_cast<TQChar::Direction>(tqlayout.direction) );
// Don't call applyStyle from here, it would overwrite any paragraph-specific settings
- setStyle( layout.style );
+ setStyle( tqlayout.style );
}
}
@@ -2290,7 +2290,7 @@ void KoTextParag::setCustomItem( int index, KoTextCustomItem * custom, KoTextFor
//addCustomItem();
document()->registerCustomItem( custom, this );
custom->recalc(); // calc value (e.g. for variables) and set initial size
- invalidate( 0 );
+ tqinvalidate( 0 );
setChanged( true );
}
@@ -2349,7 +2349,7 @@ void KoTextParag::printRTDebug( int info )
static const char * const s_align[] = { "Auto", "Left", "Right", "ERROR", "HCenter", "ERR", "ERR", "ERR", "Justify", };
static const char * const s_linespacing[] = { "Single", "1.5", "2", "custom", "atLeast", "Multiple", "Fixed" };
static const char * const s_dir[] = { "DirL", "DirR", "DirEN", "DirES", "DirET", "DirAN", "DirCS", "DirB", "DirS", "DirWS", "DirON", "DirLRE", "DirLRO", "DirAL", "DirRLE", "DirRLO", "DirPDF", "DirNSM", "DirBN" };
- kdDebug(32500) << " align: " << s_align[alignment()] << " resolveAlignment: " << s_align[resolveAlignment()]
+ kdDebug(32500) << " align: " << s_align[tqalignment()] << " resolveAlignment: " << s_align[resolveAlignment()]
<< " isRTL:" << str->isRightToLeft()
<< " dir: " << s_dir[direction()] << endl;
TQRect pixr = pixelRect( textDocument()->paintingZoomHandler() );
@@ -2421,7 +2421,7 @@ void KoTextParag::printRTDebug( int info )
attrs.truncate( attrs.length() - 1 );
kdDebug(32500) << i << ": '" << TQString(ch.c).rightJustify(2)
- << "' (" << TQString::number( ch.c.unicode() ).rightJustify(3) << ")"
+ << "' (" << TQString::number( ch.c.tqunicode() ).rightJustify(3) << ")"
<< " x(LU)=" << ch.x
<< " w(LU)=" << ch.width//s->width(i)
<< " x(PIX)=" << pixelx
@@ -2849,7 +2849,7 @@ void KoTextParag::loadOasisSpan( const TQDomElement& parent, KoOasisContext& con
KoParagLayout KoTextParag::loadParagLayout( KoOasisContext& context, KoStyleCollection *styleCollection, bool findStyle )
{
- KoParagLayout layout;
+ KoParagLayout tqlayout;
// Only when loading paragraphs, not when loading styles
if ( findStyle )
@@ -2877,17 +2877,17 @@ KoParagLayout KoTextParag::loadParagLayout( KoOasisContext& context, KoStyleColl
style = styleCollection->findStyle( "Standard" );
}
Q_ASSERT(style);
- layout.style = style;
+ tqlayout.style = style;
}
- KoParagLayout::loadOasisParagLayout( layout, context );
+ KoParagLayout::loadOasisParagLayout( tqlayout, context );
- return layout;
+ return tqlayout;
}
void KoTextParag::loadOasis( const TQDomElement& parent, KoOasisContext& context, KoStyleCollection *styleCollection, uint& pos )
{
- // First load layout from style
+ // First load tqlayout from style
KoParagLayout paragLayout = loadParagLayout( context, styleCollection, true );
setParagLayout( paragLayout );
@@ -2906,7 +2906,7 @@ void KoTextParag::loadOasis( const TQDomElement& parent, KoOasisContext& context
setFormat( len - 1, 1, paragFormat(), TRUE );
setChanged( true );
- invalidate( 0 );
+ tqinvalidate( 0 );
}
void KoTextParag::saveOasis( KoXmlWriter& writer, KoSavingContext& context,
@@ -2915,7 +2915,7 @@ void KoTextParag::saveOasis( KoXmlWriter& writer, KoSavingContext& context,
{
KoGenStyles& mainStyles = context.mainStyles();
- // Write paraglayout to styles (with parent == the parag's style)
+ // Write paragtqlayout to styles (with parent == the parag's style)
TQString parentStyleName;
if ( m_layout.style )
parentStyleName = m_layout.style->name();
@@ -2924,11 +2924,11 @@ void KoTextParag::saveOasis( KoXmlWriter& writer, KoSavingContext& context,
paragFormat()->save( autoStyle, context );
m_layout.saveOasis( autoStyle, context, false );
- // First paragraph is special, it includes page-layout info (for word-processing at least)
+ // First paragraph is special, it includes page-tqlayout info (for word-processing at least)
if ( !prev() ) {
if ( context.variableSettings() )
autoStyle.addProperty( "style:page-number", context.variableSettings()->startingPageNumber() );
- // Well we support only one page layout, so the first parag always points to "Standard".
+ // Well we support only one page tqlayout, so the first parag always points to "Standard".
autoStyle.addAttribute( "style:master-page-name", "Standard" );
}
@@ -3212,7 +3212,7 @@ void KoTextParag::drawFormattingChars( TQPainter &painter, int start, int len,
#endif
if ( ch.isCustom() )
continue;
- if ( (ch.c == ' ' || ch.c.unicode() == 0x00a0U)
+ if ( (ch.c == ' ' || ch.c.tqunicode() == 0x00a0U)
&& (whichFormattingChars & FormattingSpace))
{
// Don't use ch.pixelwidth here. We want a square with
diff --git a/lib/kotext/KoTextParag.h b/lib/kotext/KoTextParag.h
index d8e0c29b..e27a9afc 100644
--- a/lib/kotext/KoTextParag.h
+++ b/lib/kotext/KoTextParag.h
@@ -93,7 +93,7 @@ public:
void format( int start = -1, bool doMove = TRUE );
/// Call this to ensure that format() will be called on this paragraph later on
- void invalidate( int chr /*ignored*/ = 0 );
+ void tqinvalidate( int chr /*ignored*/ = 0 );
/// Returns false if format() needs to be called on this paragraph
bool isValid() const;
@@ -130,9 +130,9 @@ public:
void setFormat( int index, int len, const KoTextFormat *f, bool useCollection = TRUE, int flags = -1 );
- void setAlignment( uint a );
- void setAlignmentDirect( uint a ) { align = a; }
- uint alignment() const;
+ void tqsetAlignment( uint a );
+ void tqsetAlignmentDirect( uint a ) { align = a; }
+ uint tqalignment() const;
virtual void paint( TQPainter &painter, const TQColorGroup &cg, KoTextCursor *cursor, bool drawSelections,
int clipx, int clipy, int clipw, int cliph ); // kotextparag.cc
@@ -214,7 +214,7 @@ public:
/** Sets all or some parameters from a paragLayout struct.
* @param flags selects which settings to apply, see KoParagLayout's enum. */
- virtual void setParagLayout( const KoParagLayout &layout, int flags = KoParagLayout::All,
+ virtual void setParagLayout( const KoParagLayout &tqlayout, int flags = KoParagLayout::All,
int marginIndex = -1 );
const KoParagLayout & paragLayout() { return m_layout; }
@@ -235,9 +235,9 @@ public:
void setLineSpacingType( KoParagLayout::SpacingType _type );
- /** Use this to change the paragraph alignment, not KoTextParag::setAlignment ! */
+ /** Use this to change the paragraph tqalignment, not KoTextParag::tqsetAlignment ! */
void setAlign( int align );
- /** Return the real alignment: Auto is resolved to either Left or Right */
+ /** Return the real tqalignment: Auto is resolved to either Left or Right */
int resolveAlignment() const;
/// The part of the top margin that can be broken by a page break
@@ -328,7 +328,7 @@ public:
/**
* Load a section of text from a oasis based xml tree.
- * @param parent the xml element that has content as children.
+ * @param parent the xml element that has content as tqchildren.
* @param context the context
* @param stripLeadingSpace whether to remove leading literal whitespace
*/
@@ -336,7 +336,7 @@ public:
/**
* Load a section of text from a oasis based xml tree.
- * @param parent the xml element that has content as children.
+ * @param parent the xml element that has content as tqchildren.
* @param context the context
* @param stripLeadingSpace whether to remove leading literal whitespace
* @param hasTrailingSpace whether there was trailing literal whitespace in the span's text
@@ -520,18 +520,18 @@ inline KoTextDocument *KoTextParag::document() const
return doc;
}
-inline void KoTextParag::setAlignment( uint a )
+inline void KoTextParag::tqsetAlignment( uint a )
{
if ( a == align )
return;
align = a;
- invalidate( 0 );
+ tqinvalidate( 0 );
}
/*inline void KoTextParag::setListStyle( TQStyleSheetItem::ListStyle ls )
{
lstyle = ls;
- invalidate( 0 );
+ tqinvalidate( 0 );
}
inline TQStyleSheetItem::ListStyle KoTextParag::listStyle() const
diff --git a/lib/kotext/KoTextView.cpp b/lib/kotext/KoTextView.cpp
index aadeff06..32e82b73 100644
--- a/lib/kotext/KoTextView.cpp
+++ b/lib/kotext/KoTextView.cpp
@@ -41,7 +41,7 @@
#include <tqapplication.h>
#include <tqtimer.h>
-#include <clipboard.h>
+#include <tqclipboard.h>
class KoTextView::KoTextViewPrivate
{
@@ -291,7 +291,7 @@ void KoTextView::handleKeyPressEvent( TQKeyEvent * e, TQWidget *widget, const TQ
break;
}
default: {
- //kdDebug(32500) << "KoTextView::keyPressEvent ascii=" << e->ascii() << " text=" << e->text()[0].unicode() << " state=" << e->state() << endl;
+ //kdDebug(32500) << "KoTextView::keyPressEvent ascii=" << e->ascii() << " text=" << e->text()[0].tqunicode() << " state=" << e->state() << endl;
if (e->key() == TQt::Key_Tab)
{
if (doToolTipCompletion(m_cursor, m_cursor->parag(), m_cursor->index() - 1, e->key()) )
@@ -331,7 +331,7 @@ void KoTextView::handleKeyPressEvent( TQKeyEvent * e, TQWidget *widget, const TQ
// Bidi support: need to reverse mirrored chars (e.g. parenthesis)
KoTextParag *p = m_cursor->parag();
if ( p && p->string() && p->string()->isRightToLeft() ) {
- TQChar *c = (TQChar *)text.unicode();
+ TQChar *c = (TQChar *)text.tqunicode();
int l = text.length();
while( l-- ) {
if ( c->mirrored() )
@@ -611,7 +611,7 @@ KoTextCursor KoTextView::selectWordUnderCursor( const KoTextCursor& cursor, int
const bool isWordDelimiter = ch.isSpace()
|| ch.category() == TQChar::Punctuation_Open // e.g. '('
|| ch.category() == TQChar::Punctuation_Close // e.g. ')'
- || ch.category() == TQChar::Punctuation_Other // see http://www.fileformat.info/info/unicode/category/Po/list.htm
+ || ch.category() == TQChar::Punctuation_Other // see http://www.fileformat.info/info/tqunicode/category/Po/list.htm
;
if( !beginFound && !isWordDelimiter )
@@ -643,9 +643,9 @@ KoTextCursor KoTextView::selectParagUnderCursor( const KoTextCursor& cursor, int
{
textObject()->selectionChangedNotify();
// Copy the selection.
- TQApplication::clipboard()->setSelectionMode( true );
+ TQApplication::tqclipboard()->setSelectionMode( true );
emit copy();
- TQApplication::clipboard()->setSelectionMode( false );
+ TQApplication::tqclipboard()->setSelectionMode( false );
}
return c2;
}
@@ -808,9 +808,9 @@ void KoTextView::handleMouseReleaseEvent()
textObject()->selectionChangedNotify();
// Copy the selection.
- TQApplication::clipboard()->setSelectionMode( true );
+ TQApplication::tqclipboard()->setSelectionMode( true );
emit copy();
- TQApplication::clipboard()->setSelectionMode( false );
+ TQApplication::tqclipboard()->setSelectionMode( false );
}
inDoubleClick = FALSE;
@@ -831,9 +831,9 @@ void KoTextView::handleMouseDoubleClickEvent( TQMouseEvent*ev, const TQPoint& i
*m_cursor = selectWordUnderCursor( *m_cursor );
textObject()->selectionChangedNotify();
// Copy the selection.
- TQApplication::clipboard()->setSelectionMode( true );
+ TQApplication::tqclipboard()->setSelectionMode( true );
emit copy();
- TQApplication::clipboard()->setSelectionMode( false );
+ TQApplication::tqclipboard()->setSelectionMode( false );
possibleTripleClick=true;
@@ -900,8 +900,8 @@ bool KoTextView::insertParagraph(const TQPoint &pos)
if ( pos.x() + f->width(' ') >= textDocument()->width())
{
//FIXME me bidi.
- //change parag alignment => right alignment
- last->setAlignment( TQt::AlignRight );
+ //change parag tqalignment => right tqalignment
+ last->tqsetAlignment( TQt::AlignRight );
}
else
{
@@ -1207,7 +1207,7 @@ bool KoTextView::openLink( KoLinkVariable* variable )
}
else
{
- KMessageBox::sorry( 0, i18n("%1 is not a valid link.").arg( variable->url() ) );
+ KMessageBox::sorry( 0, i18n("%1 is not a valid link.").tqarg( variable->url() ) );
return false;
}
}
@@ -1450,10 +1450,10 @@ void KoTextView::copyTextOfComment()
{
KURL::List lst;
lst.append( var->note() );
- TQApplication::clipboard()->setSelectionMode(true);
- TQApplication::clipboard()->setData( new KURLDrag(lst, 0, 0) );
- TQApplication::clipboard()->setSelectionMode(false);
- TQApplication::clipboard()->setData( new KURLDrag(lst, 0, 0) );
+ TQApplication::tqclipboard()->setSelectionMode(true);
+ TQApplication::tqclipboard()->setData( new KURLDrag(lst, 0, 0) );
+ TQApplication::tqclipboard()->setSelectionMode(false);
+ TQApplication::tqclipboard()->setData( new KURLDrag(lst, 0, 0) );
}
}
@@ -1476,13 +1476,13 @@ KoParagStyle * KoTextView::createStyleFromSelection(const TQString & name)
if ( textDocument()->hasSelection( KoTextDocument::Standard ) )
cursor = textDocument()->selectionStartCursor( KoTextDocument::Standard );
KoParagStyle * style = new KoParagStyle (name);
- KoParagLayout layout(cursor.parag()->paragLayout());
- layout.style = style;
+ KoParagLayout tqlayout(cursor.parag()->paragLayout());
+ tqlayout.style = style;
style->setFollowingStyle( style );
style->format() = *(cursor.parag()->at(cursor.index())->format());
- style->paragLayout() = layout;
- // Select this new style - hmm only the parag layout, we don't want to erase any text-formatting
+ style->paragLayout() = tqlayout;
+ // Select this new style - hmm only the parag tqlayout, we don't want to erase any text-formatting
cursor.parag()->setParagLayout( style->paragLayout() );
return style;
}
@@ -1500,7 +1500,7 @@ void KoTextView::updateStyleFromSelection( KoParagStyle* style )
void KoTextView::addBookmarks(const TQString &url)
{
- TQString filename = locateLocal( "data", TQString::fromLatin1("konqueror/bookmarks.xml") );
+ TQString filename = locateLocal( "data", TQString::tqfromLatin1("konqueror/bookmarks.xml") );
KBookmarkManager *bookManager = KBookmarkManager::managerForFile( filename,false );
KBookmarkGroup group = bookManager->root();
group.addBookmark( bookManager, url, KURL( url));
@@ -1515,10 +1515,10 @@ void KoTextView::copyLink()
{
KURL::List lst;
lst.append( var->url() );
- TQApplication::clipboard()->setSelectionMode(true);
- TQApplication::clipboard()->setData( new KURLDrag(lst, 0, 0) );
- TQApplication::clipboard()->setSelectionMode(false);
- TQApplication::clipboard()->setData( new KURLDrag(lst, 0, 0) );
+ TQApplication::tqclipboard()->setSelectionMode(true);
+ TQApplication::tqclipboard()->setData( new KURLDrag(lst, 0, 0) );
+ TQApplication::tqclipboard()->setSelectionMode(false);
+ TQApplication::tqclipboard()->setData( new KURLDrag(lst, 0, 0) );
}
}
diff --git a/lib/kotext/KoTextZoomHandler.h b/lib/kotext/KoTextZoomHandler.h
index d1bc6025..f8c2ef12 100644
--- a/lib/kotext/KoTextZoomHandler.h
+++ b/lib/kotext/KoTextZoomHandler.h
@@ -33,7 +33,7 @@ public:
//// Support for WYSIWYG text layouting /////
- /** The "[zoomed] view pixel" -> "layout unit pixel" conversions. */
+ /** The "[zoomed] view pixel" -> "tqlayout unit pixel" conversions. */
int pixelToLayoutUnitX( int x ) const;
int pixelToLayoutUnitY( int y ) const;
TQPoint pixelToLayoutUnit( const TQPoint &p ) const
@@ -43,7 +43,7 @@ public:
{ return TQRect( pixelToLayoutUnit( r.topLeft() ),
pixelToLayoutUnit( r.bottomRight() ) ); }
- /** The "layout unit pixel" -> "[zoomed] view pixel" conversions. */
+ /** The "tqlayout unit pixel" -> "[zoomed] view pixel" conversions. */
int layoutUnitToPixelX( int lupix ) const;
int layoutUnitToPixelY( int lupix ) const;
@@ -89,26 +89,26 @@ public:
}
/**
- * Given the font size for the font in layout units, in pt (use pointSize())
+ * Given the font size for the font in tqlayout units, in pt (use pointSize())
* this returns the font size to use on screen the current zoom, in pt (use setPointSizeFloat()),
*/
double layoutUnitToFontSize( int luSize, bool /*forPrint*/ ) const;
- // Note: For converting fontsizes from/to layout units and zoom-independent
+ // Note: For converting fontsizes from/to tqlayout units and zoom-independent
// pt sizes (like the one the user sees, e.g. 12pt),
// use ptToLayoutUnit and layoutUnitToPt, not layoutToFontSize.
- // The conversions below convert between an internal text layout resolution of
+ // The conversions below convert between an internal text tqlayout resolution of
// ~1440 DPI (by default) and the point-size for the fonts (those known by the user).
// Those conversions don't depend on the zoom level.
/** Change the factor that converts between pointsizes
- * and layout units (by default 20 - for 1440 DPI at 72 DPI) */
+ * and tqlayout units (by default 20 - for 1440 DPI at 72 DPI) */
static void setPtToLayoutUnitFactor( int factor ) { m_layoutUnitFactor = factor; }
/** Not zoom dependent. Simply convert a pt value (e.g. a frame)
- * to high-resolution layout unit coordinates (in pt). */
+ * to high-resolution tqlayout unit coordinates (in pt). */
static double ptToLayoutUnitPt( double pt )
{ return pt * static_cast<double>( m_layoutUnitFactor ); }
/** Same thing for integer values, e.g. a font size in pt */
diff --git a/lib/kotext/KoVariable.cpp b/lib/kotext/KoVariable.cpp
index 489752f0..fa1b03fe 100644
--- a/lib/kotext/KoVariable.cpp
+++ b/lib/kotext/KoVariable.cpp
@@ -123,7 +123,7 @@ void KoVariableSettings::saveOasis( KoXmlWriter &settingsWriter ) const
settingsWriter.addConfigItem( "displayfieldcode", m_displayFieldCode);
// m_startingPageNumber isn't saved to OASIS. Applications must use either
// style:page-number in the first parag of a page (see KoTextParag), or
- // style:first-page-number in style:page-layout, for spreadsheets etc.
+ // style:first-page-number in style:page-tqlayout, for spreadsheets etc.
if ( d->m_lastPrintingDate.isValid())
settingsWriter.addConfigItem("lastPrintingDate", d->m_lastPrintingDate.toString(Qt::ISODate));
@@ -532,7 +532,7 @@ TQValueList<KoVariable *> KoVariableCollection::recalcVariables(int type)
if ( parag )
{
//kdDebug(32500) << "KoDoc::recalcVariables -> invalidating parag " << parag->paragId() << endl;
- parag->invalidate( 0 );
+ parag->tqinvalidate( 0 );
parag->setChanged( true );
}
}
@@ -896,7 +896,7 @@ void KoVariable::recalcAndRepaint()
if ( parag )
{
//kdDebug(32500) << "KoVariable::recalcAndRepaint -> invalidating parag " << parag->paragId() << endl;
- parag->invalidate( 0 );
+ parag->tqinvalidate( 0 );
parag->setChanged( true );
}
textDocument()->emitRepaintChanged();
@@ -978,7 +978,7 @@ void KoVariable::drawCustomItemHelper( TQPainter* p, int x, int y, int wpix, int
//p->drawText( x, posY, str );
// We can't just drawText, it wouldn't use the same kerning as the one
// that resize() planned for [which is zoom-independent].
- // We need to do the layout using layout units instead, so for simplicity
+ // We need to do the tqlayout using tqlayout units instead, so for simplicity
// I just draw every char individually (whereas KoTextFormatter/KoTextParag
// detect runs of text that can be drawn together)
const int len = str.length();
@@ -988,9 +988,9 @@ void KoVariable::drawCustomItemHelper( TQPainter* p, int x, int y, int wpix, int
{
const TQChar ch = str[i];
p->drawText( x, posY, TQString(ch) );
- // Do like KoTextFormatter: do the layout in layout units.
+ // Do like KoTextFormatter: do the tqlayout in tqlayout units.
xLU += KoTextZoomHandler::ptToLayoutUnitPt( fm.width( ch ) );
- // And then compute the X position in pixels from the layout unit X.
+ // And then compute the X position in pixels from the tqlayout unit X.
x = zh->layoutUnitToPixelX( xLU );
}
@@ -1211,7 +1211,7 @@ void KoDateVariable::resize()
void KoDateVariable::recalc()
{
if ( m_subtype == VST_DATE_CURRENT )
- m_varValue = TQDateTime(TQDateTime::currentDateTime().addDays(m_correctDate));
+ m_varValue = TQDateTime(TQDateTime::tqcurrentDateTime().addDays(m_correctDate));
else if ( m_subtype == VST_DATE_LAST_PRINTING )
m_varValue = m_varColl->variableSetting()->lastPrintingDate();
else if ( m_subtype == VST_DATE_CREATE_FILE )
@@ -1222,7 +1222,7 @@ void KoDateVariable::recalc()
{
// Only if never set before (i.e. upon insertion)
if ( m_varValue.isNull() )
- m_varValue = TQDateTime(TQDateTime::currentDateTime().addDays(m_correctDate));
+ m_varValue = TQDateTime(TQDateTime::tqcurrentDateTime().addDays(m_correctDate));
}
resize();
}
@@ -1319,9 +1319,9 @@ void KoDateVariable::saveOasis( KoXmlWriter& writer, KoSavingContext& context )
else if ( value.lower() == "localeshort" )
value = KGlobal::locale()->dateFormatShort();
else if ( value.lower() == "localedatetime" )
- value = TQString( "%1 %2" ).arg( KGlobal::locale()->dateFormat() ).arg( KGlobal::locale()->timeFormat() );
+ value = TQString( "%1 %2" ).tqarg( KGlobal::locale()->dateFormat() ).tqarg( KGlobal::locale()->timeFormat() );
else if ( value.lower() == "localedatetimeshort" )
- value = TQString( "%1 %2" ).arg( KGlobal::locale()->dateFormatShort() ).arg( KGlobal::locale()->timeFormat() );
+ value = TQString( "%1 %2" ).tqarg( KGlobal::locale()->dateFormatShort() ).tqarg( KGlobal::locale()->timeFormat() );
klocaleFormat = true;
}
writer.addAttribute( "style:data-style-name", KoOasisStyles::saveOasisDateStyle(context.mainStyles(), value, klocaleFormat ) );
@@ -2505,7 +2505,7 @@ void KoLinkVariable::drawCustomItem( TQPainter* p, int x, int y, int wpix, int h
/******************************************************************/
KoNoteVariable::KoNoteVariable( KoTextDocument *textdoc, const TQString & _note,KoVariableFormat *varFormat,KoVariableCollection *_varColl )
: KoVariable( textdoc, varFormat,_varColl )
- , m_createdNoteDate( TQDate::currentDate() )
+ , m_createdNoteDate( TQDate::tqcurrentDate() )
{
m_varValue = TQVariant( _note );
}
diff --git a/lib/kotext/KoVariable.h b/lib/kotext/KoVariable.h
index fce8fc2d..88f17975 100644
--- a/lib/kotext/KoVariable.h
+++ b/lib/kotext/KoVariable.h
@@ -405,7 +405,7 @@ public:
TQVariant varValue() const { return m_varValue; }
/**
- * Ask this variable to recalculate and to repaint itself
+ * Ask this variable to recalculate and to tqrepaint itself
* Only use this if you're working on a single variable (e.g. popupmenu).
* Otherwise, better do the repainting all at once.
* @see KoVariableCollection::recalcVariables()
diff --git a/lib/kotext/kodecorationtabbase.ui b/lib/kotext/kodecorationtabbase.ui
index 7c8896b5..cd8f17f2 100644
--- a/lib/kotext/kodecorationtabbase.ui
+++ b/lib/kotext/kodecorationtabbase.ui
@@ -18,7 +18,7 @@
</property>
<widget class="TQGroupBox">
<property name="name">
- <cstring>colorGroupBox</cstring>
+ <cstring>tqcolorGroupBox</cstring>
</property>
<property name="title">
<string>Colors</string>
@@ -126,7 +126,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
@@ -143,7 +143,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>21</height>
diff --git a/lib/kotext/kohighlightingtabbase.ui b/lib/kotext/kohighlightingtabbase.ui
index b2b4ce26..27be0702 100644
--- a/lib/kotext/kohighlightingtabbase.ui
+++ b/lib/kotext/kohighlightingtabbase.ui
@@ -120,7 +120,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>41</height>
diff --git a/lib/kotext/kohyphen/kohyphen.cpp b/lib/kotext/kohyphen/kohyphen.cpp
index 723c50c2..d8a0374e 100644
--- a/lib/kotext/kohyphen/kohyphen.cpp
+++ b/lib/kotext/kohyphen/kohyphen.cpp
@@ -21,7 +21,7 @@
#include <tqdom.h>
#include <tqfile.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqstring.h>
#include <klocale.h>
@@ -177,10 +177,10 @@ HyphenDict *KoHyphenator::dict(const TQString &_lang) const
if ( underscore > -1 ) {
lang.truncate( underscore );
if (encodings.find(lang) == encodings.end())
- throw KoHyphenatorException( TQString("No dictionary for %1").arg(lang) );
+ throw KoHyphenatorException( TQString("No dictionary for %1").tqarg(lang) );
}
else
- throw KoHyphenatorException( TQString("No dictionary for %1").arg(lang) );
+ throw KoHyphenatorException( TQString("No dictionary for %1").tqarg(lang) );
}
if (dicts.find(lang) == dicts.end())
{
@@ -199,11 +199,11 @@ HyphenDict *KoHyphenator::dict(const TQString &_lang) const
#ifdef DEBUG_HYPHENATOR
kdDebug() << "No dictionary loaded" << endl;
#endif
- throw(KoHyphenatorException( TQString("Could not load dictionary for the language: %1").arg(lang) ));
+ throw(KoHyphenatorException( TQString("Could not load dictionary for the language: %1").tqarg(lang) ));
}
}
else
- throw(KoHyphenatorException( TQString("Could not load dictionary for the language: %1").arg(lang) ));
+ throw(KoHyphenatorException( TQString("Could not load dictionary for the language: %1").tqarg(lang) ));
}
return dicts[lang];
}
diff --git a/lib/kotext/kolanguagetabbase.ui b/lib/kotext/kolanguagetabbase.ui
index 0fbd5442..a9073584 100644
--- a/lib/kotext/kolanguagetabbase.ui
+++ b/lib/kotext/kolanguagetabbase.ui
@@ -60,7 +60,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>171</height>
diff --git a/lib/kotext/kolayouttabbase.ui b/lib/kotext/kolayouttabbase.ui
index 646bc795..471607d4 100644
--- a/lib/kotext/kolayouttabbase.ui
+++ b/lib/kotext/kolayouttabbase.ui
@@ -40,7 +40,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<vbox>
<property name="name">
@@ -94,7 +94,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>61</width>
<height>20</height>
@@ -103,7 +103,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<grid>
<property name="name">
@@ -225,7 +225,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
diff --git a/lib/kotext/tests/kobordertest.cpp b/lib/kotext/tests/kobordertest.cpp
index 356b0158..5d5fbe5e 100644
--- a/lib/kotext/tests/kobordertest.cpp
+++ b/lib/kotext/tests/kobordertest.cpp
@@ -11,14 +11,14 @@ class MyWidget : public TQWidget
public:
MyWidget( KoZoomHandler* _zh, TQWidget* parent )
: TQWidget( parent ), m_zh(_zh) {
- setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed );
+ tqsetSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed );
}
- TQSize sizeHint() const {
+ TQSize tqsizeHint() const {
return TQSize( 150, 150 );
}
- TQSize minimumSizeHint() const {
- return sizeHint();
+ TQSize tqminimumSizeHint() const {
+ return tqsizeHint();
}
KoBorder m_leftBorder;
diff --git a/lib/kotext/tests/kotextformattertest.cpp b/lib/kotext/tests/kotextformattertest.cpp
index 6721f771..b6138315 100644
--- a/lib/kotext/tests/kotextformattertest.cpp
+++ b/lib/kotext/tests/kotextformattertest.cpp
@@ -89,7 +89,7 @@ void KoTextFormatterTest::speedTest()
// Format it 50 times
for ( uint i = 0 ; i < 50 ; ++i )
{
- parag->invalidate(0);
+ parag->tqinvalidate(0);
parag->format();
}
doc->clear(false);
@@ -205,8 +205,8 @@ int main (int argc, char ** argv)
KApplication app(argc, argv, "KoTextFormatter test");
// Don't let locale settings lead to different hyphenation output
- KGlobal::locale()->setLanguage( TQString::fromLatin1( "en_US" ) );
- KGlobal::locale()->setCountry( TQString::fromLatin1( "C" ) );
+ KGlobal::locale()->setLanguage( TQString::tqfromLatin1( "en_US" ) );
+ KGlobal::locale()->setCountry( TQString::tqfromLatin1( "C" ) );
KoTextFormatterTest test;
//test.speedTest();
diff --git a/lib/kotext/timedateformatwidget.ui b/lib/kotext/timedateformatwidget.ui
index ded1c906..830b3bdb 100644
--- a/lib/kotext/timedateformatwidget.ui
+++ b/lib/kotext/timedateformatwidget.ui
@@ -20,7 +20,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -38,7 +38,7 @@
</property>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout7</cstring>
+ <cstring>tqlayout7</cstring>
</property>
<vbox>
<property name="name">
@@ -59,7 +59,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
@@ -86,7 +86,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -113,7 +113,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
@@ -137,7 +137,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -175,7 +175,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>10</height>