]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTheorem.cpp
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
[lyx.git] / src / insets / InsetTheorem.cpp
index 7927d2ce3deddeceeb9570ced33a6ac10bf0088f..312f60b0ecf0f9e659e9158c0d7ff0ae9ad80b47 100644 (file)
@@ -1,5 +1,6 @@
+#if 0
 /**
- * \file Inset.heorem.cpp
+ * \file InsetTheorem.cpp
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
@@ -10,7 +11,7 @@
 
 #include <config.h>
 
-#include "Inset.heorem.h"
+#include "InsetTheorem.h"
 #include "insets/InsetText.h"
 
 #include "debug.h"
@@ -58,23 +59,20 @@ void Inset.heorem::write(Buffer const * buf, ostream & os) const
 }
 
 
-auto_ptr<Inset> Inset.heorem::doClone() const
+Inset * InsetTheorem::clone() const
 {
        // FIXME: Is this inset used? If YES this is WRONG!!! (Jug)
-       auto_ptr<Inset.heorem> result(new InsetTheorem);
+       InsetTheorem * result = new InsetTheorem;
        result->setCollapsed(!isOpen());
-
        return result;
 }
 
-bool Inset.heorem::metrics(MetricsInfo & mi, Dimension & dim) const
+
+void Inset.heorem::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        InsetCollapsable::metrics(mi, dim);
        center_indent_ = (mi.base.textwidth - dim.wid) / 2;
        dim.wid = mi.base.textwidth;
-       bool const changed = dim_ != dim;
-       dim_ = dim;
-       return changed;
 }
 
 
@@ -103,3 +101,5 @@ int Inset.heorem::latex(Buffer const * buf, odocstream & os,
 
 
 } // namespace lyx
+
+#endif