Macro script to rename file on libre office. You should put this file on "C:\Program Files (x86)\LibreOffice 5\share\Scripts\python" and insert it as macro on toolbar.
✓ Published0🌍 Public
Aalbcunha
Last edited Feb 7, 2017
Created on Feb 7, 2017
This macro script for LibreOffice renames the current document through a custom dialog, saving it under a new name and deleting the original file. It demonstrates the use of the Uno API to access the desktop, current document, and dialog controls, along with utility functions like `fileUrlToSystemPath`, `storeToURL`, and `loadComponentFromURL`. The script also employs `zipfile` and `os` for file operations, though their roles are not explicitly shown in the visible logic. It relies on Python’s `uno` module and the `com.sun.star.awt` interfaces for dialog creation and event handling.
AI-generated description