#include <wx/richtext/richtextbuffer.h>
Stores the coordinates for a block of cells.
Public Member Functions | |
wxRichTextTableBlock () | |
wxRichTextTableBlock (int colStart, int colEnd, int rowStart, int rowEnd) | |
wxRichTextTableBlock (const wxRichTextTableBlock &block) | |
void | Init () |
void | Copy (const wxRichTextTableBlock &block) |
void | operator= (const wxRichTextTableBlock &block) |
bool | operator== (const wxRichTextTableBlock &block) |
bool | ComputeBlockForSelection (wxRichTextTable *table, wxRichTextCtrl *ctrl, bool requireCellSelection=true) |
Computes the block given a table (perhaps about to be edited) and a rich text control that may have a selection. | |
bool | IsWholeTable (wxRichTextTable *table) const |
Does this block represent the whole table? | |
int & | ColStart () |
int | ColStart () const |
int & | ColEnd () |
int | ColEnd () const |
int & | RowStart () |
int | RowStart () const |
int & | RowEnd () |
int | RowEnd () const |
Static Public Member Functions | |
static wxRichTextCell * | GetFocusedCell (wxRichTextCtrl *ctrl) |
Returns the cell focused in the table, if any. | |
Public Attributes | |
int | m_colStart |
int | m_colEnd |
int | m_rowStart |
int | m_rowEnd |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool wxRichTextTableBlock::ComputeBlockForSelection | ( | wxRichTextTable * | table, |
wxRichTextCtrl * | ctrl, | ||
bool | requireCellSelection = true |
||
) |
Computes the block given a table (perhaps about to be edited) and a rich text control that may have a selection.
If no selection, the whole table is used. If just the whole content of one cell is selected, this cell only is used. If the cell contents is not selected and requireCellSelection is false, the focused cell will count as a selected cell.
|
inline |
|
static |
Returns the cell focused in the table, if any.
|
inline |
bool wxRichTextTableBlock::IsWholeTable | ( | wxRichTextTable * | table | ) | const |
Does this block represent the whole table?
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
int wxRichTextTableBlock::m_colEnd |
int wxRichTextTableBlock::m_colStart |
int wxRichTextTableBlock::m_rowEnd |
int wxRichTextTableBlock::m_rowStart |