]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/nullpainter.h
Extracted from r14281
[lyx.git] / src / frontends / nullpainter.h
index 821a3543d93d3c4bdfd7c0f5334088be1ec10712..6dc5629d89e8530ee60afa498fbc58d5d426313d 100644 (file)
 #ifndef NULLPAINTER_H
 #define NULLPAINTER_H
 
-#include <config.h>
-
 #include "LColor.h"
 #include "Painter.h"
 
+
+namespace lyx {
+namespace frontend {
+
 class NullPainter : public Painter {
 public:
        ///
        NullPainter() {}
-       
+
        virtual ~NullPainter() {}
 
        /// begin painting
@@ -29,11 +31,11 @@ public:
        /// end painting
        void end() {}
 
-       /// 
+       ///
        int paperWidth() const { return 0; }
-       /// 
+       ///
        int paperHeight() const;
-       
+
        ///
        void line(int, int, int, int, LColor_color,
                       line_style = line_solid, line_width = line_thin) {}
@@ -43,20 +45,20 @@ public:
        ///
        void rectangle(int, int, int, int,      LColor_color,
                line_style = line_solid, line_width = line_thin) {}
-       /// 
+       ///
        void fillRectangle(int, int, int, int, LColor_color) {}
-       /// 
+       ///
        void fillPolygon(int const *, int const *, int, LColor_color) {}
-       /// 
+       ///
        void arc(int, int,      unsigned int, unsigned int,
                int, int, LColor_color) {}
-       /// 
+       ///
        void point(int, int, LColor_color) {}
-       /// 
+       ///
        void button(int, int, int, int) {}
-       /// 
+       ///
        void image(int, int, int, int, lyx::graphics::Image const &) {}
-       /// 
+       ///
        void text(int, int, std::string const &, LyXFont const &) {}
        ///
        void text(int, int, char const *, size_t, LyXFont const &) {}
@@ -73,4 +75,7 @@ public:
        void buttonFrame(int, int, int, int) {}
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // NULLPAINTER_H