summaryrefslogtreecommitdiff
path: root/src/main/generic-options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/generic-options.c')
-rw-r--r--src/main/generic-options.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/main/generic-options.c b/src/main/generic-options.c
index c91e41c..ed360f6 100644
--- a/src/main/generic-options.c
+++ b/src/main/generic-options.c
@@ -79,7 +79,19 @@ static const stp_parameter_t the_parameters[] =
"PageNumber", N_("Page Number"), "Color=No,Category=Job Mode",
N_("Page number"),
STP_PARAMETER_TYPE_INT, STP_PARAMETER_CLASS_CORE,
- STP_PARAMETER_LEVEL_BASIC, 0, 1, STP_CHANNEL_NONE, 1, 0
+ STP_PARAMETER_LEVEL_BASIC, 1, 1, STP_CHANNEL_NONE, 1, 0
+ },
+ {
+ "NumCopies", N_("Number of Copies"), "Color=No,Category=Job Mode",
+ N_("Number of Copies"),
+ STP_PARAMETER_TYPE_INT, STP_PARAMETER_CLASS_CORE,
+ STP_PARAMETER_LEVEL_INTERNAL, 1, 0, STP_CHANNEL_NONE, 1, 0
+ },
+ {
+ "Collate", N_("Collate the Job"), "Color=No,Category=Job Mode",
+ N_("Collate the Job"),
+ STP_PARAMETER_TYPE_BOOLEAN, STP_PARAMETER_CLASS_CORE,
+ STP_PARAMETER_LEVEL_INTERNAL, 1, 0, STP_CHANNEL_NONE, 1, 0
},
};
@@ -252,5 +264,15 @@ stpi_describe_generic_parameter(const stp_vars_t *v, const char *name,
description->bounds.integer.lower = 0;
description->bounds.integer.upper = INT_MAX;
}
+ else if (strcmp(name, "NumCopies") == 0)
+ {
+ description->deflt.integer = 1;
+ description->bounds.integer.lower = 1;
+ description->bounds.integer.upper = INT_MAX;
+ }
+ else if (strcmp(name, "Collate") == 0)
+ {
+ description->deflt.boolean = 0;
+ }
}