Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
1e68433d
Commit
1e68433d
authored
9 years ago
by
Nikolay Sivov
Committed by
Alexandre Julliard
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
riched20: Implement GetSubscript()/GetSuperscript().
parent
0f53b873
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/riched20/richole.c
+14
-4
14 additions, 4 deletions
dlls/riched20/richole.c
with
14 additions
and
4 deletions
dlls/riched20/richole.c
+
14
−
4
View file @
1e68433d
...
...
@@ -222,6 +222,8 @@ static inline BOOL is_equal_textfont_prop_value(enum textfont_prop_id propid, te
case
FONT_FORECOLOR
:
case
FONT_ITALIC
:
case
FONT_STRIKETHROUGH
:
case
FONT_SUBSCRIPT
:
case
FONT_SUPERSCRIPT
:
case
FONT_UNDERLINE
:
return
left
->
l
==
right
->
l
;
case
FONT_SIZE
:
...
...
@@ -240,6 +242,8 @@ static inline void init_textfont_prop_value(enum textfont_prop_id propid, textfo
case
FONT_FORECOLOR
:
case
FONT_ITALIC
:
case
FONT_STRIKETHROUGH
:
case
FONT_SUBSCRIPT
:
case
FONT_SUPERSCRIPT
:
case
FONT_UNDERLINE
:
v
->
l
=
tomUndefined
;
return
;
...
...
@@ -285,6 +289,12 @@ static HRESULT get_textfont_prop_for_pos(const IRichEditOleImpl *reole, int pos,
case
FONT_STRIKETHROUGH
:
value
->
l
=
fmt
.
dwEffects
&
CFE_STRIKEOUT
?
tomTrue
:
tomFalse
;
break
;
case
FONT_SUBSCRIPT
:
value
->
l
=
fmt
.
dwEffects
&
CFE_SUBSCRIPT
?
tomTrue
:
tomFalse
;
break
;
case
FONT_SUPERSCRIPT
:
value
->
l
=
fmt
.
dwEffects
&
CFE_SUPERSCRIPT
?
tomTrue
:
tomFalse
;
break
;
case
FONT_UNDERLINE
:
value
->
l
=
fmt
.
dwEffects
&
CFE_UNDERLINE
?
tomTrue
:
tomFalse
;
break
;
...
...
@@ -2088,8 +2098,8 @@ static HRESULT WINAPI TextFont_SetStrikeThrough(ITextFont *iface, LONG value)
static
HRESULT
WINAPI
TextFont_GetSubscript
(
ITextFont
*
iface
,
LONG
*
value
)
{
ITextFontImpl
*
This
=
impl_from_ITextFont
(
iface
);
FIXM
E
(
"(%p)->(%p)
: stub
\n
"
,
This
,
value
);
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%p)
\n
"
,
This
,
value
);
return
get_textfont_propl
(
This
->
range
,
FONT_SUBSCRIPT
,
value
)
;
}
static
HRESULT
WINAPI
TextFont_SetSubscript
(
ITextFont
*
iface
,
LONG
value
)
...
...
@@ -2102,8 +2112,8 @@ static HRESULT WINAPI TextFont_SetSubscript(ITextFont *iface, LONG value)
static
HRESULT
WINAPI
TextFont_GetSuperscript
(
ITextFont
*
iface
,
LONG
*
value
)
{
ITextFontImpl
*
This
=
impl_from_ITextFont
(
iface
);
FIXM
E
(
"(%p)->(%p)
: stub
\n
"
,
This
,
value
);
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%p)
\n
"
,
This
,
value
);
return
get_textfont_propl
(
This
->
range
,
FONT_SUPERSCRIPT
,
value
)
;
}
static
HRESULT
WINAPI
TextFont_SetSuperscript
(
ITextFont
*
iface
,
LONG
value
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment