summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/rtfattributeoutput.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-31 13:49:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-03 06:24:33 +0000
commit4809096a1f60d9ef57a494ba6ae8fb8541361572 (patch)
tree6d83f7a2c806eeb28c72ba0f83cbb5ae8db275d0 /sw/source/filter/ww8/rtfattributeoutput.cxx
parentfcad02149f3a9964f36522d97faaf303fc321788 (diff)
use actual UNO enums in sw
Change-Id: If0f4a6532cc255f632d88d97e6b1a9e57462f5fc Reviewed-on: https://gerrit.libreoffice.org/35969 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/rtfattributeoutput.cxx')
-rw-r--r--sw/source/filter/ww8/rtfattributeoutput.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx
index 8ee1a2fd38d3..5defc6eccb62 100644
--- a/sw/source/filter/ww8/rtfattributeoutput.cxx
+++ b/sw/source/filter/ww8/rtfattributeoutput.cxx
@@ -440,22 +440,22 @@ void RtfAttributeOutput::StartRuby(const SwTextNode& rNode, sal_Int32 /*nPos*/,
sal_Char cDirective = 0;
switch (rRuby.GetAdjustment())
{
- case 0:
+ case css::text::RubyAdjust_LEFT:
nJC = 3;
cDirective = 'l';
break;
- case 1:
+ case css::text::RubyAdjust_CENTER:
//defaults to 0
break;
- case 2:
+ case css::text::RubyAdjust_RIGHT:
nJC = 4;
cDirective = 'r';
break;
- case 3:
+ case css::text::RubyAdjust_BLOCK:
nJC = 1;
cDirective = 'd';
break;
- case 4:
+ case css::text::RubyAdjust_INDENT_BLOCK:
nJC = 2;
cDirective = 'd';
break;