lib
KoTextFlow Class Reference
List of all members.Detailed Description
Definition at line 413 of file KoRichText.h.
Public Member Functions | |
KoTextFlow () | |
virtual | ~KoTextFlow () |
virtual void | setWidth (int width) |
int | width () const |
virtual void | adjustMargins (int yp, int h, int reqMinWidth, int &leftMargin, int &rightMargin, int &pageWidth, KoTextParag *parag) |
virtual void | registerFloatingItem (KoTextCustomItem *item) |
virtual void | unregisterFloatingItem (KoTextCustomItem *item) |
virtual int | availableHeight () const |
virtual void | drawFloatingItems (QPainter *p, int cx, int cy, int cw, int ch, const QColorGroup &cg, bool selected) |
virtual int | adjustFlow (int y, int w, int h) |
virtual bool | isEmpty () |
void | clear () |
Friends | |
class | KoTextDocument |
class | KoTextTableCell |
Member Function Documentation
void KoTextFlow::adjustMargins | ( | int | yp, | |
int | h, | |||
int | reqMinWidth, | |||
int & | leftMargin, | |||
int & | rightMargin, | |||
int & | pageWidth, | |||
KoTextParag * | parag | |||
) | [virtual] |
Called by the formatter to find out the left and right margin for a paragraph at ( yp, yp+h ).
- Parameters:
-
leftMargin returns the left margin rightMargin returns the right margin (from the page width) pageWidth returns the page width at that point This method merges QRichText's adjustLMargin and adjustRMargin for efficiency reasons
Definition at line 1717 of file KoRichText.cpp.
int KoTextFlow::availableHeight | ( | ) | const [virtual] |
kotext addition. Allows the textformatter to stop when it goes too far.
Definition at line 1745 of file KoRichText.cpp.
The documentation for this class was generated from the following files: