]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.C
fix compilation pb ; update eu.po
[lyx.git] / src / insets / insettheorem.C
index 388d876ccdabbf7bb7ff6c5a4f093705d74f0de7..637e4933c7ba011ef69175275d33bf3bf7f39330 100644 (file)
@@ -18,7 +18,6 @@
 #include "gettext.h"
 #include "lyxfont.h"
 #include "BufferView.h"
-#include "Painter.h"
 #include "lyxtext.h"
 #include "support/LOstream.h"
 #include "debug.h"
@@ -55,7 +54,7 @@ void InsetTheorem::Write(Buffer const * buf, ostream & os) const
 }
 
 
-Inset * InsetTheorem::Clone() const
+Inset * InsetTheorem::Clone(Buffer const &) const
 {
        InsetTheorem * result = new InsetTheorem;
        
@@ -64,7 +63,7 @@ Inset * InsetTheorem::Clone() const
 }
 
 
-char const * InsetTheorem::EditMessage() const
+string const InsetTheorem::EditMessage() const
 {
        return _("Opened Theorem Inset");
 }
@@ -75,7 +74,7 @@ int InsetTheorem::Latex(Buffer const * buf,
 {
        os << "\\begin{theorem}%\n";
        
-       int i = inset->Latex(buf, os, fragile, fp);
+       int i = inset.Latex(buf, os, fragile, fp);
        os << "\\end{theorem}%\n";
        
        return i + 2;
@@ -92,14 +91,3 @@ bool InsetTheorem::InsertInsetAllowed(Inset * inset) const
        }
        return true;
 }
-
-
-#if 0
-LyXFont InsetTheorem::GetDrawFont(BufferView * bv,
-                                 LyXParagraph * p, int pos) const
-{
-       LyXFont fn = getLyXText(bv)->GetFont(bv->buffer(), p, pos);
-       fn.decSize().decSize();
-       return fn;
-}
-#endif