sw/source/filter/ww8/ww8atr.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit 4215bca95511af8e4ee96e3c8f521b35f638aef3 Author: Andras Timar <[email protected]> Date: Fri Aug 21 10:42:06 2015 +0200 export 'Chapter' field type as 'StyleRef' into .doc Change-Id: I7e635c76b08636a9915cee30aaebb08fc854633d Reviewed-on: https://gerrit.libreoffice.org/17888 Tested-by: Jenkins <[email protected]> Reviewed-by: Andras Timar <[email protected]> diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx index d2472d2..3da8f9e 100644 --- a/sw/source/filter/ww8/ww8atr.cxx +++ b/sw/source/filter/ww8/ww8atr.cxx @@ -2879,7 +2879,11 @@ void AttributeOutputBase::TextField( const SwFormatField& rField ) { SwChapterField aCopy(*static_cast<const SwChapterField*>(pField)); aCopy.ChangeExpansion(*pTextNd, false); - WriteExpand( &aCopy ); + const OUString sStr = FieldString(ww::eSTYLEREF) + + " \"Heading " + + OUString::number(aCopy.GetLevel() + 1) + + "\" \\* MERGEFORMAT "; + GetExport().OutputField(pField, ww::eSTYLEREF, sStr); bWriteExpand = false; } } _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
