Dmitry Timoshkov : prntvpt: Add support for JobInputBin to ticket XML writer.
Alexandre Julliard
julliard at winehq.org
Wed Jun 17 15:54:00 CDT 2020
Module: wine
Branch: master
Commit: bd5a86e5645fcd622c91590f1757d2d123da38f8
URL: https://source.winehq.org/git/wine.git/?a=commit;h=bd5a86e5645fcd622c91590f1757d2d123da38f8
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Wed Jun 17 13:22:19 2020 +0800
prntvpt: Add support for JobInputBin to ticket XML writer.
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/prntvpt/ticket.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/dlls/prntvpt/ticket.c b/dlls/prntvpt/ticket.c
index a3b3f6a0ed..591d61cb6e 100644
--- a/dlls/prntvpt/ticket.c
+++ b/dlls/prntvpt/ticket.c
@@ -953,6 +953,24 @@ static HRESULT write_DocumentCollate(IXMLDOMElement *root, const struct ticket *
return hr;
}
+static HRESULT write_JobInputBin(IXMLDOMElement *root, const struct ticket *ticket)
+{
+ IXMLDOMElement *feature, *option = NULL;
+ HRESULT hr;
+
+ hr = create_Feature(root, L"psk:JobInputBin", &feature);
+ if (hr != S_OK) return hr;
+
+ if (ticket->job.input_bin != DMBIN_AUTO)
+ FIXME("job.input_bin: %d\n", ticket->job.input_bin);
+
+ hr = create_Option(feature, L"psk:AutoSelect", &option);
+
+ if (option) IXMLDOMElement_Release(option);
+ IXMLDOMElement_Release(feature);
+ return hr;
+}
+
static HRESULT write_attributes(IXMLDOMElement *element)
{
HRESULT hr;
@@ -1007,6 +1025,12 @@ static HRESULT write_ticket(IStream *stream, const struct ticket *ticket, EPrint
if (hr != S_OK) goto fail;
}
+ if (scope >= kPTJobScope)
+ {
+ hr = write_JobInputBin(root, ticket);
+ if (hr != S_OK) goto fail;
+ }
+
hr = IStream_Write(stream, xmldecl, strlen(xmldecl), NULL);
if (hr != S_OK) goto fail;
More information about the wine-cvs
mailing list