]> git.lyx.org Git - lyx.git/blob - src/frontends/nullpainter.h
minimal effort implementation of:
[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         int paperWidth() const { return 0; }
36         ///
37         int paperHeight() const;
38
39         ///
40         void line(int, int, int, int, LColor_color,
41                        line_style = line_solid, line_width = line_thin) {}
42         ///
43         void lines(int const *, int const *, int, LColor_color,
44                         line_style = line_solid, line_width = line_thin) {}
45         ///
46         void rectangle(int, int, int, int,      LColor_color,
47                 line_style = line_solid, line_width = line_thin) {}
48         ///
49         void fillRectangle(int, int, int, 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, lyx::docstring const &, LyXFont const &) {}
61 //      ///
62 //      void text(int, int, char const *, size_t, LyXFont const &) {}
63         ///
64         void text(int, int, lyx::char_type const *, size_t, LyXFont const &) {}
65         ///
66         void text(int, int, lyx::char_type, LyXFont const &) {}
67         ///
68         void rectText(int, int, lyx::docstring const &,
69                 LyXFont const &, LColor_color, LColor_color) {}
70         ///
71         void buttonText(int, int, lyx::docstring const &, LyXFont const &) {}
72         ///
73         void underline(LyXFont const &, int, int, int) {}
74         ///
75         void buttonFrame(int, int, int, int) {}
76 };
77
78 } // namespace frontend
79 } // namespace lyx
80
81 #endif // NULLPAINTER_H