"My Macros" is the place where global libraries are stored for the current user. It always has one "Standard" library and you can edit these libraries freely.
"OpenOffice Macros" is the place where global libraries are stored for all users of this installation. It comes with some example libraries such as the "Tools" library. You can not edit these libraries easily.
Both places combined are the "GlobalScope" of all libraries that are not embedded in documents. You can not add a "Standard" library to "OpenOffice Macros" because "Standard" exists in "My Macros" already. You can not add a "Tools" library to "My Macros" because "Tools" exists in "OpenOffice Macros" already.
Code: Select all
BasicLibraries.LoadLibrary("Tools")
refers to a "Tools" library in the same document as the calling macro.
If you want to load a GlobalScope library from either "My Macros" or "OpenOffice Macros":
Code: Select all
GlobalScope.BasicLibraries.LoadLibrary("Tools")