Cengiz Gunay wrote: > I believe having a popup which only interrupts an automatic process and > waits for mouse click/keyboard is not very useful. I would suggest either: > > 1) Having a concept of LyX log file/window similar to the LaTeX log > concept. > 2) Having little LyX-Warning boxes embedded in the document, similar to > the TeXError boxes that appear after compilation. > 3) If you *really* want to keep the popups, then there should be a button > "ignore all" or a checkbox. Or there should be a way to stop these from > the preferences.
I would prefer 1). This would make it trivial to show lyx2lyx messages. Apart from that, there are other possible solutions for your probblem: 4) Just remove this particular popup. Since the document class of the included document is ignored anyway, the user does not need to know that it is different. This information is only useful if there are problems because the included document uses layouts that are not available in the parent document class, and could only be given in that case. 5) Fix the real problem behind: double data definition. Define a new format for included lyx files that is identical to the normal one but without the header information (similar to latex). Currently lyx tries to pretend that files made for inclusion are also usable without the master file. This might work sometimes, but not in general (imagine the case that the master file has a new command defined in the preamble that is used in the included document). IMHO the cleanest solution is to make it explicit that an included file is only usable with a master document. I know that this causes problems at other places (e. g. it should be possible to convert between "normal" and "included" lyx files, what to do when a user opens an "included" file without a master etc.), so it might not be good to do it now, but it might be an idea for the future. Georg