Revision a7403105
Von Moritz Bunkus vor etwa 18 Jahren hinzugefügt
bin/mozilla/am.pl | ||
---|---|---|
2907 | 2907 |
$myconfig{$item} =~ s/\\n/\r\n/g; |
2908 | 2908 |
} |
2909 | 2909 |
|
2910 |
@formats = (); |
|
2911 |
if ($opendocument_templates && $openofficeorg_writer_bin && |
|
2912 |
$xvfb_bin && (-x $openofficeorg_writer_bin) && (-x $xvfb_bin)) { |
|
2913 |
push(@formats, { "name" => $locale->text("PDF (OpenDocument/OASIS)"), |
|
2914 |
"value" => "opendocument_pdf" }); |
|
2915 |
} |
|
2916 |
if ($latex_templates) { |
|
2917 |
push(@formats, { "name" => $locale->text("PDF"), "value" => "pdf" }); |
|
2918 |
} |
|
2919 |
push(@formats, { "name" => "HTML", "value" => "html" }); |
|
2920 |
if ($latex_templates) { |
|
2921 |
push(@formats, { "name" => $locale->text("Postscript"), |
|
2922 |
"value" => "postscript" }); |
|
2923 |
} |
|
2924 |
if ($opendocument_templates) { |
|
2925 |
push(@formats, { "name" => $locale->text("OpenDocument/OASIS"), |
|
2926 |
"value" => "opendocument" }); |
|
2927 |
} |
|
2928 |
|
|
2929 |
if (!$myconfig{"template_format"}) { |
|
2930 |
$myconfig{"template_format"} = "pdf"; |
|
2931 |
} |
|
2932 |
$template_format = ""; |
|
2933 |
foreach $item (@formats) { |
|
2934 |
$template_format .= |
|
2935 |
"<option value=\"$item->{value}\"" . |
|
2936 |
($item->{"value"} eq $myconfig{"template_format"} ? |
|
2937 |
" selected" : "") . |
|
2938 |
">" . H($item->{"name"}) . "</option>"; |
|
2939 |
} |
|
2940 |
|
|
2910 | 2941 |
%countrycodes = User->country_codes; |
2911 | 2942 |
$countrycodes = ''; |
2912 | 2943 |
foreach $key (sort { $countrycodes{$a} cmp $countrycodes{$b} } |
... | ... | |
3038 | 3069 |
<input name=menustyle type=radio class=radio value=old $oldS> Old</td> |
3039 | 3070 |
</tr> |
3040 | 3071 |
<input name=printer type=hidden value="$myconfig{printer}"> |
3072 |
<tr class=listheading> |
|
3073 |
<th colspan=2>| . $locale->text("Print options") . qq|</th> |
|
3074 |
</tr> |
|
3075 |
<tr> |
|
3076 |
<th align=right>| . $locale->text('Default template format') . qq|</th> |
|
3077 |
<td><select name="template_format">$template_format</select></td> |
|
3078 |
</tr> |
|
3079 |
<tr> |
|
3080 |
<th align=right>| . $locale->text('Number of copies') . qq|</th> |
|
3081 |
<td><input name="copies" size="10" value="| . |
|
3082 |
$form->quote($myconfig{"copies"}) . qq|"></td> |
|
3083 |
</tr> |
|
3084 |
|
|
3085 |
|
|
3041 | 3086 |
<tr class=listheading> |
3042 | 3087 |
<th colspan=2> </th> |
3043 | 3088 |
</tr> |
Auch abrufbar als: Unified diff
Das Vorlagenformat, das beim Aufrufen der Masken vorausgewählt ist, kann jetzt in den Benutzereinstellungen festgelegt werden.