2004-04-07 20:20:15 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file nullpainter.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Alfredo Braunstein
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NULLPAINTER_H
|
|
|
|
#define NULLPAINTER_H
|
|
|
|
|
|
|
|
#include "LColor.h"
|
|
|
|
#include "Painter.h"
|
|
|
|
|
2006-06-20 08:39:16 +00:00
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2004-04-07 20:20:15 +00:00
|
|
|
class NullPainter : public Painter {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
NullPainter() {}
|
2004-04-20 08:51:15 +00:00
|
|
|
|
2004-04-07 20:20:15 +00:00
|
|
|
virtual ~NullPainter() {}
|
|
|
|
|
|
|
|
/// begin painting
|
|
|
|
void start() {}
|
|
|
|
/// end painting
|
|
|
|
void end() {}
|
|
|
|
|
2004-04-20 08:51:15 +00:00
|
|
|
///
|
2004-04-07 20:20:15 +00:00
|
|
|
int paperWidth() const { return 0; }
|
2004-04-20 08:51:15 +00:00
|
|
|
///
|
2004-04-07 20:20:15 +00:00
|
|
|
int paperHeight() const;
|
2004-04-20 08:51:15 +00:00
|
|
|
|
2004-04-07 20:20:15 +00:00
|
|
|
///
|
|
|
|
void line(int, int, int, int, LColor_color,
|
|
|
|
line_style = line_solid, line_width = line_thin) {}
|
|
|
|
///
|
|
|
|
void lines(int const *, int const *, int, LColor_color,
|
|
|
|
line_style = line_solid, line_width = line_thin) {}
|
|
|
|
///
|
|
|
|
void rectangle(int, int, int, int, LColor_color,
|
|
|
|
line_style = line_solid, line_width = line_thin) {}
|
2004-04-20 08:51:15 +00:00
|
|
|
///
|
2004-04-07 20:20:15 +00:00
|
|
|
void fillRectangle(int, int, int, int, LColor_color) {}
|
2004-04-20 08:51:15 +00:00
|
|
|
///
|
2004-04-07 20:20:15 +00:00
|
|
|
void arc(int, int, unsigned int, unsigned int,
|
|
|
|
int, int, LColor_color) {}
|
2004-04-20 08:51:15 +00:00
|
|
|
///
|
2004-04-07 20:20:15 +00:00
|
|
|
void point(int, int, LColor_color) {}
|
2004-04-20 08:51:15 +00:00
|
|
|
///
|
2004-04-07 20:20:15 +00:00
|
|
|
void button(int, int, int, int) {}
|
2004-04-20 08:51:15 +00:00
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
void image(int, int, int, int, graphics::Image const &) {}
|
2004-04-20 08:51:15 +00:00
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
int text(int, int, docstring const &, LyXFont const &) { return 0; }
|
2006-08-13 22:54:59 +00:00
|
|
|
// ///
|
2006-10-10 13:24:08 +00:00
|
|
|
// int text(int, int, char const *, size_t, LyXFont const &) { return 0; }
|
2004-04-07 20:20:15 +00:00
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
int text(int, int, char_type const *, size_t, LyXFont const &) { return 0; }
|
2004-04-07 20:20:15 +00:00
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
int text(int, int, char_type, LyXFont const &) { return 0; }
|
2004-04-07 20:20:15 +00:00
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
void rectText(int, int, docstring const &,
|
2004-04-07 20:20:15 +00:00
|
|
|
LyXFont const &, LColor_color, LColor_color) {}
|
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
void buttonText(int, int, docstring const &, LyXFont const &) {}
|
2004-04-07 20:20:15 +00:00
|
|
|
///
|
|
|
|
void underline(LyXFont const &, int, int, int) {}
|
|
|
|
///
|
|
|
|
void buttonFrame(int, int, int, int) {}
|
|
|
|
};
|
|
|
|
|
2006-06-20 08:39:16 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2004-04-07 20:20:15 +00:00
|
|
|
#endif // NULLPAINTER_H
|