]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.C
fix typo that put too many include paths for most people
[lyx.git] / src / insets / insettheorem.C
index 4394b3ac234fcac7cbef3e4cfd827180feda6cf3..e6cf3016aa86fd1e7cc87de7dfdf5263d866ba54 100644 (file)
@@ -1,8 +1,8 @@
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
- *      
+ *
  *          Copyright 1998 The LyX Team.
  *
  * ======================================================
@@ -40,54 +40,47 @@ InsetTheorem::InsetTheorem()
        LyXFont font(LyXFont::ALL_SANE);
        font.decSize();
        font.decSize();
-       font.setColor(LColor::footnote);
+       font.setColor(LColor::collapsable);
        setLabelFont(font);
+#if 0
        setAutoCollapse(false);
+#endif
        setInsetName("Theorem");
 }
 
 
-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);
+       InsetCollapsable::write(buf, os);
 }
 
 
-Inset * InsetTheorem::Clone() const
+Inset * InsetTheorem::clone(Buffer const &, bool) const
 {
+#ifdef WITH_WARNINGS
+#warning Is this inset used? If YES this is WRONG!!! (Jug)
+#endif
        InsetTheorem * result = new InsetTheorem;
-       
-       result->collapsed = collapsed;
+
+       result->collapsed_ = collapsed_;
        return result;
 }
 
 
-char const * InsetTheorem::EditMessage() const
+string const InsetTheorem::editMessage() const
 {
        return _("Opened Theorem Inset");
 }
 
 
-int InsetTheorem::Latex(Buffer const * buf,
+int InsetTheorem::latex(Buffer const * buf,
                        ostream & os, bool fragile, bool fp) const
 {
        os << "\\begin{theorem}%\n";
-       
-       int i = inset->Latex(buf, os, fragile, fp);
-       os << "\\end{theorem}%\n";
-       
-       return i + 2;
-}
 
+       int i = inset.latex(buf, os, fragile, fp);
+       os << "\\end{theorem}%\n";
 
-bool InsetTheorem::InsertInsetAllowed(Inset * inset) const
-{
-       lyxerr << "InsetTheorem::InsertInsetAllowed" << endl;
-       
-       if ((inset->LyxCode() == Inset::FOOT_CODE) ||
-           (inset->LyxCode() == Inset::MARGIN_CODE)) {
-               return false;
-       }
-       return true;
+       return i + 2;
 }