Skip to content

Commit

Permalink
support attribute multiple-document-handling
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuth committed Sep 30, 2024
1 parent 528bb0e commit f57c8cf
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package de.gmuth.ipp.attributes

/**
* Copyright (c) 2024 Gerhard Muth
*/

import de.gmuth.ipp.core.IppAttribute
import de.gmuth.ipp.core.IppAttributeBuilder
import de.gmuth.ipp.core.IppAttributesGroup
import de.gmuth.ipp.core.IppTag.Keyword

enum class MultipleDocumentHandling(private val keyword: String) : IppAttributeBuilder {

SeparateDocumentsCollatedCopies("separate-documents-collated-copies"),
SeparateDocumentsUncollatedCopies("separate-documents-uncollated-copies"),
SingleDocument("single-document");

override fun buildIppAttribute(printerAttributes: IppAttributesGroup) =
IppAttribute("multiple-document-handling", Keyword, keyword)
}

0 comments on commit f57c8cf

Please sign in to comment.