void Paragraph::Pimpl::insertInset(pos_type pos,
- InsetOld * inset, LyXFont const & font, Change change)
+ InsetBase * inset, LyXFont const & font, Change change)
{
BOOST_ASSERT(inset);
BOOST_ASSERT(pos <= size());
if (c != '\0')
os << c;
} else {
- InsetOld const * inset = owner_->getInset(i);
- inset->plaintext(buf, os, runparams);
+ owner_->getInset(i)->plaintext(buf, os, runparams);
}
return;
}
// and then split to handle the two modes separately.
switch (c) {
case Paragraph::META_INSET: {
- InsetOld * inset = owner_->getInset(i);
+ InsetBase * inset = owner_->getInset(i);
// FIXME: remove this check
if (!inset)
break;
// FIXME: move this to InsetNewline::latex
- if (inset->lyxCode() == InsetOld::NEWLINE_CODE) {
+ if (inset->lyxCode() == InsetBase::NEWLINE_CODE) {
// newlines are handled differently here than
// the default in simpleTeXSpecialChars().
if (!style.newline_allowed) {
bool close = false;
ostream::pos_type const len = os.tellp();
- if ((inset->lyxCode() == InsetOld::GRAPHICS_CODE
- || inset->lyxCode() == InsetOld::MATH_CODE
- || inset->lyxCode() == InsetOld::URL_CODE)
+ if ((inset->lyxCode() == InsetBase::GRAPHICS_CODE
+ || inset->lyxCode() == InsetBase::MATH_CODE
+ || inset->lyxCode() == InsetBase::URL_CODE)
&& running_font.isRightToLeft()) {
os << "\\L{";
close = true;
if (icit->inset) {
icit->inset->validate(features);
if (layout.needprotect &&
- icit->inset->lyxCode() == InsetOld::FOOT_CODE)
+ icit->inset->lyxCode() == InsetBase::FOOT_CODE)
features.require("NeedLyXFootnoteCode");
}
}