diff --git a/src/ChangeLog b/src/ChangeLog index b711da17e5..04c3477b79 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ + +2003-03-13 André Pönitz + + * factory.C: make it aware of InsetEnv + 2003-03-13 Lars Gullik Bjønnes * text2.C (setCursor): never ask for one past last @@ -141,7 +146,7 @@ 2003-03-11 André Pönitz - * factory.C: make it aware of InsetHFill (not active yet) + * factory.C: make it aware of InsetHFill 2003-03-10 Lars Gullik Bjønnes diff --git a/src/factory.C b/src/factory.C index 24cd050bfd..6fbcb377b7 100644 --- a/src/factory.C +++ b/src/factory.C @@ -23,6 +23,7 @@ #include "insets/insetbibtex.h" #include "insets/insetcaption.h" #include "insets/insetcite.h" +#include "insets/insetenv.h" #include "insets/insetert.h" #include "insets/insetexternal.h" #include "insets/insetfloat.h" @@ -160,6 +161,9 @@ Inset * createInset(FuncRequest const & cmd) return new InsetParent( InsetCommandParams("lyxparent", cmd.argument), *bv->buffer()); + case LFUN_ENVIRONMENT_INSERT: + return new InsetEnvironment(params, cmd.argument); + #if 0 case LFUN_INSET_LIST: return new InsetList; diff --git a/src/insets/insetenv.C b/src/insets/insetenv.C index 74c200cda7..b17fe08c2e 100644 --- a/src/insets/insetenv.C +++ b/src/insets/insetenv.C @@ -51,7 +51,7 @@ Inset * InsetEnvironment::clone(Buffer const &, bool same_id) const void InsetEnvironment::write(Buffer const * buf, ostream & os) const { - os << "Environment" << getInsetName() << "\"\n"; + os << "Environment " << getInsetName() << "\"\n"; InsetCollapsable::write(buf, os); }