thanks , Philipp 


gaopeng
2007-10-24



发件人: Philipp Lohmann
发送时间: 2007-10-23 16:35:25
收件人: [email protected]
抄送: 
主题: Re: [gsl-dev] can anybody tell me the x11 clipboard specification

Hi,

gaopeng wrote:
> hi , 
>   I am doing some works about openoffice clipboard on linux , but I were 
> puzzled with the openoffice clipboard on linux , there are following :
> following are my question : 
>  (1) what specification are we must keep in  if we want to add  copy/paste 
> functional into ourself apllication on the linux ? 
>   in other words , can anybody tell me the x11 clipboard specification . 

on all X11 platforms the clipboard works as defined in the "Inter-Client
Communication Conventions Manual", please
have a look at

[1]
http://en.wikipedia.org/wiki/Inter-Client_Communication_Conventions_Manual
[2] http://tronche.com/gui/x/icccm/

> (2) I have seen the linux clipboard(x11) source about openoffice in the 
> dtrans directory of openffice source  , can anybody give me some hints what 
> function the following class:
>     SelectionAdaptor  ,SelectionManager ,Atom ,X11Transferable

All these classes are used to implement the clipboard and Drag&Drop
protocol defined in the UNO interface files
found in offapi/com/sun/star/datatransfer.

SelectionManger is the work horse that evaluates arriving X Events and
sends corresponding answering events
as per the ICCCM. SelectionAdaptor is an interface that is inherited by
SelectionManager and X11Clipboard (see
X11_clipboard.hxx in the same directory); it is merely a container for
different clipboard objects to notify the clipboard
owner or content has changed.

An Atom is a general X11 type; the X server keeps a list of unique
strings which can be refercenced by
a number; this number is the Atom. Basically an Atom is a handle for a
byte string. The X11Transferable is
the implementation class for the XTransferable interface defined  on
offapi/com/sun/star/datatransfer. It is
a container for the currently available data types in the clipboard as
well as a means to query the
clipboard contents for a specific datatype.

Kind regards, pl

-- 
If you give someone a program, you will frustrate them for a day;
if you teach them how to program, you will frustrate them for a lifetime.
     -- Author unknown

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to