summaryrefslogtreecommitdiff
path: root/cppcanvas/source/mtfrenderer
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2018-10-20 08:49:57 +0800
committerMark Hung <marklh9@gmail.com>2018-10-22 17:09:55 +0200
commitd2aee5ab5a89efc8e5e42eb124afb80be637f379 (patch)
tree333f0b8e60ae131c63c5ac8367d8adf265cbfee9 /cppcanvas/source/mtfrenderer
parentc13f0a62fb701e7c69907fbe3398027c9323b284 (diff)
tdf#70851 render wave underlines in slideshow.
Change-Id: I31b2717e60b5eae6c992e27700e589938764957c Reviewed-on: https://gerrit.libreoffice.org/62035 Tested-by: Jenkins Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'cppcanvas/source/mtfrenderer')
-rw-r--r--cppcanvas/source/mtfrenderer/mtftools.cxx19
1 files changed, 13 insertions, 6 deletions
diff --git a/cppcanvas/source/mtfrenderer/mtftools.cxx b/cppcanvas/source/mtfrenderer/mtftools.cxx
index 1e1221897598..75c7d6069146 100644
--- a/cppcanvas/source/mtfrenderer/mtftools.cxx
+++ b/cppcanvas/source/mtfrenderer/mtftools.cxx
@@ -473,10 +473,21 @@ namespace cppcanvas
case LINESTYLE_DONTKNOW:
break;
- case LINESTYLE_SMALLWAVE: // TODO(F3): NYI
+ case LINESTYLE_DOUBLEWAVE:
+ // FALLTHROUGH intended
+ case LINESTYLE_SMALLWAVE:
// FALLTHROUGH intended
- case LINESTYLE_WAVE: // TODO(F3): NYI
+ case LINESTYLE_BOLDWAVE:
// FALLTHROUGH intended
+ case LINESTYLE_WAVE:
+ appendWaveline(
+ aTextLinesPolyPoly,
+ rStartPos,
+ rTextLineInfo.mnUnderlineOffset,
+ rLineWidth,
+ rTextLineInfo.mnLineHeight,
+ rTextLineInfo.mnUnderlineStyle);
+ break;
case LINESTYLE_SINGLE:
appendRect(
aTextLinesPolyPoly,
@@ -497,8 +508,6 @@ namespace cppcanvas
// FALLTHROUGH intended
case LINESTYLE_BOLDDASHDOTDOT:// TODO(F3): NYI
// FALLTHROUGH intended
- case LINESTYLE_BOLDWAVE: // TODO(F3): NYI
- // FALLTHROUGH intended
case LINESTYLE_BOLD:
appendRect(
aTextLinesPolyPoly,
@@ -509,8 +518,6 @@ namespace cppcanvas
rTextLineInfo.mnUnderlineOffset + 2*rTextLineInfo.mnLineHeight );
break;
- case LINESTYLE_DOUBLEWAVE: // TODO(F3): NYI
- // FALLTHROUGH intended
case LINESTYLE_DOUBLE:
appendRect(
aTextLinesPolyPoly,