From 8fc3baa3f9c09deee3992a4215e0a31933996828 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sat, 4 Sep 2010 13:13:44 +0000 Subject: [PATCH] factory.cpp: sorting git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35277 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/factory.cpp | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/factory.cpp b/src/factory.cpp index 9f39a2d229..70bd42f59e 100644 --- a/src/factory.cpp +++ b/src/factory.cpp @@ -245,12 +245,6 @@ Inset * createInsetHelper(Buffer * buf, FuncRequest const & cmd) return new InsetERT(buf, InsetERT::string2params(to_utf8(cmd.argument()))); } - - case LISTINGS_CODE: { - InsetListingsParams par; - InsetListings::string2params(to_utf8(cmd.argument()), par); - return new InsetListings(buf, par); - } case EXTERNAL_CODE: { InsetExternalParams iep; @@ -292,16 +286,22 @@ Inset * createInsetHelper(Buffer * buf, FuncRequest const & cmd) return new InsetPrintIndex(buf, icp); } - case NOMENCL_CODE: { + case LABEL_CODE: { InsetCommandParams icp(code); InsetCommand::string2params(name, to_utf8(cmd.argument()), icp); - return new InsetNomencl(buf, icp); + return new InsetLabel(buf, icp); } - case LABEL_CODE: { + case LISTINGS_CODE: { + InsetListingsParams par; + InsetListings::string2params(to_utf8(cmd.argument()), par); + return new InsetListings(buf, par); + } + + case NOMENCL_CODE: { InsetCommandParams icp(code); InsetCommand::string2params(name, to_utf8(cmd.argument()), icp); - return new InsetLabel(buf, icp); + return new InsetNomencl(buf, icp); } case REF_CODE: { @@ -490,6 +490,9 @@ Inset * readInset(Lexer & lex, Buffer * buf) case LABEL_CODE: inset.reset(new InsetLabel(buf, inscmd)); break; + case LINE_CODE: + inset.reset(new InsetLine(buf, inscmd)); + break; case NOMENCL_CODE: inset.reset(new InsetNomencl(buf, inscmd)); break; -- 2.39.5