Hi gaopeng, gaopeng schrieb:
> Hi Mathias , last week , I studied a part of the source code related > the clipboard . I would like to know the following aspects : > > 1 , what is the clipboard machisam in the ooo(if you don't mind , > please tell me the general conceptions about it. ) I'm a little bit unclear about what you want to know. In one of my last mails I tried to explain the general mechanism. Please let me know about which part of this you want to know something in closer detail. > 2 , while we copy the various kinds of source , e.g , ole object/bit > map/words/html/gif picture, how we record the information about the > source we copied in the ooo. e.g , if we copy a bit map , we must > record some attributes about this bit map (e.g , size , colour, and > so on) so that we can reproduce it when we excute the "paste" > operation . When an object is copied to the clipboard the whole content representing it in memory is kept in the SwTransferable (simply speaking). When the document or OOo is closed, a document representing the clipboard content is created and stored in OOo's own file format. When a "Paste" operation is carried out, the content in memory is copied directly in case the target is inside OOo (perhaps some conversion is done, depending on the target format) or the usual system clipboard mechanisms are used if either source or target of the operation are not inside OOo. > when I read the source code , in the function > SwTransferable::PrepareForCopy( BOOL bIsCut ) , I know some attributs > are saved in this function but I don't know exactly which attributs > are to be saved . e.g , if we copy a ole object , which > configurations should we set so that we can get the same as its > original when we paste it . in other words , if we would like to > copy a object (like a paragraph of words , a ole object , a picture > etc), which attributes of the object we want to copy are to be saved. As I wrote, speaking in general terms we have an in-memory copy of (or reference to) the selected part of the document. More details can't be given for the general case, they must be explained individually. > I would like to get some advices how to do works about the clipboard > from you . > > in addition . in the next days , I will submit some bugs which I > found . That would be great. If we had some concrete issues to discuss it would be easier to explain what will be necessary to know. Best regards, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
