GlobalScope specifier

To manage personal or shared library containers (Application Macros or My Macros) from within a document, use the GlobalScope specifier.

El codi font i els diàlegs escrits en Basic s'organitzen en contenidors de biblioteca. Les biblioteques poden contindre mòduls i diàlegs.

Al Basic:

Basic libraries and modules can be managed with the BasicLibraries object. Libraries can be searched, explored and loaded on request. Monitoring Documents Events illustrates LibreOffice library loading.

Als diàlegs:

Dialog libraries and dialogs can be managed with the DialogLibraries object. Opening a Dialog With Basic illustrates how to display LibreOffice shared dialogs.

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

Exemple :

Exemple al Basic del document

    ' cridant Dialog1 a la biblioteca del document Standard
    oDlgDesc = DialogLibraries.Standard.Dialog1
    ' cridant Dialog2 a la biblioteca de l'aplicació Library1
    oDlgDesc = GlobalScope.DialogLibraries.Library1.Dialog2

Ens cal la vostra ajuda!