diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-31 13:49:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-03 06:24:33 +0000 |
commit | 4809096a1f60d9ef57a494ba6ae8fb8541361572 (patch) | |
tree | 6d83f7a2c806eeb28c72ba0f83cbb5ae8db275d0 /sw/source/filter/ww8/ww8par5.cxx | |
parent | fcad02149f3a9964f36522d97faaf303fc321788 (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/ww8par5.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8par5.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx index 68328025ab1f..9e486a57f4bc 100644 --- a/sw/source/filter/ww8/ww8par5.cxx +++ b/sw/source/filter/ww8/ww8par5.cxx @@ -2680,23 +2680,24 @@ void SwWW8ImplReader::Read_SubF_Ruby( WW8ReadFieldParams& rReadParam) //Translate and apply if (!sRuby.isEmpty() && !sText.isEmpty() && !sFontName.isEmpty() && nFontSize) { + css::text::RubyAdjust eRubyAdjust; switch (nJustificationCode) { case 0: - nJustificationCode=1; + eRubyAdjust = css::text::RubyAdjust_CENTER; break; case 1: - nJustificationCode=3; + eRubyAdjust = css::text::RubyAdjust_BLOCK; break; case 2: - nJustificationCode=4; + eRubyAdjust = css::text::RubyAdjust_INDENT_BLOCK; break; default: case 3: - nJustificationCode=0; + eRubyAdjust = css::text::RubyAdjust_LEFT; break; case 4: - nJustificationCode=2; + eRubyAdjust = css::text::RubyAdjust_RIGHT; break; } @@ -2753,7 +2754,7 @@ void SwWW8ImplReader::Read_SubF_Ruby( WW8ReadFieldParams& rReadParam) //Set the charstyle and justification aRuby.SetCharFormatName(pCharFormat->GetName()); aRuby.SetCharFormatId(pCharFormat->GetPoolFormatId()); - aRuby.SetAdjustment(nJustificationCode); + aRuby.SetAdjustment(eRubyAdjust); NewAttr(aRuby); m_rDoc.getIDocumentContentOperations().InsertString( *m_pPaM, sText ); |