Changeset 22701

Show
Ignore:
Timestamp:
21.08.2010 00:31:36 (9 years ago)
Author:
davidb
Message:

Minor adjustments to make PDFBoxConverter fit in with new AutoloadConverterScripting? Plugin

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/open-office-src/trunk/perllib/plugins/OpenOfficeConverter.pm

    r22643 r22701  
    8282    } 
    8383    } 
    84  
    85 } 
    86  
    87 my $arguments = [ 
    88     { 'name' => "openoffice_port", 
    89       'desc' => "{OpenOfficeConverter.openoffice_port}", 
    90       'type' => "int", 
    91       'deft' => "8100", 
    92       'range' => "81,", 
    93       'reqd' => "no" }, 
    94     ]; 
     84} 
     85 
     86#my $arguments = [ 
     87#    { 'name' => "openoffice_port", 
     88#      'desc' => "{OpenOfficeConverter.openoffice_port}", 
     89#      'type' => "int", 
     90#      'deft' => "8100", 
     91#      'range' => "81,", 
     92#      'reqd' => "no" }, 
     93#    ]; 
     94 
     95my $arguments = [ ]; 
     96 
    9597 
    9698my $options = { 'name' => "OpenOfficeConverter", 
     
    102104sub new { 
    103105    my ($class) = shift (@_); 
    104     my ($pluginlist,$inputargs,$hashArgOptLists) = @_; 
     106    my ($pluginlist,$inputargs,$hashArgOptLists,$auxilary) = @_; 
    105107    push(@$pluginlist, $class); 
    106108 
     
    108110    push(@{$hashArgOptLists->{"OptList"}},$options); 
    109111 
    110     my $self = new BaseMediaConverter($pluginlist, $inputargs, $hashArgOptLists); 
     112    my $self = new BaseMediaConverter($pluginlist, $inputargs,  
     113                      $hashArgOptLists, $auxilary); 
    111114 
    112115    if ($self->{'info_only'}) { 
     
    115118    } 
    116119    if ($openoffice_conversion_available) { 
    117     my $oo_port = $self->{'openoffice_port'}; 
     120    # my $oo_port = $self->{'openoffice_port'}; 
     121    my $oo_port = 8100; 
     122 
    118123    my $launch_cmd = "soffice"; 
    119124    $launch_cmd .= " \"-accept=socket,host=localhost,port=$oo_port;urp;StarOffice.ServiceManager\"";