Author: leidb Date: Wed Jul 4 06:35:24 2012 New Revision: 1357104 URL: http://svn.apache.org/viewvc?rev=1357104&view=rev Log: #119632# - Macro button lost if save template to .doc file Add export MACROBUTTON field codes in AttributeOutputBase::TextField
Found by: yan ji Patch by: Lei De Bin Review by: Chen Zuo Jun Modified: incubator/ooo/trunk/main/sw/source/filter/ww8/ww8atr.cxx Modified: incubator/ooo/trunk/main/sw/source/filter/ww8/ww8atr.cxx URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sw/source/filter/ww8/ww8atr.cxx?rev=1357104&r1=1357103&r2=1357104&view=diff ============================================================================== --- incubator/ooo/trunk/main/sw/source/filter/ww8/ww8atr.cxx (original) +++ incubator/ooo/trunk/main/sw/source/filter/ww8/ww8atr.cxx Wed Jul 4 06:35:24 2012 @@ -3036,6 +3036,14 @@ void AttributeOutputBase::TextField( con } } break; + case RES_MACROFLD: + sStr.ASSIGN_CONST_ASC(" MACROBUTTON"); + sStr += pFld->GetPar1(); + sStr.SearchAndReplaceAscii("StarOffice.Standard.Modul1.", String(' ')); + sStr += String(' '); + sStr += lcl_GetExpandedField(*pFld); + GetExport().OutputField( pFld, ww::eMACROBUTTON, sStr ); + break; default: bWriteExpand = true; break;