LibreOfficeDev 24.2 Help
Bp3q2‖To manage personal or shared library containers (Application Macros or My Macros) from within a document, use the GlobalScope specifier.
Jz8ET‖Basic source code and dialogs are organized in library containers. Libraries can contain modules and dialogs.
WJ2Ei‖Basic libraries and modules can be managed with the BasicLibraries object. Libraries can be searched, explored and loaded on request. Monitoring Documents Events illustrates LibreOfficeDev library loading.
3r2Rm‖Dialog libraries and dialogs can be managed with the DialogLibraries object. Opening a Dialog With Basic illustrates how to display LibreOfficeDev shared dialogs.
XUR24‖BasicLibraries and DialogLibraries containers exist at application level and within every document. Document's library containers do not need the GlobalScope specifier to be managed. If you want to call a global library container (located in Application Macros or My Macros) from within a document, you must use the GlobalScope specifier.
GlobalScope specifier
BDRji‖Example in the document Basic
4wLHg‖' calling Dialog1 in the document library Standard
oDlgDesc = DialogLibraries.Standard.Dialog1
BcE6x‖' calling Dialog2 in the application library Library1
oDlgDesc = GlobalScope.DialogLibraries.Library1.Dialog2