| LibreOffice
    LibreOffice 24.8 SDK API Reference | 
import "XClipboard.idl";
 
  
| Public Member Functions | |
| com::sun::star::datatransfer::XTransferable | getContents () | 
| To get the current content of the clipboard. | |
| void | setContents ([in] com::sun::star::datatransfer::XTransferable xTrans, [in] XClipboardOwner xClipboardOwner) | 
| Sets the current contents of the clipboard to the specified transferable object and registers the specified clipboard owner as the owner of the new contents. | |
| string | getName () | 
| To get the name of the clipboard instance. | |
| Public Member Functions inherited from XInterface | |
| any | queryInterface ([in] type aType) | 
| queries for a new interface to an existing UNO object. | |
| void | acquire () | 
| increases the reference counter by one. | |
| void | release () | 
| decreases the reference counter by one. | |
| com::sun::star::datatransfer::XTransferable getContents | ( | ) | 
To get the current content of the clipboard.
| string getName | ( | ) | 
To get the name of the clipboard instance.
If the returned string is empty the clipboard instance is the system clipboard.
| void setContents | ( | [in] com::sun::star::datatransfer::XTransferable | xTrans, | 
| [in] XClipboardOwner | xClipboardOwner ) | 
Sets the current contents of the clipboard to the specified transferable object and registers the specified clipboard owner as the owner of the new contents.
| xTrans | The transferable object to set as new content. | 
If the given com::sun::star::datatransfer::XTransferable has no com::sun::star::datatransfer::DataFlavor the clipboard will be deleted.
A NULL value is not allowed.
| xClipboardOwner | The new owner of the clipboard. | 
NULL is an acceptable value and means that the caller is not interested in lost ownership notifications.