read them back...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6484 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-03-13 11:42:12 +00:00
parent 7fb50b8c66
commit 872de8b1de
3 changed files with 8 additions and 3 deletions

View File

@ -331,6 +331,9 @@ Inset * readInset(LyXLex & lex, Buffer const & buf)
} else if (tmptok == "Include") {
InsetCommandParams p("Include");
inset = new InsetInclude(p, buf);
} else if (tmptok == "Environment") {
lex.next();
inset = new InsetEnvironment(buf.params, lex.getString());
} else if (tmptok == "ERT") {
inset = new InsetERT(buf.params);
} else if (tmptok == "Tabular") {

View File

@ -35,6 +35,8 @@ InsetEnvironment::InsetEnvironment
//LyXLayout_ptr const & layout = tc.getEnv(name);
//header_ = layout->latexheader;
//footer_ = layout->latexfooter;
header_ = "\\begin{" + name + "}";
footer_ = "\\end{" + name + "}";
}
@ -51,7 +53,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);
}

View File

@ -10,8 +10,8 @@
* Full author contact details are available in file CREDITS
*/
#ifndef InsetMinipage_H
#define InsetMinipage_H
#ifndef INSETMINIPAGE_H
#define INSETMINIPAGE_H
#include "insetcollapsable.h"