Scribus
Open source desktop publishing at your fingertips
TextLayout Class Reference

#include <textlayout.h>

Collaboration diagram for TextLayout:

Public Member Functions

 TextLayout (StoryText *text, PageItem *frame)
 
bool overflows () const
 
StoryTextstory ()
 
const StoryTextstory () 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 LineSpecline (uint i) const
 
const PathDatapoint (int pos) const
 
PathDatapoint (int pos)
 
void appendLine (const LineSpec &ls)
 
void removeLastLine ()
 
void clear ()
 

Protected Attributes

StoryTextm_story
 
PageItemm_frame
 
int m_firstInFrame
 
int m_lastInFrame
 
QList< LineSpecm_lines
 
QVector< PathDatam_path
 
bool m_validLayout
 
qreal m_magicX
 
int m_lastMagicPos
 

Friends

class FrameControl
 

Detailed Description

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.


The documentation for this class was generated from the following files: