summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8
diff options
context:
space:
mode:
authorLei De Bin <leidb@apache.org>2012-07-04 05:35:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-04-12 14:46:14 +0100
commit1799937b9ec2584c6e6c783ede5f22d72a1f44f9 (patch)
treea8508a3ae8986277d8fe06d89eb3c6c279842078 /sw/source/filter/ww8
parentf1bdd56b4f983282619a4c1fdc4222f25215ca46 (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.cxx8
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;