Ignore:
Timestamp:
2002-11-18T17:43:56+13:00 (22 years ago)
Author:
kjdon
Message:

added John T's changes into CVS - added info to enable retrieval of usage info in xml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/PSPlug.pm

    r2979 r3540  
    2424###########################################################################
    2525
     26# 12/05/02 Added usage datastructure - John Thompson
     27
    2628package PSPlug;
    2729
     
    3335}
    3436
     37my $arguments = [ { 'name' => "process_exp",
     38            'desc' => "A perl regular expression to match against filenames. Matching filenames will be processed by this plugin. Each plugin has its own default process_exp. e.g HTMLPlug defaults to '(?i)\.html?\$' i.e. all documents ending in .htm or .html (case-insensitive).",
     39            'type' => "string",
     40            'deft' => q^(?i)\.ps$^,
     41            'reqd' => "no" },
     42          { 'name' => "block_exp",
     43            'desc' => "Files matching this regular expression will be blocked from being passed to any later plugins in the list. This has no real effect other than to prevent lots of warning messages about input files you don't care about. Each plugin might have a default block_exp. e.g. by default HTMLPlug blocks any files with .gif, .jpg, .jpeg, .png or .css file extensions.",
     44            'type' => 'string',
     45            'deft' =>  q^(?i)\.(eps)$^ }
     46          ];
     47
     48my $options = { 'name'     => "PSPlug",
     49        'desc'     => "This might look VERY similar to the PDF plugin.",
     50        'inherits' => "yes",
     51        'args'     => $arguments };
     52
    3553sub new {
    3654    my $class = shift (@_);
     
    3957
    4058    my $self = new ConvertToPlug ($class, "-convert_to", "text", @_ , "-title_sub", '^(Page\s+\d+)?(\s*1\s+)?');
     59
     60    # 14-05-02 To allow for proper inheritance of arguments - John Thompson
     61    my $option_list = $self->{'option_list'};
     62    push( @{$option_list}, $options );
    4163   
    4264    if (!parsargv::parse(\@_,
Note: See TracChangeset for help on using the changeset viewer.