X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fformulamacro.C;h=91499791573aebad519cf45b7cb72370517c1265;hb=2ac6d6da48c8e8ea87529088685337cc4bf7b87c;hp=f25e1907ec19ecf7993dfd5287f762aa2c357fe6;hpb=27de1486ca34aaad446adb798d71a77d6f6304da;p=lyx.git diff --git a/src/mathed/formulamacro.C b/src/mathed/formulamacro.C index f25e1907ec..9149979157 100644 --- a/src/mathed/formulamacro.C +++ b/src/mathed/formulamacro.C @@ -14,7 +14,7 @@ */ #include -#include +#include #ifdef __GNUG__ #pragma implementation "formulamacro.h" @@ -42,7 +42,7 @@ InsetFormulaMacro::InsetFormulaMacro(): } -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()); @@ -82,7 +82,7 @@ int InsetFormulaMacro::Latex(FILE *file, signed char /*fragile*/) } -int InsetFormulaMacro::Latex(LString &file, signed char /*fragile*/) +int InsetFormulaMacro::Latex(string &file, signed char /*fragile*/) { int ret = 1; tmacro->WriteDef(file); @@ -90,13 +90,13 @@ int InsetFormulaMacro::Latex(LString &file, signed char /*fragile*/) } -int InsetFormulaMacro::Linuxdoc(LString &/*file*/) +int InsetFormulaMacro::Linuxdoc(string &/*file*/) { return 0; } -int InsetFormulaMacro::DocBook(LString &/*file*/) +int InsetFormulaMacro::DocBook(string &/*file*/) { return 0; } @@ -143,7 +143,7 @@ int InsetFormulaMacro::Width(LyXFont const &f) const tmacro->update(); return InsetFormula::Width(f); } - LString ilabel(_("Macro: ")); + string ilabel(_("Macro: ")); ilabel += name; return 6 + f.stringWidth(ilabel); } @@ -167,7 +167,7 @@ void InsetFormulaMacro::Draw(LyXFont font, LyXScreen &scr, 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;