Re: Copy textstring to Clipboard <SOLVED>

Ariel Constenla-Haile <[email protected]> Thu, 2 Dec 2010 10:03:20 -0300
Newsgroups gmane.comp.openoffice.devel.api
Message-ID <[email protected]>
Hello steb,

On Thursday 02 December 2010, 09:44, steb wrote:
>   Hi Fernand,
> 
> i wonder which method to copy contents is recommended. I achieve the
> same but I use a different approach with XSelectionSupplier in
> combination with XDispatchHelper and the XTextViewCursor. Code is
> similar to:
> 
>      public void copyContent(XCellRange cellRange, XTextRange textRange)

this is Java! so why are you using the dispatch API?
Look at the Developer's Guide
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Common_Application_Features
and the example in the OOo SDK
</opt/openoffice.org/basis3.4/>sdk/examples/DevelopersGuide/OfficeDev/Clipboard/

Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)

iQIcBAABCAAGBQJM95kgAAoJEMjP1bm45QNWH2sP/ilhnntsRPfGqUodFuOZK1oj
4I/DyE0jtPuJkyR+1NYPN9+g8uj3EgZYjfImjqn0oa+XkqVdbgCjIBn2wypWRe0g
s6apf4S7RllhKptH8rhTgD/rB5LPSm+hvHxZc8rrisZAQcJ0QjMcK7Et0aqFlFv8
vPlE8m/ZjqvflsSFY/ZprmsdY56LMoT/LGVWPFyvo9Sh80CsFhT2B1pALUBzcxOs
n6PNLzdGD4Ofbx4Oyldo1b9x38pG5tGq74bFlc3kcKCLg/cD9IIeTYSy99IpJvK7
SNyuwaUM2vxtEod8yOzogjR6sA2UHjdirnk6IOqKgRjtVucwuU83HxQFHV/YonqB
3srZW5OlR2AdBPn0hduR5vdcYE9kbv+D4WhkE3BCYpZXh/FV6USvfpohM5zOySOU
cihER+RWfQrK7LLIAg6QUq8wVdQsdKKvPL6opJA2aZ0QlBZ/Q6FBpWfykV0Zmf9U
KVBYfMAH3/Wi20HuOhM7g0yciEvVtbXlCew6IwkHXtxVi6pxhmll/jiAOWcJC73p
aPeHitrYnZZ4PstElI5/rs8mXXLlM/E43Ulb1Cu7B/WvdsX4T77RQJtjUmvmgmrn
zX/AH3ZS6ABcMa3nEk4dCfyQiZGlzXhsHDtB3FvdP6VdYwHNu/DRHyfhvJQUxpM7
dEHpVSxx0E/c+GPjeylC
=5pGI
-----END PGP SIGNATURE-----