]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_metricsinfo.h
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_metricsinfo.h
index db5a3c2caf2a2cd125f08ec0a184ffb5c2c6d140..ee67ca71865afda15ad58b0f98abf4434e26fd02 100644 (file)
@@ -1,8 +1,9 @@
 #ifndef MATH_METRICSINFO
 #define MATH_METRICSINFO
 
+#include "lyxfont.h"
+
 class BufferView;
-class LyXFont;
 
 
 /// Standard Math Sizes (Math mode styles)
@@ -21,17 +22,17 @@ enum MathStyles {
 struct MathMetricsInfo {
        ///
        MathMetricsInfo()
-               : view(0), font(0), style(LM_ST_TEXT)
+               : view(0), font(), style(LM_ST_TEXT)
        {}
        ///
-       MathMetricsInfo(BufferView * v, LyXFont const * f, MathStyles s)
+       MathMetricsInfo(BufferView * v, LyXFont const & f, MathStyles s)
                : view(v), font(f), style(s)
        {}
 
        ///
        BufferView * view;
        ///
-       LyXFont const * font;
+       LyXFont font;
        ///
        MathStyles style;
 };