]> git.lyx.org Git - lyx.git/blobdiff - src/PainterBase.h
Small fix.
[lyx.git] / src / PainterBase.h
index 9657322df14f056625bae711bda872eb161d1104..22f3a0782b0539b5b478962f2815c7c8523b9735 100644 (file)
@@ -20,7 +20,6 @@
 
 class WorkArea;
 class LyXFont;
-//class LyXScreen;
 
 /** A painter class to encapsulate all graphics parameters and operations
    
@@ -57,7 +56,7 @@ public:
        };
 
        ///
-       PainterBase(WorkArea & wa) : owner(wa) {}
+       explicit PainterBase(WorkArea & wa) : owner(wa) {}
        
        ///
        virtual ~PainterBase() {}
@@ -67,6 +66,8 @@ public:
        int paperMargin() const;
        ///
        int paperWidth() const;
+       ///
+       int paperHeight() const;
        
        /**@Basic drawing routines */
        /// Draw a line from point to point
@@ -162,16 +163,6 @@ public:
        /// Draw a char at position x, y (y is the baseline)
        virtual PainterBase & text(int x, int y, char c, LyXFont const & f)=0;
        
-       /// Get the width of text
-       int width(string const & s, LyXFont const & f) const;
-
-       /** Get the width of text
-           This is just for fast width */
-       int width(char const * s, int l, LyXFont const & f) const;
-
-       /// Get the width of text
-       int width(char c, LyXFont const & f) const;
-
        /** Draws a string and encloses it inside a rectangle. Returns
            the size of the rectangle. If draw is false, we only calculate
            the size. */