|
Scribus
Open source desktop publishing at your fingertips
|
#include <textlayout.h>

Public Member Functions | |
| TextLayout (StoryText *text, PageItem *frame) | |
| bool | overflows () const |
| StoryText * | story () |
| const StoryText * | story () const |
| void | setStory (StoryText *story) |
| int | startOfLine (int pos) const |
| int | endOfLine (int pos) const |
| int | prevLine (int pos) const |
| int | nextLine (int pos) const |
| int | startOfFrame () const |
| int | endOfFrame () const |
| int | screenToPosition (FPoint coord) const |
| FRect | boundingBox (int pos, uint len=1) const |
| uint | lines () const |
| const LineSpec & | line (uint i) const |
| const PathData & | point (int pos) const |
| PathData & | point (int pos) |
| void | appendLine (const LineSpec &ls) |
| void | removeLastLine () |
| void | clear () |
Protected Attributes | |
| StoryText * | m_story |
| PageItem * | m_frame |
| int | m_firstInFrame |
| int | m_lastInFrame |
| QList< LineSpec > | m_lines |
| QVector< PathData > | m_path |
| bool | m_validLayout |
| qreal | m_magicX |
| int | m_lastMagicPos |
Friends | |
| class | FrameControl |
This class manages the physical layout of a textframe, ie. its line structure and the lines' glyph layouts. It will use some of the layouters above to create a Box. It listens to change events from the StoryText and the PageItem and will update the layout accordingly.