Le 15 août 07 à 16:07, Jean-Marc Lasgouttes a écrit :

Mael Hilléreau <[EMAIL PROTECTED]> writes:

Yes, by "frame" I meant something that would integrate seamlessly
into paragraphs (the 3-box-drawing approach that Andre advocates
would be very well suited for that).

This is probably outside of 1.6 program, though.

Well, I think we could use a collapsable inset until the 3-box- drawing is available. This is not as much clear as it would be with a 3-box but, nospellcheck insets will not be very numerous in most cases, so this is acceptable for now.

I uploaded a new version of the patch at bugzilla (http:// bugzilla.lyx.org/show_bug.cgi?id=1509). I used the note inset for testing usability of a special inset (I didn't make a new inset class). Of course this is _not_ an end solution, but proves that it's very easy to implement such an inset (the solution would be to create a new inset class, probably derived from InsetCollapsable). This patch shows that much can be done with a type-level approach without decrease of performance (at least for me).

In fact, I added two note types: "No spellcheck" and "Spellcheck". Again, it's just for test purpose, and I don't know if the "Spellcheck" variant should be kept in future... Maybe it would be more clear to have an inset class with a setting that would allow to enabled/disable spellchecking. I recall that the "Spellcheck" inset could be used into non spellchecked containers, for example to add some comment written in natural language into a code sample (e.g. a LyX-Code paragraph). It is possible to imbricate at will those insets, and they have no influence on latex output.

The next step is to implement the InsetSpellcheck class. In order to do that, it is needed to add some new source files; what is the procedure to follow in order to get them compiled and linked? (adding them into src/insets/Makefile.am doesn't seem to work at linking stage)

Mael.



Reply via email to