diff options
author | Andras Timar <andras.timar@collabora.com> | 2015-08-21 10:42:06 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-08-21 20:13:42 +0000 |
commit | 4215bca95511af8e4ee96e3c8f521b35f638aef3 (patch) | |
tree | d3c7ba7dcd6b5f80978233616bc3bf1ff0956842 /sw | |
parent | ade2c591ec0877af2a1e274f26da4b93e13e3a88 (diff) |
export 'Chapter' field type as 'StyleRef' into .doc
Change-Id: I7e635c76b08636a9915cee30aaebb08fc854633d
Reviewed-on: https://gerrit.libreoffice.org/17888
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8atr.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx index d2472d2334f4..3da8f9e387e0 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; } } |