OpenOffice Clipboard handling

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
Deer
Posts: 4
Joined: Sun Mar 23, 2008 2:24 am

OpenOffice Clipboard handling

Post by Deer »

Hello!

I couldn't find enough information about clipboard-handling. Can anyone help me? A snippet code or something?
I was bugging hard on api.openoffice.org, but it is not clear for me.

I want to mark a full row in Calc, copy it to clipboard, then browse it within my Delphi application.

Thanks to everyone.

Deer
ms777
Volunteer
Posts: 177
Joined: Mon Oct 08, 2007 1:33 am

Re: OpenOffice Clipboard handling

Post by ms777 »

Hi,

see http://www.oooforum.org/forum/viewtopic ... 184#156184 for an example how to set the Clipboard. Alternatively, you can use the dispatcher with .uno:Copy. Search for 'DispatchHelper. With the latter method, you do not have full control over the data flavor, so it may be possible that Delphi is not able to understand the clipboard.

Good luck,

ms777
Post Reply