diff options
Diffstat (limited to 'kword/KWDocument.cpp')
-rw-r--r-- | kword/KWDocument.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kword/KWDocument.cpp b/kword/KWDocument.cpp index 19d87a05..138cf92a 100644 --- a/kword/KWDocument.cpp +++ b/kword/KWDocument.cpp @@ -201,7 +201,7 @@ KWDocument::KWDocument(TQWidget *tqparentWidget, const char *widname, TQObject* m_viewFormattingBreak = true; m_viewFrameBorders = true; - m_tqrepaintAllViewsPending = false; + m_repaintAllViewsPending = false; m_recalcFramesPending = -1; m_bShowDocStruct = true; m_bShowRuler = true; @@ -488,7 +488,7 @@ void KWDocument::newZoomAndResolution( bool updateViews, bool forPrint ) if ( updateViews ) { emit newContentsSize(); - tqrepaintAllViews( true ); + repaintAllViews( true ); } } @@ -2437,7 +2437,7 @@ bool KWDocument::completeLoading( KoStore *store ) fixZOrders(); emit newContentsSize(); - tqrepaintAllViews( true ); // in case any view exists already + repaintAllViews( true ); // in case any view exists already reactivateBgSpellChecking(); connect( documentInfo(), TQT_SIGNAL( sigDocumentInfoModifed()),this,TQT_SLOT(slotDocumentInfoModifed() ) ); @@ -2716,7 +2716,7 @@ void KWDocument::completePasting() TQPtrListIterator<KWFrameSet> fit = framesetsIterator(); for ( ; fit.current() ; ++fit ) fit.current()->finalize(); - tqrepaintAllViews(); + repaintAllViews(); delete m_pasteFramesetsMap; m_pasteFramesetsMap = 0L; } @@ -2726,7 +2726,7 @@ void KWDocument::completeOasisPasting() TQPtrListIterator<KWFrameSet> fit = framesetsIterator(); for ( ; fit.current() ; ++fit ) fit.current()->finalize(); - tqrepaintAllViews(); + repaintAllViews(); } void KWDocument::insertEmbedded( KoStore *store, TQDomElement topElem, KMacroCommand * macroCmd, double offset ) @@ -3894,15 +3894,15 @@ KWPartFrameSet* KWDocument::insertObject( const KoRect& rect, KoDocumentEntry& e void KWDocument::delayedRepaintAllViews() { - if (!m_tqrepaintAllViewsPending) { + if (!m_repaintAllViewsPending) { TQTimer::singleShot( 0, this, TQT_SLOT( slotRepaintAllViews() ) ); - m_tqrepaintAllViewsPending=true; + m_repaintAllViewsPending=true; } } void KWDocument::slotRepaintAllViews() { - m_tqrepaintAllViewsPending=false; - tqrepaintAllViews( false ); + m_repaintAllViewsPending=false; + repaintAllViews( false ); } void KWDocument::delayedRecalcFrames( int fromPage ) { @@ -3922,13 +3922,13 @@ void KWDocument::slotRecalcFrames() { recalcFrames( from ); } -void KWDocument::tqrepaintAllViewsExcept( KWView *view, bool erase ) +void KWDocument::repaintAllViewsExcept( KWView *view, bool erase ) { - //kdDebug(32001) << "KWDocument::tqrepaintAllViewsExcept" << endl; + //kdDebug(32001) << "KWDocument::repaintAllViewsExcept" << endl; for( TQValueList<KWView *>::Iterator it = m_lstViews.begin(); it != m_lstViews.end(); ++it ) { KWView* viewPtr = *it; if ( viewPtr != view /*&& viewPtr->getGUI() && viewPtr->getGUI()->canvasWidget()*/ ) { - viewPtr->getGUI()->canvasWidget()->tqrepaintAll( erase ); + viewPtr->getGUI()->canvasWidget()->repaintAll( erase ); } } } @@ -3966,11 +3966,11 @@ void KWDocument::updateAllTableStyleLists() (*it)->updateTableStyleList(); } -void KWDocument::tqrepaintAllViews( bool erase ) +void KWDocument::repaintAllViews( bool erase ) { - //kdDebug(32001) << "KWDocument::tqrepaintAllViews" << endl; + //kdDebug(32001) << "KWDocument::repaintAllViews" << endl; for( TQValueList<KWView *>::Iterator it = m_lstViews.begin(); it != m_lstViews.end(); ++it ) - (*it)->getGUI()->canvasWidget()->tqrepaintAll( erase ); + (*it)->getGUI()->canvasWidget()->repaintAll( erase ); } TQPtrList<KWFrame> KWDocument::framesToCopyOnNewPage( int afterPageNum ) const { @@ -4087,7 +4087,7 @@ void KWDocument::afterInsertPage( int pageNum ) recalcVariables( VT_PGNUM ); emit numPagesChanged(); if ( m_viewModeType == "ModePreview" ) - tqrepaintAllViews(); + repaintAllViews(); } bool KWDocument::canRemovePage( int num ) @@ -4156,7 +4156,7 @@ void KWDocument::afterRemovePages() { //### IMHO recalcFrames should take care of updateAllFrames (it already does it partially). recalcFrames(); - // Do this before recalcVariables (which tqrepaints). The removed frames must be removed from the frame caches. + // Do this before recalcVariables (which repaints). The removed frames must be removed from the frame caches. // We don't call updateAllFrames() directly, because it still calls // updateFramesOnTopOrBelow, which is useless (and slow) here. TQPtrListIterator<KWFrameSet> fit = framesetsIterator(); @@ -4167,7 +4167,7 @@ void KWDocument::afterRemovePages() if ( !m_bGeneratingPreview ) emit newContentsSize(); if ( m_viewModeType == "ModePreview" ) - tqrepaintAllViews(); + repaintAllViews(); } bool KWDocument::tryRemovingPages() @@ -4328,7 +4328,7 @@ void KWDocument::updateAllFrames( int flags ) } // Tell this method when a frame is moved / resized / created / deleted -// and everything will be update / tqrepainted accordingly +// and everything will be update / repainted accordingly void KWDocument::frameChanged( KWFrame * frame ) { if(! m_framesChangedHandler) { @@ -4366,7 +4366,7 @@ void KWDocument::setHeaderVisible( bool h ) updateAllFrames(); tqlayout(); setModified(true); - tqrepaintAllViews( true ); + repaintAllViews( true ); } void KWDocument::setFooterVisible( bool f ) @@ -4376,7 +4376,7 @@ void KWDocument::setFooterVisible( bool f ) updateAllFrames(); tqlayout(); setModified(true); - tqrepaintAllViews( true ); + repaintAllViews( true ); } bool KWDocument::hasEndNotes() const @@ -4600,7 +4600,7 @@ void KWDocument::slotRepaintChanged( KWFrameSet * frameset ) // This has to be a loop instead of a signal, so that we can // send "true" for the last view (see KWFrameSet::drawContents) for( TQValueList<KWView *>::Iterator it = m_lstViews.begin(); it != m_lstViews.end(); ++it ) { - (*it)->getGUI()->canvasWidget()->tqrepaintChanged( frameset, it == m_lstViews.fromLast() ); + (*it)->getGUI()->canvasWidget()->repaintChanged( frameset, it == m_lstViews.fromLast() ); } } @@ -4827,7 +4827,7 @@ void KWDocument::reactivateBgSpellChecking() for ( frm=textFramesets.first(); frm != 0; frm=textFramesets.next() ){ frm->textObject()->setNeedSpellCheck(true); } - tqrepaintAllViews(); + repaintAllViews(); startBackgroundSpellCheck(); } @@ -5085,7 +5085,7 @@ void KWDocument::setTabStopValue ( double tabStop ) frm->textDocument()->setTabStops( ptToLayoutUnitPixX( tabStop )); frm->tqlayout(); } - tqrepaintAllViews(); + repaintAllViews(); } void KWDocument::setGlobalHyphenation( bool hyphen ) @@ -5126,7 +5126,7 @@ void KWDocument::switchViewMode( const TQString& newViewModeType ) updateAllFrames(); tqlayout(); - tqrepaintAllViews( true ); + repaintAllViews( true ); for( TQValueList<KWView *>::Iterator it = m_lstViews.begin(); it != m_lstViews.end(); ++it ) (*it)->getGUI()->canvasWidget()->ensureCursorVisible(); } @@ -5475,8 +5475,8 @@ void KWDocument::FramesChangedHandler::execute() { // If frame with text flowing around it -> re-tqlayout all frames if ( m_needLayout) m_parent->tqlayout(); - //m_parent->tqrepaintAllViewsExcept( 0 ); - m_parent->tqrepaintAllViews(); + //m_parent->repaintAllViewsExcept( 0 ); + m_parent->repaintAllViews(); m_parent->updateRulerFrameStartEnd(); } |