]> git.lyx.org Git - lyx.git/blob - src/frontends/nullpainter.h
some tabular fixes for the problems reported by Helge
[lyx.git] / src / frontends / nullpainter.h
1 // -*- C++ -*-
2 /**
3  * \file nullpainter.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Alfredo Braunstein
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef NULLPAINTER_H
13 #define NULLPAINTER_H
14
15 #include <config.h>
16
17 #include "LColor.h"
18 #include "Painter.h"
19
20 class NullPainter : public Painter {
21 public:
22         ///
23         NullPainter() {}
24
25         virtual ~NullPainter() {}
26
27         /// begin painting
28         void start() {}
29         /// end painting
30         void end() {}
31
32         ///
33         int paperWidth() const { return 0; }
34         ///
35         int paperHeight() const;
36
37         ///
38         void line(int, int, int, int, LColor_color,
39                        line_style = line_solid, line_width = line_thin) {}
40         ///
41         void lines(int const *, int const *, int, LColor_color,
42                         line_style = line_solid, line_width = line_thin) {}
43         ///
44         void rectangle(int, int, int, int,      LColor_color,
45                 line_style = line_solid, line_width = line_thin) {}
46         ///
47         void fillRectangle(int, int, int, int, LColor_color) {}
48         ///
49         void fillPolygon(int const *, int const *, int, LColor_color) {}
50         ///
51         void arc(int, int,      unsigned int, unsigned int,
52                 int, int, LColor_color) {}
53         ///
54         void point(int, int, LColor_color) {}
55         ///
56         void button(int, int, int, int) {}
57         ///
58         void image(int, int, int, int, lyx::graphics::Image const &) {}
59         ///
60         void text(int, int, std::string const &, LyXFont const &) {}
61         ///
62         void text(int, int, char const *, size_t, LyXFont const &) {}
63         ///
64         void text(int, int, char, LyXFont const &) {}
65         ///
66         void rectText(int, int, std::string const &,
67                 LyXFont const &, LColor_color, LColor_color) {}
68         ///
69         void buttonText(int, int, std::string const &, LyXFont const &) {}
70         ///
71         void underline(LyXFont const &, int, int, int) {}
72         ///
73         void buttonFrame(int, int, int, int) {}
74 };
75
76 #endif // NULLPAINTER_H