#include "Color.h"
#include "Lexer.h"
#include "MetricsInfo.h"
-#include "Paragraph.h"
#include "TextMetrics.h"
#include "support/Translator.h"
namespace lyx {
-using std::auto_ptr;
using std::string;
using std::istringstream;
using std::ostream;
}
-auto_ptr<Inset> InsetBox::doClone() const
+Inset * InsetBox::clone() const
{
- return auto_ptr<Inset>(new InsetBox(*this));
+ return new InsetBox(*this);
}
void InsetBox::setButtonLabel()
{
- LyXFont font(LyXFont::ALL_SANE);
+ Font font(Font::ALL_SANE);
font.decSize();
font.decSize();
setLabel(label);
font.setColor(Color::foreground);
- setBackgroundColor(Color::background);
setLabelFont(font);
}
int InsetBox::latex(Buffer const & buf, odocstream & os,
- OutputParams const & runparams) const
+ OutputParams const & runparams) const
{
BoxType btype = boxtranslator().find(params_.type);
int InsetBox::plaintext(Buffer const & buf, odocstream & os,
- OutputParams const & runparams) const
+ OutputParams const & runparams) const
{
BoxType const btype = boxtranslator().find(params_.type);
int InsetBox::docbook(Buffer const & buf, odocstream & os,
- OutputParams const & runparams) const
+ OutputParams const & runparams) const
{
return InsetText::docbook(buf, os, runparams);
}
return print_mailer_error("InsetBoxMailer", in, 1, name_);
// This is part of the inset proper that is usually swallowed
- // by LyXText::readInset
+ // by Text::readInset
string id;
lex >> id;
if (!lex || id != "Box")