mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 08:44:01 +00:00
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:
parent
7fb50b8c66
commit
872de8b1de
@ -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") {
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user