File indexing completed on 2025-01-18 10:08:17
0001
0002
0003
0004 #ifndef QTEXTLIST_H
0005 #define QTEXTLIST_H
0006
0007 #include <QtGui/qtguiglobal.h>
0008 #include <QtGui/qtextobject.h>
0009 #include <QtCore/qobject.h>
0010
0011 QT_BEGIN_NAMESPACE
0012
0013
0014 class QTextListPrivate;
0015 class QTextCursor;
0016
0017 class Q_GUI_EXPORT QTextList : public QTextBlockGroup
0018 {
0019 Q_OBJECT
0020 public:
0021 explicit QTextList(QTextDocument *doc);
0022 ~QTextList();
0023
0024 int count() const;
0025
0026 QTextBlock item(int i) const;
0027
0028 int itemNumber(const QTextBlock &) const;
0029 QString itemText(const QTextBlock &) const;
0030
0031 void removeItem(int i);
0032 void remove(const QTextBlock &);
0033
0034 void add(const QTextBlock &block);
0035
0036 inline void setFormat(const QTextListFormat &format);
0037 QTextListFormat format() const { return QTextObject::format().toListFormat(); }
0038
0039 private:
0040 Q_DISABLE_COPY(QTextList)
0041 Q_DECLARE_PRIVATE(QTextList)
0042 };
0043
0044 inline void QTextList::setFormat(const QTextListFormat &aformat)
0045 { QTextObject::setFormat(aformat); }
0046
0047 QT_END_NAMESPACE
0048
0049 #endif