stummjr / impress-code-highlighter

A simple tool to highlight source code blocks in LibreOffice Impress.
9 stars 2 forks source link

Allow arguments to be passed to exported function #4

Closed milliams closed 9 years ago

milliams commented 9 years ago

Running this script on LibreOffice 4.3.7.2, I set the macro to be triggered on a Save Document action.

Macros triggered as events will pass com.sun.star.document.DocumentEvent objects to the script which will currently fail since highlight_source_code takes no arguments. This will just ignore all arguments passed in but at least it runs.

stummjr commented 9 years ago

Thanks, @milliams