<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Calc extension fails in LibreOffice (works in Apache OpenOffice)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132005">132005</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Calc extension fails in LibreOffice (works in Apache OpenOffice)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Extensions
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dkgabi@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=159451" name="attach_159451" title="Calc extension that does not work in LibreOffice">attachment 159451</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=159451&action=edit" title="Calc extension that does not work in LibreOffice">[details]</a></span>
Calc extension that does not work in LibreOffice

I have a Calc extension that contains a simple StarBasic macro. The purpose is
to export an opened spreadsheet file to a tab-separated text file in UTF-8 with
no text delimiter and assign a name to the exported TSV file equal to the name
of the original file except for the name extension (if the name extension is a
common spreadsheet file name extension such as .ods/.xls/.xlsx, it is replaced
with .txt, otherwise .txt is added to the file name).

When installed, the Calc extension creates (in Calc only) a custom toolbar with
one button and a custom item under the File menu (namely, “Export to OmegaT
Glossary”).

The Calc extension installs and operates as described above in Apache
OpenOffice 4.2.0 (for the sake of clarity: it is a development build from
2016), but not in LibreOffice, including LO 6.4.2 (tested also with earlier
6.4.0, 6.3.4 and other versions, mainly under Windows 7). An attempt to install
produces an error message that I cannot interpret (see below). At
ask.libreoffice.org, I have been advised to report the issue here, which I do.

Steps to reproduce:

1. Download the attached extension file.
2. Try to install it. An error message should appear as follows:
(com.sun.star.deployment.DeploymentException) { { Message = "An error occurred
while enabling: ExportToGlossary", Context = (com.sun.star.uno.XInterface)
©50038c8 }, Cause = (any) { (com.sun.star.lang.IllegalArgumentException) { { {
Message = "", Context = (com.sun.star.uno.XInterface) @0 }}, ArgumentPosition =
(short) 0 }}}
3. Close LibreOffice, restart.
4. Open the Extension Manager.
5. The Calc extension appears in the list, but inactive.
6. Click on Enable. An error message should appear as follows:
(com.sun.star.lang.IllegalArgumentException) { { { Message = "", Context =
(com.sun.star.uno.XInterface) @0 }}, ArgumentPosition = (short) 0 )

Afterwards, the extension does not become active, however, can be uninstalled.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>