Organizar bibliotecas e módulos

Basic Libraries Containers

LibreOffice Basic libraries can be stored in 3 different containers:

To access macros stored in libraries of LibreOffice Macros or My Macros from another container, including the document container, use the GlobalScope specifier.

Organizar bibliotecas

Crear unha nova biblioteca

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  2. Prema a lapela Bibliotecas.

  3. Select to where you want to attach the library in the Location list. If you select LibreOffice Macros & Dialogs, the library will belong to the LibreOffice application and will be available for all documents. If you select a document the library will be attached to this document and only available from there.

  4. Prema Novo e introduza un nome para crear unha biblioteca nova.

Importar unha biblioteca

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  2. Prema a lapela Bibliotecas.

  3. Select to where you want to import the library in the Location list. If you select LibreOffice Macros & Dialogs, the library will belong to the LibreOffice application and will be available for all documents. If you select a document the library will be imported to this document and only available from there.

  4. Prema en Importar... e seleccione a biblioteca externa que desexe importar.

  5. Escolla todas as bibliotecas que queira importar no diálogo Importar bibliotecas. O diálogo mostra todas as bibliotecas contidas no ficheiro escollido.

  6. Se desexa inserir a biblioteca só como referencia, marque a opción Inserir como referencia (só para ler). As bibliotecas só de lectura son completamente funcionais, mais non poden ser modificadas no IDE do Basic.

  7. Check the Replace existing libraries box if you want existing libraries of the same name to be overwritten.

  8. Prema en Pechar para pechar a caixa de diálogo.

Exportar unha biblioteca

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  2. Prema na lapela Bibliotecas.

  3. In the Location list you specify where your library is stored. Select the library that you want to export. Note that you cannot export the Standard library.

  4. Prema en Exportar...

  5. Escolla se desexa exportar a biblioteca como extensión ou como biblioteca básica.

  6. Prema en Aceptar.

  7. Seleccione onde desexa exportar a biblioteca.

  8. Prema en Pechar para pechar a caixa de diálogo.

Eliminar unha biblioteca

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  2. Prema a lapela Bibliotecas.

  3. Seleccione na lista a biblioteca que desexa eliminar.

  4. Prema Eliminar.

Organización de módulos e caixas de diálogo

Creación dun módulo ou caixa de diálogo

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  2. Prema na lapela Módulos ou na lapela Diálogos.

  3. Select the library where the module will be inserted and click New.

  4. Introduza un nome para o módulo ou diálogo e prema en Aceptar.

Renomear un módulo ou caixa de diálogo

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  2. Prema dúas veces no módulo que desexa renomear, facendo unha pausa entre cada prema. Introduza o novo nome.

    In the Basic IDE, right-click the name of the module or dialog in the tabs at the bottom of the screen, choose Rename and type in the new name.

  3. Prema en Intro para confirmar os cambios.

Eliminar un módulo ou caixa de diálogo

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  2. Prema na lapela Módulos ou na lapela Diálogos.

  3. Seleccione o módulo ou caixa de diálogo que desexa eliminar da lista. Prema dúas veces nunha entrada para mostrar as subentradas, se é necesario.

  4. Prema Eliminar.

warning

Se elimina un módulo permanentemente, elimina tamén os procedementos e funcións que conteña.


Organización de proxectos en documentos ou modelos

Mover ou copiar módulos entre documentos, modelos e o aplicativo.

  1. Abra os documentos ou modelos entre os que desexa mover ou copiar os módulos ou caixas de diálogo.

  2. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  3. To move a module or dialog to another document, click the corresponding object in the list and drag it to the desired position. A horizontal line indicates the target position of the current object while dragging. Hold the key while dragging to copy the object instead of moving it.

Precisamos da súa axuda!