Issue 119632

Summary: [From Symphony]Macro button lost if save template to .doc file
Product: Writer Reporter: Yan Ji <yanji.yj>
Component: save-exportAssignee: AOO issues mailing list <issues>
Status: CLOSED FIXED QA Contact:
Severity: Normal    
Priority: P3 CC: bjdujing, debin.lei, liushenf, zjchencdl
Version: 3.4.0   
Target Milestone: 4.0.0   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
sample
none
patch for the issue debin.lei: review? (zjchencdl)

Description Yan Ji 2012-05-31 08:26: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
Comment 1 Lei Debin 2012-06-14 02:38:58 UTC
I am working on it
Comment 2 Lei Debin 2012-06-14 05:51:46 UTC
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.
Comment 3 Lei Debin 2012-06-14 05:54:39 UTC
Created attachment 78316 [details]
patch for the issue

Add export MACROBUTTON field codes in 
void AttributeOutputBase::TextField( const SwFmtFld& rField )
Comment 4 zjchen 2012-07-04 06:07:33 UTC
This patch is ok to me. Looking forward to see your solution update in AOO repository.
Comment 5 Lei Debin 2012-07-04 06:36:34 UTC
Zuo Jun, thanks for your review.
Now, the code check into the trunk at revision: 1357104
Comment 6 Lei Debin 2012-07-04 06:38:03 UTC
fixed , pls help to verify it, thx.
Comment 7 Du Jing 2012-08-21 05:17:20 UTC
when reopen the saved doc document,the macro button is not same with in orininal document
Comment 8 Du Jing 2012-08-28 03:09:00 UTC
verified on the build 1377620