00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KOTEXTBLOCKDATA_H
00020 #define KOTEXTBLOCKDATA_H
00021
00022 #include <QTextBlockUserData>
00023
00024 #include <koffice_export.h>
00025
00030 class KOTEXT_EXPORT KoTextBlockData : public QTextBlockUserData {
00031 public:
00032 KoTextBlockData();
00033 ~KoTextBlockData();
00034
00036 bool hasCounterData() const;
00038 double counterWidth() const { return m_counterWidth; }
00040 void setCounterWidth(double width) { m_counterWidth = width; }
00042 void setCounterText(const QString &text) { m_counterText = text; }
00044 const QString &counterText() const { return m_counterText; }
00045
00051 void setPartialCounterText(const QString &text) { m_partialCounterText = text; }
00053 const QString &partialCounterText() const { return m_partialCounterText; }
00054
00055 void setCounterPosition(QPointF position) { m_counterPos = position; }
00056 QPointF counterPosition() const { return m_counterPos; }
00057
00058 private:
00059 double m_counterWidth;
00060 QString m_counterText;
00061 QString m_partialCounterText;
00062 QPointF m_counterPos;
00063 };
00064
00065 #endif