#include "gettext.h"
#include "lyxfont.h"
#include "BufferView.h"
-#include "Painter.h"
#include "lyxtext.h"
#include "insets/insettext.h"
#include "support/LOstream.h"
+#include "debug.h"
using std::ostream;
using std::endl;
}
-Inset * InsetList::Clone() const
+Inset * InsetList::Clone(Buffer const &) const
{
InsetList * result = new InsetList;
result->inset->init(inset);
}
-char const * InsetList::EditMessage() const
+string const InsetList::EditMessage() const
{
return _("Opened List Inset");
}
}
-bool InsetList::InsertInset(BufferView * bv, Inset * in)
-{
- if (!InsertInsetAllowed(in))
- return false;
-
- return inset->InsertInset(bv, in);
-}
-
-
bool InsetList::InsertInsetAllowed(Inset * in) const
{
if ((in->LyxCode() == Inset::FOOT_CODE) ||
}
return true;
}
-
-#if 0
-LyXFont InsetList::GetDrawFont(BufferView * bv,LyXParagraph * p, int pos) const
-{
- LyXFont fn = getLyXText(bv)->GetFont(bv->buffer(), p, pos);
- fn.decSize().decSize();
- return fn;
-}
-#endif