Changeset 22882
- Timestamp:
- 2010-09-08T13:14:47+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/PowerPointPlugin.pm
r22880 r22882 52 52 'desc' => "{ConvertBinaryFile.convert_to.text}" }, 53 53 { 'name' => "pagedimg_jpg", 54 'desc' => "{ ConvertBinaryFile.convert_to.pagedimg_jpg}" },54 'desc' => "{PowerPointPlugin.convert_to.pagedimg_jpg}" }, 55 55 { 'name' => "pagedimg_gif", 56 'desc' => "{ ConvertBinaryFile.convert_to.pagedimg_gif}" },56 'desc' => "{PowerPointPlugin.convert_to.pagedimg_gif}" }, 57 57 { 'name' => "pagedimg_png", 58 'desc' => "{ ConvertBinaryFile.convert_to.pagedimg_png}" }58 'desc' => "{PowerPointPlugin.convert_to.pagedimg_png}" } 59 59 ]; 60 60 … … 66 66 { 'name' => "text", 67 67 'desc' => "{ConvertBinaryFile.convert_to.text}" }, 68 { 'name' => "pagedimg", 69 'desc' => "{PowerPointPlugin.convert_to.pagedimg}" } 70 ]; 71 72 my $openoffice_extra_convert_to_list = 73 [ { 'name' => "html_multi", 74 'desc' => "{PowerPointPlugin.convert_to.html_multi}" }, 68 75 { 'name' => "pagedimg", 69 76 'desc' => "{PowerPointPlugin.convert_to.pagedimg}" } … … 119 126 push(@{$hashArgOptLists->{"OptList"}},$options); 120 127 128 my $auto_converter_self = new AutoLoadConverters($pluginlist,$inputargs,$hashArgOptLists,["OpenOfficeConverter"],1); 129 121 130 if ($ENV{'GSDLOS'} =~ m/^windows$/i) { 131 if ($auto_converter_self->{'openoffice_available'}) { 132 # add openoffice convert_to options into list 133 push (@$windows_convert_to_list, @$openoffice_extra_convert_to_list); 134 } 122 135 push(@$arguments,@$opt_windows_args); 123 136 } 124 125 my $auto_converter_self = new AutoLoadConverters($pluginlist,$inputargs,$hashArgOptLists,["OpenOfficeConverter"],1); 126 127 if ($auto_converter_self->{'openoffice_available'}) { 137 elsif ($auto_converter_self->{'openoffice_available'}) { 128 138 push (@$arguments,@$opt_office_args); 129 139 $openoffice_available = 1;
Note:
See TracChangeset
for help on using the changeset viewer.