עזרה עבור LibreOffice 7.4
You can assign custom scripts (macros) to menu items, icons, dialog controls, and events in LibreOffice.
LibreOffice internally supports the following scripting languages:
LibreOffice Basic
JavaScript
BeanShell
Python
In addition, developers can use high-level languages, for example Java programming language, to control LibreOffice externally. The API reference is online at api.libreoffice.org.
Choose \
Click \
In the Category list box, scroll down and open the "Application Macros" entry.
You see entries for "Application Macros" (scripts in the share directory of your LibreOffice installation), "My Macros" (scripts in the user directory), and the current document. Open any one of them to see the supported scripting languages.
Open any scripting language entry to see the available scripts. Select a script.
A list of the script functions appears in the \
Click \
Choose \
In the Category list box, scroll down and open the "Application Macros" entry.
You see entries for "Application Macros" (scripts in the share directory of your LibreOffice installation), "My Macros" (scripts in the user directory), and the current document. Open any one of them to see the supported scripting languages.
Open any scripting language entry to see the available scripts. Select any script.
A list of the script functions will appear in the \
Click the option button for LibreOffice or Writer (or whichever application is currently open).
Selecting the option button sets the scope of the new key combination to be applicable in all of LibreOffice or only in documents of the current module.
Select a key combination from the \
Choose \
Click \
In the Library list box, scroll down and open the "Application Macros" entry.
You see entries for "Application Macros" (scripts in the share directory of your LibreOffice installation), "My Macros" (scripts in the user directory), and the current document. Open any one of them to see the supported scripting languages.
Open any scripting language entry to see the available scripts. Select any script.
A list of the script functions will appear in the \
Select to save in LibreOffice or current document.
This sets the scope of the new event assignment to be applicable in all of LibreOffice or only in documents of the current module.
Select an event from the list and click \
Select the embedded object, for example a chart, in your document.
Choose Format - Frame and Object - Properties - Macro.
In the \
You see entries for share (scripts in the share directory of your LibreOffice installation), user (scripts in the user directory), and the current document. Open any one of them to see the supported scripting languages.
Open any scripting language entry to see the available scripts. Select any script.
A list of the script functions will appear in the \
Select an event from the list and click \
Position the cursor inside the hyperlink.
Choose \
Click the \
Select and assign as stated above.
Select the graphic in your document.
Choose Format - Image - Properties - Macro.
Select and assign as stated above.
Insert a form control, for example a button: Open the Form Controls toolbar, click the \
With the form control selected, click \
Click the \
Click one of the \
Open the LibreOffice Basic dialog editor, then create a dialog with a control on it.
Right-click the control, then choose \
Click the \
Click one of the \