]> git.lyx.org Git - lyx.git/blobdiff - src/metricsinfo.h
More 'standard conformant blurb' nonsense.
[lyx.git] / src / metricsinfo.h
index 512a5a26bab229eec5bf1663ac14f034cc518108..fe64b81725b457b38b45b1d70a088da3c11af140 100644 (file)
@@ -28,7 +28,7 @@ struct MetricsBase {
        ///
        MetricsBase();
        ///
-       MetricsBase(BufferView * bv, LyXFont const & font);
+       MetricsBase(BufferView * bv, LyXFont const & font, int textwidth);
 
        /// the current view
        BufferView * bv;
@@ -36,11 +36,9 @@ struct MetricsBase {
        LyXFont font;
        /// current math style (display/text/script/..)
        Styles style;
-       /// name of current font
+       /// name of current font - mathed specific
        string fontname;
-       /// if this is set...
-       bool restrictwidth;
-       /// ... this is valid
+       /// This is the width available in pixels
        int textwidth;
 };
 
@@ -53,7 +51,7 @@ struct MetricsInfo {
        ///
        MetricsInfo();
        ///
-       MetricsInfo(BufferView * bv, LyXFont const & font);
+       MetricsInfo(BufferView * bv, LyXFont const & font, int textwidth);
 
        ///
        MetricsBase base;