*/
#include <config.h>
-#include <stdlib.h>
+#include <cstdlib>
#ifdef __GNUG__
#pragma implementation "formulamacro.h"
}
-InsetFormulaMacro::InsetFormulaMacro(LString nm, int na, bool /*e*/):
+InsetFormulaMacro::InsetFormulaMacro(string nm, int na, bool /*e*/):
InsetFormula(true), name(nm)
{
tmacro = MathMacroTable::mathMTable.getTemplate(name.c_str());
}
-int InsetFormulaMacro::Latex(LString &file, signed char /*fragile*/)
+int InsetFormulaMacro::Latex(string &file, signed char /*fragile*/)
{
int ret = 1;
tmacro->WriteDef(file);
}
-int InsetFormulaMacro::Linuxdoc(LString &/*file*/)
+int InsetFormulaMacro::Linuxdoc(string &/*file*/)
{
return 0;
}
-int InsetFormulaMacro::DocBook(LString &/*file*/)
+int InsetFormulaMacro::DocBook(string &/*file*/)
{
return 0;
}
tmacro->update();
return InsetFormula::Width(f);
}
- LString ilabel(_("Macro: "));
+ string ilabel(_("Macro: "));
ilabel += name;
return 6 + f.stringWidth(ilabel);
}
scr.fillRectangle(gc_lighted, int(x), y, w, h);
scr.drawFrame(FL_UP_FRAME, int(x), y, w, h, FL_BLACK, -1);
- LString s(_("Macro: "));
+ string s(_("Macro: "));
s += name;
scr.drawString(font, s, baseline, int(x +2));
x += Width(font) - 1;