Ignore:
Timestamp:
2003-06-20T14:22:34+12:00 (21 years ago)
Author:
mdewsnip
Message:

Tidied up and structures (representing the options of the plugin) in preparation for removing the print_usage() routines.

File:
1 edited

Legend:

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

    r3540 r4744  
    3434}
    3535
    36 my $arguments = [ { 'name' => "process_exp",
    37                           '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).",
    38                           'type' => "string",
    39                           'deft' => q^(?i)\.doc$^,
    40                           'reqd' => "no" } ];
     36my $arguments =
     37    [ { 'name' => "process_exp",
     38    'desc' => "A perl regular expression to match against filenames. Matching filenames will be processed by this plugin. For example, using '(?i).html?\$' matches all documents ending in .htm or .html (case-insensitive).",
     39    'type' => "string",
     40    'deft' => &get_default_process_exp(),
     41    'reqd' => "no" } ];
    4142
    4243my $options = { 'name'     => "WordPlug",
    43                  'desc'     => "",
    44                      'inherits' => "yes",
    45                      'args'     => $arguments };
     44        'desc'     => "A plugin for importing Microsoft Word documents.",
     45        'inherits' => "yes",
     46        'args'     => $arguments };
    4647
    4748sub new {
     
    5051    my $self = new ConvertToPlug ($class, @_);
    5152
    52     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    53     my $option_list = $self->{'option_list'};
    54     push( @{$option_list}, $options );
     53    # 14-05-02 To allow for proper inheritance of arguments - John Thompson
     54    my $option_list = $self->{'option_list'};
     55    push( @{$option_list}, $options );
    5556
    5657    # wvWare will always produce html files encoded as utf-8
Note: See TracChangeset for help on using the changeset viewer.