namespace lyx {
using std::string;
-using std::auto_ptr;
using std::istringstream;
using std::ostream;
using std::ostringstream;
}
-auto_ptr<Inset> InsetNote::doClone() const
+Inset * InsetNote::clone() const
{
- return auto_ptr<Inset>(new InsetNote(*this));
+ return new InsetNote(*this);
}
}
-Color_color InsetNote::backgroundColor() const
-{
- Color_color c;
- switch (params_.type) {
- case InsetNoteParams::Note:
- c = Color::notebg;
- break;
- case InsetNoteParams::Comment:
- c = Color::commentbg;
- break;
- case InsetNoteParams::Greyedout:
- c = Color::greyedoutbg;
- break;
- case InsetNoteParams::Framed:
- c = Color::greyedoutbg;
- break;
- case InsetNoteParams::Shaded:
- c = Color::shadedbg;
- break;
- }
- return c;
-}
-
-
bool InsetNote::showInsetDialog(BufferView * bv) const
{
InsetNoteMailer(const_cast<InsetNote &>(*this)).showDialog(bv);