On 19-Mar-2002 Andre Poenitz wrote:
> I'd like to be able to cut&paste between mathed and "the rest of the > world". Currently, mathed keeps its own cut buffer, which is fine > sometimes, but annoying in general. > > So I guess I need to know how to store a string in the same place as the > rest of LyX does, and how to retrieve a string from there. Well CutAndPaste operates on Paragraph basis where if you have only a single paragraph this could be put anywhere also within anoter paragraph. So IMO the only thing you have to do is: Store the part of the inset you want to copy inside a InsetFormula inside a paragraph and give this one to the copy function of CutAndPaste. Now if you "paste" the contents somewhere you'll just get the InsetFormula there (I hope that is what you wanted). For pasting inside a formula you just have to create another paragraph where the copy buffer is put inside and you have to extract the parts you need to do your internal paste. Should be doable, don't you think so? Jug P.S.: I get your mail from lyx-devel so it's not neccessary (and also not wanted) that you send me all mails also private. -- -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ 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 -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Fudd's First Law of Opposition: Push something hard enough and it will fall over.