Kaydet (Commit) b51d354f authored tarafından Lei De Bin's avatar Lei De Bin

#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
üst a2b47841
...@@ -3036,6 +3036,14 @@ void AttributeOutputBase::TextField( const SwFmtFld& rField ) ...@@ -3036,6 +3036,14 @@ void AttributeOutputBase::TextField( const SwFmtFld& rField )
} }
} }
break; 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: default:
bWriteExpand = true; bWriteExpand = true;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment