]> git.lyx.org Git - lyx.git/commitdiff
read them back...
authorAndré Pönitz <poenitz@gmx.net>
Thu, 13 Mar 2003 11:42:12 +0000 (11:42 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 13 Mar 2003 11:42:12 +0000 (11:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6484 a592a061-630c-0410-9148-cb99ea01b6c8

src/factory.C
src/insets/insetenv.C
src/insets/insetminipage.h

index 6fbcb377b77c9507ce9adc34cba26a2c4da44833..3c2a1d52d99122444534476ac02b7702af1a5f79 100644 (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") {
index b17fe08c2ebf07220a6b77c17a5e511b8cb7cd6c..a81cc7d4da2a62faef7bbe86e11a7b86af5468aa 100644 (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);
 }
 
index d4f544a4d5ca763e8f3c4795a2272aa7b520354c..18237157ecf7bfec472c3a45fccc6f24b669ffb9 100644 (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"