]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.C
hopefully fix tex2lyx linking.
[lyx.git] / src / insets / insettheorem.C
index 9f1ee9f0a023ccf97ffa404393e4c370e895b8dc..a7b9e2018e6ba1622f928d942ff97a6911bac4f1 100644 (file)
@@ -14,7 +14,6 @@
 #include "insets/insettext.h"
 
 #include "debug.h"
-#include "BufferView.h"
 #include "gettext.h"
 #include "lyxfont.h"
 #include "lyxtext.h"
@@ -22,6 +21,9 @@
 
 #include "support/std_ostream.h"
 
+
+namespace lyx {
+
 using std::endl;
 using std::ostream;
 
@@ -56,7 +58,7 @@ void InsetTheorem::write(Buffer const * buf, ostream & os) const
 }
 
 
-auto_ptr<InsetBase> InsetTheorem::clone() const
+auto_ptr<InsetBase> InsetTheorem::doClone() const
 {
 #ifdef WITH_WARNINGS
 #warning Is this inset used? If YES this is WRONG!!! (Jug)
@@ -88,7 +90,7 @@ string const InsetTheorem::editMessage() const
 }
 
 
-int InsetTheorem::latex(Buffer const * buf, ostream & os,
+int InsetTheorem::latex(Buffer const * buf, odocstream & os,
                        OutputParams const & runparams) const
 {
        os << "\\begin{theorem}%\n";
@@ -98,3 +100,6 @@ int InsetTheorem::latex(Buffer const * buf, ostream & os,
 
        return i + 2;
 }
+
+
+} // namespace lyx