https://bugs.freedesktop.org/show_bug.cgi?id=66718

          Priority: medium
            Bug ID: 66718
                CC: [email protected], [email protected],
                    [email protected]
          Assignee: [email protected]
           Summary: BASIC Clipboard API has lost functionality
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: x86-64 (AMD64)
            Status: UNCONFIRMED
           Version: 4.1.0.1 rc
         Component: BASIC
           Product: LibreOffice

Created attachment 82204
  --> https://bugs.freedesktop.org/attachment.cgi?id=82204&action=edit
A working example macro in an odt.

(Noel, Joel Madero asked that I cc you when I contacted him via
#libreoffice-qa)

The example code from Andrew Pitonyak (listed below) has stopped working in the
4.1 series of LO. It works for me in 4.0.4.
I copied the basic code and pasted it into a Writer Doc in order find the
reason why. It now works with standard text from gedit but not with any
text/numeric combo from Calc . 

Download the document or create your own pasting in the code below.

Open the clipboardAPI.odt Writer document.
Open a blank calc doc and enter this data in a 2x2 grid, 1 character in a cell.

A B
1 2

Select the 4 cells, then ctrl+c or copy from Edit Menu

Select the ClipboardAPI.odt Writer document and open the Macro Selector
(Tools-Macros-Run Macro...)
Click on ClipboardAPI.odt, then underneath that Standard, and again until the
Macro Name column choose 'clipboardAPI'
Under 4.0.2.2 a dialog box appears containing (whitespace may differ):
A    B
    1        2

Under 4.1.0.2 Nothing happens, but if you Shift+Ctrl+V or 'Paste Special', you
still get various options and you can paste them O.K

Under 4.1.0.2, oClipContents.getTransferDataFlavors() returns an empty array
 in Xray and the Watch window shows nothing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to