This patch does the following:

- make Buffer::insertStringAsLines work when inserting in nested
  insets

- set autoBreakRows_ to true for the top-level inset. Alfredo, is that
  right?

- fix a first crash in BufferView::Pimpl::MenuInsertLyXFile

The situation of inserting files in nested insets is however very bad,
since Buffer::readDocument can only use a pit_type as argument and
this argument is actually never used :( Indeed, readDocument, which
does the hard work, is never invoked.

Would it be right to pass also a ParagraphList argument to
Buffer::readFile and BufferReadDocument? Or is it better in this case
(and in Buffer::insertStringAsLines) to pass a dociterator (or a
cursor slice) to indicate where to insert. I ask, because buffer.C
does not use cursors at all.

Comments welcome.

JMarc

Reply via email to