https://issues.apache.org/ooo/show_bug.cgi?id=124936
Issue ID: 124936
Issue Type: DEFECT
Summary: assignment of macros to libraries doesn't work
Product: App Dev
Version: OOo 3.3 or older
Hardware: All
OS: All
Status: CONFIRMED
Severity: major
Priority: P3
Component: scripting
Assignee: [email protected]
Reporter: [email protected]
Created attachment 83427
--> https://issues.apache.org/ooo/attachment.cgi?id=83427&action=edit
testdocument for replicating problems with basic libraries
There is a big trouble in organizing macros in libraries.
Assumption: The help says
> You can also use the fully qualified name to call a procedure or function:
> Library.Module.Macro()
> For example, to call the Autotext macro from the Gimmicks library, use the
> following command:
> Gimmicks.AutoText.Main()
In the attached document there is only a small macro:
------------
Sub Main
GlobalScope.DialogLibraries.loadLibrary( "Gimmicks" )
Gimmicks.AutoText.Main()
End Sub
------------
PROBLEM 1
=========
Please do following:
1. Close AOO completely and restart it.
2. Open the attached document and run the macro.
Result: You will get an error message:
> Property or method not found: AutoText.
You can look into the library list to see that "Gimmicks" is loaded. If you
open this library (click onto [+]) and you rerun the macro, now it will work.
Same for
------------
Sub Main
GlobalScope.Gimmicks.AutoText.Main()
End Sub
------------
PROBLEM 2
=========
Condition: "Gimmicks" is loaded and the above macro runs.
If you change the library to
MyBigLib.AutoText.Main()
you will get an error because there is no library "MyBigLib".
BUT change it e. g. to
Euro.AutoText.Main()
the macro runs without any error although "Euro" isn't loaded and is has no
macro "AutoText".
HINT: This problems not only belongs macros in documents.
Maybe the described problems correspondents with issue 87928.
--
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.