On 03-Jan-2002 Andre Poenitz wrote:
> But now that Formula pretents being a text inset ( isTextInset() -> true )
> we might as well fake replaceSelectionWithString() and
> setSelectionOverString, too.
[snip]
> - use bv->getSearchableInset()->replaceSelectionWithString(...) instead of
> bv->getLyXText()->replaceSelectionWithString(...) in lyxfind.C
Well in all this you forgot that this was made for the REAL text too and the
real text is NOT an inset. So the above does NOT work. What would work is to
use something like this
if (bv->theLockingInset()) {
...
bv->theLockingInset()->replaceSelectionWithString(...);
...
} else {
...
bv->getLyXText()->replaceSelectionWithString(...);
...
}
And you have to implement all the needed functions. IMO this should not be
done right now.
Jug
--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. J�rgen Vigna E-Mail: [EMAIL PROTECTED]
Italienallee 13/N Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Genius is ten percent inspiration and fifty percent capital gains.