<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Libreoffice Impress doesn't save macros or documents for interaction"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=124688">124688</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Libreoffice Impress doesn't save macros or documents for interaction
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.1.5.1 rc
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Impress
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rknop@pobox.com
</td>
</tr></table>
<p>
<div>
<pre>Description:
When you add an interaction to an object, the macro (in the case of "Run
Macro") or the location of the document (in the case of "Go To Document") does
not survive save and reload.
For example, in the case of "Run Macro", if I add a macro to an object, it runs
just fine thereafter clicking on the object. The identity of the macro shows
up in the "Macro" widget on the dialog that opens when you right-click on the
object and select "Interaction....".
If I save the document, exit LibreOffice, and reopen the document, the macro is
lost. The "Macro" widget on the interaction dialog is now empty.
Steps to Reproduce:
1. Create an object in Impress (e.g. a rectangle).
2. Create a simple standard macro. (I have one that uses "Shell" to run an
external program that plays a video.)
3. Right click on the object and select "Interaction..."
4. For "Action at mouse click:", select "Run macro"
5. Click "Browse" at the bottom right, to the right of the Macro text widget.
6. Find and select the macro, and click "OK". Now you see in the Interaction
dialog the specificaion of the macro in the "Macro" text widget.
7. Click "OK" in the interaction dialog.
8. Click on the object; the macro runs.
9. Save the document.
10. Exit LibreOffice
11. Restart LibreOffice, reload the document. (Make sure to enable macros when
prompted.)
12. Right-click on the object and select "Interaction..."
13. Now, the "Macro" text widget in the Interaction dialog is empty.
NOTE: the same exact thing happens if instead of running a macro, I select "Go
to document" for action at mouse click. Everything runs fine until I exit and
reload LibreOffice. So, it's not a Macro problem per se, but a problem with
saving the information about the interaction.
I had the same problem with LibreOffice 5.
Actual Results:
See Step 13 in reproduction: the macro to run is lost, even though the object
interaction still thinks it should be running a macro.
NOTE: the same exact thing happens if instead of running a macro, I select "Go
to document" for action at mouse click. Everything runs fine until I exit and
reload LibreOffice. So, it's not a Macro problem per se, but a problem with
saving the information about the interaction.
I had the same problem with LibreOffice 5.
Expected Results:
The macro to run, or the document to open, should be saved with the Impress
file, so that when I load it back into Impress the information is still there.
Reproducible: Always
User Profile Reset: Yes
Additional Info:
Version: 6.1.5.1
Build ID: 1:6.1.5~rc1-2~bpo9+1
CPU threads: 4; OS: Linux 4.9; UI render: default; VCL: gtk2;
Locale: en-US (en_US.UTF-8); Calc: group threaded</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>