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: [email protected]
Reporter: [email protected]
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.