Kaydet (Commit) 4215bca9 authored tarafından Andras Timar's avatar Andras Timar

export 'Chapter' field type as 'StyleRef' into .doc

Change-Id: I7e635c76b08636a9915cee30aaebb08fc854633d
Reviewed-on: https://gerrit.libreoffice.org/17888Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarAndras Timar <andras.timar@collabora.com>
üst ade2c591
...@@ -2879,7 +2879,11 @@ void AttributeOutputBase::TextField( const SwFormatField& rField ) ...@@ -2879,7 +2879,11 @@ void AttributeOutputBase::TextField( const SwFormatField& rField )
{ {
SwChapterField aCopy(*static_cast<const SwChapterField*>(pField)); SwChapterField aCopy(*static_cast<const SwChapterField*>(pField));
aCopy.ChangeExpansion(*pTextNd, false); 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; bWriteExpand = false;
} }
} }
......
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