Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
4e418499
Commit
4e418499
authored
Aug 18, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IDM_BOLD implementation.
parent
b20dad06
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
0 deletions
+63
-0
nsiface.idl
dlls/mshtml/nsiface.idl
+17
-0
olecmd.c
dlls/mshtml/olecmd.c
+46
-0
No files found.
dlls/mshtml/nsiface.idl
View file @
4e418499
...
@@ -109,6 +109,7 @@ typedef nsISupports nsIDOMHTMLOptionsCollection;
...
@@ -109,6 +109,7 @@ typedef nsISupports nsIDOMHTMLOptionsCollection;
typedef nsISupports nsIDOMHTMLCollection;
typedef nsISupports nsIDOMHTMLCollection;
typedef nsISupports nsIDOMRange;
typedef nsISupports nsIDOMRange;
typedef nsISupports nsIEditor;
typedef nsISupports nsIEditor;
typedef nsISupports nsICommandParams;
[
[
object,
object,
...
@@ -1174,6 +1175,22 @@ interface nsIEditingSession : nsISupports
...
@@ -1174,6 +1175,22 @@ interface nsIEditingSession : nsISupports
nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
}
}
[
object,
uuid(080d2001-f91e-11d4-a73c-f9242928207c)
]
interface nsICommandManager : nsISupports
{
nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
nsICommandParams *aCommandParams);
nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
nsIDOMWindow *aTargetWindow);
}
/*
/*
* NOTE:
* NOTE:
* This is a private Wine interface that is implemented by our implementation
* This is a private Wine interface that is implemented by our implementation
...
...
dlls/mshtml/olecmd.c
View file @
4e418499
...
@@ -238,6 +238,46 @@ static HRESULT exec_get_print_template(HTMLDocument *This, DWORD nCmdexecopt, VA
...
@@ -238,6 +238,46 @@ static HRESULT exec_get_print_template(HTMLDocument *This, DWORD nCmdexecopt, VA
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
void
do_ns_command
(
NSContainer
*
This
,
const
char
*
cmd
)
{
nsICommandManager
*
cmdmgr
;
nsIInterfaceRequestor
*
iface_req
;
nsresult
nsres
;
FIXME
(
"(%p)
\n
"
,
This
);
nsres
=
nsIWebBrowser_QueryInterface
(
This
->
webbrowser
,
&
IID_nsIInterfaceRequestor
,
(
void
**
)
&
iface_req
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIInterfaceRequestor: %08lx
\n
"
,
nsres
);
return
;
}
nsres
=
nsIInterfaceRequestor_GetInterface
(
iface_req
,
&
IID_nsICommandManager
,
(
void
**
)
&
cmdmgr
);
nsIInterfaceRequestor_Release
(
iface_req
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsICommandManager: %08lx
\n
"
,
nsres
);
return
;
}
nsres
=
nsICommandManager_DoCommand
(
cmdmgr
,
cmd
,
NULL
,
NULL
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"DoCommand(%s) failed: %08lx
\n
"
,
debugstr_a
(
cmd
),
nsres
);
nsICommandManager_Release
(
cmdmgr
);
}
static
HRESULT
exec_bold
(
HTMLDocument
*
This
)
{
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
nscontainer
)
do_ns_command
(
This
->
nscontainer
,
"cmd_bold"
);
return
S_OK
;
}
static
HRESULT
exec_browsemode
(
HTMLDocument
*
This
)
static
HRESULT
exec_browsemode
(
HTMLDocument
*
This
)
{
{
WARN
(
"(%p)
\n
"
,
This
);
WARN
(
"(%p)
\n
"
,
This
);
...
@@ -504,7 +544,13 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
...
@@ -504,7 +544,13 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
return
OLECMDERR_E_NOTSUPPORTED
;
return
OLECMDERR_E_NOTSUPPORTED
;
}
else
if
(
IsEqualGUID
(
&
CGID_MSHTML
,
pguidCmdGroup
))
{
}
else
if
(
IsEqualGUID
(
&
CGID_MSHTML
,
pguidCmdGroup
))
{
switch
(
nCmdID
)
{
switch
(
nCmdID
)
{
case
IDM_BOLD
:
if
(
pvaIn
||
pvaOut
)
FIXME
(
"unsupported arguments
\n
"
);
return
exec_bold
(
This
);
case
IDM_BROWSEMODE
:
case
IDM_BROWSEMODE
:
if
(
pvaIn
||
pvaOut
)
FIXME
(
"unsupported arguments
\n
"
);
return
exec_browsemode
(
This
);
return
exec_browsemode
(
This
);
case
IDM_EDITMODE
:
case
IDM_EDITMODE
:
if
(
pvaIn
||
pvaOut
)
if
(
pvaIn
||
pvaOut
)
...
...
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