]> git.lyx.org Git - lyx.git/blobdiff - src/metricsinfo.h
More 'standard conformant blurb' nonsense.
[lyx.git] / src / metricsinfo.h
index c626956491b529b3be94f37f1d85a8369ea4af00..fe64b81725b457b38b45b1d70a088da3c11af140 100644 (file)
@@ -27,6 +27,8 @@ enum Styles {
 struct MetricsBase {
        ///
        MetricsBase();
+       ///
+       MetricsBase(BufferView * bv, LyXFont const & font, int textwidth);
 
        /// the current view
        BufferView * bv;
@@ -34,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;
 };
 
@@ -50,6 +50,8 @@ struct MetricsBase {
 struct MetricsInfo {
        ///
        MetricsInfo();
+       ///
+       MetricsInfo(BufferView * bv, LyXFont const & font, int textwidth);
 
        ///
        MetricsBase base;