Support collated copies

This commit is contained in:
Anton Thomasson 2020-10-04 18:16:21 +02:00
parent 4d0eeb35c2
commit 4d76999df6
9 changed files with 169 additions and 11 deletions

View file

@ -41,6 +41,7 @@ Page {
ListElement {name: "sides"; prettyName: qsTr("Sides"); tag: IppMsg.Enum}
ListElement {name: "media"; prettyName: qsTr("Print media"); tag: IppMsg.Keyword}
ListElement {name: "copies"; prettyName: qsTr("Copies"); tag: IppMsg.Integer}
ListElement {name: "multiple-document-handling"; prettyName: qsTr("Collated copies"); tag: IppMsg.Keyword}
ListElement {name: "page-ranges"; prettyName: qsTr("Page range"); tag: IppMsg.IntegerRange}
ListElement {name: "print-color-mode"; prettyName: qsTr("Color mode"); tag: IppMsg.Enum}
// ListElement {name: "orientation-requested"; prettyName: qsTr("Orientation"); tag: IppMsg.Enum}

View file

@ -147,6 +147,20 @@ function ippName(name, value)
default:
return value
}
case "multiple-document-handling":
switch(value) {
case "single-document":
return qsTr("single document");
case "separate-documents-uncollated-copies":
return qsTr("uncollated");
case "separate-documents-collated-copies":
return qsTr("collated");
case "single-document-new-sheet":
return qsTr("single document (new sheet)");
default:
return value
}
case "print-color-mode":
switch(value) {
case "auto":
@ -284,6 +298,9 @@ function limitChoices(name, choices, mimeType, ConvertChecker)
}
case "printer-resolution":
return choices.filter(unitsIsDpi);
case "multiple-document-handling" :
// Only collation settings valid, multiple documents not used
return choices.filter(function(elem) {return elem.indexOf("collated") != -1});
default:
return choices;
}

View file

@ -418,6 +418,10 @@
<source>Page range</source>
<translation>Seiten Bereich</translation>
</message>
<message>
<source>Collated copies</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RangeSetting</name>
@ -694,5 +698,21 @@
<source>Unknown State </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>single document</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>uncollated</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>collated</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>single document (new sheet)</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View file

@ -418,6 +418,10 @@
<source>Page range</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Collated copies</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RangeSetting</name>
@ -694,5 +698,21 @@
<source>Unknown State </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>single document</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>uncollated</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>collated</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>single document (new sheet)</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View file

@ -418,6 +418,10 @@
<source>Page range</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Collated copies</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RangeSetting</name>
@ -694,5 +698,21 @@
<source>Unknown State </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>single document</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>uncollated</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>collated</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>single document (new sheet)</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View file

@ -418,6 +418,10 @@
<source>Page range</source>
<translation>Paginabereik</translation>
</message>
<message>
<source>Collated copies</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RangeSetting</name>
@ -694,5 +698,21 @@
<source>Unknown State </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>single document</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>uncollated</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>collated</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>single document (new sheet)</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View file

@ -418,6 +418,10 @@
<source>Zero margins</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Collated copies</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RangeSetting</name>
@ -694,5 +698,21 @@
<source>Unknown State </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>single document</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>uncollated</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>collated</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>single document (new sheet)</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View file

@ -418,6 +418,10 @@
<source>Page range</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Collated copies</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RangeSetting</name>
@ -694,5 +698,21 @@
<source>Unknown State </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>single document</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>uncollated</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>collated</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>single document (new sheet)</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View file

@ -418,6 +418,10 @@
<source>Page range</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Collated copies</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RangeSetting</name>
@ -694,5 +698,21 @@
<source>Unknown State </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>single document</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>uncollated</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>collated</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>single document (new sheet)</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>