https://bugs.freedesktop.org/show_bug.cgi?id=53976

--- Comment #7 from Noel Power <[email protected]> 2012-09-17 11:30:55 UTC ---
no this is not a bug, nor imho regression ( although it does look like one )
Let me try to explain, there are 2 types of controls used in excel documents,
There are form controls and activex controls, form controls can have a single
macro associated with them ( and there is actually a hard binding in the file
format to specify that ) ActiveX controls on the other hand don't have a single
macro associated with them they instead allow macro handlers to be defined in
the code, e.g. a macro to handle a click or a mouse over etc. The application
looks for the handler when the associated event happens and then fires it. Now
the ( Test.xls ) document in question contains a single button and it is an
activex button contro, when we save the document ( as xls ) we cannot save
activex control, instead we have to convert the button to a form control, there
is no associated macro in this case ( remember the control we are exporting is
an activex control that doesn't have macro bindings ). 
I don't recall that activex control import ever tried to fake the event
handling by trying to create a macro bindings based on the presence of event
handlers in the source code, it's possible that openoffice code did this for a
while, but.. they in the end decided to take our code that allows the imported
control to dynamically run the event handler macros ( if they are present ) for
the appropriate events ( like a button click ). Note: if you used form control
buttons ( with the appropriate macro binding ) in the source xls document those
macro bindings would be exported correctly.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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

Reply via email to