Ignore:
Timestamp:
2005-07-06T15:27:45+12:00 (19 years ago)
Author:
kjdon
Message:

Jeffrey's new parsing modifications, committed approx 6 July, 15.16

File:
1 edited

Legend:

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

    r9465 r10218  
    4949
    5050sub new {
    51     my $class = shift (@_);
     51    my ($class) = shift (@_);
     52    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     53    push(@$pluginlist, $class);
    5254
    53     my $self = new ConvertToPlug ($class, @_);
    54     $self->{'plugin_type'} = "PPTPlug";
     55    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     56    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     57
     58    my $self = (defined $hashArgOptLists)? new ConvertToPlug($pluginlist,$inputargs,$hashArgOptLists): new ConvertToPlug($pluginlist,$inputargs);
     59
    5560    # ppthtml outputs utf-8 already.
    5661    if ($self->{'input_encoding'} eq "auto") {
    5762    $self->{'input_encoding'} = "utf8";
    5863    }
    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 );
    6364
    6465    return bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.