X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fformulabase.C;h=a9b75d324d85f00ef5a2c82d363cff917e0a0e25;hb=f5f9c46c35735a5a9d3f186ec5509424e2cffce6;hp=4c2f8fab3a7195dfbd9d7e4f8aae887ffa42447b;hpb=a4dab932ac89cf5ae9f3c01cf0c8a9cc6e6a305d;p=lyx.git diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index 4c2f8fab3a..a9b75d324d 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -60,13 +60,6 @@ int sel_x; int sel_y; bool sel_flag; -void mathed_init_fonts(); - -string nicelabel(string const & label) -{ - return "(" + (label.empty() ? "#" : label) + ")"; -} - void handleFont(BufferView * bv, MathTextCodes t) { if (mathcursor->selection()) @@ -117,44 +110,6 @@ InsetFormulaBase::InsetFormulaBase() } -void InsetFormulaBase::read(Buffer const *, LyXLex & lex) -{ - read(lex); -} - - -void InsetFormulaBase::write(Buffer const *, ostream & os) const -{ - write(os); -} - - -int InsetFormulaBase::latex(Buffer const *, ostream & os, - bool fragile, bool spacing) const -{ - return latex(os, fragile, spacing); -} - - -int InsetFormulaBase::ascii(Buffer const *, ostream & os, int spacing) const -{ - return ascii(os, spacing); -} - - -int InsetFormulaBase::linuxdoc(Buffer const *, ostream & os) const -{ - return linuxdoc(os); -} - - -int InsetFormulaBase::docbook(Buffer const *, ostream & os) const -{ - return docbook(os); -} - - - // Check if uses AMS macros void InsetFormulaBase::validate(LaTeXFeatures &) const {} @@ -733,15 +688,15 @@ void mathDispatchCreation(BufferView * bv, string const & arg, bool display) InsetFormulaBase * f; if (sel.empty()) { - f = new InsetFormula; - if (openNewInset(bv, f)) { - // don't do that also for LFUN_MATH_MODE unless you want end up with - // always changing to mathrm when opening an inlined inset - // -- I really hate "LyXfunc overloading"... - if (display) - f->localDispatch(bv, LFUN_MATH_DISPLAY, string()); - f->localDispatch(bv, LFUN_INSERT_MATH, arg); - } + f = new InsetFormula; + if (openNewInset(bv, f)) { + // don't do that also for LFUN_MATH_MODE unless you want end up with + // always changing to mathrm when opening an inlined inset + // -- I really hate "LyXfunc overloading"... + if (display) + f->localDispatch(bv, LFUN_MATH_DISPLAY, string()); + f->localDispatch(bv, LFUN_INSERT_MATH, arg); + } } else { // create a macro if we see "\\newcommand" somewhere, and an ordinary // formula otherwise