diff options
Diffstat (limited to 'src/main/print-raw.c')
-rw-r--r-- | src/main/print-raw.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/main/print-raw.c b/src/main/print-raw.c index 856dd07..95c0ef2 100644 --- a/src/main/print-raw.c +++ b/src/main/print-raw.c @@ -1,5 +1,5 @@ /* - * "$Id: print-raw.c,v 1.42 2010/12/05 21:38:15 rlk Exp $" + * "$Id: print-raw.c,v 1.43 2013/09/08 15:35:18 rlk Exp $" * * Print plug-in RAW driver for the GIMP. * @@ -88,6 +88,12 @@ static const stp_parameter_t the_parameters[] = STP_PARAMETER_TYPE_STRING_LIST, STP_PARAMETER_CLASS_CORE, STP_PARAMETER_LEVEL_BASIC, 1, 1, STP_CHANNEL_NONE, 1, 0 }, + { + "PageSize", N_("Page Size"), "Color=No,Category=Basic Printer Setup", + N_("Size of the paper being printed to"), + STP_PARAMETER_TYPE_STRING_LIST, STP_PARAMETER_CLASS_CORE, + STP_PARAMETER_LEVEL_BASIC, 1, 1, STP_CHANNEL_NONE, 1, 0 + }, }; static const int the_parameter_count = @@ -138,6 +144,19 @@ raw_parameters(const stp_vars_t *v, const char *name, description->deflt.str = stp_string_list_param(description->bounds.str, 0)->name; } + else if (strcmp(name, "PageSize") == 0) + { + int papersizes = stp_known_papersizes(); + description->bounds.str = stp_string_list_create(); + for (i = 0; i < papersizes; i++) + { + const stp_papersize_t *pt = stp_get_papersize_by_index(i); + stp_string_list_add_string(description->bounds.str, + pt->name, gettext(pt->text)); + } + description->deflt.str = + stp_string_list_param(description->bounds.str, 0)->name; + } else description->is_active = 0; } |