]> git.lyx.org Git - lyx.git/blobdiff - src/factory.cpp
de.po
[lyx.git] / src / factory.cpp
index 7ec34fc8e3dc600b3fbc6b5cf24d5da760e68be5..1b773c50e901b4aeba6c79d042177862de2588c5 100644 (file)
@@ -59,7 +59,7 @@
 #include "insets/InsetVSpace.h"
 #include "insets/InsetWrap.h"
 
-#include "mathed/MathMacroTemplate.h"
+#include "mathed/InsetMathMacroTemplate.h"
 #include "mathed/InsetMathHull.h"
 
 #include "frontends/alert.h"
@@ -263,7 +263,6 @@ Inset * createInsetHelper(Buffer * buf, FuncRequest const & cmd)
 
                case LFUN_INFO_INSERT: {
                        InsetInfo * inset = new InsetInfo(buf, to_utf8(cmd.argument()));
-                       inset->updateInfo();
                        return inset;
                }
 
@@ -606,7 +605,7 @@ Inset * readInset(Lexer & lex, Buffer * buf)
                } else if (tmptok == "External") {
                        inset.reset(new InsetExternal(buf));
                } else if (tmptok == "FormulaMacro") {
-                       inset.reset(new MathMacroTemplate(buf));
+                       inset.reset(new InsetMathMacroTemplate(buf));
                } else if (tmptok == "Formula") {
                        inset.reset(new InsetMathHull(buf));
                } else if (tmptok == "Graphics") {
@@ -653,8 +652,8 @@ Inset * readInset(Lexer & lex, Buffer * buf)
                        inset.reset(new InsetFloat(buf, string()));
                } else if (tmptok == "Wrap") {
                        lex.next();
-                       string tmptok = lex.getString();
-                       inset.reset(new InsetWrap(buf, tmptok));
+                       string tmptok2 = lex.getString();
+                       inset.reset(new InsetWrap(buf, tmptok2));
                } else if (tmptok == "Caption") {
                        lex.eatLine();
                        string s = lex.getString();
@@ -680,7 +679,7 @@ Inset * readInset(Lexer & lex, Buffer * buf)
                }
 
                // Set the buffer reference for proper parsing of some insets
-               // (InsetCollapsable for example)
+               // (InsetCollapsible for example)
                inset->setBuffer(*buf);
                inset->read(lex);
                // Set again the buffer for insets that are created inside this inset