read_only(readonly_), filename(file), file_fully_loaded(false),
toc_backend(&parent), macro_lock(false),
embedded_files(), timestamp_(0), checksum_(0), wa_(0),
- undo_(parent), inset(parent)
+ undo_(parent)
{
temppath = createBufferTmpDir();
lyxvc.setBuffer(&parent);
}
// Make sure there is no class difference.
- InsetText in(cur.buffer());
+ InsetText in;
// This works without copying any paragraph data because we have
// a specialized swap method for ParagraphList. This is important
// since we store pointers to insets at some places and we don't
}
// Prepare the paragraphs and insets for insertion.
- // Insets store buffer references so need updating.
+ // A couple of insets store buffer references so need updating.
insertion.swap(in.paragraphs());
InsetIterator const i_end = inset_iterator_end(in);
// Nothing to do.
cur.undispatched();
return;
- case mouse_button::none:
- case mouse_button::button4:
- case mouse_button::button5:
- break;
}
}
if (geometry() == NoButton
InsetText::InsetText(Buffer const & buf)
: drawFrame_(false), frame_color_(Color_insetframe)
{
- Inset::setBuffer(const_cast<Buffer &>(buf));
initParagraphs(buf);
}
}
+InsetText::InsetText()
+{}
+
+
void InsetText::initParagraphs(Buffer const & buf)
{
BOOST_ASSERT(paragraphs().empty());
///
explicit InsetText(Buffer const & buffer);
///
+ InsetText();
+ ///
InsetText(InsetText const &);
///
void initParagraphs(Buffer const & buffer);