Bo Peng wrote:

>> Really? I don't understand why, but if this is the case then put it in.
>> This separate table cut buffer is really too complicated. I am seriously
>> considering to fix the Mac table copy/paste bug by implementing the grid
>> cut buffer.
> 
> A unified datastructure is not easy because CutAndPaste needs to know
> insettable.h.

I am not so sure that this is so difficult. I believe that LyXTabular could
be used (not the inset).

> My proposal is to remove internal clipboard altogether 
> and use boost::serialization to serialize everything to system
> clipboard. I understand your concern of performance but serialization
> is rather quick and much cleaner.

Unfortunately using boost::serialization will not solve the problem of the
two disconnected clipboards for table/nontable stuff. You would still need
to keep track of what was the latest copy operation and whether it is
multicell stuff or single cell stuff. I don't think that
boost::serialization can automagically transform a LyXtabular into a
ParagraphList or vice versa :-)
Therefore some sort of grid is still needed if you want to merge the two
clipboards.

> I will submit my patch and let us talk about this after 1.5.0.

Yes.


Georg

Reply via email to