Changeset 15872 for gsdl/trunk/perllib/plugins/FavouritesPlugin.pm
- Timestamp:
- 2008-06-05T09:29:32+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/plugins/FavouritesPlugin.pm
r15865 r15872 28 28 # especially SRCPlug by John McPherson Nov 2000 29 29 30 package FavouritesPlug ;30 package FavouritesPlugin; 31 31 32 use BasPlug;32 use ReadTextFile; 33 33 use strict; 34 34 no strict 'refs'; # allow filehandles to be variables and viceversa 35 35 36 36 sub BEGIN { 37 @FavouritesPlug ::ISA = ('BasPlug');37 @FavouritesPlugin::ISA = ('ReadTextFile'); 38 38 } 39 39 40 40 my $arguments = 41 41 [ { 'name' => "process_exp", 42 'desc' => "{ BasPlug.process_exp}",42 'desc' => "{ReadTextFile.process_exp}", 43 43 'type' => "regexp", 44 44 'deft' => &get_default_process_exp(), 45 45 'reqd' => "no" } ]; 46 46 47 my $options = { 'name' => "FavouritesPlug ",48 'desc' => " FavouritesPlug imports Internet Explorer style Favourites. Favourites are often found in the \"C:\\Documents and Settings\\[your username]\\Favorites\" folder on your computer, but can also be made by dragging a bookmark or location from your browser (any) to the desktop.",47 my $options = { 'name' => "FavouritesPlugin", 48 'desc' => "{FavouritesPlugin.desc}", 49 49 'abstract' => "no", 50 50 'inherits' => "yes", … … 57 57 push(@$pluginlist, $class); 58 58 59 if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}60 if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};59 push(@{$hashArgOptLists->{"ArgList"}},@{$arguments}); 60 push(@{$hashArgOptLists->{"OptList"}},$options); 61 61 62 my $self = new BasPlug($pluginlist, $inputargs, $hashArgOptLists);62 my $self = new ReadTextFile($pluginlist, $inputargs, $hashArgOptLists); 63 63 64 64 return bless $self, $class; … … 80 80 81 81 my $section = $doc_obj->get_top_section(); 82 print STDERR "<Processing n='$file' p='FavouritesPlug '>\n" if ($gli);83 print $outhandle "FavouritesPlug : processing $file\n" if $self->{'verbosity'} > 1;82 print STDERR "<Processing n='$file' p='FavouritesPlugin'>\n" if ($gli); 83 print $outhandle "FavouritesPlugin: processing $file\n" if $self->{'verbosity'} > 1; 84 84 85 85 # don't want mg to turn escape chars into actual values
Note:
See TracChangeset
for help on using the changeset viewer.