+#if 0
/**
* \file InsetTheorem.cpp
* This file is part of LyX, the document processor.
#include "debug.h"
#include "gettext.h"
-#include "LyXFont.h"
-#include "LyXText.h"
+#include "Font.h"
+#include "Text.h"
#include "MetricsInfo.h"
#include "support/std_ostream.h"
user.
*/
-InsetTheorem::InsetTheorem()
+Inset.heorem::InsetTheorem()
: InsetCollapsable()
{
setLabel(_("theorem"));
- LyXFont font(LyXFont::ALL_SANE);
+ Font font(Font::ALL_SANE);
font.decSize();
font.decSize();
font.setColor(Color::collapsable);
}
-void InsetTheorem::write(Buffer const * buf, ostream & os) const
+void Inset.heorem::write(Buffer const * buf, ostream & os) const
{
- os << getInsetName() << "\n";
+ os << name() << "\n";
InsetCollapsable::write(buf, os);
}
-auto_ptr<InsetBase> InsetTheorem::doClone() const
+Inset * InsetTheorem::clone() const
{
-#ifdef WITH_WARNINGS
-#warning Is this inset used? If YES this is WRONG!!! (Jug)
-#endif
- auto_ptr<InsetTheorem> result(new InsetTheorem);
+ // FIXME: Is this inset used? If YES this is WRONG!!! (Jug)
+ InsetTheorem * result = new InsetTheorem;
result->setCollapsed(!isOpen());
-
return result;
}
-bool InsetTheorem::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;
}
}
-string const InsetTheorem::editMessage() const
+string const Inset.heorem::editMessage() const
{
return _("Opened Theorem Inset");
}
-int InsetTheorem::latex(Buffer const * buf, odocstream & os,
+int Inset.heorem::latex(Buffer const * buf, odocstream & os,
OutputParams const & runparams) const
{
os << "\\begin{theorem}%\n";
} // namespace lyx
+
+#endif