Can we reach some consensus on what to do? I recall the options I remember
(if I understood them well... ;) :

1) Pass a bv to BufferList::loadLyXFile so it can be attached as soon as the
Buffer is created

2) Pass a slot to BufferList::loadLyXFile that can be attached to a signal
in Buffer to catch the errors. This slot would add the errors to the bv's
ErrorList

3) Split the loading of the buffer from its creation, so the caller would
typically do: 

buf = newBuffer(...);
buf.bufferView(bv);
buf.loadLyxFile(filename);

or something. Or alternatively

buf = newBuffer(...);
connect(buf.errorSignal(),...);
buf.loadLyXFile(filename)

or something

4) Pass an ErrorList & all the way down to the low-level parsing 

Regards, Alfredo


Reply via email to