Andre Poenitz wrote:
> No problem. All of the other text related lfuns dispatch to getLyXText()
> and I can't see (yet) a technical reason why this should be different for
> cut&paste...
I guess you tried it with multiple InsetText's (say a noteinset inside a
tabular inside a float).
> The funny thing is, almost every LFUN in BufferView_pimpl/LyXText seem to
> use its own sequence of cursor hiding, "local dispatching", updating,
> etc... And most of them seem to work interchangably, so I'd guess in the
> end a lot of those could be simplified.
If I'm not wrong (and I think I am not ;) this is because before I cleaned
up the Cut&Paste stuff and put all of it inside it's own class the buffer
was inside the main LyXText (it has to be a global buffer otherwise you
aren't able to copy between different LyXText's).
But it could also be that a BufferView does only have 1 LyXText and the
lfuns are handled directly inside InsetText too so the ones coming to
BufferView did handle only the ones for it's LyXText so it was not neccessary
to specify the getLyXText() stuff.
What we could do is have a look if we could also remove the handling
in InsetText of this lfuns IMO it should work.
Jug
--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. J�rgen Vigna E-Mail: [EMAIL PROTECTED]
Mitterstrich 151/A Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39050 Steinegg Web: http://www.lyx.org/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._