You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2017/07/18 10:26:10 UTC

[Issue 127480] New: ScriptProvider does not load all languages at start

https://bz.apache.org/ooo/show_bug.cgi?id=127480

          Issue ID: 127480
        Issue Type: DEFECT
           Summary: ScriptProvider does not load all languages at start
           Product: App Dev
           Version: 4.1.3
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: api
          Assignee: issues@openoffice.apache.org
          Reporter: oooforum@free.fr
  Target Milestone: ---

Created attachment 86181
  --> https://bz.apache.org/ooo/attachment.cgi?id=86181&action=edit
Sample document to reproduce

Document attached contains macro so take care to grant execution.

This spreadsheet embeds a GET_SP function to display XScriptProvider's
languages supported.
 Function GET_SP() as string
        oDoc = thisComponent()
        oSP = oDoc.getScriptProvider()
        Elems = oSP.getChildNodes()
        For each Elem in Elems()
                sOut = sOut & Elem.name & chr(10)
        Next
        GET_SP = sOut
 End function

Steps to reproduce:
1) Open test_provider.ods
2) A1 cell's content returns:
Basic
uno_package
3) Go to B1
4) Input formula =GET_SP() and valid
5) B1 cell's content returns:
Basic
Python
JavaScript
Java
BeanShell

With this behavior, unable to call a Javascript or Python script when loading a
document.


I'm not a C++ expert but issue seems to be in:
openoffice/trunk/main/scripting/source/provider/MasterScriptProvider.cxx
Help from Dev team is welcome :-)

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127480] ScriptProvider does not load all languages at start

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127480

ms7777 <ms...@web.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ms777@web.de

--- Comment #1 from ms7777 <ms...@web.de> ---
I can confirm this issue. See also
https://bugs.documentfoundation.org/show_bug.cgi?id=143989
It severely limits the use of python for formula functions. P5 is a bit low ...

-- 
You are receiving this mail because:
You are the assignee for the issue.