Issue 69552

Summary: Java - Access StarBasic Scripts in hidden document - no access
Product: App Dev Reporter: ooandreas <broeker>
Component: apiAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: dirk, issues, maison.godard
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description ooandreas 2006-09-15 09:16:22 UTC
Star Basic Scripts can not be accessed with the UNO API if the document is
loaded in hidden mode.

A code snippet:

XScriptProviderSupplier scriptProviderSupplier =
(XScriptProviderSupplier)UnoRuntime.queryInterface(XScriptProviderSupplier.class,
xComponent);
XScriptProvider xScriptProvider = scriptProviderSupplier.getScriptProvider();
XScript xScript =
xScriptProvider.getScript("vnd.sun.star.script:Library1.Module1.Main?language=Basic&location=document");
Comment 1 jsc 2006-09-18 12:34:21 UTC
jsc -> ab: can you take a closer look into this issue please. I can reproduce
the issue with a simply java program.
Comment 2 ab 2006-09-19 08:54:23 UTC
ab -> jsc: Could you provide this simple java program as bugdoc
in an directly executable format?

STARTED
Comment 3 kai.sommerfeld 2006-10-11 15:30:39 UTC
If I'm not wrong, the Script Provider uses TDOC-UCP to access the scripts
contained in documents. But TDOC-UCP currently only gives access to visible
documents. This might be the cause of the problem.
Comment 4 ab 2008-01-25 14:56:29 UTC
-> 3.x
Comment 5 Marcus 2017-05-20 11:27:36 UTC
Reset assigne to the default "issues@openoffice.apache.org".