diff options
author | Lei De Bin <leidb@apache.org> | 2012-07-04 05:35:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-04-12 14:46:14 +0100 |
commit | 1799937b9ec2584c6e6c783ede5f22d72a1f44f9 (patch) | |
tree | a8508a3ae8986277d8fe06d89eb3c6c279842078 /sw/source/filter/ww8 | |
parent | f1bdd56b4f983282619a4c1fdc4222f25215ca46 (diff) |
Resolves: #i119632# 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(cherry picked from commit b51d354f043d19c1a8f22e1cfff6d0b43eb62b5e)
Conflicts:
sw/source/filter/ww8/ww8atr.cxx
Change-Id: I419ce091bb676aecfe8b53660549da40eec6057f
Diffstat (limited to 'sw/source/filter/ww8')
-rw-r--r-- | sw/source/filter/ww8/ww8atr.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx index b2123376aa1d..2f93fafafa57 100644 --- a/sw/source/filter/ww8/ww8atr.cxx +++ b/sw/source/filter/ww8/ww8atr.cxx @@ -2948,6 +2948,14 @@ void AttributeOutputBase::TextField( const SwFmtFld& rField ) case RES_JUMPEDITFLD: bWriteExpand = PlaceholderField( pFld ); break; + case RES_MACROFLD: + sStr.AssignAscii(" 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; |