Mael Hilléreau wrote:
Le 14 août 07 à 16:22, Helge Hafting a écrit :

Mael Hilléreau wrote:
Le 14 août 07 à 14:01, Helge Hafting a écrit :

What happens if you add a new note?

For that, you will indeed need a document setting saying
"don't spellcheck notes".

Ah! I think we're dealing with some kind of type-level here...
Nothing wrong with that - but the document structure
and screen redrawing should be kept as simple as possible.

A type-level approach would be as much simple (at least): just use what is already implemented: insets and layouts. The Inset::allowSpellcheck() method is already there, and what I propose is just to use it. If you have one note inset now, you'll have one note inset next; the only difference is that it won't be spellchecked because its allowSpellcheck() function will return false.
Looks fine...

Screen redrawing doesn't need anything more, frame and background are already visible enough.
A frame?  Will this impose the same limitations as an ERT frame?
I will find it useful to mar as "no-spellcheck" a region that starts in the
middle of some line and end in the middle of the next line on screen.

Anything framed will break up on-screen layout - a big distraction.
Marking something "non-spellcheck" should not affect the
line-breaking on the screen, just like coloring the text doesn't
affect the line-breaking. If you can avoid such problems - fine.

Helge Hafting

Reply via email to