diff options
Diffstat (limited to 'kword/KWFrameList.cpp')
-rw-r--r-- | kword/KWFrameList.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kword/KWFrameList.cpp b/kword/KWFrameList.cpp index 8df2da8d..10e6c467 100644 --- a/kword/KWFrameList.cpp +++ b/kword/KWFrameList.cpp @@ -33,25 +33,25 @@ KWFrameList::KWFrameList(KWDocument *doc, KWFrame *theFrame) { update(); } -QValueList<KWFrame *> KWFrameList::framesBelow() const { - QValueList<KWFrame *> frames; +TQValueList<KWFrame *> KWFrameList::framesBelow() const { + TQValueList<KWFrame *> frames; //kdDebug() << "framesBelow " << endl; // Copy until we find m_frame - for ( QValueVector<KWFrame*>::const_iterator it = m_frames.begin(), end = m_frames.end(); it != end && *it != m_frame; ++it) { + for ( TQValueVector<KWFrame*>::const_iterator it = m_frames.begin(), end = m_frames.end(); it != end && *it != m_frame; ++it) { frames.append( *it ); } return frames; } -QValueList<KWFrame *> KWFrameList::framesOnTop() const { +TQValueList<KWFrame *> KWFrameList::framesOnTop() const { //kdDebug() << "framesOnTop " << endl; - QValueList<KWFrame *> frames; + TQValueList<KWFrame *> frames; // Copy from m_frame to the end bool found = false; - for ( QValueVector<KWFrame*>::const_iterator it = m_frames.begin(), end = m_frames.end(); it != end; ++it) { + for ( TQValueVector<KWFrame*>::const_iterator it = m_frames.begin(), end = m_frames.end(); it != end; ++it) { KWFrame* frame = *it; if ( found ) { Q_ASSERT( !frame->frameSet()->isFloating() ); @@ -64,22 +64,22 @@ QValueList<KWFrame *> KWFrameList::framesOnTop() const { return frames; } -void KWFrameList::setFrames(const QPtrList<KWFrame> &frames) { +void KWFrameList::setFrames(const TQPtrList<KWFrame> &frames) { // kdDebug(31001) << "KWFrameList::setFrames for " << m_frame->frameSet()->name() << endl; m_frames.clear(); - if ( m_doc->layoutViewMode() && !m_doc->layoutViewMode()->hasFrames() ) + if ( m_doc->tqlayoutViewMode() && !m_doc->tqlayoutViewMode()->hasFrames() ) return; - QPtrList<KWFrameSet> parentFramesets; + TQPtrList<KWFrameSet> tqparentFramesets; KWFrameSet *fs = m_frame->frameSet(); while(fs) { - parentFramesets.append(fs); + tqparentFramesets.append(fs); fs = (KWFrameSet*) fs->anchorFrameset(); } // We now look at all other frames (in the same page) // to check for intersections. This is o(n^2), but with n small. - QPtrListIterator<KWFrame> it( frames ); + TQPtrListIterator<KWFrame> it( frames ); for ( ; it.current() ; ++it ) { KWFrame* daFrame = it.current(); @@ -92,15 +92,15 @@ void KWFrameList::setFrames(const QPtrList<KWFrame> &frames) { // We trust that KWTableFrameSet will not make cells overlap ;) if ( m_frame->frameSet()->groupmanager() || daFrame->frameSet()->groupmanager() ) continue; - // Skip all frames from the parent frameset, if 'm_frame' is floating + // Skip all frames from the tqparent frameset, if 'm_frame' is floating // ## might need a for loop for the case of inline-inside-inline, // or maybe calling isPaintedBy instead [depending on what should happen for tables] if ( daFrame->frameSet()->isFloating() && - (parentFramesets.contains(daFrame->frameSet()->anchorFrameset()) || + (tqparentFramesets.tqcontains(daFrame->frameSet()->anchorFrameset()) || daFrame->frameSet()->isPaintedBy(m_frame->frameSet())) ) continue; // Floating frames are not "on top", they are "inside". - // They are not "below" anything either - the parent frameset is. + // They are not "below" anything either - the tqparent frameset is. if ( m_frame->frameSet()->isFloating() ) continue; KoRect intersect = m_frame->intersect( daFrame->outerKoRect() ); @@ -125,15 +125,15 @@ void KWFrameList::update() { updateZOrderFor(m_doc->framesInPage( pageNumber, false )); } -void KWFrameList::updateZOrderFor(const QPtrList<KWFrame> &frames) { +void KWFrameList::updateZOrderFor(const TQPtrList<KWFrame> &frames) { #ifdef DEBUG_SPEED kdDebug(32001) << "KWFrameList::updateZOrderFor " << frames.count() << " frames"<< endl; - QTime dt; + TQTime dt; dt.start(); int numberAdded = 0; #endif - QPtrListIterator<KWFrame> iter(frames); + TQPtrListIterator<KWFrame> iter(frames); while( iter.current() ) { KWFrame *frame = iter.current(); Q_ASSERT( frame->frameStack() ); @@ -152,7 +152,7 @@ void KWFrameList::updateZOrderFor(const QPtrList<KWFrame> &frames) { // ****** statics ****** KWFrameList *KWFrameList::getFirstFrameList(KWDocument *doc) { - for (QPtrListIterator<KWFrameSet> fsit = doc->framesetsIterator(); fsit.current() ; ++fsit ) { + for (TQPtrListIterator<KWFrameSet> fsit = doc->framesetsIterator(); fsit.current() ; ++fsit ) { KWFrame *frame = fsit.current()->frame(0); if (frame && frame->frameStack()) return frame->frameStack(); @@ -162,7 +162,7 @@ KWFrameList *KWFrameList::getFirstFrameList(KWDocument *doc) { void KWFrameList::recalcFrames(KWDocument *doc, int pageFrom, int pageTo) { for(int i=pageTo; i >= pageFrom; i--) { - QPtrList<KWFrame> framesOnPage = doc->framesInPage( i, false ); + TQPtrList<KWFrame> framesOnPage = doc->framesInPage( i, false ); KWFrame *f = framesOnPage.first(); while(f) { Q_ASSERT(f->frameStack()); @@ -185,7 +185,7 @@ void KWFrameList::createFrameList(KWFrame *f, KWDocument *doc) { } void KWFrameList::createFrameList(KWFrameSet *fs, KWDocument *doc, bool forceUpdate) { - QPtrListIterator<KWFrame> iter( fs->frameIterator() ); + TQPtrListIterator<KWFrame> iter( fs->frameIterator() ); KWFrame *f = iter.current(); while(f) { createFrameList(f, doc); |