Nikolay Sivov : riched20: Implement GetStrikeThrough().
Alexandre Julliard
julliard at wine.codeweavers.com
Wed May 20 10:04:12 CDT 2015
Module: wine
Branch: master
Commit: 0f53b87367736fc40bdf6d1a604039d0a864f9ee
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0f53b87367736fc40bdf6d1a604039d0a864f9ee
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed May 20 10:43:19 2015 +0300
riched20: Implement GetStrikeThrough().
---
dlls/riched20/richole.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/richole.c b/dlls/riched20/richole.c
index 9f8bc17..b2e78f2 100644
--- a/dlls/riched20/richole.c
+++ b/dlls/riched20/richole.c
@@ -221,6 +221,7 @@ static inline BOOL is_equal_textfont_prop_value(enum textfont_prop_id propid, te
case FONT_BOLD:
case FONT_FORECOLOR:
case FONT_ITALIC:
+ case FONT_STRIKETHROUGH:
case FONT_UNDERLINE:
return left->l == right->l;
case FONT_SIZE:
@@ -238,6 +239,7 @@ static inline void init_textfont_prop_value(enum textfont_prop_id propid, textfo
case FONT_BOLD:
case FONT_FORECOLOR:
case FONT_ITALIC:
+ case FONT_STRIKETHROUGH:
case FONT_UNDERLINE:
v->l = tomUndefined;
return;
@@ -280,6 +282,9 @@ static HRESULT get_textfont_prop_for_pos(const IRichEditOleImpl *reole, int pos,
case FONT_SIZE:
value->f = fmt.yHeight;
break;
+ case FONT_STRIKETHROUGH:
+ value->l = fmt.dwEffects & CFE_STRIKEOUT ? tomTrue : tomFalse;
+ break;
case FONT_UNDERLINE:
value->l = fmt.dwEffects & CFE_UNDERLINE ? tomTrue : tomFalse;
break;
@@ -2069,8 +2074,8 @@ static HRESULT WINAPI TextFont_SetSpacing(ITextFont *iface, FLOAT value)
static HRESULT WINAPI TextFont_GetStrikeThrough(ITextFont *iface, LONG *value)
{
ITextFontImpl *This = impl_from_ITextFont(iface);
- FIXME("(%p)->(%p): stub\n", This, value);
- return E_NOTIMPL;
+ TRACE("(%p)->(%p)\n", This, value);
+ return get_textfont_propl(This->range, FONT_STRIKETHROUGH, value);
}
static HRESULT WINAPI TextFont_SetStrikeThrough(ITextFont *iface, LONG value)
More information about the wine-cvs
mailing list