Scribus
Open source desktop publishing at your fingertips
TableHandle Class Reference

#include <tablehandle.h>

Public Types

enum  Type {
  RowSelect, RowResize, ColumnSelect, ColumnResize,
  TableResize, CellSelect, None
}
 This enum specifies different types of handles on a table. More...
 

Public Member Functions

Type type () const
 Returns the type of the handle.
 
int index () const
 

Friends

class PageItem_Table
 The table is the only one who is allowed to construct/manipulate handles.
 

Detailed Description

This class represents handles on a table.

These are areas that when clicked/dragged will initiate a resize or selection of some parts of the table. To test for a handle at some point, use the hitTest() function of PageItem_Table.

Member Enumeration Documentation

This enum specifies different types of handles on a table.

Enumerator
RowSelect 

Row selection handle.

RowResize 

Row resize handle.

ColumnSelect 

Column selection handle.

ColumnResize 

Column resize handle.

TableResize 

Table resize handle.

CellSelect 

Cell selection handle.

None 

No handle was hit.

Member Function Documentation

int TableHandle::index ( ) const
inline

If type() is RowResize or ColumnResize, this function returns the index of the row or column the handle is for, otherwise its return value is undefined.


The documentation for this class was generated from the following file: