summaryrefslogtreecommitdiffstats
path: root/kword/KWView.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-28 18:11:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-03 19:23:45 +0900
commit0bd9d5459891e6fb17ee6802878f85e217cb9f54 (patch)
tree962f6ea26d1fab041fe3476fbbd64132ab8ada1b /kword/KWView.cpp
parentcb258b7e39ffa5662b57e7d9006e69172a378d7e (diff)
downloadkoffice-r14.1.4.tar.gz
koffice-r14.1.4.zip
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit cf85b9c285a2b9baa87c9d0cb9d683b48e82a475)
Diffstat (limited to 'kword/KWView.cpp')
-rw-r--r--kword/KWView.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/kword/KWView.cpp b/kword/KWView.cpp
index 278ea451b..598aa403e 100644
--- a/kword/KWView.cpp
+++ b/kword/KWView.cpp
@@ -270,8 +270,8 @@ KWView::KWView( const TQString& viewMode, TQWidget *parent, const char *name, KW
TQObject::connect( this, TQ_SIGNAL( embeddImage( const TQString & ) ),
this, TQ_SLOT( slotEmbedImage( const TQString & ) ) );
- setKeyCompression( TRUE );
- setAcceptDrops( TRUE );
+ setKeyCompression( true );
+ setAcceptDrops( true );
setupActions();
@@ -501,7 +501,7 @@ void KWView::initGui()
m_gui->canvasWidget()->setMouseMode( m_gui->canvasWidget()->mouseMode() );
bool editingFormula = dynamic_cast<KWFormulaFrameSetEdit *>( m_gui->canvasWidget()->currentFrameSetEdit() ) != 0;
- //showFormulaToolbar( FALSE ); // not called, to avoid creating the formula-document if not necessary
+ //showFormulaToolbar( false ); // not called, to avoid creating the formula-document if not necessary
if(shell())
shell()->showToolbar( "formula_toolbar", editingFormula );
@@ -929,7 +929,7 @@ void KWView::setupActions()
this, TQ_SLOT( textAlignLeft() ),
actionCollection(), "format_alignleft" );
m_actionFormatAlignLeft->setExclusiveGroup( "align" );
- m_actionFormatAlignLeft->setChecked( TRUE );
+ m_actionFormatAlignLeft->setChecked( true );
m_actionFormatAlignCenter = new TDEToggleAction( i18n( "Align &Center" ), "text_center", TQt::CTRL + TQt::ALT + TQt::Key_C,
this, TQ_SLOT( textAlignCenter() ),
actionCollection(), "format_aligncenter" );
@@ -1448,7 +1448,7 @@ void KWView::loadexpressionActions( TDEActionMenu * parentMenu)
}
}
- //TQStringList files = KWFactory::instance()->dirs()->findAllResources( "expression", "*.xml", TRUE );
+ //TQStringList files = KWFactory::instance()->dirs()->findAllResources( "expression", "*.xml", true );
int i = 0;
int nbFile = 0;
for( TQStringList::Iterator it = files.begin(); it != files.end(); ++it,nbFile++ )
@@ -1820,22 +1820,22 @@ void KWView::print( KPrinter &prt )
//kdDebug() << "KWView::print metrics: " << metrics.logicalDpiX() << "," << metrics.logicalDpiY() << endl;
//kdDebug() << "x11AppDPI: " << KoGlobal::dpiX() << "," << KoGlobal::dpiY() << endl;
- bool serialLetter = FALSE;
+ bool serialLetter = false;
TQPtrList<KoVariable> vars = m_doc->variableCollection()->getVariables();
KoVariable *v = 0;
for ( v = vars.first(); v; v = vars.next() ) {
if ( v->type() == VT_MAILMERGE ) {
- serialLetter = TRUE;
+ serialLetter = true;
break;
}
}
- if ( !m_doc->mailMergeDataBase() ) serialLetter=FALSE;
+ if ( !m_doc->mailMergeDataBase() ) serialLetter=false;
else
{
m_doc->mailMergeDataBase()->refresh(false);
- if (m_doc->mailMergeDataBase()->getNumRecords() == 0 ) serialLetter = FALSE;
+ if (m_doc->mailMergeDataBase()->getNumRecords() == 0 ) serialLetter = false;
}
//float left_margin = 0.0;
@@ -2006,16 +2006,16 @@ void KWView::showAlign( int align ) {
kdWarning() << k_funcinfo << "shouldn't be called with AlignAuto" << endl;
// fallthrough
case TQt::AlignLeft:
- m_actionFormatAlignLeft->setChecked( TRUE );
+ m_actionFormatAlignLeft->setChecked( true );
break;
case TQt::AlignHCenter:
- m_actionFormatAlignCenter->setChecked( TRUE );
+ m_actionFormatAlignCenter->setChecked( true );
break;
case TQt::AlignRight:
- m_actionFormatAlignRight->setChecked( TRUE );
+ m_actionFormatAlignRight->setChecked( true );
break;
case TQt::AlignJustify:
- m_actionFormatAlignBlock->setChecked( TRUE );
+ m_actionFormatAlignBlock->setChecked( true );
break;
}
}
@@ -2024,18 +2024,18 @@ void KWView::showSpacing( int spacing ) {
switch ( spacing )
{
case KoParagLayout::LS_SINGLE:
- m_actionFormatSpacingSingle->setChecked( TRUE );
+ m_actionFormatSpacingSingle->setChecked( true );
break;
case KoParagLayout::LS_ONEANDHALF:
- m_actionFormatSpacingOneAndHalf->setChecked( TRUE );
+ m_actionFormatSpacingOneAndHalf->setChecked( true );
break;
case KoParagLayout::LS_DOUBLE:
- m_actionFormatSpacingDouble->setChecked( TRUE );
+ m_actionFormatSpacingDouble->setChecked( true );
break;
default:
- m_actionFormatSpacingSingle->setChecked( FALSE );
- m_actionFormatSpacingOneAndHalf->setChecked( FALSE );
- m_actionFormatSpacingDouble->setChecked( FALSE );
+ m_actionFormatSpacingSingle->setChecked( false );
+ m_actionFormatSpacingOneAndHalf->setChecked( false );
+ m_actionFormatSpacingDouble->setChecked( false );
}
}
@@ -2164,10 +2164,10 @@ void KWView::showMouseMode( int mouseMode )
break;
}
- m_actionTableJoinCells->setEnabled( FALSE );
- m_actionTableSplitCells->setEnabled( FALSE );
+ m_actionTableJoinCells->setEnabled( false );
+ m_actionTableSplitCells->setEnabled( false );
m_actionTableProtectCells->setEnabled( false );
- m_actionFormatFrameSet->setEnabled(FALSE);
+ m_actionFormatFrameSet->setEnabled(false);
m_actionTablePropertiesMenu->setEnabled( false );
m_actionConvertTableToText->setEnabled( false );
}
@@ -2914,7 +2914,7 @@ void KWView::editMailMergeDataBase()
KWMailMergeEditor *dia = new KWMailMergeEditor( this, m_doc->mailMergeDataBase() );
dia->exec();
// Don't know if we really need this so it's commented out (SL)
- // m_gui->canvasWidget()->repaintAll( FALSE );
+ // m_gui->canvasWidget()->repaintAll( false );
delete dia;
#endif
}
@@ -5677,7 +5677,7 @@ void KWView::spellCheckerRemoveHighlight()
}
KWTextFrameSetEdit * edit = currentTextEdit();
if (edit)
- edit->drawCursor( TRUE );
+ edit->drawCursor( true );
}
void KWView::spellAddAutoCorrect (const TQString & originalword, const TQString & newword)
@@ -6029,7 +6029,7 @@ void KWView::setViewFrameBorders(bool b)
bool KWView::doubleClickActivation() const
{
- return TRUE;
+ return true;
}
TQWidget* KWView::canvas() const
@@ -6104,7 +6104,7 @@ void KWView::savePicture()
kdDebug() << "Picture has mime type: " << mimetype << endl;
TQStringList mimetypes;
mimetypes << mimetype;
- KFileDialog fd( oldFile, TQString(), this, 0, TRUE );
+ KFileDialog fd( oldFile, TQString(), this, 0, true );
fd.setMimeFilter( mimetypes );
fd.setCaption(i18n("Save Picture"));
fd.setOperationMode(KFileDialog::Saving);
@@ -6732,7 +6732,7 @@ void KWView::docStructSpeak()
void KWView::insertFile()
{
- KFileDialog fd( TQString(), TQString(), this, 0, TRUE );
+ KFileDialog fd( TQString(), TQString(), this, 0, true );
fd.setMimeFilter( "application/x-kword" );
fd.setCaption(i18n("Insert File"));
KURL url;
@@ -7660,8 +7660,8 @@ KWGUI::KWGUI( const TQString& viewMode, TQWidget *parent, KWView *daView )
connect( m_horRuler, TQ_SIGNAL( tabListChanged( const KoTabulatorList & ) ), m_view,
TQ_SLOT( tabListChanged( const KoTabulatorList & ) ) );
- setKeyCompression( TRUE );
- setAcceptDrops( TRUE );
+ setKeyCompression( true );
+ setAcceptDrops( true );
setFocusPolicy( TQWidget::NoFocus );
}