Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
tablehandle.h
1
/*
2
Copyright (C) 2011 Elvis Stansvik <elvstone@gmail.com>
3
4
For general Scribus (>=1.3.2) copyright and licensing information please refer
5
to the COPYING file provided with the program. Following this notice may exist
6
a copyright and/or license notice that predates the release of Scribus 1.3.2
7
for which a new license (GPL+exception) is in place.
8
*/
9
#ifndef TABLEHANDLE_H
10
#define TABLEHANDLE_H
11
19
class
TableHandle
20
{
21
public
:
23
enum
Type
24
{
25
RowSelect
,
26
RowResize
,
27
ColumnSelect
,
28
ColumnResize
,
29
TableResize
,
30
CellSelect
,
31
None
32
};
33
35
Type
type
()
const
{
return
m_type; }
36
41
int
index
()
const
{
return
m_index; }
42
43
private
:
45
friend
class
PageItem_Table
;
46
48
TableHandle
(
Type
type
) : m_type(type), m_index(-1) {}
50
TableHandle
(
Type
type
,
int
index
) : m_type(type), m_index(index) {}
51
53
void
setType(
Type
type
) { m_type =
type
; }
55
void
setIndex(
int
index
) { m_index =
index
; }
56
58
Type
m_type;
60
int
m_index;
61
};
62
63
#endif // TABLEHANDLE_H
TableHandle::RowResize
Definition:
tablehandle.h:26
TableHandle
Definition:
tablehandle.h:19
TableHandle::None
Definition:
tablehandle.h:31
TableHandle::type
Type type() const
Returns the type of the handle.
Definition:
tablehandle.h:35
TableHandle::ColumnResize
Definition:
tablehandle.h:28
TableHandle::RowSelect
Definition:
tablehandle.h:25
TableHandle::Type
Type
This enum specifies different types of handles on a table.
Definition:
tablehandle.h:23
TableHandle::ColumnSelect
Definition:
tablehandle.h:27
TableHandle::TableResize
Definition:
tablehandle.h:29
TableHandle::CellSelect
Definition:
tablehandle.h:30
TableHandle::index
int index() const
Definition:
tablehandle.h:41
PageItem_Table
Definition:
pageitem_table.h:49
scribus
tablehandle.h
Generated on Tue Sep 29 2015 09:15:12 for Scribus by
1.8.9.1