https://bugs.freedesktop.org/show_bug.cgi?id=67637
Priority: medium
Bug ID: 67637
Assignee: [email protected]
Summary: CONFIGURATION: Hidden event listener
Severity: normal
Classification: Unclassified
OS: Mac OS X (All)
Reporter: [email protected]
Hardware: Other
Whiteboard: BSA
Status: UNCONFIRMED
Version: 3.6.1.2 release
Component: Spreadsheet
Product: LibreOffice
Problem description:
The spreadsheet contains a hidden event listener.
It cannot be seen in Tools->Customize... in the Event tab
but it triggers the macro if the appropriate event happens.
Steps to reproduce:
I could not recreate this behaviour but I will describe what happened.
I worked on a spreadsheet where I assigned a macro to the event
'Modified' status was changed
The macro sits in My Macros.Standard.Module1
That worked fine.
I continued to work on the macro in the macro editor when LibreOffice crashed.
I started LibreOffice again and the file recovered well.
Current behavior:
After recovering the file I went to Tools->Customize... again and the
assignment had disappeared.
There is nothing shown in the 'Modified' status was changed line.
But when I change something in the spreadsheet the macro runs as before.
Assigning something new to 'Modified' status was changed has no effect.
Expected behavior:
The macro should not run as there is no visible assignment to 'Modified'
status was changed .
I checked the following:
I added a macro assignement to the Save Document event and then I
investigated content.xml
I found these lines (linebreaks by me)
<office:event-listeners>
<script:event-listener script:language="ooo:script"
script:event-name="office:save"
xlink:href="vnd.sun.star.script:Standard.Module1.Main?language=Basic&location=application"
xlink:type="simple"/>
</office:event-listeners>
<officeooo:event-listeners>
<script:event-listener script:language="ooo:script"
script:event-name="office:content-changed"
xlink:href="vnd.sun.star.script:Standard.Module1.SortRange?language=Basic&location=application"
xlink:type="simple"/>
</officeooo:event-listeners>
This means: my hidden event trigger (executing the SortRange macro) is wrapped
in officeooo:event-listeners tags whereas the normal events are wrapped in
office:event-listeners tags.
I have no idea where these tags come from and why its contents are executed.
Operating System: Mac OS X
Version: 3.6.1.2 release
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs