Scribus
Open source desktop publishing at your fingertips
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 
20 {
21 public:
23  enum Type
24  {
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
Definition: tablehandle.h:26
Definition: tablehandle.h:19
Definition: tablehandle.h:31
Type type() const
Returns the type of the handle.
Definition: tablehandle.h:35
Definition: tablehandle.h:28
Definition: tablehandle.h:25
Type
This enum specifies different types of handles on a table.
Definition: tablehandle.h:23
Definition: tablehandle.h:27
Definition: tablehandle.h:29
Definition: tablehandle.h:30
int index() const
Definition: tablehandle.h:41
Definition: pageitem_table.h:49