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
902a39f0
Commit
902a39f0
authored
Dec 14, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use pvaIn in exec_print.
parent
bed868c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
2 deletions
+49
-2
olecmd.c
dlls/mshtml/olecmd.c
+49
-2
No files found.
dlls/mshtml/olecmd.c
View file @
902a39f0
...
...
@@ -222,8 +222,6 @@ static HRESULT exec_print(HTMLDocument *This, DWORD nCmdexecopt, VARIANT *pvaIn,
if
(
pvaOut
)
FIXME
(
"unsupported pvaOut
\n
"
);
if
(
pvaIn
)
FIXME
(
"unsupported pvaIn
\n
"
);
if
(
!
This
->
nscontainer
)
return
S_OK
;
...
...
@@ -249,6 +247,55 @@ static HRESULT exec_print(HTMLDocument *This, DWORD nCmdexecopt, VARIANT *pvaIn,
set_default_templates
(
settings
);
if
(
pvaIn
)
{
switch
(
V_VT
(
pvaIn
))
{
case
VT_BYREF
|
VT_ARRAY
:
{
VARIANT
*
opts
;
DWORD
opts_cnt
;
if
(
V_ARRAY
(
pvaIn
)
->
cDims
!=
1
)
WARN
(
"cDims = %d
\n
"
,
V_ARRAY
(
pvaIn
)
->
cDims
);
SafeArrayAccessData
(
V_ARRAY
(
pvaIn
),
(
void
**
)
&
opts
);
opts_cnt
=
V_ARRAY
(
pvaIn
)
->
rgsabound
[
0
].
cElements
;
if
(
opts_cnt
>=
1
)
{
switch
(
V_VT
(
opts
))
{
case
VT_BSTR
:
TRACE
(
"setting footer %s
\n
"
,
debugstr_w
(
V_BSTR
(
opts
)));
set_print_template
(
settings
,
V_BSTR
(
opts
),
TRUE
);
break
;
case
VT_NULL
:
break
;
default:
WARN
(
"V_VT(opts) = %d
\n
"
,
V_VT
(
opts
));
}
}
if
(
opts_cnt
>=
2
)
{
switch
(
V_VT
(
opts
+
1
))
{
case
VT_BSTR
:
TRACE
(
"setting footer %s
\n
"
,
debugstr_w
(
V_BSTR
(
opts
+
1
)));
set_print_template
(
settings
,
V_BSTR
(
opts
+
1
),
FALSE
);
break
;
case
VT_NULL
:
break
;
default:
WARN
(
"V_VT(opts) = %d
\n
"
,
V_VT
(
opts
+
1
));
}
}
if
(
opts_cnt
>=
3
)
FIXME
(
"Unsuported opts_cnt %d
\n
"
,
opts_cnt
);
SafeArrayUnaccessData
(
V_ARRAY
(
pvaIn
));
break
;
}
default:
FIXME
(
"unsupported vt %x
\n
"
,
V_VT
(
pvaIn
));
}
}
nsres
=
nsIWebBrowserPrint_Print
(
nsprint
,
settings
,
NULL
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"Print failed: %08x
\n
"
,
nsres
);
...
...
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