expand ppd-compile to support JCLOpenUI #4115

Closed
michaelrsweet opened this Issue Jun 4, 2012 · 2 comments

Comments

Projects
None yet
1 participant
Collaborator

michaelrsweet commented Jun 4, 2012

Version: 1.7-feature
CUPS.org User: franz.pfoertsch.brose

today it is not possible to create JCLOpenUI via the option directive.
the option dircetive ony creates the OpenUI-command in the ppd.

So when I create a *.drv file I have to change the OpenUI command to JCLOpenUI.

It would be very helpfull to expand the directive to create JCL-headers.

Collaborator

michaelrsweet commented Oct 1, 2012

CUPS.org User: mike

Fixed in Subversion repository.

Collaborator

michaelrsweet commented Oct 1, 2012

"str4115.patch":

Index: ppdc/ppdc-driver.cxx

--- ppdc/ppdc-driver.cxx (revision 10629)
+++ ppdc/ppdc-driver.cxx (working copy)
@@ -1025,7 +1025,16 @@
if (!o->choices->count)
continue;

  •  if (!o->text->value)
    
  •  if (o->section == PPDC_SECTION_JCL)
    
  •  {
    
  • if (!o->text->value)
  • cupsFilePrintf(fp, "*JCLOpenUI *%s/%s: ", o->name->value,
    
  •        catalog->find_message(o->name->value));
    
  • else
  • cupsFilePrintf(fp, "*JCLOpenUI *%s/%s: ", o->name->value,
    
  •        catalog->find_message(o->text->value));
    
  •  }
    
  •  else if (!o->text->value)
    
    cupsFilePrintf(fp, "*OpenUI *%s/%s: ", o->name->value,
    catalog->find_message(o->name->value));
    else

michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment