Changeset 3540 for trunk/gsdl/perllib/plugins/WordPlug.pm
- Timestamp:
- 2002-11-18T17:43:56+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/WordPlug.pm
r3400 r3540 24 24 ########################################################################### 25 25 26 # 12/05/02 Added usage datastructure - John Thompson 27 26 28 package WordPlug; 27 29 … … 32 34 } 33 35 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" } ]; 41 42 my $options = { 'name' => "WordPlug", 43 'desc' => "", 44 'inherits' => "yes", 45 'args' => $arguments }; 46 34 47 sub new { 35 48 my $class = shift (@_); 36 49 37 50 my $self = new ConvertToPlug ($class, @_); 51 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 ); 38 55 39 56 # wvWare will always produce html files encoded as utf-8 … … 57 74 58 75 my $outhandle = $self->{'outhandle'}; 59 print $outhandle "WordPlug: passing $_[3] on to $self->{'converted_to'}Plug\n" 76 print $outhandle "WordPlug: passing $_[3] on to $self->{'converted_to'}Plug\n" 60 77 if $self->{'verbosity'} > 1; 61 78
Note:
See TracChangeset
for help on using the changeset viewer.