Apache OpenOffice (AOO) Bugzilla – Issue 119632
[From Symphony]Macro button lost if save template to .doc file
Last modified: 2012-12-26 08:34:33 UTC
Created attachment 77856 [details] sample Build: AOO 3.4 Steps: 1. Open attached template file 2. Save it as .doc file 3. Reopen it. Defect: The macro button lost
I am working on it
The root cause for the issue is the MACROBUTTON field is not exported at all. There is a function named as void AttributeOutputBase::TextField( const SwFmtFld& rField ) for export field, located in main\sw\source\filter\ww8\ww8atr.cxx Need add some codes here to output the MACROBUTTON field.
Created attachment 78316 [details] patch for the issue Add export MACROBUTTON field codes in void AttributeOutputBase::TextField( const SwFmtFld& rField )
This patch is ok to me. Looking forward to see your solution update in AOO repository.
Zuo Jun, thanks for your review. Now, the code check into the trunk at revision: 1357104
fixed , pls help to verify it, thx.
when reopen the saved doc document,the macro button is not same with in orininal document
verified on the build 1377620