45 #include <QtCore/qglobal.h> 46 #include <QtCore/qobject.h> 47 #include <QtGui/qtextobject.h> 75 int columnSpan()
const;
77 inline bool isValid()
const {
return table != 0; }
81 int firstPosition()
const;
82 int lastPosition()
const;
85 {
return table == other.
table && fragment == other.
fragment; }
92 int tableCellFormatIndex()
const;
97 : table(t), fragment(f) {}
110 void resize(
int rows,
int cols);
111 void insertRows(
int pos,
int num);
112 void insertColumns(
int pos,
int num);
113 void appendRows(
int count);
114 void appendColumns(
int count);
115 void removeRows(
int pos,
int num);
116 void removeColumns(
int pos,
int num);
118 void mergeCells(
int row,
int col,
int numRows,
int numCols);
120 void splitCell(
int row,
int col,
int numRows,
int numCols);
145 #endif // QTEXTTABLE_H The QTextCharFormat class provides formatting information for characters in a QTextDocument.
bool operator!=(const QTextTableCell &other) const
Returns true if this cell object and the other cell object describe different cells; otherwise return...
#define QT_END_NAMESPACE
This macro expands to.
bool operator==(const QTextTableCell &other) const
Returns true if this cell object and the other cell object describe the same cell; otherwise returns ...
~QTextTableCell()
Destroys the table cell.
The QTextFrame class represents a frame in a QTextDocument.
static qreal position(QGraphicsObject *item, QDeclarativeAnchorLine::AnchorLine anchorLine)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
QTextTableFormat toTableFormat() const
Returns this format as a table format.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QTextTableCell & operator=(const QTextTableCell &o)
Assigns the other table cell to this table cell.
QTextTableFormat format() const
Returns the table's format.
QTextTableCell(const QTextTable *t, int f)
The QTextCursor class offers an API to access and modify QTextDocuments.
The QTextTable class represents a table in a QTextDocument.
The iterator class provides an iterator for reading the contents of a QTextFrame. ...
QTextFormat format() const
Returns the text object's format.
QTextTableCell()
Constructs an invalid table cell.
QTextTableCell(const QTextTableCell &o)
Copy constructor.
void setFormat(const QTextFormat &format)
Sets the text object's format.
The QTextTableCell class represents the properties of a cell in a QTextTable.
bool isValid() const
Returns true if this is a valid table cell; otherwise returns false.
The QTextDocument class holds formatted text that can be viewed and edited using a QTextEdit...
The QTextTableFormat class provides formatting information for tables in a QTextDocument.
#define Q_DECLARE_PRIVATE(Class)
static const KeyPair *const end
bool operator==(QBool b1, bool b2)