Scribus
Open source desktop publishing at your fingertips
tablepainter.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 TABLEPAINTER_H
10 #define TABLEPAINTER_H
11 
12 class PageItem_Table;
13 class ScPainter;
14 
22 {
23 public:
25  explicit TablePainter(PageItem_Table *table) : m_table(table) {};
26  virtual ~TablePainter() {};
27 
29  virtual void paintTable(ScPainter* p) = 0;
30 
32  PageItem_Table* table() const { return m_table; };
33 
34 private:
35  PageItem_Table* m_table;
36 };
37 
38 #endif // TABLEPAINTER_H
Definition: tablepainter.h:21
Definition: scpainter.h:33
PageItem_Table * table() const
Returns the table this table painter is configured to paint.
Definition: tablepainter.h:32
virtual void paintTable(ScPainter *p)=0
Paints the table using p.
TablePainter(PageItem_Table *table)
Creates a new table painter configured to paint table.
Definition: tablepainter.h:25
Definition: pageitem_table.h:49