Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

pageitem_textframe.cpp File Reference

#include <QPolygon>
#include <QList>
#include <QMatrix>
#include <QPoint>
#include <QRegion>
#include <QPalette>
#include <cmath>
#include <cassert>
#include "canvas.h"
#include "commonstrings.h"
#include "guidemanager.h"
#include "hyphenator.h"
#include "page.h"
#include "pageitem.h"
#include "pageitem_textframe.h"
#include "prefsmanager.h"
#include "scconfig.h"
#include "scpainter.h"
#include "scpaths.h"
#include "scraction.h"
#include "scribus.h"
#include "scribusdoc.h"
#include "scribusstructs.h"
#include "selection.h"
#include "text/nlsconfig.h"
#include "undomanager.h"
#include "undostate.h"
#include "util.h"
#include "util_math.h"

Include dependency graph for pageitem_textframe.cpp:

Go to the source code of this file.

Classes

struct  TabControl
struct  LineControl

Enumerations

enum  TabStatus {
  TabNONE = 0, TabLEFT = TabNONE, TabRIGHT = 1, TabPOINT = 2,
  TabCOMMA = 3, TabCENTER = 4
}

Functions

static QRegion itemShape (PageItem *docItem, double xOffset, double yOffset)
static void dumpIt (const ParagraphStyle &pstyle, QString indent=QString("->"))
static void fillInTabLeaders (StoryText &itemText, LineSpec &curLine)
static void justifyLine (StoryText &itemText, LineSpec &line)
 called when line length is known and line is to be justified
static void indentLine (StoryText &itemText, LineSpec &line, double leftIndent)
 called when linelength is known and line is not justified
static double opticalLeftMargin (const StoryText &itemText, const LineSpec &line)
 calculate how much the first char should stick out to the left
static double opticalRightMargin (const StoryText &itemText, const LineSpec &line)
 calculate how much the last char should stick out to the right

Variables

static const bool legacy = true


Enumeration Type Documentation

enum TabStatus

Enumerator:
TabNONE 
TabLEFT 
TabRIGHT 
TabPOINT 
TabCOMMA 
TabCENTER 

Definition at line 289 of file pageitem_textframe.cpp.


Function Documentation

static void dumpIt ( const ParagraphStyle pstyle,
QString  indent = QString("->") 
) [static]

static void fillInTabLeaders ( StoryText itemText,
LineSpec curLine 
) [static]

static void indentLine ( StoryText itemText,
LineSpec line,
double  leftIndent 
) [static]

called when linelength is known and line is not justified

Definition at line 641 of file pageitem_textframe.cpp.

References justifyLine(), LineSpec::naturalWidth, LineSpec::width, and LineSpec::x.

Referenced by PageItem_TextFrame::layout().

static QRegion itemShape ( PageItem docItem,
double  xOffset,
double  yOffset 
) [static]

static void justifyLine ( StoryText itemText,
LineSpec line 
) [static]

static double opticalLeftMargin ( const StoryText itemText,
const LineSpec line 
) [static]

calculate how much the first char should stick out to the left

Definition at line 655 of file pageitem_textframe.cpp.

References StoryText::charStyle(), CharStyle::effects(), LineSpec::firstItem, CharStyle::font, StoryText::item(), LineSpec::lastItem, ScStyle_SuppressSpace, and StoryText::text().

Referenced by PageItem_TextFrame::layout().

static double opticalRightMargin ( const StoryText itemText,
const LineSpec line 
) [static]


Variable Documentation

const bool legacy = true [static]

Definition at line 241 of file pageitem_textframe.cpp.

Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.