Lines 212-219
Link Here
|
212 |
"Type", "Application", |
212 |
"Type", "Application", |
213 |
# "Exec", "\"<progpath>/program/$prog\"", |
213 |
# "Exec", "\"<progpath>/program/$prog\"", |
214 |
"Exec", "<progpath>/program/$prog", |
214 |
"Exec", "<progpath>/program/$prog", |
215 |
"Icon", "<progpath>/share/icons/$icon.png" , |
215 |
"Icon", "<progpath>/share/icons/$icon.png" , |
216 |
"MimeType", "$mime_types", |
216 |
"MimeType", "$mime_types", |
|
|
217 |
"Categories", "Application;Office", |
217 |
"Name[$lang]", $name, |
218 |
"Name[$lang]", $name, |
218 |
# "Comment[$lang]", *ref->{ sprintf("<%s_control_label>", $name), |
219 |
# "Comment[$lang]", *ref->{ sprintf("<%s_control_label>", $name), |
219 |
"MultipleArgs", "false", |
220 |
"MultipleArgs", "false", |
Lines 280-293
Link Here
|
280 |
local($outpath, $name, $prog, $icon, $lang, *ref) = @_; |
281 |
local($outpath, $name, $prog, $icon, $lang, *ref) = @_; |
281 |
my($outfile, $infile); |
282 |
my($outfile, $infile); |
282 |
my(%replace) = ( |
283 |
my(%replace) = ( |
283 |
"Type", "Application", |
284 |
"Type", "Application", |
284 |
# "Exec", "\"<progpath>/program/$prog\"", |
285 |
# "Exec", "\"<progpath>/program/$prog\"", |
285 |
"Exec", "<progpath>/program/$prog", |
286 |
"Exec", "<progpath>/program/$prog", |
286 |
"Icon", "<progpath>/share/icons/$icon.png" , |
287 |
"Icon", "<progpath>/share/icons/$icon.png" , |
287 |
"Name[$lang]", *ref->{ sprintf("<%s_action_label>", $name) }, |
288 |
"Categories", "Application;Setup", |
288 |
# "Comment[$lang]", *ref->{ sprintf("<%s_action_label>", $name) } |
289 |
"Name[$lang]", $name, |
|
|
290 |
# "Comment[$lang]", *ref->{ sprintf("<%s_control_label>", $name), |
289 |
"MultipleArgs", "false", |
291 |
"MultipleArgs", "false", |
290 |
"Terminal", "false", |
292 |
"Terminal", "false" |
291 |
); |
293 |
); |
292 |
|
294 |
|
293 |
# finally write desktop entry file |
295 |
# finally write desktop entry file |
Lines 431-437
Link Here
|
431 |
local($out_dir, $lang, *ref) = @_; |
433 |
local($out_dir, $lang, *ref) = @_; |
432 |
|
434 |
|
433 |
# create language specific control files |
435 |
# create language specific control files |
434 |
createControl($out_dir, "%PRODUCTNAME Calc", "spreadsheet", "ooo_calc", "scalc", "application/vnd.sun.xml.calc application/vnd.stardivision.calc application/vnd.stardivision.chart", $lang, *ref); |
436 |
createControl($out_dir, "%PRODUCTNAME Calc", "spreadsheet", "ooo_calc", "scalc", "application/vnd.sun.xml.calc application/vnd.stardivision.calc application/vnd.stardivision.chart", $lang,, *ref); |
435 |
|
437 |
|
436 |
# create data type files |
438 |
# create data type files |
437 |
# createDataType($out_dir, "vnd.sun.xml.calc.document", "vnd.sun.xml.calc", "*.[sS][xX][cC]", "004_spreadsheet_document", "spreadsheet"); |
439 |
# createDataType($out_dir, "vnd.sun.xml.calc.document", "vnd.sun.xml.calc", "*.[sS][xX][cC]", "004_spreadsheet_document", "spreadsheet"); |
Lines 474-480
Link Here
|
474 |
# createDataType($out_dir, "vnd.stardivision.draw.impress", "vnd.stardivision.impress", "*.[sS][dD][dD]", "009_presentation_document", "presentation"); |
476 |
# createDataType($out_dir, "vnd.stardivision.draw.impress", "vnd.stardivision.impress", "*.[sS][dD][dD]", "009_presentation_document", "presentation"); |
475 |
} |
477 |
} |
476 |
|
478 |
|
477 |
|
|
|
478 |
#********************************************************************* |
479 |
#********************************************************************* |
479 |
# |
480 |
# |
480 |
# main |
481 |
# main |
Lines 528-539
Link Here
|
528 |
%replace = getNLSStrings(sprintf("%s/$zipkind.%s", $res_dir, $locale)); |
529 |
%replace = getNLSStrings(sprintf("%s/$zipkind.%s", $res_dir, $locale)); |
529 |
|
530 |
|
530 |
SWITCH: { |
531 |
SWITCH: { |
531 |
if ( $zipkind eq "group" ) { createOfficeGroupFiles ( $target_dir, $locale, \%replace ); last SWITCH; } |
532 |
if ( $zipkind eq "group" ) { createOfficeGroupFiles ( $target_dir, $locale, \%replace ); last SWITCH; } |
532 |
if ( $zipkind eq "writer" ) { createOfficeWriterFiles ( $target_dir, $locale, \%replace ); last SWITCH; } |
533 |
if ( $zipkind eq "writer" ) { createOfficeWriterFiles ( $target_dir, $locale, \%replace ); last SWITCH; } |
533 |
if ( $zipkind eq "calc" ) { createOfficeCalcFiles ( $target_dir, $locale, \%replace ); last SWITCH; } |
534 |
if ( $zipkind eq "calc" ) { createOfficeCalcFiles ( $target_dir, $locale, \%replace ); last SWITCH; } |
534 |
if ( $zipkind eq "draw" ) { createOfficeDrawFiles ( $target_dir, $locale, \%replace ); last SWITCH; } |
535 |
if ( $zipkind eq "draw" ) { createOfficeDrawFiles ( $target_dir, $locale, \%replace ); last SWITCH; } |
535 |
if ( $zipkind eq "impress" ) { createOfficeImpressFiles( $target_dir, $locale, \%replace ); last SWITCH; } |
536 |
if ( $zipkind eq "impress" ) { createOfficeImpressFiles ( $target_dir, $locale, \%replace ); last SWITCH; } |
536 |
if ( $zipkind eq "math" ) { createOfficeMathFiles ( $target_dir, $locale, \%replace ); last SWITCH; } |
537 |
if ( $zipkind eq "math" ) { createOfficeMathFiles ( $target_dir, $locale, \%replace ); last SWITCH; } |
537 |
} |
538 |
} |
538 |
} |
539 |
} |
539 |
|
540 |
|