]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_funcinset.C
small cleanup, doxygen, formatting changes
[lyx.git] / src / mathed / math_funcinset.C
index 4a5c4d74fd166f48dc47bcd9bf06474b9a4de74f..5fe22ba83ee09abbb284298760e36484f7568196 100644 (file)
@@ -5,6 +5,9 @@
 #include "font.h"
 #include "Painter.h"
 #include "mathed/support.h"
+#include "support/LOstream.h"
+
+using std::ostream;
 
 
 extern LyXFont WhichFont(short type, int size);
@@ -51,7 +54,7 @@ void
 MathFuncInset::draw(Painter & pain, int x, int y)
 { 
        if (!name.empty() && name[0] > ' ') {
-               LyXFont font = WhichFont(LM_TC_TEXTRM, size);
+               LyXFont font = WhichFont(LM_TC_TEXTRM, size());
                font.setLatex(LyXFont::ON);
                x += (lyxfont::width('I', font) + 3) / 4;
                pain.text(x, y, name, font);
@@ -63,7 +66,7 @@ MathFuncInset::draw(Painter & pain, int x, int y)
 void MathFuncInset::Metrics() 
 {
        //ln = (name) ? strlen(name): 0;
-       LyXFont  font = WhichFont(LM_TC_TEXTRM, size);
+       LyXFont font = WhichFont(LM_TC_TEXTRM, size());
        font.setLatex(LyXFont::ON);
        if (name.empty()) {
                width = df_width;
@@ -72,6 +75,6 @@ void MathFuncInset::Metrics()
        } else {
                width = lyxfont::width(name, font)
                        + lyxfont::width('I', font) / 2;
-               mathed_string_height(LM_TC_TEXTRM, size, name, ascent, descent);
+               mathed_string_height(LM_TC_TEXTRM, size(), name, ascent, descent);
        }
 }