mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 21:04:06 +00:00
prntvpt: Add support for PageScaling to ticket XML writer.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f1be23f913
commit
3d87d050f2
1 changed files with 20 additions and 0 deletions
|
@ -871,6 +871,24 @@ static HRESULT write_PageOutputColor(IXMLDOMElement *root, const struct ticket *
|
|||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT write_PageScaling(IXMLDOMElement *root, const struct ticket *ticket)
|
||||
{
|
||||
IXMLDOMElement *feature, *option = NULL;
|
||||
HRESULT hr;
|
||||
|
||||
hr = create_Feature(root, L"psk:PageScaling", &feature);
|
||||
if (hr != S_OK) return hr;
|
||||
|
||||
if (ticket->page.scaling != 100)
|
||||
FIXME("page.scaling: %d\n", ticket->page.scaling);
|
||||
|
||||
hr = create_Option(feature, L"psk:None", &option);
|
||||
|
||||
if (option) IXMLDOMElement_Release(option);
|
||||
IXMLDOMElement_Release(feature);
|
||||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT write_attributes(IXMLDOMElement *element)
|
||||
{
|
||||
HRESULT hr;
|
||||
|
@ -912,6 +930,8 @@ static HRESULT write_ticket(IStream *stream, const struct ticket *ticket, EPrint
|
|||
if (hr != S_OK) goto fail;
|
||||
hr = write_PageOutputColor(root, ticket);
|
||||
if (hr != S_OK) goto fail;
|
||||
hr = write_PageScaling(root, ticket);
|
||||
if (hr != S_OK) goto fail;
|
||||
|
||||
hr = IStream_Write(stream, xmldecl, strlen(xmldecl), NULL);
|
||||
if (hr != S_OK) goto fail;
|
||||
|
|
Loading…
Reference in a new issue