kword

KWFrameList Class Reference

#include <KWFrameList.h>

List of all members.


Detailed Description

This class calculates and caches a list of frames that are on top or below the KWFrame instance this class is created for.

Definition at line 32 of file KWFrameList.h.


Public Member Functions

 KWFrameList (KWDocument *doc, KWFrame *theFrame)
QValueList< KWFrame * > framesBelow () const
QValueList< KWFrame * > framesOnTop () const
void updateAfterMove (int oldPageNum)
void update ()

Static Public Member Functions

static void recalcAllFrames (KWDocument *doc)
static void recalcFrames (KWDocument *doc, int pageFrom, int pageTo)
static void createFrameList (KWFrame *f, KWDocument *doc)
static void createFrameList (KWFrameSet *fs, KWDocument *doc, bool forceUpdate=true)

Constructor & Destructor Documentation

KWFrameList::KWFrameList ( KWDocument *  doc,
KWFrame theFrame 
)

Constructor.

Parameters:
doc the document that will reference all framesets.
theFrame the frame this framestack work for.

Definition at line 29 of file KWFrameList.cpp.


Member Function Documentation

QValueList< KWFrame * > KWFrameList::framesBelow (  )  const

Fetches the frames below the frame this frameList is for.

Definition at line 36 of file KWFrameList.cpp.

QValueList< KWFrame * > KWFrameList::framesOnTop (  )  const

Fetches the frames on top of the frame this frameList is for.

Definition at line 48 of file KWFrameList.cpp.

void KWFrameList::updateAfterMove ( int  oldPageNum  ) 

Update the z-ordering around the frame we host the framelist for.

This is typically called after this frame has been moved. This will make sure all frames on the same page will also be updated.

Parameters:
oldPageNum a frame that has moved naturally has a previous page number which also needs to be updated because this frame has gone missing.

Definition at line 113 of file KWFrameList.cpp.

void KWFrameList::update (  ) 

Update the z-ordering around the frame we host the framelist for.

This will make sure all frames on the same page will also be updated.

Definition at line 121 of file KWFrameList.cpp.

void KWFrameList::recalcAllFrames ( KWDocument *  doc  )  [static]

Update the z-ordering for all frames of the whole document.

Parameters:
doc the document where we can find the frames to be updated

Definition at line 175 of file KWFrameList.cpp.

void KWFrameList::recalcFrames ( KWDocument *  doc,
int  pageFrom,
int  pageTo 
) [static]

Update the z-ordering for all frames in the page section of the whole document.

Parameters:
doc the document where we can find the frames to be updated
pageFrom the first page that will be updated
pageTo the last page (including) that will be updated

Definition at line 163 of file KWFrameList.cpp.

void KWFrameList::createFrameList ( KWFrame f,
KWDocument *  doc 
) [static]

Factory method to create and attach a new instance of a framelist.

Note; when an instance of a frameList already exists, calling this will do nothing.

Parameters:
f the frame to add te new framelist to.
doc the document that the frame belongs to.

Definition at line 179 of file KWFrameList.cpp.

void KWFrameList::createFrameList ( KWFrameSet fs,
KWDocument *  doc,
bool  forceUpdate = true 
) [static]

Factory method to create and attach a new instance of a framelist to each frame on the frameset.

Note; when an instance of a frameList already exists on a frame, calling this will not overwrite the one on that frame.

Parameters:
fs the frameset to add te new framelists to.
doc the document that the frame belongs to.
forceUpdate when true, even already existing frameList instances will be updated.
See also:
update();

Definition at line 187 of file KWFrameList.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys