Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
227be057
Commit
227be057
authored
Nov 02, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added implementation of QueryStatus(IDM_BOLD).
parent
f003d3c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
4 deletions
+27
-4
olecmd.c
dlls/mshtml/olecmd.c
+27
-4
No files found.
dlls/mshtml/olecmd.c
View file @
227be057
...
...
@@ -39,6 +39,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
#define NSCMD_BOLD "cmd_bold"
/**********************************************************
* IOleCommandTarget implementation
*/
...
...
@@ -245,7 +247,7 @@ static void do_ns_command(NSContainer *This, const char *cmd, nsICommandParams *
nsIInterfaceRequestor
*
iface_req
;
nsresult
nsres
;
FIXM
E
(
"(%p)
\n
"
,
This
);
TRAC
E
(
"(%p)
\n
"
,
This
);
nsres
=
nsIWebBrowser_QueryInterface
(
This
->
webbrowser
,
&
IID_nsIInterfaceRequestor
,
(
void
**
)
&
iface_req
);
...
...
@@ -298,6 +300,27 @@ static nsresult get_ns_command_state(NSContainer *This, const char *cmd, nsIComm
return
nsres
;
}
static
DWORD
query_edit_status
(
HTMLDocument
*
This
,
const
char
*
nscmd
)
{
nsICommandParams
*
nsparam
;
PRBool
b
=
FALSE
;
if
(
!
This
->
nscontainer
)
{
FIXME
(
"dummy not implemented
\n
"
);
return
OLECMDF_SUPPORTED
;
}
if
(
This
->
usermode
!=
EDITMODE
||
This
->
readystate
<
READYSTATE_INTERACTIVE
)
return
OLECMDF_SUPPORTED
;
nsparam
=
create_nscommand_params
();
get_ns_command_state
(
This
->
nscontainer
,
nscmd
,
nsparam
);
nsICommandParams_GetBooleanValue
(
nsparam
,
"state_enabled"
,
&
b
);
return
OLECMDF_SUPPORTED
|
OLECMDF_ENABLED
|
(
b
?
OLECMDF_LATCHED
:
0
);
}
static
HRESULT
exec_fontname
(
HTMLDocument
*
This
,
VARIANT
*
in
,
VARIANT
*
out
)
{
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
in
,
out
);
...
...
@@ -364,7 +387,7 @@ static HRESULT exec_bold(HTMLDocument *This)
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
nscontainer
)
do_ns_command
(
This
->
nscontainer
,
"cmd_bold"
,
NULL
);
do_ns_command
(
This
->
nscontainer
,
NSCMD_BOLD
,
NULL
);
return
S_OK
;
}
...
...
@@ -626,8 +649,8 @@ static HRESULT WINAPI OleCommandTarget_QueryStatus(IOleCommandTarget *iface, con
prgCmds
[
i
].
cmdf
=
OLECMDF_SUPPORTED
|
OLECMDF_ENABLED
;
break
;
case
IDM_BOLD
:
FIXM
E
(
"CGID_MSHTML: IDM_BOLD
\n
"
);
prgCmds
[
i
].
cmdf
=
OLECMDF_SUPPORTED
|
OLECMDF_ENABLED
;
TRAC
E
(
"CGID_MSHTML: IDM_BOLD
\n
"
);
prgCmds
[
i
].
cmdf
=
query_edit_status
(
This
,
NSCMD_BOLD
)
;
break
;
case
IDM_FORECOLOR
:
FIXME
(
"CGID_MSHTML: IDM_FORECOLOR
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment