]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.C
Rename LatexRunParams::fragile as moving_arg.
[lyx.git] / src / insets / insettheorem.C
index b9efc2636e836108b452efdf3119170935b3c8df..a5070d80510654d6224d4f2a918011a90b128b1b 100644 (file)
@@ -1,18 +1,15 @@
-/* This file is part of
- * ======================================================
- * 
- *           LyX, The Document Processor
- *      
- *          Copyright 1998 The LyX Team.
+/**
+ * \file insettheorem.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * ======================================================
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "insettheorem.h"
 #include "gettext.h"
@@ -49,7 +46,7 @@ InsetTheorem::InsetTheorem()
 }
 
 
-void InsetTheorem::write(Buffer const * buf, ostream & os) const 
+void InsetTheorem::write(Buffer const * buf, ostream & os) const
 {
        os << getInsetName() << "\n";
        InsetCollapsable::write(buf, os);
@@ -62,7 +59,7 @@ Inset * InsetTheorem::clone(Buffer const &, bool) const
 #warning Is this inset used? If YES this is WRONG!!! (Jug)
 #endif
        InsetTheorem * result = new InsetTheorem;
-       
+
        result->collapsed_ = collapsed_;
        return result;
 }
@@ -74,13 +71,13 @@ string const InsetTheorem::editMessage() const
 }
 
 
-int InsetTheorem::latex(Buffer const * buf,
-                       ostream & os, bool fragile, bool fp) const
+int InsetTheorem::latex(Buffer const * buf, ostream & os,
+                       LatexRunParams const & runparams) const
 {
        os << "\\begin{theorem}%\n";
-       
-       int i = inset.latex(buf, os, fragile, fp);
+
+       int i = inset.latex(buf, os, runparams);
        os << "\\end{theorem}%\n";
-       
+
        return i + 2;
 }