#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"
: InsetCollapsable()
{
setLabel(_("theorem"));
- LyXFont font(LyXFont::ALL_SANE);
+ Font font(Font::ALL_SANE);
font.decSize();
font.decSize();
font.setColor(Color::collapsable);
void Inset.heorem::write(Buffer const * buf, ostream & os) const
{
- os << insetName() << "\n";
+ os << name() << "\n";
InsetCollapsable::write(buf, os);
}
-auto_ptr<Inset> Inset.heorem::doClone() const
+Inset * InsetTheorem::clone() const
{
-#ifdef WITH_WARNINGS
-#warning Is this inset used? If YES this is WRONG!!! (Jug)
-#endif
- auto_ptr<Inset.heorem> result(new InsetTheorem);
+ // FIXME: Is this inset used? If YES this is WRONG!!! (Jug)
+ InsetTheorem * result = new InsetTheorem;
result->setCollapsed(!isOpen());
-
return result;
}
+
bool Inset.heorem::metrics(MetricsInfo & mi, Dimension & dim) const
{
InsetCollapsable::metrics(mi, dim);