kword

KWFrameLayout Class Reference

List of all members.

Detailed Description

Definition at line 32 of file KWFrameLayout.h.


Public Types

 DontRemovePages = 1
enum  { DontRemovePages = 1 }

Public Member Functions

 KWFrameLayout (KWDocument *doc, QPtrList< HeaderFooterFrameset > &headersFooters, QPtrList< HeaderFooterFrameset > &footnotes, QPtrList< HeaderFooterFrameset > &endnotes)
void layout (KWFrameSet *mainTextFrameSet, int numColumns, int fromPage, int toPage, uint flags)

Protected Types

 NoFootNote
 WithFootNotes
 NoChange
enum  HasFootNotes { NoFootNote, WithFootNotes, NoChange }

Protected Member Functions

void resizeOrCreateHeaderFooter (KWTextFrameSet *headerFooter, uint frameNumber, const KoRect &rect)
KoRect firstColumnRect (KWFrameSet *mainTextFrameSet, int pageNum, int numColumns) const
bool resizeMainTextFrame (KWFrameSet *mainTextFrameSet, int pageNum, int numColumns, double ptColumnWidth, double ptColumnSpacing, double left, double top, double bottom, HasFootNotes hasFootNotes)
void checkFootNotes ()

Classes

struct  HeaderFooterFrameset

Constructor & Destructor Documentation

KWFrameLayout::KWFrameLayout ( KWDocument doc,
QPtrList< HeaderFooterFrameset > &  headersFooters,
QPtrList< HeaderFooterFrameset > &  footnotes,
QPtrList< HeaderFooterFrameset > &  endnotes 
) [inline]

Constructor.

Parameters:
doc the KWDocument we're layouting
headersFooters list of header and footer HFFs (see definition of HeaderFooterFrameset)
footnotes list of footnotes framesets HFFs
endnotes list of endnotes framesets HFFs

Definition at line 85 of file KWFrameLayout.h.


Member Function Documentation

void KWFrameLayout::layout ( KWFrameSet mainTextFrameSet,
int  numColumns,
int  fromPage,
int  toPage,
uint  flags 
)

The main method of this file.

Do the frame layout.

Parameters:
mainTextFrameSet if set, its frames will be resized. Usually: set in WP mode, not set in DTP mode.
numColumns number of columns to create for the main textframeset. Only relevant if mainTextFrameSet!=0.
fromPage first page to layout ( 0-based )
toPage last page to layout ( 0-based )
flags see enum above

Definition at line 132 of file KWFrameLayout.cpp.


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