X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fdimension.h;h=5dd32d3bebd2583314cfeec6e55158fc0b2f345a;hb=9667cb383640866f47aea57f059a9d2a5caefc3d;hp=26bd71064b9d1c8a518649436a2841ffa48b36c5;hpb=8f98ec35e41b8cbeda39dd95aa812c3a6839c152;p=lyx.git diff --git a/src/dimension.h b/src/dimension.h index 26bd71064b..5dd32d3beb 100644 --- a/src/dimension.h +++ b/src/dimension.h @@ -12,12 +12,8 @@ #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