Skip to content

How does the LibreOffice Extension work

Dimitris Katsiros edited this page Aug 24, 2019 · 2 revisions

This extension aims to integrate the anonymizer service into LibreOffice.

All functions created for the anonymizer run as macros into libreoffice.

The extension contains the following macros:

init

This macro should always be runned first, in order to set up all important files for the service.

anonymize_document

This macro should always be runned after init. It anonymizes the whole document and opens a new file for further anonymization. This function uses the basic patterns of anonymizer.

anonymize_selected_text

This macro anonymizes the selected

Caution : This macro should NEVER be runned before init or anonymize_document.Otherwise it will replace the original document saving the new one over the original.

list_of_added_words

This macro previews all the words that user has selected for anonymization. User can always delete any word that he had previously selected.

If user wants to delete a word, for example the word Δικαστής he has to delete the whole line: <selected_word>Δικαστής<end_of_selected_word>,.

If user changes and saves the file, in order to see the changes, user has to run the following script (reload_changes).

reload_changes

This macro reloads the document after user removes any word.