Issue 69552 - Java - Access StarBasic Scripts in hidden document - no access
Summary: Java - Access StarBasic Scripts in hidden document - no access
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows XP
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-15 09:16 UTC by ooandreas
Modified: 2017-05-20 11:27 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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".