I have document with XTable.I have to clone this XTable.Today , I use XDispatchHelper.executeDispatch(). 1.Copy table to clipboard 2.Move cursor to new position 3.Paste table from clipboard
Problem area: 1. I start to clone table 50 times 2. I open an Excel file and copy to clipboard.It changed clipboard content and my clone XTable procedure crached , because XDispatchHelper.executeDispatch() paste wrong data from clipboard. I search OO API , I discovered XClipboardManager http://api.openoffice.org/docs/common/ref/com/sun/star/datatransfer/clipboard/XClipboardManager.html It`s support addClipboard and getClipboard by parameter "clipboardName". It`s may be a solution , but I don`t know , How to change cplipboard in XDispatchHelper.executeDispatch() . My questions: 1.How to change clipboard in XDispatchHelper.executeDispatch(XDispatchProvider provider , String command ,.....) ? (command :=.uno:Copy | .uno:Paste ) 2.Is thare other way to clone XTable? Thanks