Quantcast
Channel: Apache OpenOffice Community Forum
Viewing all articles
Browse latest Browse all 1281

Macros and UNO API • Re: Loading a Library

$
0
0
According to the documentation

https://www.openoffice.org/api/docs/com ... oveLibrary
loadLibrary
Causes the accessed library to be loaded from its storage if it hasn't already been loaded.
So presumably you're calling a function which itself runs isLibraryLoaded, or similar code, as its first step, and then exits if loaded, meaning little cost of omitting it if loaded (edit: and using LoadLibrary). You'd have to check the source code though.

The most efficient way might be a global variable which is set by a sub which loads all the libraries you need. Then you just need to test that variable instead of calling isLibraryLoaded and run the sub if not.

Statistics: Posted by JeJe — Sun Aug 04, 2024 12:43 pm



Viewing all articles
Browse latest Browse all 1281

Trending Articles