summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8atr.cxx
diff options
context:
space:
mode:
authorTroy Rollo <libreoffice@troy.rollo.name>2011-07-18 00:54:26 +1000
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-08-10 10:18:04 +0200
commit234642040086ee91bdb026e10a7c92ec71ac24d3 (patch)
tree09bf3c841966b1d5caa7f8a27e76e0ece82f05f6 /sw/source/filter/ww8/ww8atr.cxx
parent7e631b61607ddd821d9b3a688ff769bde45a4b2c (diff)
fdo#33960 - import/export xrefs to numbered paras
Diffstat (limited to 'sw/source/filter/ww8/ww8atr.cxx')
-rw-r--r--sw/source/filter/ww8/ww8atr.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx
index 08241b24dcdd..8841a079349f 100644
--- a/sw/source/filter/ww8/ww8atr.cxx
+++ b/sw/source/filter/ww8/ww8atr.cxx
@@ -2830,6 +2830,18 @@ void AttributeOutputBase::TextField( const SwFmtFld& rField )
sStr = FieldString(eFld);
sStr += GetExport().GetBookmarkName(nSubType,
&rRFld.GetSetRefName(), 0);
+ switch (pFld->GetFormat())
+ {
+ case REF_NUMBER:
+ sStr.APPEND_CONST_ASC(" \\r");
+ break;
+ case REF_NUMBER_NO_CONTEXT:
+ sStr.APPEND_CONST_ASC(" \\n");
+ break;
+ case REF_NUMBER_FULL_CONTEXT:
+ sStr.APPEND_CONST_ASC(" \\w");
+ break;
+ }
break;
case REF_FOOTNOTE:
case REF_ENDNOTE: