7 #ifndef API_TEXTITEM_H_
8 #define API_TEXTITEM_H_
12 #include <QApplication>
14 #include "scripterimpl.h"
15 #include "pageitem_textframe.h"
22 Q_PROPERTY(QString font READ font WRITE setFont)
23 Q_PROPERTY(
double fontSize READ fontSize WRITE setFontSize)
24 Q_PROPERTY(QString text READ text WRITE setText)
25 Q_PROPERTY(
int textLines READ textLines)
26 Q_PROPERTY(
int textLength READ textLength)
27 Q_PROPERTY(
double lineSpacing READ lineSpacing WRITE setLineSpacing)
28 Q_PROPERTY(QList<QVariant> distances READ distances)
29 Q_PROPERTY(
bool deleteText READ deleteText)
30 Q_PROPERTY(
bool traceText READ traceText)
31 Q_PROPERTY(
bool hyphenate READ hyphenate)
32 Q_PROPERTY(
bool dehyphenate READ dehyphenate)
33 Q_PROPERTY(
bool PDFBookMark READ PDFBookMark WRITE setPDFBookMark)
40 void insertText(QString text,
int position);
41 void setLineSpacingMode(
int mode);
42 void setDistances(
double left,
double right,
double top,
double bottom);
43 void setTextAlignment(
int alignment);
44 void setTextColor(QString color);
45 void setTextStroke(QString color);
46 void setTextScalingV(
double value);
47 void setTextScalingH(
double value);
48 void setTextShade(
int w);
49 void selectText(
int start,
int selcount);
50 void linkToTextFrame(QString name2);
51 void unLinkTextFrames();
55 void setFont(QString name);
58 void setFontSize(
double size);
61 void setText(QString text);
67 void setLineSpacing(
double value);
69 QList<QVariant> distances();
74 int textOverFlows(
bool checkLinks);
80 void setPDFBookMark(
bool toggle);
Definition: pageitem_textframe.h:45
Definition: api_textitem.h:18
Definition: api_item.h:16