]> git.lyx.org Git - lyx.git/blobdiff - src/factory.cpp
Typo.
[lyx.git] / src / factory.cpp
index c49da693105cac8270353242499c3962a369edd3..e4dfb60e4e5cbd2499351dcce022ebed96180afb 100644 (file)
@@ -143,7 +143,7 @@ Inset * createInsetHelper(Buffer & buf, FuncRequest const & cmd)
                        return new InsetOptArg(buf);
 
                case LFUN_BIBITEM_INSERT:
-                       return new InsetBibitem(InsetCommandParams(BIBITEM_CODE));
+                       return new InsetBibitem(buf, InsetCommandParams(BIBITEM_CODE));
 
                case LFUN_FLOAT_INSERT: {
                        // check if the float type exists
@@ -227,13 +227,13 @@ Inset * createInsetHelper(Buffer & buf, FuncRequest const & cmd)
                        case BIBITEM_CODE: {
                                InsetCommandParams icp(code);
                                InsetCommand::string2params(name, to_utf8(cmd.argument()), icp);
-                               return new InsetBibitem(icp);
+                               return new InsetBibitem(buf, icp);
                        }
                        
                        case BIBTEX_CODE: {
                                InsetCommandParams icp(code);
                                InsetCommand::string2params(name, to_utf8(cmd.argument()), icp);
-                               return new InsetBibtex(icp);
+                               return new InsetBibtex(buf, icp);
                        }
                        
                        case CITE_CODE: {
@@ -451,10 +451,10 @@ Inset * readInset(Lexer & lex, Buffer const & buf)
 
                switch (code) {
                        case BIBITEM_CODE:
-                               inset.reset(new InsetBibitem(inscmd));
+                               inset.reset(new InsetBibitem(buf, inscmd));
                                break;
                        case BIBTEX_CODE:
-                               inset.reset(new InsetBibtex(inscmd));
+                               inset.reset(new InsetBibtex(buf, inscmd));
                                break;
                        case CITE_CODE: 
                                inset.reset(new InsetCitation(inscmd));
@@ -528,7 +528,7 @@ Inset * readInset(Lexer & lex, Buffer const & buf)
                        inset.reset(new InsetERT(buf));
                } else if (tmptok == "listings") {
                        inset.reset(new InsetListings(buf));
-               } else if (tmptok == "Space") {
+               } else if (tmptok == "space") {
                        inset.reset(new InsetSpace);
                } else if (tmptok == "Tabular") {
                        inset.reset(new InsetTabular(buf));
@@ -554,10 +554,6 @@ Inset * readInset(Lexer & lex, Buffer const & buf)
                        lex.next();
                        string tmptok = lex.getString();
                        inset.reset(new InsetWrap(buf, tmptok));
-#if 0
-               } else if (tmptok == "Theorem") {
-                       inset.reset(new InsetList);
-#endif
                } else if (tmptok == "Caption") {
                        inset.reset(new InsetCaption(buf));
                } else if (tmptok == "Index") {