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
beaa66f1
Commit
beaa66f1
authored
Aug 26, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added nsICommandParams argument to do_ns_command.
parent
de0619e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
6 deletions
+31
-6
nsiface.idl
dlls/mshtml/nsiface.idl
+28
-3
olecmd.c
dlls/mshtml/olecmd.c
+3
-3
No files found.
dlls/mshtml/nsiface.idl
View file @
beaa66f1
...
...
@@ -40,6 +40,7 @@ typedef LPCWSTR nscwstring;
typedef
ULONG
PRUint32
;
typedef
LONG
PRInt32
;
typedef
WORD
PRUint16
;
typedef
INT16
PRInt16
;
typedef
BYTE
PRUint8
;
typedef
BOOL
PRBool
;
typedef
LARGE_INTEGER
PRInt64
;
...
...
@@ -109,7 +110,6 @@ typedef nsISupports nsIDOMHTMLOptionsCollection;
typedef nsISupports nsIDOMHTMLCollection;
typedef nsISupports nsIDOMRange;
typedef nsISupports nsIEditor;
typedef nsISupports nsICommandParams;
[
object,
...
...
@@ -540,8 +540,8 @@ interface nsIDOMHTMLDocument : nsIDOMDocument
nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
nsresult GetCookie(nsAString *aCookie);
nsresult SetCookie(const nsAString *aCookie);
nsresult Open(
void
);
nsresult Close(
void
);
nsresult Open();
nsresult Close();
nsresult Write(const nsAString *text);
nsresult Writeln(const nsAString *text);
nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
...
...
@@ -1177,6 +1177,31 @@ interface nsIEditingSession : nsISupports
[
object,
uuid(83f892cf-7ed3-490e-967a-62640f3158e1)
]
interface nsICommandParams : nsISupports
{
nsresult GetValueType(const char *name, PRInt16 *_retval);
nsresult GetBooleanValue(const char *name, PRBool *_retval);
nsresult GetLongValue(const char *name, PRInt32 *_retval);
nsresult GetDoubleValue(const char *name, double *_retval);
nsresult GetStringValue(const char *name, nsAString *_retval);
nsresult GetCStringValue(const char *name, char **_retval);
nsresult GetISupportsValue(const char *name, nsISupports **_retval);
nsresult SetBooleanValue(const char *name, PRBool value);
nsresult SetLongValue(const char *name, PRInt32 value);
nsresult SetDoubleValue(const char *name, double value);
nsresult SetStringValue(const char *name, const nsAString *value);
nsresult SetCStringValue(const char *name, const char *value);
nsresult SetISupportsValue(const char *name, nsISupports *value);
nsresult RemoveValue(const char *name);
nsresult HasMoreElements(PRBool *_retval);
nsresult First();
nsresult GetNext(char **_retval);
}
[
object,
uuid(080d2001-f91e-11d4-a73c-f9242928207c)
]
interface nsICommandManager : nsISupports
...
...
dlls/mshtml/olecmd.c
View file @
beaa66f1
...
...
@@ -238,7 +238,7 @@ static HRESULT exec_get_print_template(HTMLDocument *This, DWORD nCmdexecopt, VA
return
E_NOTIMPL
;
}
static
void
do_ns_command
(
NSContainer
*
This
,
const
char
*
cmd
)
static
void
do_ns_command
(
NSContainer
*
This
,
const
char
*
cmd
,
nsICommandParams
*
nsparam
)
{
nsICommandManager
*
cmdmgr
;
nsIInterfaceRequestor
*
iface_req
;
...
...
@@ -261,7 +261,7 @@ static void do_ns_command(NSContainer *This, const char *cmd)
return
;
}
nsres
=
nsICommandManager_DoCommand
(
cmdmgr
,
cmd
,
NULL
,
NULL
);
nsres
=
nsICommandManager_DoCommand
(
cmdmgr
,
cmd
,
nsparam
,
NULL
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"DoCommand(%s) failed: %08lx
\n
"
,
debugstr_a
(
cmd
),
nsres
);
...
...
@@ -273,7 +273,7 @@ static HRESULT exec_bold(HTMLDocument *This)
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
nscontainer
)
do_ns_command
(
This
->
nscontainer
,
"cmd_bold"
);
do_ns_command
(
This
->
nscontainer
,
"cmd_bold"
,
NULL
);
return
S_OK
;
}
...
...
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