hi,
i want to fetch the XClipboardManager interface which
is available from the ClipboardManager service. I'm pasting a portion of the
code i used. While the service SystemClipboard is available i'm unable to
instatiate the service ClipboardManager.
Object oClipboard = xServiceManager.createInstanceWithContext(
"com.sun.star.datatransfer.clipboard.SystemClipboard", xOfficeContext);
XClipboard xClipboard = (XClipboard)
UnoRuntime.queryInterface(XClipboard.class, oClipboard);
Object mClipboard = xServiceManager.createInstanceWithContext(
"com.sun.star.datatransfer.clipboard.ClipboardManager", xOfficeContext);
XClipboardManager xClipManager = (XClipboardManager)
UnoRuntime.queryInterface(XClipboardManager.class, mClipboard);
System.out.println("=========>"+xClipboard);
System.out.println("=========>"+xClipManager);
System.out.println("=========>"+mClipboard);
the output is,
=========>[Proxy:11352996,4ce5e8bc;gcc3[0];b0cefae18b2947828f4194549596b939,Type[com.sun.star.datatransfer.clipboard.XClipboard]]
=========>null
=========>null
can someone indicate the mistake i'm making here?
thanks,
praveen reddy
Meet people who discuss and share your passions. Go to
http://in.promos.yahoo.com/groups/bestofyahoo/