Bo Peng wrote: > From data structure point of view, clipboard would become typed > stream. I.e. LyX_Table, LyX_Text, LyX_Math etc. Then, depending on > where the clipboard is pasted, we should have converters like > LyX_Table->LyXText. LyXText->plain text so that table stuff can be > pasted into a text paragraph. Of course, this can be done between two > lyx sessions.
So for these converters you have to solve exactly the same problems that we need to solve if we want to implement the grid clipboard. text<->math is already implemented and used (and could easily be refactored for the data stream solution), what is missing is text<->table. math<->table could also be useful, if you think of arrays in math. I still maintain that using boost::serialization does not help here at all. It might be useful for other reasons, but it does not solve the problem of text/table clipboard unification. Georg
