Changeset 10356


Ignore:
Timestamp:
2005-07-29T14:35:54+12:00 (19 years ago)
Author:
chi
Message:

tidy up the code.

File:
1 edited

Legend:

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

    r10271 r10356  
    7878    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
    7979   
    80     #my $self = (defined $hashArgOptLists)? new ConvertToPlug($pluginlist,$inputargs,$hashArgOptLists): new ConvertToPlug($pluginlist,$inputargs);
    8180    my $self = (defined $hashArgOptLists)? new HTMLPlug($pluginlist,$inputargs,$hashArgOptLists): new HTMLPlug($pluginlist,$inputargs);
    8281   
    83     print STDERR "*** StrucHTML = $self->{'assoc_files'}\n";
    84 
    8582    return bless $self, $class;
    8683
    8784}
    88 
    89 #sub new
    90 #{
    91 #    my $class = shift (@_);
    92 #    my $self = new HTMLPlug ($class, @_);
    93 #    $self->{'plugin_type'} = "StructuredHTMLPlug";
    94 #   
    95 #    # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    96 #    my $option_list = $self->{'option_list'};
    97 #    push( @{$option_list}, $options );
    98 
    99 #    if (!parsargv::parse(\@_,
    100 #            q^check_toc^,\$self->{'check_toc'},
    101 #            q^title_header/.*/^,\$self->{'title_header'},
    102 #                q^toc_header/.*/^,\$self->{'toc_header'},
    103 #            q^tof_header/.*/^,\$self->{'tof_header'},
    104 #            q^level1_header/.*/^,\$self->{'level1_header'},
    105 #            q^level2_header/.*/^,\$self->{'level2_header'},
    106 #            q^level3_header/.*/^,\$self->{'level3_header'},
    107 #            "allow_extra_options")) {
    108 #   
    109 #   #my $self = new HTMLPlug($class, @_);
    110 #   print STDERR "\nIncorrect options passed to $plugin_name, ";
    111 #   print STDERR "check your collect.cfg configuration file\n";
    112 #   $self->print_txt_usage("");  # Use default resource bundle
    113 #   die "\n";
    114 #    }
    115 #    return bless $self, $class;
    116 #}
    117 
    11885
    11986sub read {
     
    366333        = &ImagePlug::identify($img_filename, $outhandle, $verbosity);
    367334
    368     print STDERR "**** $actual_width x $actual_height";
    369     print STDERR " (requested: $img_width x $img_height)\n";
     335    #print STDERR "**** $actual_width x $actual_height";
     336    #print STDERR " (requested: $img_width x $img_height)\n";
    370337
    371338    if (($img_width < $actual_width) || ($img_height < $actual_height)) {
     
    379346        = &util::filename_cat($dirname, $tailname."_resized".$suffix);
    380347
    381         print STDERR "**** suffix = $suffix\n";
     348        #print STDERR "**** suffix = $suffix\n";
    382349
    383350        # Generate smaller image with convert
Note: See TracChangeset for help on using the changeset viewer.