diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx
index ea439c339a92..a6f76e7a8626 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -3341,16 +3341,16 @@ sal_Unicode DomainMapper::getFillCharFromValue(const sal_Int32 nIntValue)
{
switch (nIntValue)
{
- case 1: // dot
+ case NS_ooxml::LN_Value_ST_TabTlc_dot:
return sal_Unicode(0x002e);
- case 2: // hyphen
+ case NS_ooxml::LN_Value_ST_TabTlc_hyphen:
return sal_Unicode(0x002d);
- case 3: // underscore
- case 4: // heavy FIXME ???
+ case NS_ooxml::LN_Value_ST_TabTlc_underscore:
+ case NS_ooxml::LN_Value_ST_TabTlc_heavy: // FIXME ???
return sal_Unicode(0x005f);
case NS_ooxml::LN_Value_ST_TabTlc_middleDot: // middleDot
return sal_Unicode(0x00b7);
- case 0: // none
+ case NS_ooxml::LN_Value_ST_TabTlc_none:
default:
return sal_Unicode(0x0020); // blank space
}
diff --git a/writerfilter/source/ooxml/model.xml b/writerfilter/source/ooxml/model.xml
index febe5b165285..aaddd5e5e4a7 100644
--- a/writerfilter/source/ooxml/model.xml
+++ b/writerfilter/source/ooxml/model.xml
@@ -17078,11 +17078,11 @@
num
- none
- dot
- hyphen
- underscore
- heavy
+ none
+ dot
+ hyphen
+ underscore
+ heavy
middleDot
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 9a3e1afb0b77..4ba46b3baf88 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -2538,22 +2538,22 @@ int RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword)
switch (nKeyword)
{
case RTF_TLDOT:
- nParam = 1;
+ nParam = NS_ooxml::LN_Value_ST_TabTlc_dot;
break;
case RTF_TLMDOT:
nParam = NS_ooxml::LN_Value_ST_TabTlc_middleDot;
break;
case RTF_TLHYPH:
- nParam = 2;
+ nParam = NS_ooxml::LN_Value_ST_TabTlc_hyphen;
break;
case RTF_TLUL:
- nParam = 3;
+ nParam = NS_ooxml::LN_Value_ST_TabTlc_underscore;
break;
case RTF_TLTH:
- nParam = 2;
+ nParam = NS_ooxml::LN_Value_ST_TabTlc_hyphen;
break; // thick line is not supported by dmapper, this is just a hack
case RTF_TLEQ:
- nParam = 0;
+ nParam = NS_ooxml::LN_Value_ST_TabTlc_none;
break; // equal sign isn't, either
default:
break;