]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Painter.h
remove preamble dialog from the qt frontend
[lyx.git] / src / frontends / Painter.h
index b08a5810d8583ee59343d77b170cd51c30825e33..eb00a3e195c4ad6bf615a20476797d59e5ddb77b 100644 (file)
@@ -1,10 +1,11 @@
 // -*- C++ -*-
 /**
  * \file Painter.h
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author unknown
- * \author John Levon 
+ * \author John Levon
  *
  * Full author contact details are available in file CREDITS
  */
@@ -63,10 +64,10 @@ public:
 
        /// begin painting
        virtual void start() {}
+
        /// end painting
        virtual void end() {}
+
        /// return the width of the work area in pixels
        virtual int paperWidth() const = 0;
        /// return the height of the work area in pixels
@@ -101,13 +102,13 @@ public:
                LColor::color = LColor::foreground,
                line_style = line_solid,
                line_width = line_thin) = 0;
-       
+
        /// draw a filled rectangle
        virtual Painter & fillRectangle(
                int x, int y,
                int w, int h,
                LColor::color) = 0;
-       
+
        /// draw a filled (irregular) polygon
        virtual Painter & fillPolygon(
                int const * xp,
@@ -126,7 +127,7 @@ public:
        virtual Painter & point(
                int x, int y,
                LColor::color = LColor::foreground) = 0;
-       
+
        /// draw a filled rectangle with the shape of a 3D button
        virtual Painter & button(int x, int y,
                int w, int h);
@@ -135,7 +136,7 @@ public:
        virtual Painter & image(int x, int y,
                int w, int h,
                grfx::Image const & image) = 0;
-       
+
        /// draw a string at position x, y (y is the baseline)
        virtual Painter & text(int x, int y,
                string const & str, LyXFont const & f) = 0;
@@ -171,11 +172,11 @@ public:
 
 protected:
        /// check the font, and if set, draw an underline
-       void underline(LyXFont const & f, 
+       void underline(LyXFont const & f,
                int x, int y, int width);
-       
+
        /// draw a bevelled button border
-        Painter & buttonFrame(int x, int y, int w, int h);
+       Painter & buttonFrame(int x, int y, int w, int h);
 };
 
 #endif // PAINTER_H