]> git.lyx.org Git - lyx.git/blob - src/frontends/nullpainter.h
remove the constness of the two code strings because this does not pass boost_concept...
[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 "LColor.h"
16 #include "Painter.h"
17
18
19 namespace lyx {
20 namespace frontend {
21
22 class NullPainter : public Painter {
23 public:
24         ///
25         NullPainter() {}
26
27         virtual ~NullPainter() {}
28
29         /// begin painting
30         void start() {}
31         /// end painting
32         void end() {}
33
34         ///
35         void line(int, int, int, int, LColor_color,
36                        line_style = line_solid, line_width = line_thin) {}
37         ///
38         void lines(int const *, int const *, int, LColor_color,
39                         line_style = line_solid, line_width = line_thin) {}
40         ///
41         void rectangle(int, int, int, int,      LColor_color,
42                 line_style = line_solid, line_width = line_thin) {}
43         ///
44         void fillRectangle(int, int, int, int, LColor_color) {}
45         ///
46         void arc(int, int,      unsigned int, unsigned int,
47                 int, int, LColor_color) {}
48         ///
49         void point(int, int, LColor_color) {}
50         ///
51         void button(int, int, int, int) {}
52         ///
53         void image(int, int, int, int, graphics::Image const &) {}
54         ///
55         int text(int, int, docstring const &, LyXFont const &) { return 0; }
56 //      ///
57 //      int text(int, int, char const *, size_t, LyXFont const &) { return 0; }
58         ///
59         int text(int, int, char_type const *, size_t, LyXFont const &) { return 0; }
60         ///
61         int text(int, int, char_type, LyXFont const &) { return 0; }
62         ///
63         void rectText(int, int, docstring const &,
64                 LyXFont const &, LColor_color, LColor_color) {}
65         ///
66         void buttonText(int, int, docstring const &, LyXFont const &) {}
67         ///
68         void underline(LyXFont const &, int, int, int) {}
69         ///
70         void buttonFrame(int, int, int, int) {}
71 };
72
73 } // namespace frontend
74 } // namespace lyx
75
76 #endif // NULLPAINTER_H