qtexttable.sip 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // qtexttable.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtGui Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. class QTextTableCell
  22. {
  23. %TypeHeaderCode
  24. #include <qtexttable.h>
  25. %End
  26. public:
  27. QTextTableCell();
  28. ~QTextTableCell();
  29. QTextTableCell(const QTextTableCell &o);
  30. QTextCharFormat format() const;
  31. void setFormat(const QTextCharFormat &format);
  32. int row() const;
  33. int column() const;
  34. int rowSpan() const;
  35. int columnSpan() const;
  36. bool isValid() const;
  37. QTextCursor firstCursorPosition() const;
  38. QTextCursor lastCursorPosition() const;
  39. int tableCellFormatIndex() const;
  40. bool operator==(const QTextTableCell &other) const;
  41. bool operator!=(const QTextTableCell &other) const;
  42. };
  43. class QTextTable : public QTextFrame
  44. {
  45. %TypeHeaderCode
  46. #include <qtexttable.h>
  47. %End
  48. public:
  49. explicit QTextTable(QTextDocument *doc);
  50. virtual ~QTextTable();
  51. void resize(int rows, int cols);
  52. void insertRows(int pos, int num);
  53. void insertColumns(int pos, int num);
  54. void removeRows(int pos, int num);
  55. void removeColumns(int pos, int num);
  56. void mergeCells(int row, int col, int numRows, int numCols);
  57. void mergeCells(const QTextCursor &cursor);
  58. void splitCell(int row, int col, int numRows, int numCols);
  59. int rows() const;
  60. int columns() const;
  61. QTextTableCell cellAt(int row, int col) const;
  62. QTextTableCell cellAt(int position) const;
  63. QTextTableCell cellAt(const QTextCursor &c) const;
  64. QTextCursor rowStart(const QTextCursor &c) const;
  65. QTextCursor rowEnd(const QTextCursor &c) const;
  66. QTextTableFormat format() const;
  67. void setFormat(const QTextTableFormat &aformat);
  68. void appendRows(int count);
  69. void appendColumns(int count);
  70. };