17 #ifndef CHARTTEXTOBJECT_H
18 #define CHARTTEXTOBJECT_H
22 #include <QTextObjectInterface>
26 class ChartTextObject :
public QObject,
public QTextObjectInterface
29 Q_INTERFACES(QTextObjectInterface)
32 enum { ChartObjectTextFormat = QTextFormat::UserObject + 2 };
33 enum { ChartObject = 1,
37 static void registerChartTextObjectHandler(QTextDocument *doc);
39 QSizeF intrinsicSize(QTextDocument *doc,
int posInDocument,
const QTextFormat &format)
override;
41 void drawObject(QPainter *painter,
const QRectF &rect, QTextDocument *doc,
int posInDocument,
const QTextFormat &format)
override;