#include "MetricsInfo.h"
#include "OutputParams.h"
+#include "support/docstream.h"
#include "support/Translator.h"
#include <algorithm>
namespace lyx {
using std::string;
-using std::auto_ptr;
using std::istringstream;
using std::ostream;
using std::ostringstream;
: InsetCollapsable(bp)
{
params_.type = notetranslator().find(label);
- setLayout(bp);
setButtonLabel();
}
}
-auto_ptr<Inset> InsetNote::doClone() const
+Inset * InsetNote::clone() const
{
- return auto_ptr<Inset>(new InsetNote(*this));
+ return new InsetNote(*this);
}
{
params_.read(lex);
InsetCollapsable::read(buf, lex);
- setLayout(buf.params());
- setButtonLabel();
}
InsetNoteMailer::string2params(to_utf8(cmd.argument()), params_);
// get a bp from cur:
setLayout(cur.buffer().params());
- setButtonLabel();
break;
case LFUN_INSET_DIALOG_UPDATE: