]> git.lyx.org Git - lyx.git/blobdiff - src/dimension.h
Fix 3188, update the labels at each Caption insertion.
[lyx.git] / src / dimension.h
index 26bd71064b9d1c8a518649436a2841ffa48b36c5..5dd32d3bebd2583314cfeec6e55158fc0b2f345a 100644 (file)
 #ifndef DIMENSION_H
 #define DIMENSION_H
 
-#include "support/types.h"
-
 namespace lyx {
 
-class LyXFont;
-
 /// Simple wrapper around three ints
 class Dimension {
 public:
@@ -26,8 +22,6 @@ public:
        /// initialize data
        Dimension(int w, int a, int d) : wid(w), asc(a), des(d) {}
 
-       Dimension(LyXFont const & font, char_type c) { set(font, c); }
-
        Dimension & operator=(Dimension const & dim) {
                wid = dim.wid;
                asc = dim.asc;
@@ -38,11 +32,6 @@ public:
        void operator+=(Dimension const & dim);
        /// set to empty box
        void clear() { wid = asc = des = 0; }
-       /// set to empty box suitble for given font.
-       void clear(LyXFont const & font);
-       /// set to a char dimensions for a given font.
-       void set(LyXFont const & font, char_type c);
-
        /// get height
        int height() const { return asc + des; }
        /// get ascent