summaryrefslogtreecommitdiff
path: root/sysui
diff options
context:
space:
mode:
Diffstat (limited to 'sysui')
-rwxr-xr-xsysui/desktop/cleanversion/makefile.mk50
-rwxr-xr-xsysui/desktop/debian/control6
-rwxr-xr-xsysui/desktop/debian/makefile.mk96
-rwxr-xr-xsysui/desktop/debian/openoffice.org-debian-menus42
-rwxr-xr-xsysui/desktop/debian/postinst165
-rwxr-xr-xsysui/desktop/debian/postrm26
-rwxr-xr-xsysui/desktop/debian/prerm10
-rwxr-xr-xsysui/desktop/freedesktop/freedesktop-menus.spec395
-rwxr-xr-xsysui/desktop/freedesktop/makefile.mk59
-rwxr-xr-xsysui/desktop/icons/base.icnsbin0 -> 56259 bytes
-rwxr-xr-xsysui/desktop/icons/calc.icnsbin0 -> 51959 bytes
-rwxr-xr-xsysui/desktop/icons/configuration.icnsbin0 -> 50975 bytes
-rwxr-xr-xsysui/desktop/icons/database.icnsbin0 -> 45789 bytes
-rw-r--r--sysui/desktop/icons/database.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/draw.icnsbin0 -> 54777 bytes
-rwxr-xr-xsysui/desktop/icons/drawing-template.icnsbin0 -> 46225 bytes
-rw-r--r--sysui/desktop/icons/drawing-template.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/drawing.icnsbin0 -> 43334 bytes
-rw-r--r--sysui/desktop/icons/drawing.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/empty-document.icnsbin0 -> 35005 bytes
-rw-r--r--sysui/desktop/icons/empty-document.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/empty-template.icnsbin0 -> 35005 bytes
-rw-r--r--sysui/desktop/icons/empty-template.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/extension.icnsbin0 -> 39192 bytes
-rwxr-xr-xsysui/desktop/icons/formula.icnsbin0 -> 43893 bytes
-rw-r--r--sysui/desktop/icons/formula.icobin0 -> 26918 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/apps/base.pngbin0 -> 8446 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/apps/calc.pngbin0 -> 7002 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/apps/draw.pngbin0 -> 8228 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/apps/impress.pngbin0 -> 6617 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/apps/main.pngbin0 -> 2271 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/apps/math.pngbin0 -> 7538 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/apps/startcenter.pngbin0 -> 2271 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/apps/writer.pngbin0 -> 6723 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-database.pngbin0 -> 8446 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-drawing-template.pngbin0 -> 12658 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-drawing.pngbin0 -> 8228 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-formula.pngbin0 -> 7538 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-master-document.pngbin0 -> 4218 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-presentation-template.pngbin0 -> 11408 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-presentation.pngbin0 -> 6617 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-spreadsheet-template.pngbin0 -> 11620 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-spreadsheet.pngbin0 -> 7002 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-text-template.pngbin0 -> 11171 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-text.pngbin0 -> 6723 bytes
-rw-r--r--sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-web-template.pngbin0 -> 7817 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/apps/base.pngbin0 -> 632 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/apps/calc.pngbin0 -> 539 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/apps/draw.pngbin0 -> 653 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/apps/impress.pngbin0 -> 577 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/apps/main.pngbin0 -> 434 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/apps/math.pngbin0 -> 395 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/apps/printeradmin.pngbin0 -> 544 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/apps/startcenter.pngbin0 -> 434 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/apps/writer.pngbin0 -> 532 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/database.pngbin0 -> 291 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/drawing-template.pngbin0 -> 348 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/drawing.pngbin0 -> 354 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/extension.pngbin0 -> 557 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/formula.pngbin0 -> 252 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/master-document.pngbin0 -> 310 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-database.pngbin0 -> 632 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-drawing-template.pngbin0 -> 707 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-drawing.pngbin0 -> 653 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-formula.pngbin0 -> 395 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-master-document.pngbin0 -> 487 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-presentation-template.pngbin0 -> 626 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-presentation.pngbin0 -> 577 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-spreadsheet-template.pngbin0 -> 567 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-spreadsheet.pngbin0 -> 539 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-text-template.pngbin0 -> 562 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-text.pngbin0 -> 532 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-web-template.pngbin0 -> 593 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/presentation-template.pngbin0 -> 303 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/presentation.pngbin0 -> 302 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/spreadsheet-template.pngbin0 -> 287 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/spreadsheet.pngbin0 -> 271 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/text-template.pngbin0 -> 240 bytes
-rw-r--r--sysui/desktop/icons/hicolor/16x16/mimetypes/text.pngbin0 -> 245 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/apps/base.pngbin0 -> 1329 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/apps/calc.pngbin0 -> 1015 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/apps/draw.pngbin0 -> 1271 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/apps/impress.pngbin0 -> 1042 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/apps/main.pngbin0 -> 698 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/apps/math.pngbin0 -> 1128 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/apps/printeradmin.pngbin0 -> 1104 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/apps/startcenter.pngbin0 -> 698 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/apps/writer.pngbin0 -> 987 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/database.pngbin0 -> 529 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/drawing-template.pngbin0 -> 1344 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/drawing.pngbin0 -> 1483 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/extension.pngbin0 -> 1301 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/formula.pngbin0 -> 1349 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/master-document.pngbin0 -> 1559 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-database.pngbin0 -> 1329 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-drawing-template.pngbin0 -> 1352 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-drawing.pngbin0 -> 1271 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-formula.pngbin0 -> 1128 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-master-document.pngbin0 -> 867 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-presentation-template.pngbin0 -> 1390 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-presentation.pngbin0 -> 1042 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-spreadsheet-template.pngbin0 -> 1281 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-spreadsheet.pngbin0 -> 1015 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-text-template.pngbin0 -> 1328 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-text.pngbin0 -> 987 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-web-template.pngbin0 -> 1127 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/presentation-template.pngbin0 -> 1403 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/presentation.pngbin0 -> 1515 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/spreadsheet-template.pngbin0 -> 1211 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/spreadsheet.pngbin0 -> 1301 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/text-template.pngbin0 -> 1211 bytes
-rw-r--r--sysui/desktop/icons/hicolor/32x32/mimetypes/text.pngbin0 -> 1406 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/apps/base.pngbin0 -> 2135 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/apps/calc.pngbin0 -> 1465 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/apps/draw.pngbin0 -> 1690 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/apps/impress.pngbin0 -> 1560 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/apps/main.pngbin0 -> 990 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/apps/math.pngbin0 -> 1588 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/apps/printeradmin.pngbin0 -> 1629 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/apps/startcenter.pngbin0 -> 990 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/apps/writer.pngbin0 -> 1332 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/database.pngbin0 -> 652 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/drawing-template.pngbin0 -> 1819 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/drawing.pngbin0 -> 1913 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/extension.pngbin0 -> 2269 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/formula.pngbin0 -> 1803 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/master-document.pngbin0 -> 2003 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-database.pngbin0 -> 2135 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-drawing-template.pngbin0 -> 2087 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-drawing.pngbin0 -> 1690 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-formula.pngbin0 -> 1588 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-master-document.pngbin0 -> 1399 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-presentation-template.pngbin0 -> 1979 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-presentation.pngbin0 -> 1560 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-spreadsheet-template.pngbin0 -> 1644 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-spreadsheet.pngbin0 -> 1465 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-text-template.pngbin0 -> 1653 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-text.pngbin0 -> 1332 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-web-template.pngbin0 -> 1577 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/presentation-template.pngbin0 -> 2044 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/presentation.pngbin0 -> 2043 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/spreadsheet-template.pngbin0 -> 1599 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/spreadsheet.pngbin0 -> 1684 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/text-template.pngbin0 -> 1687 bytes
-rw-r--r--sysui/desktop/icons/hicolor/48x48/mimetypes/text.pngbin0 -> 1764 bytes
-rwxr-xr-xsysui/desktop/icons/impress.icnsbin0 -> 53113 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/apps/base.pngbin0 -> 361 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/apps/calc.pngbin0 -> 383 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/apps/draw.pngbin0 -> 378 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/apps/impress.pngbin0 -> 373 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/apps/math.pngbin0 -> 392 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/apps/printeradmin.pngbin0 -> 532 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/apps/startcenter.pngbin0 -> 361 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/apps/writer.pngbin0 -> 380 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/database.pngbin0 -> 291 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/drawing-template.pngbin0 -> 348 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/drawing.pngbin0 -> 354 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/extension.pngbin0 -> 309 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/formula.pngbin0 -> 252 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/master-document.pngbin0 -> 310 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/oasis-database.pngbin0 -> 414 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/oasis-drawing-template.pngbin0 -> 394 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/oasis-drawing.pngbin0 -> 419 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/oasis-formula.pngbin0 -> 423 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/oasis-master-document.pngbin0 -> 416 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/oasis-presentation-template.pngbin0 -> 417 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/oasis-presentation.pngbin0 -> 416 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/oasis-spreadsheet-template.pngbin0 -> 396 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/oasis-spreadsheet.pngbin0 -> 395 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/oasis-text-template.pngbin0 -> 393 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/oasis-text.pngbin0 -> 397 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/oasis-web-template.pngbin0 -> 437 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/presentation-template.pngbin0 -> 303 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/presentation.pngbin0 -> 302 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/spreadsheet-template.pngbin0 -> 287 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/spreadsheet.pngbin0 -> 271 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/text-template.pngbin0 -> 240 bytes
-rw-r--r--sysui/desktop/icons/locolor/16x16/mimetypes/text.pngbin0 -> 245 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/apps/base.pngbin0 -> 611 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/apps/calc.pngbin0 -> 629 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/apps/draw.pngbin0 -> 639 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/apps/impress.pngbin0 -> 606 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/apps/math.pngbin0 -> 616 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/apps/printeradmin.pngbin0 -> 1126 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/apps/startcenter.pngbin0 -> 611 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/apps/writer.pngbin0 -> 541 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/database.pngbin0 -> 529 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/drawing-template.pngbin0 -> 1344 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/drawing.pngbin0 -> 1483 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/extension.pngbin0 -> 504 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/formula.pngbin0 -> 1349 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/master-document.pngbin0 -> 1559 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/oasis-database.pngbin0 -> 780 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/oasis-drawing-template.pngbin0 -> 667 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/oasis-drawing.pngbin0 -> 779 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/oasis-formula.pngbin0 -> 742 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/oasis-master-document.pngbin0 -> 758 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/oasis-presentation-template.pngbin0 -> 678 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/oasis-presentation.pngbin0 -> 752 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/oasis-spreadsheet-template.pngbin0 -> 653 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/oasis-spreadsheet.pngbin0 -> 774 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/oasis-text-template.pngbin0 -> 624 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/oasis-text.pngbin0 -> 702 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/oasis-web-template.pngbin0 -> 801 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/presentation-template.pngbin0 -> 1403 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/presentation.pngbin0 -> 1515 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/spreadsheet-template.pngbin0 -> 1211 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/spreadsheet.pngbin0 -> 1301 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/text-template.pngbin0 -> 1211 bytes
-rw-r--r--sysui/desktop/icons/locolor/32x32/mimetypes/text.pngbin0 -> 1406 bytes
-rwxr-xr-xsysui/desktop/icons/macro.icnsbin0 -> 53951 bytes
-rwxr-xr-xsysui/desktop/icons/main.icnsbin0 -> 35005 bytes
-rw-r--r--sysui/desktop/icons/main.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/makefile.mk135
-rwxr-xr-xsysui/desktop/icons/master-document.icnsbin0 -> 40262 bytes
-rw-r--r--sysui/desktop/icons/master-document.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/math.icnsbin0 -> 52282 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-chart.icnsbin0 -> 60133 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-database.icnsbin0 -> 45789 bytes
-rw-r--r--sysui/desktop/icons/oasis-database.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-drawing-template.icnsbin0 -> 46225 bytes
-rw-r--r--sysui/desktop/icons/oasis-drawing-template.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-drawing.icnsbin0 -> 43334 bytes
-rw-r--r--sysui/desktop/icons/oasis-drawing.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-empty-document.icnsbin0 -> 35005 bytes
-rw-r--r--sysui/desktop/icons/oasis-empty-document.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-empty-template.icnsbin0 -> 35005 bytes
-rw-r--r--sysui/desktop/icons/oasis-empty-template.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-formula.icnsbin0 -> 43893 bytes
-rw-r--r--sysui/desktop/icons/oasis-formula.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-master-document.icnsbin0 -> 40262 bytes
-rw-r--r--sysui/desktop/icons/oasis-master-document.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-presentation-template.icnsbin0 -> 44901 bytes
-rw-r--r--sysui/desktop/icons/oasis-presentation-template.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-presentation.icnsbin0 -> 41919 bytes
-rw-r--r--sysui/desktop/icons/oasis-presentation.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-spreadsheet-template.icnsbin0 -> 46239 bytes
-rw-r--r--sysui/desktop/icons/oasis-spreadsheet-template.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-spreadsheet.icnsbin0 -> 43146 bytes
-rw-r--r--sysui/desktop/icons/oasis-spreadsheet.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-text-template.icnsbin0 -> 43403 bytes
-rw-r--r--sysui/desktop/icons/oasis-text-template.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-text.icnsbin0 -> 40399 bytes
-rw-r--r--sysui/desktop/icons/oasis-text.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/oasis-web-template.icnsbin0 -> 42359 bytes
-rw-r--r--sysui/desktop/icons/oasis-web-template.icobin0 -> 26918 bytes
-rw-r--r--sysui/desktop/icons/ooo-base-app.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-base-doc.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-calc-app.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-calc-doc.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-calc-tem.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-chart-doc.icobin0 -> 25214 bytes
-rw-r--r--sysui/desktop/icons/ooo-configuration.icobin0 -> 25214 bytes
-rw-r--r--sysui/desktop/icons/ooo-draw-app.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-draw-doc.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-draw-tem.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-empty-doc.icobin0 -> 25214 bytes
-rw-r--r--sysui/desktop/icons/ooo-empty-tem.icobin0 -> 25214 bytes
-rw-r--r--sysui/desktop/icons/ooo-image-doc.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-impress-app.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-impress-doc.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-impress-tem.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-macro-doc.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-main-app.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-master-doc.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-math-app.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-math-doc.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-open.icobin0 -> 25214 bytes
-rw-r--r--sysui/desktop/icons/ooo-printer.icobin0 -> 25214 bytes
-rw-r--r--sysui/desktop/icons/ooo-web-doc.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-writer-app.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-writer-doc.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo-writer-tem.icobin0 -> 92854 bytes
-rw-r--r--sysui/desktop/icons/ooo11-base-doc.icobin0 -> 10638 bytes
-rw-r--r--sysui/desktop/icons/ooo11-calc-doc.icobin0 -> 10638 bytes
-rw-r--r--sysui/desktop/icons/ooo11-calc-tem.icobin0 -> 10638 bytes
-rw-r--r--sysui/desktop/icons/ooo11-chart-doc.icobin0 -> 10638 bytes
-rw-r--r--sysui/desktop/icons/ooo11-draw-doc.icobin0 -> 10638 bytes
-rw-r--r--sysui/desktop/icons/ooo11-draw-tem.icobin0 -> 10638 bytes
-rw-r--r--sysui/desktop/icons/ooo11-impress-doc.icobin0 -> 10638 bytes
-rw-r--r--sysui/desktop/icons/ooo11-impress-tem.icobin0 -> 10638 bytes
-rw-r--r--sysui/desktop/icons/ooo11-master-doc.icobin0 -> 10638 bytes
-rw-r--r--sysui/desktop/icons/ooo11-math-doc.icobin0 -> 10638 bytes
-rw-r--r--sysui/desktop/icons/ooo11-writer-doc.icobin0 -> 10638 bytes
-rw-r--r--sysui/desktop/icons/ooo11-writer-tem.icobin0 -> 10638 bytes
-rwxr-xr-xsysui/desktop/icons/ooo3_base_app.icnsbin0 -> 45789 bytes
-rw-r--r--sysui/desktop/icons/ooo3_base_app.icobin0 -> 26918 bytes
-rw-r--r--sysui/desktop/icons/ooo3_base_doc.icobin0 -> 295606 bytes
-rwxr-xr-xsysui/desktop/icons/ooo3_calc_app.icnsbin0 -> 43146 bytes
-rw-r--r--sysui/desktop/icons/ooo3_calc_app.icobin0 -> 26918 bytes
-rw-r--r--sysui/desktop/icons/ooo3_calc_doc.icobin0 -> 295606 bytes
-rw-r--r--sysui/desktop/icons/ooo3_calc_tem.icobin0 -> 295606 bytes
-rw-r--r--sysui/desktop/icons/ooo3_chart_doc.icobin0 -> 295606 bytes
-rwxr-xr-xsysui/desktop/icons/ooo3_draw_app.icnsbin0 -> 43334 bytes
-rw-r--r--sysui/desktop/icons/ooo3_draw_app.icobin0 -> 26918 bytes
-rw-r--r--sysui/desktop/icons/ooo3_draw_doc.icobin0 -> 295606 bytes
-rw-r--r--sysui/desktop/icons/ooo3_draw_tem.icobin0 -> 295606 bytes
-rw-r--r--sysui/desktop/icons/ooo3_empty_doc.icobin0 -> 295606 bytes
-rw-r--r--sysui/desktop/icons/ooo3_empty_tem.icobin0 -> 295606 bytes
-rw-r--r--sysui/desktop/icons/ooo3_global_doc.icobin0 -> 295606 bytes
-rw-r--r--sysui/desktop/icons/ooo3_html_doc.icobin0 -> 295606 bytes
-rwxr-xr-xsysui/desktop/icons/ooo3_impress_app.icnsbin0 -> 41919 bytes
-rw-r--r--sysui/desktop/icons/ooo3_impress_app.icobin0 -> 26918 bytes
-rw-r--r--sysui/desktop/icons/ooo3_impress_doc.icobin0 -> 295606 bytes
-rw-r--r--sysui/desktop/icons/ooo3_impress_tem.icobin0 -> 295606 bytes
-rw-r--r--sysui/desktop/icons/ooo3_macro_doc.icobin0 -> 295606 bytes
-rwxr-xr-xsysui/desktop/icons/ooo3_main_app.icnsbin0 -> 35005 bytes
-rw-r--r--sysui/desktop/icons/ooo3_main_app.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/ooo3_math_app.icnsbin0 -> 43893 bytes
-rw-r--r--sysui/desktop/icons/ooo3_math_app.icobin0 -> 26918 bytes
-rw-r--r--sysui/desktop/icons/ooo3_math_doc.icobin0 -> 295606 bytes
-rwxr-xr-xsysui/desktop/icons/ooo3_open.icnsbin0 -> 35005 bytes
-rw-r--r--sysui/desktop/icons/ooo3_open.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/ooo3_writer_app.icnsbin0 -> 40399 bytes
-rw-r--r--sysui/desktop/icons/ooo3_writer_app.icobin0 -> 26918 bytes
-rw-r--r--sysui/desktop/icons/ooo3_writer_doc.icobin0 -> 295606 bytes
-rw-r--r--sysui/desktop/icons/ooo3_writer_tem.icobin0 -> 295606 bytes
-rwxr-xr-xsysui/desktop/icons/open.icnsbin0 -> 50105 bytes
-rw-r--r--sysui/desktop/icons/oxt-extension.icobin0 -> 25214 bytes
-rwxr-xr-xsysui/desktop/icons/presentation-template.icnsbin0 -> 44901 bytes
-rw-r--r--sysui/desktop/icons/presentation-template.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/presentation.icnsbin0 -> 41919 bytes
-rw-r--r--sysui/desktop/icons/presentation.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/printer.icnsbin0 -> 50434 bytes
-rwxr-xr-xsysui/desktop/icons/spreadsheet-template.icnsbin0 -> 46239 bytes
-rw-r--r--sysui/desktop/icons/spreadsheet-template.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/spreadsheet.icnsbin0 -> 43146 bytes
-rw-r--r--sysui/desktop/icons/spreadsheet.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/text-template.icnsbin0 -> 43403 bytes
-rw-r--r--sysui/desktop/icons/text-template.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/text.icnsbin0 -> 40399 bytes
-rw-r--r--sysui/desktop/icons/text.icobin0 -> 26918 bytes
-rwxr-xr-xsysui/desktop/icons/writer.icnsbin0 -> 49850 bytes
-rwxr-xr-xsysui/desktop/macosx/Info.plist1408
-rwxr-xr-xsysui/desktop/macosx/delzip0
-rwxr-xr-xsysui/desktop/macosx/gen_strings.pl116
-rwxr-xr-xsysui/desktop/macosx/list_icons.pl84
-rwxr-xr-xsysui/desktop/macosx/makefile.mk86
-rw-r--r--sysui/desktop/man/README1
-rw-r--r--sysui/desktop/man/libreoffice.1246
-rw-r--r--sysui/desktop/man/unopkg.180
-rwxr-xr-xsysui/desktop/mandriva/makefile.mk59
-rwxr-xr-xsysui/desktop/mandriva/mandriva-menus.spec348
-rwxr-xr-xsysui/desktop/menus/base.desktop13
-rwxr-xr-xsysui/desktop/menus/calc.desktop13
-rwxr-xr-xsysui/desktop/menus/draw.desktop13
-rwxr-xr-xsysui/desktop/menus/impress.desktop13
-rwxr-xr-xsysui/desktop/menus/javafilter.desktop10
-rwxr-xr-xsysui/desktop/menus/math.desktop13
-rwxr-xr-xsysui/desktop/menus/printeradmin.desktop10
-rwxr-xr-xsysui/desktop/menus/qstart.desktop10
-rwxr-xr-xsysui/desktop/menus/startcenter.desktop12
-rwxr-xr-xsysui/desktop/menus/writer.desktop13
-rwxr-xr-xsysui/desktop/mimetypes/drawing-template.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/drawing-template.keys10
-rwxr-xr-xsysui/desktop/mimetypes/drawing.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/drawing.keys10
-rwxr-xr-xsysui/desktop/mimetypes/extension.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/extension.keys10
-rwxr-xr-xsysui/desktop/mimetypes/formula.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/formula.keys10
-rwxr-xr-xsysui/desktop/mimetypes/master-document.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/master-document.keys10
-rwxr-xr-xsysui/desktop/mimetypes/ms-excel-sheet-12.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/ms-excel-sheet-12.keys10
-rwxr-xr-xsysui/desktop/mimetypes/ms-excel-sheet-binary-12.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/ms-excel-sheet-binary-12.keys10
-rwxr-xr-xsysui/desktop/mimetypes/ms-excel-sheet.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/ms-excel-sheet.keys10
-rwxr-xr-xsysui/desktop/mimetypes/ms-excel-template-12.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/ms-excel-template-12.keys10
-rwxr-xr-xsysui/desktop/mimetypes/ms-powerpoint-presentation-12.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/ms-powerpoint-presentation-12.keys10
-rwxr-xr-xsysui/desktop/mimetypes/ms-powerpoint-presentation.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/ms-powerpoint-presentation.keys10
-rwxr-xr-xsysui/desktop/mimetypes/ms-powerpoint-template-12.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/ms-powerpoint-template-12.keys10
-rwxr-xr-xsysui/desktop/mimetypes/ms-word-document-12.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/ms-word-document-12.keys10
-rwxr-xr-xsysui/desktop/mimetypes/ms-word-document.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/ms-word-document.keys10
-rwxr-xr-xsysui/desktop/mimetypes/ms-word-document2.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/ms-word-document2.keys10
-rwxr-xr-xsysui/desktop/mimetypes/ms-word-template-12.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/ms-word-template-12.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-database.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-database.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-drawing-flat-xml.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-drawing-flat-xml.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-drawing-template.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-drawing-template.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-drawing.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-drawing.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-formula.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-formula.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-master-document.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-master-document.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-presentation-flat-xml.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-presentation-flat-xml.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-presentation-template.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-presentation-template.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-presentation.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-presentation.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-spreadsheet-flat-xml.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-spreadsheet-flat-xml.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-spreadsheet-template.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-spreadsheet-template.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-spreadsheet.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-spreadsheet.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-text-flat-xml.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-text-flat-xml.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-text-template.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-text-template.keys9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-text.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-text.keys10
-rwxr-xr-xsysui/desktop/mimetypes/oasis-web-template.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/oasis-web-template.keys10
-rwxr-xr-xsysui/desktop/mimetypes/openoffice.applications9
-rwxr-xr-xsysui/desktop/mimetypes/openoffice.mime95
-rwxr-xr-xsysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-presentation.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-presentation.keys10
-rwxr-xr-xsysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-template.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-template.keys10
-rwxr-xr-xsysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-sheet.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-sheet.keys10
-rwxr-xr-xsysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-template.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-template.keys10
-rwxr-xr-xsysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-document.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-document.keys10
-rwxr-xr-xsysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-template.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-template.keys10
-rwxr-xr-xsysui/desktop/mimetypes/presentation-template.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/presentation-template.keys10
-rwxr-xr-xsysui/desktop/mimetypes/presentation.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/presentation.keys10
-rwxr-xr-xsysui/desktop/mimetypes/spreadsheet-template.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/spreadsheet-template.keys10
-rwxr-xr-xsysui/desktop/mimetypes/spreadsheet.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/spreadsheet.keys10
-rwxr-xr-xsysui/desktop/mimetypes/text-template.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/text-template.keys9
-rwxr-xr-xsysui/desktop/mimetypes/text.desktop9
-rwxr-xr-xsysui/desktop/mimetypes/text.keys10
-rwxr-xr-xsysui/desktop/os2/makefile.mk123
-rw-r--r--sysui/desktop/os2/ooo-base-app.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-base-doc.icobin0 -> 11644 bytes
-rw-r--r--sysui/desktop/os2/ooo-calc-app.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-calc-doc.icobin0 -> 11644 bytes
-rw-r--r--sysui/desktop/os2/ooo-calc-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-chart-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-configuration.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-draw-app.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-draw-doc.icobin0 -> 11644 bytes
-rw-r--r--sysui/desktop/os2/ooo-draw-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-empty-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-empty-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-image-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-impress-app.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-impress-doc.icobin0 -> 11644 bytes
-rw-r--r--sysui/desktop/os2/ooo-impress-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-macro-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-main-app.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-master-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-math-app.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-math-doc.icobin0 -> 11644 bytes
-rw-r--r--sysui/desktop/os2/ooo-open.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-printer.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-web-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-writer-app.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo-writer-doc.icobin0 -> 11644 bytes
-rw-r--r--sysui/desktop/os2/ooo-writer-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo11-base-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo11-calc-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo11-calc-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo11-chart-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo11-draw-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo11-draw-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo11-impress-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo11-impress-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo11-master-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo11-math-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo11-writer-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/ooo11-writer-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so7-base-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so7-calc-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so7-calc-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so7-chart-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so7-draw-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so7-draw-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so7-impress-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so7-impress-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so7-master-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so7-math-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so7-writer-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so7-writer-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-base-app.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-base-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-calc-app.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-calc-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-calc-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-chart-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-configuration.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-draw-app.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-draw-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-draw-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-empty-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-empty-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-image-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-impress-app.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-impress-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-impress-tem.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-macro-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-main-app.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-master-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-math-app.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-math-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-open.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-printer.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-web-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-writer-app.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-writer-doc.icobin0 -> 5604 bytes
-rw-r--r--sysui/desktop/os2/so8-writer-tem.icobin0 -> 5604 bytes
-rwxr-xr-xsysui/desktop/productversion.mk80
-rwxr-xr-xsysui/desktop/redhat/makefile.mk59
-rwxr-xr-xsysui/desktop/redhat/redhat-menus.spec365
-rwxr-xr-xsysui/desktop/share/add_specfile_triggers.sed4
-rwxr-xr-xsysui/desktop/share/brand.pl135
-rwxr-xr-xsysui/desktop/share/create_mime_xml.pl89
-rwxr-xr-xsysui/desktop/share/create_tree.sh71
-rwxr-xr-xsysui/desktop/share/documents.ulf107
-rwxr-xr-xsysui/desktop/share/launcher_comment.ulf21
-rwxr-xr-xsysui/desktop/share/launcher_genericname.ulf23
-rwxr-xr-xsysui/desktop/share/launcher_name.ulf3
-rwxr-xr-xsysui/desktop/share/makefile.mk264
-rwxr-xr-xsysui/desktop/share/openoffice.sh2
-rwxr-xr-xsysui/desktop/share/printeradmin.sh3
-rwxr-xr-xsysui/desktop/share/translate.pl151
-rwxr-xr-xsysui/desktop/slackware/makefile.mk112
-rwxr-xr-xsysui/desktop/slackware/slack-desc13
-rwxr-xr-xsysui/desktop/slackware/update-script8
-rwxr-xr-xsysui/desktop/solaris/copyright2
-rwxr-xr-xsysui/desktop/solaris/depend7
-rwxr-xr-xsysui/desktop/solaris/mailcap82
-rwxr-xr-xsysui/desktop/solaris/makefile.mk130
-rwxr-xr-xsysui/desktop/solaris/mime.types63
-rwxr-xr-xsysui/desktop/solaris/pkginfo16
-rwxr-xr-xsysui/desktop/solaris/postinstall23
-rwxr-xr-xsysui/desktop/solaris/postremove16
-rwxr-xr-xsysui/desktop/solaris/prototype66
-rwxr-xr-xsysui/desktop/suse/makefile.mk59
-rwxr-xr-xsysui/desktop/suse/suse-menus.spec367
-rwxr-xr-xsysui/desktop/tg_rpm.mk46
-rwxr-xr-xsysui/desktop/util/makefile.mk66
-rwxr-xr-xsysui/desktop/util/pkgdiff.pl119
-rw-r--r--sysui/prj/build.lst19
-rw-r--r--sysui/prj/d.lst23
-rw-r--r--sysui/source/win32/misc/AutoBuffer.cxx166
-rw-r--r--sysui/source/win32/misc/AutoBuffer.hxx86
-rw-r--r--sysui/source/win32/misc/WinImplHelper.cxx361
-rw-r--r--sysui/source/win32/misc/WinImplHelper.hxx91
-rwxr-xr-xsysui/source/win32/misc/makefile.mk52
-rw-r--r--sysui/source/win32/misc/resourceprovider.cxx232
-rw-r--r--sysui/source/win32/misc/resourceprovider.hxx61
-rwxr-xr-xsysui/util/checksize.pl87
-rwxr-xr-xsysui/util/exports.dxp2
-rwxr-xr-xsysui/util/makefile.mk44
566 files changed, 8389 insertions, 0 deletions
diff --git a/sysui/desktop/cleanversion/makefile.mk b/sysui/desktop/cleanversion/makefile.mk
new file mode 100755
index 000000000000..40651af2d17b
--- /dev/null
+++ b/sysui/desktop/cleanversion/makefile.mk
@@ -0,0 +1,50 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..
+
+PRJNAME=sysui
+TARGET=cleanversion
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+
+.INCLUDE : target.mk
+
+ALLTAR: $(MISC)$/cleanup.flag
+
+# imagine where rm is acting if MISC is empty...
+.IF "$(MISC)"!=""
+
+# version changed - bin previous trees
+$(MISC)$/cleanup.flag : ..$/productversion.mk
+ rm -rf `ls -d $(MISC)$/* | sed '/\/logs$/d'` && $(TOUCH) $@
+
+.ENDIF # "$(MISC)"!=""
+
+
diff --git a/sysui/desktop/debian/control b/sysui/desktop/debian/control
new file mode 100755
index 000000000000..da25ee454292
--- /dev/null
+++ b/sysui/desktop/debian/control
@@ -0,0 +1,6 @@
+Description: %productname desktop integration
+Maintainer: LibreOffice
+Architecture: all
+Provides: libreoffice-desktop-integration, libreoffice-unbundled
+Conflicts: libreoffice-desktop-integration, libreoffice-debian-menus, libreoffice-bundled
+Replaces: libreoffice-desktop-integration, libreoffice-debian-menus
diff --git a/sysui/desktop/debian/makefile.mk b/sysui/desktop/debian/makefile.mk
new file mode 100755
index 000000000000..45e0f331f714
--- /dev/null
+++ b/sysui/desktop/debian/makefile.mk
@@ -0,0 +1,96 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..
+
+PRJNAME=sysui
+TARGET=debian
+
+# !!! FIXME !!!
+# debian-menus file.
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+
+# --- Product Version Information ----------------------------------
+
+.INCLUDE : ../productversion.mk
+
+# --- Files --------------------------------------------------------
+
+.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/deb//)"
+
+DEBFILES=$(foreach,i,{$(PRODUCTLIST)} $(PKGDIR)$/$i3.4-$(TARGET)-menus_$(PKGVERSION.$i)-$(PKGREV)_all.deb)
+
+.ENDIF
+
+# --- Targets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
+.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/deb//)"
+
+ALLTAR : $(DEBFILES)
+
+
+%/DEBIAN/control : $$(@:f)
+ @$(MKDIRHIER) $(@:d) $*$/etc $*$/usr/share/applnk/Office $*$/usr/lib/menu
+ ln -sf /opt/$(UNIXFILENAME.$(*:f:s/-/ /:1:s/3.4//)) $*$/etc$/
+ /bin/sh -c -x "cd $(COMMONMISC)$/$(*:f:s/-/ /:1:s/3.4//) && DESTDIR=$(shell @cd $*; pwd) ICON_PREFIX=$(ICONPREFIX) KDEMAINDIR=/usr GNOMEDIR=/usr create_tree.sh"
+ @cat openoffice.org-debian-menus | sed -e 's/%PRODUCTNAME/$(PRODUCTNAME.$(*:f:s/-/ /:1:s/3.4//)) $(PRODUCTVERSION.$(*:f:s/-/ /:1:s/3.4//))/' -e 's/%PREFIX/$(UNIXFILENAME.$(*:f:s/-/ /:1:s/3.4//))/' -e 's/%ICONPREFIX/$(ICONPREFIX.$(*:f:s/-/ /:1:s/3.4//))/' > $*$/usr/lib/menu/$(*:f:s/_/ /:1:s/3.4//)
+ echo "Package: $(*:f:s/_/ /:1:s/3.4//)" > $@
+ cat $(@:f) | tr -d "\015" | sed "s/%productname/$(PRODUCTNAME.$(*:f:s/-/ /:1:s/3.4//))/" >> $@
+ echo "Version: $(PKGVERSION.$(*:f:s/-/ /:1:s/3.4//))-$(PKGREV)" >> $@
+ @du -k -s $* | awk -F ' ' '{ printf "Installed-Size: %s\n", $$1 ; }' >> $@
+
+%/DEBIAN/postinst : $$(@:f)
+ @cat $< | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(*:f:s/-/ /:1:s/3.4//))/g" > $@
+
+%/DEBIAN/postrm : $$(@:f)
+ @cat $< | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(*:f:s/-/ /:1:s/3.4//))/g" > $@
+
+%/DEBIAN/prerm : $$(@:f)
+ @cat $< | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(*:f:s/-/ /:1:s/3.4//))/g" > $@
+
+# --- packaging ---------------------------------------------------
+
+# getuid.so fakes the user/group for us
+$(DEBFILES) : $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag
+$(DEBFILES) : makefile.mk control postinst postrm prerm
+ -$(RM) $(@:d)$(@:f:s/_/ /:1)_*
+ $(RM) -r $(MISC)$/$(@:b)
+ dmake $(MISC)$/$(@:b)$/DEBIAN$/{control postinst postrm prerm}
+ @chmod -R g-w $(MISC)$/$(@:b)
+ @chmod a+rx $(MISC)$/$(@:b)$/DEBIAN $(MISC)/$(@:b)/DEBIAN/post* $(MISC)/$(@:b)/DEBIAN/pre*
+ @chmod g-s $(MISC)/$(@:b)/DEBIAN
+ @mkdir -p $(PKGDIR)
+ /bin/bash -c "LD_PRELOAD=$(SOLARBINDIR)/getuid.so dpkg-deb --build $(MISC)/$(@:b) $@"
+ $(RM) -r $(MISC)$/$(@:b)
+# @chmod -R g+w $(MISC)/$(TARGET)/$(DEBFILE:f)
+
+.ENDIF
diff --git a/sysui/desktop/debian/openoffice.org-debian-menus b/sysui/desktop/debian/openoffice.org-debian-menus
new file mode 100755
index 000000000000..c477d7363546
--- /dev/null
+++ b/sysui/desktop/debian/openoffice.org-debian-menus
@@ -0,0 +1,42 @@
+?package(libreoffice-writer):needs="X11" section="Apps/Editors"\
+ title="%PRODUCTNAME Writer" command="%PREFIX -writer"\
+ hints="Word Processors"\
+ kderemove="y"\
+ icon="/usr/share/icons/hicolor/32x32/apps/%ICONPREFIX-writer.png"\
+ icon16x16="/usr/share/icons/hicolor/16x16/apps/%ICONPREFIX-writer.png"
+
+?package(libreoffice-calc):needs="X11" section="Apps/Math"\
+ title="%PRODUCTNAME Calc" command="%PREFIX -calc"\
+ hints="Spreadsheets"\
+ kderemove="y"\
+ icon="/usr/share/icons/hicolor/32x32/apps/%ICONPREFIX-calc.png"\
+ icon16x16="/usr/share/icons/hicolor/16x16/apps/%ICONPREFIX-calc.png"
+
+?package(libreoffice-draw):needs="X11" section="Apps/Graphics"\
+ title="%PRODUCTNAME Draw" command="%PREFIX -draw"\
+ hints="Drawing"\
+ kderemove="y"\
+ icon="/usr/share/icons/hicolor/32x32/apps/%ICONPREFIX-draw.png"\
+ icon16x16="/usr/share/icons/hicolor/16x16/apps/%ICONPREFIX-draw.png"
+
+?package(libreoffice-impress):needs="X11" section="Apps/Graphics"\
+ title="%PRODUCTNAME Impress" command="%PREFIX -impress"\
+ hints="Presentation"\
+ kderemove="y"\
+ icon="/usr/share/icons/hicolor/32x32/apps/%ICONPREFIX-impress.png"\
+ icon16x16="/usr/share/icons/hicolor/16x16/apps/%ICONPREFIX-impress.png"
+
+?package(libreoffice-base):needs="X11" section="Apps/Databases"\
+ title="%PRODUCTNAME Base" command="%PREFIX -base"\
+ hints="Database"\
+ kderemove="y"\
+ icon="/usr/share/icons/hicolor/32x32/apps/%ICONPREFIX-base.png"\
+ icon16x16="/usr/share/icons/hicolor/16x16/apps/%ICONPREFIX-base.png"
+
+?package(libreoffice-core02):needs="X11" section="Apps/System"\
+ title="%PRODUCTNAME Printer Administration"\
+ command="%PREFIX-printeradmin"\
+ hints="Setup,Printer,Config"\
+ kderemove="y"\
+ icon="/usr/share/icons/hicolor/32x32/apps/%ICONPREFIX-printeradmin.png"\
+ icon16x16="/usr/share/icons/hicolor/16x16/apps/%ICONPREFIX-printeradmin.png"
diff --git a/sysui/desktop/debian/postinst b/sysui/desktop/debian/postinst
new file mode 100755
index 000000000000..531251215fe2
--- /dev/null
+++ b/sysui/desktop/debian/postinst
@@ -0,0 +1,165 @@
+#!/bin/sh
+
+if [ "$1" = "configure" ] ; then # first install
+ # update shared mime-info database
+ if [ -x /usr/bin/update-mime-database ]; then
+ update-mime-database /usr/share/mime
+ fi
+ # update desktop database
+ if [ -x /usr/bin/update-desktop-database ]; then
+ update-desktop-database -q /usr/share/applications
+ fi
+ # update debian style menus
+ if [ -x /usr/bin/update-menus ]; then
+ update-menus
+ fi
+ # update icon-cache if already present
+ for theme in gnome hicolor locolor; do
+ if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
+ # touch it, just in case we cannot find the binary...
+ touch /usr/share/icons/$theme
+ if (which gtk-update-icon-cache); then
+ gtk-update-icon-cache /usr/share/icons/$theme
+ fi
+ # ignore errors (e.g. when there is a cache, but no index.theme)
+ true
+ fi
+ done
+fi
+
+# update /etc/mime.types
+# backing out existing entries to avoid duplicates
+sed '
+/application\/vnd\.oasis\.opendocument/d
+/application\/vnd\.sun/d
+/application\/vnd\.stardivision/d
+/application\/vnd\.openofficeorg/d
+' /etc/mime.types 2>/dev/null >> /etc/mime.types.tmp$$
+
+# now append our stuff to the temporary file
+cat >> /etc/mime.types.tmp$$ << END
+application/vnd.oasis.opendocument.text odt
+application/vnd.oasis.opendocument.text-flat-xml fodt
+application/vnd.oasis.opendocument.text-template ott
+application/vnd.oasis.opendocument.text-web oth
+application/vnd.oasis.opendocument.text-master odm
+application/vnd.oasis.opendocument.graphics odg
+application/vnd.oasis.opendocument.graphics-flat-xml fodg
+application/vnd.oasis.opendocument.graphics-template otg
+application/vnd.oasis.opendocument.presentation odp
+application/vnd.oasis.opendocument.presentation-flat-xml fodp
+application/vnd.oasis.opendocument.presentation-template otp
+application/vnd.oasis.opendocument.spreadsheet ods
+application/vnd.oasis.opendocument.spreadsheet-flat-xml fods
+application/vnd.oasis.opendocument.spreadsheet-template ots
+application/vnd.oasis.opendocument.chart odc
+application/vnd.oasis.opendocument.formula odf
+application/vnd.oasis.opendocument.image odi
+application/vnd.sun.xml.writer sxw
+application/vnd.sun.xml.writer.template stw
+application/vnd.sun.xml.writer.global sxg
+application/vnd.stardivision.writer sdw vor
+application/vnd.stardivision.writer-global sgl
+application/vnd.sun.xml.calc sxc
+application/vnd.sun.xml.calc.template stc
+application/vnd.stardivision.calc sdc
+application/vnd.stardivision.chart sds
+application/vnd.sun.xml.impress sxi
+application/vnd.sun.xml.impress.template sti
+application/vnd.stardivision.impress sdd sdp
+application/vnd.sun.xml.draw sxd
+application/vnd.sun.xml.draw.template std
+application/vnd.stardivision.draw sda
+application/vnd.sun.xml.math sxm
+application/vnd.stardivision.math smf
+application/vnd.sun.xml.base odb
+application/vnd.openofficeorg.extension oxt
+END
+
+# and replace the original file
+mv -f /etc/mime.types.tmp$$ /etc/mime.types 2>/dev/null
+
+# update /etc/mailcap only at initial install
+if [ "$1" = "configure" ]
+then
+ # backing out existing entries to avoid duplicates
+ sed '
+/^# LibreOffice/d
+/^application\/vnd\.oasis\.opendocument/d
+/^application\/vnd\.openofficeorg/d
+/^application\/vnd\.sun/d
+/^application\/vnd\.stardivision/d
+/^application\/vnd\.ms-word/d
+/^application\/vnd\.ms-excel/d
+/^application\/vnd\.ms-powerpoint/d
+/^application\/x-star/d
+/excel/d
+/ms[-]*word/d
+/powerpoint/d
+' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$
+
+ # now append our stuff to the temporary file
+ cat >> /etc/mailcap.tmp$$ << END
+# LibreOffice
+application/vnd.oasis.opendocument.text; %PREFIX -view %s
+application/vnd.oasis.opendocument.text-flat-xml; %PREFIX -view %s
+application/vnd.oasis.opendocument.text-template; %PREFIX -view %s
+application/vnd.oasis.opendocument.text-web; %PREFIX -view %s
+application/vnd.oasis.opendocument.text-master; %PREFIX -view %s
+application/vnd.sun.xml.writer; %PREFIX -view %s
+application/vnd.sun.xml.writer.template; %PREFIX -view %s
+application/vnd.sun.xml.writer.global; %PREFIX -view %s
+application/vnd.stardivision.writer; %PREFIX -view %s
+application/vnd.stardivision.writer-global; %PREFIX -view %s
+application/x-starwriter; %PREFIX -view %s
+application/vnd.oasis.opendocument.formula; %PREFIX -view %s
+application/vnd.sun.xml.math; %PREFIX -view %s
+application/vnd.stardivision.math; %PREFIX -view %s
+application/x-starmath; %PREFIX -view %s
+application/msword; %PREFIX -view %s
+application/vnd.oasis.opendocument.spreadsheet; %PREFIX -view %s
+application/vnd.oasis.opendocument.spreadsheet-flat-xml; %PREFIX -view %s
+application/vnd.oasis.opendocument.spreadsheet-template; %PREFIX -view %s
+application/vnd.sun.xml.calc; %PREFIX -view %s
+application/vnd.sun.xml.calc.template; %PREFIX -view %s
+application/vnd.stardivision.calc; %PREFIX -view %s
+application/x-starcalc; %PREFIX -view %s
+application/vnd.stardivision.chart; %PREFIX -view %s
+application/x-starchart; %PREFIX -view %s
+application/excel; %PREFIX -view %s
+application/msexcel; %PREFIX -view %s
+application/vnd.ms-excel; %PREFIX -view %s
+application/x-msexcel; %PREFIX -view %s
+application/vnd.oasis.opendocument.presentation; %PREFIX -view %s
+application/vnd.oasis.opendocument.presentation-flat-xml; %PREFIX -view %s
+application/vnd.oasis.opendocument.presentation-template; %PREFIX -view %s
+application/vnd.sun.xml.impress; %PREFIX -view %s
+application/vnd.sun.xml.impress.template; %PREFIX -view %s
+application/vnd.stardivision.impress; %PREFIX -view %s
+application/x-starimpress; %PREFIX -view %s
+application/powerpoint; %PREFIX -view %s
+application/mspowerpoint; %PREFIX -view %s
+application/vnd.ms-powerpoint; %PREFIX -view %s
+application/x-mspowerpoint; %PREFIX -view %s
+application/vnd.oasis.opendocument.graphics; %PREFIX -view %s
+application/vnd.oasis.opendocument.graphics-flat-xml; %PREFIX -view %s
+application/vnd.oasis.opendocument.graphics-template; %PREFIX -view %s
+application/vnd.sun.xml.draw; %PREFIX -view %s
+application/vnd.sun.xml.draw.template; %PREFIX -view %s
+application/vnd.stardivision.draw; %PREFIX -view %s
+application/x-stardraw; %PREFIX -view %s
+application/vnd.oasis.opendocument.database; %PREFIX -view %s
+application/vnd.sun.xml.base; %PREFIX -view %s
+application/vnd.writerperfect; %PREFIX -view %s
+application/wordperfect5.1; %PREFIX -view %s
+application/x-wordperfect; %PREFIX -view %s
+application/wordperfect; %PREFIX -view %s
+application/wpwin; %PREFIX -view %s
+application/vnd.openofficeorg.extension; %PREFIX %s
+END
+
+ # and replace the original file
+ mv -f /etc/mailcap.tmp$$ /etc/mailcap
+fi
+
+exit 0
diff --git a/sysui/desktop/debian/postrm b/sysui/desktop/debian/postrm
new file mode 100755
index 000000000000..adb9cf448e95
--- /dev/null
+++ b/sysui/desktop/debian/postrm
@@ -0,0 +1,26 @@
+#!/bin/sh
+# run always - both when upgrading as well as when erasing the package.
+# Make sure this works when converted to .deb using alien.
+if [ "$1" != "purge" ]; then
+ if [ -x /usr/bin/update-mime-database ]; then
+ update-mime-database /usr/share/mime
+ fi
+ if [ -x /usr/bin/update-desktop-database ]; then
+ update-desktop-database -q /usr/share/applications
+ fi
+ if [ -x /usr/bin/update-menus ]; then
+ update-menus
+ fi
+ for theme in gnome hicolor locolor; do
+ if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
+ # touch it, just in case we cannot find the binary...
+ touch /usr/share/icons/$theme
+ if (which gtk-update-icon-cache); then
+ gtk-update-icon-cache /usr/share/icons/$theme
+ fi
+ # ignore errors (e.g. when there is a cache, but no index.theme)
+ true
+ fi
+ done
+fi
+exit 0
diff --git a/sysui/desktop/debian/prerm b/sysui/desktop/debian/prerm
new file mode 100755
index 000000000000..d83e09f841f4
--- /dev/null
+++ b/sysui/desktop/debian/prerm
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+if [ "$1" = "remove" ]
+then
+ # backing all entries pointing to our binary
+ sed '/%PREFIX/d' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$
+
+ # and replace the original file
+ mv -f /etc/mailcap.tmp$$ /etc/mailcap
+fi \ No newline at end of file
diff --git a/sysui/desktop/freedesktop/freedesktop-menus.spec b/sysui/desktop/freedesktop/freedesktop-menus.spec
new file mode 100755
index 000000000000..ba4b68d90a1d
--- /dev/null
+++ b/sysui/desktop/freedesktop/freedesktop-menus.spec
@@ -0,0 +1,395 @@
+# version and release passed by command-line
+Version: %version
+Release: %release
+Summary: %productname desktop integration
+Name: %pkgprefix-freedesktop-menus
+#BuildRequires: sed
+#BuildRequires: perl
+Group: Office
+License: LGPL
+Provides: libreoffice-desktop-integration
+Conflicts: %pkgprefix-suse-menus
+Conflicts: %pkgprefix-debian-menus
+Conflicts: %pkgprefix-redhat-menus
+Conflicts: %pkgprefix-mandriva-menus
+BuildArch: noarch
+AutoReqProv: no
+%define _binary_filedigest_algorithm 1
+%define _binary_payload w9.gzdio
+
+%define gnome_dir /usr
+%define gnome_mime_theme hicolor
+
+%description
+%productname desktop integration for desktop-environments that implement
+the menu- and mime-related specifications from http://www.freedesktop.org
+Install this package if you're using a distribution not covered by any of
+the other %pkgprefix-<distribution>-menus packages.
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# hack/workaround to make SuSE's brp-symlink-script happy. It wants the targets of all links
+# to be present on the build-system/the buildroot. But the point is that we generate stale
+# links intentionally (until we find a better solution) #46226
+export NO_BRP_STALE_LINK_ERROR=yes
+
+mkdir -p $RPM_BUILD_ROOT
+
+# FIXME: remove - only purpose is to create packages identical to OOF680 m8
+umask 0000
+
+# set parameters for the create_tree script
+export DESTDIR=$RPM_BUILD_ROOT
+export KDEMAINDIR=/usr
+export GNOMEDIR=%{gnome_dir}
+
+./create_tree.sh
+
+cd $RPM_BUILD_ROOT
+
+# freedesktop-based desktop-environments don't need/use this.
+rm -rf usr/share/application-registry
+rm -rf usr/share/applications.flag
+rm -rf usr/share/mime-info
+rm -rf usr/share/mimelnk
+rm -rf usr/share/applnk-redhat
+#find usr/share/icons -name '*.png' -exec chmod g+w {} \;
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%triggerin -- %pkgprefix, %pkgprefix-writer, %pkgprefix-calc, %pkgprefix-draw, %pkgprefix-impress, %pkgprefix-math
+# this is run when one of the above packages is already installed and the menu
+# package gets installed OR when the menu-package is already installed and one
+# of the above listed packages gets installed
+
+# Dut to a bug in rpm it is not possible to check why the script is triggered...
+# This is how it should be: 1st arg: number of this package, 2nd arg: number of
+# package that triggers - the bug is that rpm reports the same number for both
+# (the value of the 2nd one), so just run this always...
+# http://rhn.redhat.com/errata/RHBA-2004-098.html
+# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=100509
+
+if [ -x /opt/gnome/bin/update-desktop-database ]; then
+ /opt/gnome/bin/update-desktop-database -q
+elif (which update-desktop-database); then
+ update-desktop-database -q /usr/share/applications
+fi
+
+%triggerun -- %pkgprefix, %pkgprefix-writer, %pkgprefix-calc, %pkgprefix-draw, %pkgprefix-impress, %pkgprefix-math
+if [ "$1" = "0" ] ; then
+ # the menu-package gets uninstalled/updated - postun will run the command
+ exit 0
+fi
+if [ "$2" = "0" ] ; then
+ # the triggering package gets removed
+ if [ -x /opt/gnome/bin/update-desktop-database ]; then
+ /opt/gnome/bin/update-desktop-database -q
+ elif (which update-desktop-database); then
+ update-desktop-database -q /usr/share/applications
+ fi
+fi
+
+%post
+# no need to run it when updating, since %postun of the old package is run
+# afterwards
+
+if [ "$1" = "1" ] ; then # first install
+ if [ -x /opt/gnome/bin/update-desktop-database ]; then
+ /opt/gnome/bin/update-desktop-database -q
+ elif (which update-desktop-database); then
+ update-desktop-database -q /usr/share/applications
+ fi
+
+ if (which update-mime-database); then
+ update-mime-database /usr/share/mime
+ fi
+fi
+
+# add symlinks so that nautilus can identify the mime-icons
+# not strictly freedesktop-stuff but there is no common naming scheme yet.
+# One proposal is "mime-application:vnd.oasis.opendocument.spreadsheet.png"
+# for e.g. application/vnd.oasis.opendocument.spreadsheet
+link_target_root="%{gnome_dir}/share/icons/%{gnome_mime_theme}"
+
+if [ ! -d "${link_target_root}" ]
+then
+ link_target_root="%{gnome_dir}/share/icons/gnome"
+fi
+
+for subdir in `cd ${link_target_root}; ls -d *`
+do
+ link_dir="%{gnome_dir}/share/icons/%{gnome_mime_theme}/$subdir/mimetypes"
+ link_target_dir="../../../gnome/$subdir/mimetypes/"
+
+ test -d "${link_dir}" || mkdir -p "${link_dir}"
+ test -d ${link_dir}/${link_target_dir} || continue
+
+ icon=${link_target_dir}%iconprefix-drawing.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.draw.png
+ icon=${link_target_dir}%iconprefix-drawing-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.draw.template.png
+ icon=${link_target_dir}%iconprefix-formula.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.math.png
+ icon=${link_target_dir}%iconprefix-master-document.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.writer.global.png
+ icon=${link_target_dir}%iconprefix-oasis-database.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.base.png
+ icon=${link_target_dir}%iconprefix-oasis-database.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.database.png
+ icon=${link_target_dir}%iconprefix-oasis-drawing.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.graphics.png
+ icon=${link_target_dir}%iconprefix-oasis-drawing-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.graphics-template.png
+ icon=${link_target_dir}%iconprefix-oasis-formula.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.formula.png
+ icon=${link_target_dir}%iconprefix-oasis-master-document.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text-master.png
+ icon=${link_target_dir}%iconprefix-oasis-presentation.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.presentation.png
+ icon=${link_target_dir}%iconprefix-oasis-presentation-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.presentation-template.png
+ icon=${link_target_dir}%iconprefix-oasis-spreadsheet.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.spreadsheet.png
+ icon=${link_target_dir}%iconprefix-oasis-spreadsheet-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.spreadsheet-template.png
+ icon=${link_target_dir}%iconprefix-oasis-text.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text.png
+ icon=${link_target_dir}%iconprefix-oasis-text-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text-template.png
+ icon=${link_target_dir}%iconprefix-oasis-web-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text-web.png
+ icon=${link_target_dir}%iconprefix-presentation.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.impress.png
+ icon=${link_target_dir}%iconprefix-presentation-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.impress.template.png
+ icon=${link_target_dir}%iconprefix-spreadsheet.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.calc.png
+ icon=${link_target_dir}%iconprefix-spreadsheet-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.calc.template.png
+ icon=${link_target_dir}%iconprefix-text.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.writer.png
+ icon=${link_target_dir}%iconprefix-text-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.writer.template.png
+ icon=${link_target_dir}%iconprefix-extension.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.openofficeorg.extension.png
+done
+
+#run always
+for theme in gnome hicolor locolor; do
+ if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
+ # touch it, just in case we cannot find the binary...
+ touch /usr/share/icons/$theme
+ if [ -x /opt/gnome/bin/gtk-update-icon-cache ]; then
+ /opt/gnome/bin/gtk-update-icon-cache -q /usr/share/icons/$theme
+ elif (which gtk-update-icon-cache); then
+ gtk-update-icon-cache -q /usr/share/icons/$theme
+ fi
+ # ignore errors (e.g. when there is a cache, but no index.theme)
+ true
+ fi
+done
+
+
+# update /etc/mime.types
+# backing out existing entries to avoid duplicates
+sed '
+/application\/vnd\.oasis\.opendocument/d
+/application\/vnd\.sun/d
+/application\/vnd\.stardivision/d
+/application\/vnd\.openofficeorg/d
+' /etc/mime.types 2>/dev/null >> /etc/mime.types.tmp$$
+
+# now append our stuff to the temporary file
+cat >> /etc/mime.types.tmp$$ << END
+application/vnd.oasis.opendocument.text odt
+application/vnd.oasis.opendocument.text-flat-xml fodt
+application/vnd.oasis.opendocument.text-template ott
+application/vnd.oasis.opendocument.text-web oth
+application/vnd.oasis.opendocument.text-master odm
+application/vnd.oasis.opendocument.graphics odg
+application/vnd.oasis.opendocument.graphics-flat-xml fodg
+application/vnd.oasis.opendocument.graphics-template otg
+application/vnd.oasis.opendocument.presentation odp
+application/vnd.oasis.opendocument.presentation-flat-xml fodp
+application/vnd.oasis.opendocument.presentation-template otp
+application/vnd.oasis.opendocument.spreadsheet ods
+application/vnd.oasis.opendocument.spreadsheet-flat-xml fods
+application/vnd.oasis.opendocument.spreadsheet-template ots
+application/vnd.oasis.opendocument.chart odc
+application/vnd.oasis.opendocument.formula odf
+application/vnd.oasis.opendocument.image odi
+application/vnd.sun.xml.writer sxw
+application/vnd.sun.xml.writer.template stw
+application/vnd.sun.xml.writer.global sxg
+application/vnd.stardivision.writer sdw vor
+application/vnd.stardivision.writer-global sgl
+application/vnd.sun.xml.calc sxc
+application/vnd.sun.xml.calc.template stc
+application/vnd.stardivision.calc sdc
+application/vnd.stardivision.chart sds
+application/vnd.sun.xml.impress sxi
+application/vnd.sun.xml.impress.template sti
+application/vnd.stardivision.impress sdd sdp
+application/vnd.sun.xml.draw sxd
+application/vnd.sun.xml.draw.template std
+application/vnd.stardivision.draw sda
+application/vnd.sun.xml.math sxm
+application/vnd.sun.xml.base odb
+application/vnd.stardivision.math smf
+application/vnd.openofficeorg.extension oxt
+application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
+application/vnd.ms-word.document.macroenabled.12 docm
+application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
+application/vnd.ms-word.template.macroenabled.12 dotm
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
+application/vnd.ms-excel.sheet.macroenabled.12 xlsm
+application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
+application/vnd.ms-excel.template.macroenabled.12 xltm
+application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
+application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm
+application/vnd.openxmlformats-officedocument.presentationml.template potx
+application/vnd.ms-powerpoint.template.macroenabled.12 potm
+END
+
+# and replace the original file
+mv -f /etc/mime.types.tmp$$ /etc/mime.types 2>/dev/null
+
+# update /etc/mailcap only at initial install
+if [ "$1" = 1 ]
+then
+ # backing out existing entries to avoid duplicates
+ sed '
+/^# LibreOffice/d
+/^application\/vnd\.oasis\.opendocument/d
+/^application\/vnd\.openofficeorg/d
+/^application\/vnd\.sun/d
+/^application\/vnd\.stardivision/d
+/^application\/vnd\.ms-word/d
+/^application\/vnd\.ms-excel/d
+/^application\/vnd\.ms-powerpoint/d
+/^application\/x-star/d
+/excel/d
+/ms[-]*word/d
+/powerpoint/d
+' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$
+
+ # now append our stuff to the temporary file
+ cat >> /etc/mailcap.tmp$$ << END
+# LibreOffice
+application/vnd.oasis.opendocument.text; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-template; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-web; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-master; %unixfilename -view %s
+application/vnd.sun.xml.writer; %unixfilename -view %s
+application/vnd.sun.xml.writer.template; %unixfilename -view %s
+application/vnd.sun.xml.writer.global; %unixfilename -view %s
+application/vnd.stardivision.writer; %unixfilename -view %s
+application/vnd.stardivision.writer-global; %unixfilename -view %s
+application/x-starwriter; %unixfilename -view %s
+application/vnd.oasis.opendocument.formula; %unixfilename -view %s
+application/vnd.sun.xml.math; %unixfilename -view %s
+application/vnd.stardivision.math; %unixfilename -view %s
+application/x-starmath; %unixfilename -view %s
+application/msword; %unixfilename -view %s
+application/vnd.oasis.opendocument.spreadsheet; %unixfilename -view %s
+application/vnd.oasis.opendocument.spreadsheet-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.spreadsheet-template; %unixfilename -view %s
+application/vnd.sun.xml.calc; %unixfilename -view %s
+application/vnd.sun.xml.calc.template; %unixfilename -view %s
+application/vnd.stardivision.calc; %unixfilename -view %s
+application/x-starcalc; %unixfilename -view %s
+application/vnd.stardivision.chart; %unixfilename -view %s
+application/x-starchart; %unixfilename -view %s
+application/excel; %unixfilename -view %s
+application/msexcel; %unixfilename -view %s
+application/vnd.ms-excel; %unixfilename -view %s
+application/x-msexcel; %unixfilename -view %s
+application/vnd.oasis.opendocument.presentation; %unixfilename -view %s
+application/vnd.oasis.opendocument.presentation-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.presentation-template; %unixfilename -view %s
+application/vnd.sun.xml.impress; %unixfilename -view %s
+application/vnd.sun.xml.impress.template; %unixfilename -view %s
+application/vnd.stardivision.impress; %unixfilename -view %s
+application/x-starimpress; %unixfilename -view %s
+application/powerpoint; %unixfilename -view %s
+application/mspowerpoint; %unixfilename -view %s
+application/vnd.ms-powerpoint; %unixfilename -view %s
+application/x-mspowerpoint; %unixfilename -view %s
+application/vnd.oasis.opendocument.graphics; %unixfilename -view %s
+application/vnd.oasis.opendocument.graphics-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.graphics-template; %unixfilename -view %s
+application/vnd.sun.xml.draw; %unixfilename -view %s
+application/vnd.sun.xml.draw.template; %unixfilename -view %s
+application/vnd.stardivision.draw; %unixfilename -view %s
+application/x-stardraw; %unixfilename -view %s
+application/vnd.oasis.opendocument.database; %unixfilename -view %s
+application/vnd.sun.xml.base; %unixfilename -view %s
+application/vnd.openofficeorg.extension; %unixfilename %s
+application/vnd.openxmlformats-officedocument.wordprocessingml.document; %unixfilename -view %s
+application/vnd.ms-word.document.macroenabled.12;%unixfilename -view %s
+application/vnd.openxmlformats-officedocument.wordprocessingml.template; %unixfilename -view %s
+application/vnd.ms-word.template.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; %unixfilename -view %s
+application/vnd.ms-excel.sheet.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.spreadsheetml.template; %unixfilename -view %s
+application/vnd.ms-excel.template.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.presentationml.presentation; %unixfilename -view %s
+application/vnd.ms-powerpoint.presentation.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.presentationml.template; %unixfilename -view %s
+application/vnd.ms-powerpoint.template.macroenabled.12; %unixfilename -view %s
+END
+
+ # and replace the original file
+ mv -f /etc/mailcap.tmp$$ /etc/mailcap
+fi
+
+if [ -x /opt/gnome/bin/update-desktop-database ]; then
+ /opt/gnome/bin/update-desktop-database -q
+elif (which update-desktop-database); then
+ update-desktop-database -q /usr/share/applications
+fi
+
+%preun
+# remove from /etc/mailcap only on de-install
+if [ "$1" = 0 ]
+then
+ # backing all entries pointing to our binary
+ sed '/%unixfilename/d' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$
+
+ # and replace the original file
+ mv -f /etc/mailcap.tmp$$ /etc/mailcap
+fi
+
+%postun
+if [ "$1" = 0 ] ; then # only run when erasing the package - other cases handled by the triggers
+ if [ -x /opt/gnome/bin/update-desktop-database ]; then
+ /opt/gnome/bin/update-desktop-database -q
+ elif (which update-desktop-database); then
+ update-desktop-database -q
+ fi
+# run always - both when upgrading as well as when erasing the package
+ if (which update-mime-database); then
+ update-mime-database /usr/share/mime
+ fi
+fi
+
+#run always
+for theme in gnome hicolor locolor; do
+ if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
+ # touch it, just in case we cannot find the binary...
+ touch /usr/share/icons/$theme
+ if [ -x /opt/gnome/bin/gtk-update-icon-cache ]; then
+ /opt/gnome/bin/gtk-update-icon-cache -q /usr/share/icons/$theme
+ elif (which gtk-update-icon-cache); then
+ gtk-update-icon-cache -q /usr/share/icons/$theme
+ fi
+ # ignore errors (e.g. when there is a cache, but no index.theme)
+ true
+ fi
+done
+
+%files
+# specify stale symlinks verbatim, not as glob - a change in recent versions of
+# glibc breaks rpm unless rpm is build with internal glob-matching (issue 49374)
+# https://bugzilla.redhat.com/beta/show_bug.cgi?id=134362
+%defattr(-, root, root)
+%if "%unixfilename" != "libreoffice%productversion"
+# compat symlinks
+%attr(0755,root,root) /opt/%unixfilename
+%endif
+%attr(0755, root, root) /usr/bin/*
+/usr/share/applications/%unixfilename-base.desktop
+/usr/share/applications/%unixfilename-calc.desktop
+/usr/share/applications/%unixfilename-draw.desktop
+/usr/share/applications/%unixfilename-impress.desktop
+/usr/share/applications/%unixfilename-math.desktop
+/usr/share/applications/%unixfilename-printeradmin.desktop
+/usr/share/applications/%unixfilename-writer.desktop
+/usr/share/applications/%unixfilename-startcenter.desktop
+/usr/share/applications/%unixfilename-javafilter.desktop
+/usr/share/icons/gnome/*/apps/*png
+/usr/share/icons/gnome/*/mimetypes/*png
+/usr/share/icons/hicolor/*/apps/*png
+/usr/share/icons/hicolor/*/mimetypes/*png
+/usr/share/icons/locolor/*/apps/*png
+/usr/share/icons/locolor/*/mimetypes/*png
+/usr/share/mime/packages/*
diff --git a/sysui/desktop/freedesktop/makefile.mk b/sysui/desktop/freedesktop/makefile.mk
new file mode 100755
index 000000000000..a93aafd71ac1
--- /dev/null
+++ b/sysui/desktop/freedesktop/makefile.mk
@@ -0,0 +1,59 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..
+
+PRJNAME=sysui
+TARGET=freedesktop
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+
+# --- Product Version Information ----------------------------------
+
+.INCLUDE : ../productversion.mk
+
+# --- Files --------------------------------------------------------
+
+.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)"
+
+SPECFILE=$(TARGET)-menus.spec
+RPMFLAGFILES=$(foreach,i,{$(PRODUCTLIST)} $(PKGDIR)$/$i-$(SPECFILE:b)-$(PKGVERSION.$i)-$(PKGREV).noarch.flag)
+
+.ENDIF
+
+# --- Targets -------------------------------------------------------
+
+.INCLUDE : target.mk
+.INCLUDE : ../tg_rpm.mk
+
+.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)"
+
+$(RPMFLAGFILES) : $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag
+
+.ENDIF
diff --git a/sysui/desktop/icons/base.icns b/sysui/desktop/icons/base.icns
new file mode 100755
index 000000000000..e1ed62c2628b
--- /dev/null
+++ b/sysui/desktop/icons/base.icns
Binary files differ
diff --git a/sysui/desktop/icons/calc.icns b/sysui/desktop/icons/calc.icns
new file mode 100755
index 000000000000..a3d4edc5728a
--- /dev/null
+++ b/sysui/desktop/icons/calc.icns
Binary files differ
diff --git a/sysui/desktop/icons/configuration.icns b/sysui/desktop/icons/configuration.icns
new file mode 100755
index 000000000000..fe0f0946826a
--- /dev/null
+++ b/sysui/desktop/icons/configuration.icns
Binary files differ
diff --git a/sysui/desktop/icons/database.icns b/sysui/desktop/icons/database.icns
new file mode 100755
index 000000000000..9fa0bbf3ed67
--- /dev/null
+++ b/sysui/desktop/icons/database.icns
Binary files differ
diff --git a/sysui/desktop/icons/database.ico b/sysui/desktop/icons/database.ico
new file mode 100644
index 000000000000..02cf7a484023
--- /dev/null
+++ b/sysui/desktop/icons/database.ico
Binary files differ
diff --git a/sysui/desktop/icons/draw.icns b/sysui/desktop/icons/draw.icns
new file mode 100755
index 000000000000..da511e30dd79
--- /dev/null
+++ b/sysui/desktop/icons/draw.icns
Binary files differ
diff --git a/sysui/desktop/icons/drawing-template.icns b/sysui/desktop/icons/drawing-template.icns
new file mode 100755
index 000000000000..64c373ecaa33
--- /dev/null
+++ b/sysui/desktop/icons/drawing-template.icns
Binary files differ
diff --git a/sysui/desktop/icons/drawing-template.ico b/sysui/desktop/icons/drawing-template.ico
new file mode 100644
index 000000000000..af2e9ffd93d9
--- /dev/null
+++ b/sysui/desktop/icons/drawing-template.ico
Binary files differ
diff --git a/sysui/desktop/icons/drawing.icns b/sysui/desktop/icons/drawing.icns
new file mode 100755
index 000000000000..d179d041a6ca
--- /dev/null
+++ b/sysui/desktop/icons/drawing.icns
Binary files differ
diff --git a/sysui/desktop/icons/drawing.ico b/sysui/desktop/icons/drawing.ico
new file mode 100644
index 000000000000..5297daeee5b6
--- /dev/null
+++ b/sysui/desktop/icons/drawing.ico
Binary files differ
diff --git a/sysui/desktop/icons/empty-document.icns b/sysui/desktop/icons/empty-document.icns
new file mode 100755
index 000000000000..c5c80a01e799
--- /dev/null
+++ b/sysui/desktop/icons/empty-document.icns
Binary files differ
diff --git a/sysui/desktop/icons/empty-document.ico b/sysui/desktop/icons/empty-document.ico
new file mode 100644
index 000000000000..20e665faa5e8
--- /dev/null
+++ b/sysui/desktop/icons/empty-document.ico
Binary files differ
diff --git a/sysui/desktop/icons/empty-template.icns b/sysui/desktop/icons/empty-template.icns
new file mode 100755
index 000000000000..c5c80a01e799
--- /dev/null
+++ b/sysui/desktop/icons/empty-template.icns
Binary files differ
diff --git a/sysui/desktop/icons/empty-template.ico b/sysui/desktop/icons/empty-template.ico
new file mode 100644
index 000000000000..20e665faa5e8
--- /dev/null
+++ b/sysui/desktop/icons/empty-template.ico
Binary files differ
diff --git a/sysui/desktop/icons/extension.icns b/sysui/desktop/icons/extension.icns
new file mode 100755
index 000000000000..cec1b92c37b2
--- /dev/null
+++ b/sysui/desktop/icons/extension.icns
Binary files differ
diff --git a/sysui/desktop/icons/formula.icns b/sysui/desktop/icons/formula.icns
new file mode 100755
index 000000000000..f6dc588095f4
--- /dev/null
+++ b/sysui/desktop/icons/formula.icns
Binary files differ
diff --git a/sysui/desktop/icons/formula.ico b/sysui/desktop/icons/formula.ico
new file mode 100644
index 000000000000..fb2f6515bdb2
--- /dev/null
+++ b/sysui/desktop/icons/formula.ico
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/apps/base.png b/sysui/desktop/icons/hicolor/128x128/apps/base.png
new file mode 100644
index 000000000000..d2c94583e667
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/apps/base.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/apps/calc.png b/sysui/desktop/icons/hicolor/128x128/apps/calc.png
new file mode 100644
index 000000000000..9614ca81d6af
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/apps/calc.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/apps/draw.png b/sysui/desktop/icons/hicolor/128x128/apps/draw.png
new file mode 100644
index 000000000000..b1405c52888a
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/apps/draw.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/apps/impress.png b/sysui/desktop/icons/hicolor/128x128/apps/impress.png
new file mode 100644
index 000000000000..1d0fdc08af2f
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/apps/impress.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/apps/main.png b/sysui/desktop/icons/hicolor/128x128/apps/main.png
new file mode 100644
index 000000000000..59efe6991dfb
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/apps/main.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/apps/math.png b/sysui/desktop/icons/hicolor/128x128/apps/math.png
new file mode 100644
index 000000000000..9a17a15f855c
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/apps/math.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/apps/startcenter.png b/sysui/desktop/icons/hicolor/128x128/apps/startcenter.png
new file mode 100644
index 000000000000..59efe6991dfb
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/apps/startcenter.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/apps/writer.png b/sysui/desktop/icons/hicolor/128x128/apps/writer.png
new file mode 100644
index 000000000000..3fa71f4dc140
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/apps/writer.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-database.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-database.png
new file mode 100644
index 000000000000..d2c94583e667
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-database.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-drawing-template.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-drawing-template.png
new file mode 100644
index 000000000000..1925cee34f4f
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-drawing-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-drawing.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-drawing.png
new file mode 100644
index 000000000000..b1405c52888a
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-drawing.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-formula.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-formula.png
new file mode 100644
index 000000000000..9a17a15f855c
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-formula.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-master-document.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-master-document.png
new file mode 100644
index 000000000000..aa94c4b1b3cd
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-master-document.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-presentation-template.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-presentation-template.png
new file mode 100644
index 000000000000..eff3f17b6b18
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-presentation-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-presentation.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-presentation.png
new file mode 100644
index 000000000000..1d0fdc08af2f
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-presentation.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-spreadsheet-template.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-spreadsheet-template.png
new file mode 100644
index 000000000000..e396624efe52
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-spreadsheet-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-spreadsheet.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-spreadsheet.png
new file mode 100644
index 000000000000..9614ca81d6af
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-spreadsheet.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-text-template.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-text-template.png
new file mode 100644
index 000000000000..0daebdf256ce
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-text-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-text.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-text.png
new file mode 100644
index 000000000000..3fa71f4dc140
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-text.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-web-template.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-web-template.png
new file mode 100644
index 000000000000..09ccf5f74569
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-web-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/apps/base.png b/sysui/desktop/icons/hicolor/16x16/apps/base.png
new file mode 100644
index 000000000000..3465f32dde01
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/apps/base.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/apps/calc.png b/sysui/desktop/icons/hicolor/16x16/apps/calc.png
new file mode 100644
index 000000000000..3f1f4ae93cc5
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/apps/calc.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/apps/draw.png b/sysui/desktop/icons/hicolor/16x16/apps/draw.png
new file mode 100644
index 000000000000..94bc2aa8564b
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/apps/draw.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/apps/impress.png b/sysui/desktop/icons/hicolor/16x16/apps/impress.png
new file mode 100644
index 000000000000..75d94f0030ab
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/apps/impress.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/apps/main.png b/sysui/desktop/icons/hicolor/16x16/apps/main.png
new file mode 100644
index 000000000000..2459b2a5d6dc
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/apps/main.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/apps/math.png b/sysui/desktop/icons/hicolor/16x16/apps/math.png
new file mode 100644
index 000000000000..ab945b1ecf88
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/apps/math.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/apps/printeradmin.png b/sysui/desktop/icons/hicolor/16x16/apps/printeradmin.png
new file mode 100644
index 000000000000..7f2a94691351
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/apps/printeradmin.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/apps/startcenter.png b/sysui/desktop/icons/hicolor/16x16/apps/startcenter.png
new file mode 100644
index 000000000000..2459b2a5d6dc
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/apps/startcenter.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/apps/writer.png b/sysui/desktop/icons/hicolor/16x16/apps/writer.png
new file mode 100644
index 000000000000..1aacbb52b5c0
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/apps/writer.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/database.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/database.png
new file mode 100644
index 000000000000..bbf485561e19
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/database.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/drawing-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/drawing-template.png
new file mode 100644
index 000000000000..74770d5d482f
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/drawing-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/drawing.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/drawing.png
new file mode 100644
index 000000000000..30303797baf7
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/drawing.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/extension.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/extension.png
new file mode 100644
index 000000000000..be3c8ef4d3cf
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/extension.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/formula.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/formula.png
new file mode 100644
index 000000000000..3eb7f884f91d
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/formula.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/master-document.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/master-document.png
new file mode 100644
index 000000000000..c424e4fbf430
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/master-document.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-database.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-database.png
new file mode 100644
index 000000000000..3465f32dde01
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-database.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-drawing-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-drawing-template.png
new file mode 100644
index 000000000000..456b8108b6e3
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-drawing-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-drawing.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-drawing.png
new file mode 100644
index 000000000000..94bc2aa8564b
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-drawing.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-formula.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-formula.png
new file mode 100644
index 000000000000..ab945b1ecf88
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-formula.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-master-document.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-master-document.png
new file mode 100644
index 000000000000..40777f7276dc
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-master-document.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-presentation-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-presentation-template.png
new file mode 100644
index 000000000000..99d38d75afbb
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-presentation-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-presentation.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-presentation.png
new file mode 100644
index 000000000000..75d94f0030ab
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-presentation.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-spreadsheet-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-spreadsheet-template.png
new file mode 100644
index 000000000000..74c312c2724d
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-spreadsheet-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-spreadsheet.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-spreadsheet.png
new file mode 100644
index 000000000000..3f1f4ae93cc5
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-spreadsheet.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-text-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-text-template.png
new file mode 100644
index 000000000000..9d7c277546fd
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-text-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-text.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-text.png
new file mode 100644
index 000000000000..1aacbb52b5c0
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-text.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-web-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-web-template.png
new file mode 100644
index 000000000000..16bf02e1b5b2
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-web-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/presentation-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/presentation-template.png
new file mode 100644
index 000000000000..bb20d139e1a5
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/presentation-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/presentation.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/presentation.png
new file mode 100644
index 000000000000..b82ddf720912
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/presentation.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/spreadsheet-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/spreadsheet-template.png
new file mode 100644
index 000000000000..3546349b59a3
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/spreadsheet-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/spreadsheet.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/spreadsheet.png
new file mode 100644
index 000000000000..df164ff2caae
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/spreadsheet.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/text-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/text-template.png
new file mode 100644
index 000000000000..4d895288251e
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/text-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/text.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/text.png
new file mode 100644
index 000000000000..6ff2517af44d
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/text.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/apps/base.png b/sysui/desktop/icons/hicolor/32x32/apps/base.png
new file mode 100644
index 000000000000..549bcb7eea5c
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/apps/base.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/apps/calc.png b/sysui/desktop/icons/hicolor/32x32/apps/calc.png
new file mode 100644
index 000000000000..162f69c44766
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/apps/calc.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/apps/draw.png b/sysui/desktop/icons/hicolor/32x32/apps/draw.png
new file mode 100644
index 000000000000..2e05ffe8e571
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/apps/draw.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/apps/impress.png b/sysui/desktop/icons/hicolor/32x32/apps/impress.png
new file mode 100644
index 000000000000..a046ed3fda9d
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/apps/impress.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/apps/main.png b/sysui/desktop/icons/hicolor/32x32/apps/main.png
new file mode 100644
index 000000000000..dba5f4e030a7
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/apps/main.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/apps/math.png b/sysui/desktop/icons/hicolor/32x32/apps/math.png
new file mode 100644
index 000000000000..f392014275ee
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/apps/math.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/apps/printeradmin.png b/sysui/desktop/icons/hicolor/32x32/apps/printeradmin.png
new file mode 100644
index 000000000000..05cfd5fb6338
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/apps/printeradmin.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/apps/startcenter.png b/sysui/desktop/icons/hicolor/32x32/apps/startcenter.png
new file mode 100644
index 000000000000..dba5f4e030a7
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/apps/startcenter.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/apps/writer.png b/sysui/desktop/icons/hicolor/32x32/apps/writer.png
new file mode 100644
index 000000000000..1942e73d021f
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/apps/writer.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/database.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/database.png
new file mode 100644
index 000000000000..709903d46c21
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/database.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/drawing-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/drawing-template.png
new file mode 100644
index 000000000000..76e5abdab9f0
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/drawing-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/drawing.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/drawing.png
new file mode 100644
index 000000000000..380c60a7df2c
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/drawing.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/extension.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/extension.png
new file mode 100644
index 000000000000..b4d8171c19ef
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/extension.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/formula.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/formula.png
new file mode 100644
index 000000000000..37306ac617ec
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/formula.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/master-document.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/master-document.png
new file mode 100644
index 000000000000..1f3e79927608
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/master-document.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-database.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-database.png
new file mode 100644
index 000000000000..549bcb7eea5c
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-database.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-drawing-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-drawing-template.png
new file mode 100644
index 000000000000..3bd738714aee
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-drawing-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-drawing.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-drawing.png
new file mode 100644
index 000000000000..2e05ffe8e571
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-drawing.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-formula.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-formula.png
new file mode 100644
index 000000000000..f392014275ee
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-formula.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-master-document.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-master-document.png
new file mode 100644
index 000000000000..2cf6741bbfe3
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-master-document.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-presentation-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-presentation-template.png
new file mode 100644
index 000000000000..ea8579d40519
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-presentation-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-presentation.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-presentation.png
new file mode 100644
index 000000000000..a046ed3fda9d
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-presentation.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-spreadsheet-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-spreadsheet-template.png
new file mode 100644
index 000000000000..0b2b6c537952
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-spreadsheet-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-spreadsheet.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-spreadsheet.png
new file mode 100644
index 000000000000..162f69c44766
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-spreadsheet.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-text-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-text-template.png
new file mode 100644
index 000000000000..cfd3907193ee
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-text-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-text.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-text.png
new file mode 100644
index 000000000000..1942e73d021f
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-text.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-web-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-web-template.png
new file mode 100644
index 000000000000..c08fd88c0447
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-web-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/presentation-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/presentation-template.png
new file mode 100644
index 000000000000..0edabbc86f16
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/presentation-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/presentation.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/presentation.png
new file mode 100644
index 000000000000..0eee1162ce15
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/presentation.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/spreadsheet-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/spreadsheet-template.png
new file mode 100644
index 000000000000..158a63a58c92
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/spreadsheet-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/spreadsheet.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/spreadsheet.png
new file mode 100644
index 000000000000..f7352ab51783
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/spreadsheet.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/text-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/text-template.png
new file mode 100644
index 000000000000..cfba26102380
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/text-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/text.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/text.png
new file mode 100644
index 000000000000..77f87e777b7a
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/text.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/apps/base.png b/sysui/desktop/icons/hicolor/48x48/apps/base.png
new file mode 100644
index 000000000000..4851d31c5542
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/apps/base.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/apps/calc.png b/sysui/desktop/icons/hicolor/48x48/apps/calc.png
new file mode 100644
index 000000000000..c3deeb0737a4
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/apps/calc.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/apps/draw.png b/sysui/desktop/icons/hicolor/48x48/apps/draw.png
new file mode 100644
index 000000000000..56a835cf9cf1
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/apps/draw.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/apps/impress.png b/sysui/desktop/icons/hicolor/48x48/apps/impress.png
new file mode 100644
index 000000000000..09bbb42baec0
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/apps/impress.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/apps/main.png b/sysui/desktop/icons/hicolor/48x48/apps/main.png
new file mode 100644
index 000000000000..7f3c00c4a307
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/apps/main.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/apps/math.png b/sysui/desktop/icons/hicolor/48x48/apps/math.png
new file mode 100644
index 000000000000..8e2c0a1c1b5d
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/apps/math.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/apps/printeradmin.png b/sysui/desktop/icons/hicolor/48x48/apps/printeradmin.png
new file mode 100644
index 000000000000..ab5c0ef1403e
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/apps/printeradmin.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/apps/startcenter.png b/sysui/desktop/icons/hicolor/48x48/apps/startcenter.png
new file mode 100644
index 000000000000..7f3c00c4a307
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/apps/startcenter.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/apps/writer.png b/sysui/desktop/icons/hicolor/48x48/apps/writer.png
new file mode 100644
index 000000000000..37c931ce31b5
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/apps/writer.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/database.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/database.png
new file mode 100644
index 000000000000..224943b0e9ea
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/database.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/drawing-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/drawing-template.png
new file mode 100644
index 000000000000..043dd5dfae71
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/drawing-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/drawing.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/drawing.png
new file mode 100644
index 000000000000..8857034ce262
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/drawing.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/extension.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/extension.png
new file mode 100644
index 000000000000..395001990fcc
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/extension.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/formula.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/formula.png
new file mode 100644
index 000000000000..45f6d919387c
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/formula.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/master-document.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/master-document.png
new file mode 100644
index 000000000000..191a619f7cf3
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/master-document.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-database.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-database.png
new file mode 100644
index 000000000000..4851d31c5542
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-database.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-drawing-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-drawing-template.png
new file mode 100644
index 000000000000..e4bec3bff9fd
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-drawing-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-drawing.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-drawing.png
new file mode 100644
index 000000000000..56a835cf9cf1
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-drawing.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-formula.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-formula.png
new file mode 100644
index 000000000000..8e2c0a1c1b5d
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-formula.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-master-document.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-master-document.png
new file mode 100644
index 000000000000..01bf4e91aa80
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-master-document.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-presentation-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-presentation-template.png
new file mode 100644
index 000000000000..e072bcd8fbaa
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-presentation-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-presentation.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-presentation.png
new file mode 100644
index 000000000000..09bbb42baec0
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-presentation.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-spreadsheet-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-spreadsheet-template.png
new file mode 100644
index 000000000000..d8ae2c5b020f
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-spreadsheet-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-spreadsheet.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-spreadsheet.png
new file mode 100644
index 000000000000..c3deeb0737a4
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-spreadsheet.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-text-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-text-template.png
new file mode 100644
index 000000000000..58aaedd73611
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-text-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-text.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-text.png
new file mode 100644
index 000000000000..37c931ce31b5
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-text.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-web-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-web-template.png
new file mode 100644
index 000000000000..2b4f9043cb68
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-web-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/presentation-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/presentation-template.png
new file mode 100644
index 000000000000..2193c98931ae
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/presentation-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/presentation.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/presentation.png
new file mode 100644
index 000000000000..bd59fbbbaf82
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/presentation.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/spreadsheet-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/spreadsheet-template.png
new file mode 100644
index 000000000000..34c60c2819d6
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/spreadsheet-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/spreadsheet.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/spreadsheet.png
new file mode 100644
index 000000000000..6868f577ce1a
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/spreadsheet.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/text-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/text-template.png
new file mode 100644
index 000000000000..52a28fb3af80
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/text-template.png
Binary files differ
diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/text.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/text.png
new file mode 100644
index 000000000000..7ead079cade2
--- /dev/null
+++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/text.png
Binary files differ
diff --git a/sysui/desktop/icons/impress.icns b/sysui/desktop/icons/impress.icns
new file mode 100755
index 000000000000..22a9475ae6b3
--- /dev/null
+++ b/sysui/desktop/icons/impress.icns
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/apps/base.png b/sysui/desktop/icons/locolor/16x16/apps/base.png
new file mode 100644
index 000000000000..347d030bc740
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/apps/base.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/apps/calc.png b/sysui/desktop/icons/locolor/16x16/apps/calc.png
new file mode 100644
index 000000000000..060d78d2eada
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/apps/calc.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/apps/draw.png b/sysui/desktop/icons/locolor/16x16/apps/draw.png
new file mode 100644
index 000000000000..bc4f8cb803cd
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/apps/draw.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/apps/impress.png b/sysui/desktop/icons/locolor/16x16/apps/impress.png
new file mode 100644
index 000000000000..b780901ee3bf
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/apps/impress.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/apps/math.png b/sysui/desktop/icons/locolor/16x16/apps/math.png
new file mode 100644
index 000000000000..4c7f8e88330e
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/apps/math.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/apps/printeradmin.png b/sysui/desktop/icons/locolor/16x16/apps/printeradmin.png
new file mode 100644
index 000000000000..c84c387b9dcb
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/apps/printeradmin.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/apps/startcenter.png b/sysui/desktop/icons/locolor/16x16/apps/startcenter.png
new file mode 100644
index 000000000000..347d030bc740
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/apps/startcenter.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/apps/writer.png b/sysui/desktop/icons/locolor/16x16/apps/writer.png
new file mode 100644
index 000000000000..c452804daf41
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/apps/writer.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/database.png b/sysui/desktop/icons/locolor/16x16/mimetypes/database.png
new file mode 100644
index 000000000000..bbf485561e19
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/database.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/drawing-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/drawing-template.png
new file mode 100644
index 000000000000..74770d5d482f
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/drawing-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/drawing.png b/sysui/desktop/icons/locolor/16x16/mimetypes/drawing.png
new file mode 100644
index 000000000000..30303797baf7
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/drawing.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/extension.png b/sysui/desktop/icons/locolor/16x16/mimetypes/extension.png
new file mode 100644
index 000000000000..2ff170cb4189
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/extension.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/formula.png b/sysui/desktop/icons/locolor/16x16/mimetypes/formula.png
new file mode 100644
index 000000000000..3eb7f884f91d
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/formula.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/master-document.png b/sysui/desktop/icons/locolor/16x16/mimetypes/master-document.png
new file mode 100644
index 000000000000..c424e4fbf430
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/master-document.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-database.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-database.png
new file mode 100644
index 000000000000..ce87e664b482
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-database.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-drawing-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-drawing-template.png
new file mode 100644
index 000000000000..53fe069ca410
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-drawing-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-drawing.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-drawing.png
new file mode 100644
index 000000000000..42f31de4c769
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-drawing.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-formula.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-formula.png
new file mode 100644
index 000000000000..f01150fc9cf7
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-formula.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-master-document.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-master-document.png
new file mode 100644
index 000000000000..d2bf0065faeb
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-master-document.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-presentation-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-presentation-template.png
new file mode 100644
index 000000000000..ccbe7bfc6dcf
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-presentation-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-presentation.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-presentation.png
new file mode 100644
index 000000000000..d87f465af1df
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-presentation.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-spreadsheet-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-spreadsheet-template.png
new file mode 100644
index 000000000000..dd6b36a87479
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-spreadsheet-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-spreadsheet.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-spreadsheet.png
new file mode 100644
index 000000000000..907cff3dc227
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-spreadsheet.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-text-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-text-template.png
new file mode 100644
index 000000000000..df779f671390
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-text-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-text.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-text.png
new file mode 100644
index 000000000000..2148e49d3c73
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-text.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-web-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-web-template.png
new file mode 100644
index 000000000000..fed7af4f2a12
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-web-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/presentation-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/presentation-template.png
new file mode 100644
index 000000000000..bb20d139e1a5
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/presentation-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/presentation.png b/sysui/desktop/icons/locolor/16x16/mimetypes/presentation.png
new file mode 100644
index 000000000000..b82ddf720912
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/presentation.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/spreadsheet-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/spreadsheet-template.png
new file mode 100644
index 000000000000..3546349b59a3
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/spreadsheet-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/spreadsheet.png b/sysui/desktop/icons/locolor/16x16/mimetypes/spreadsheet.png
new file mode 100644
index 000000000000..df164ff2caae
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/spreadsheet.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/text-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/text-template.png
new file mode 100644
index 000000000000..4d895288251e
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/text-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/text.png b/sysui/desktop/icons/locolor/16x16/mimetypes/text.png
new file mode 100644
index 000000000000..6ff2517af44d
--- /dev/null
+++ b/sysui/desktop/icons/locolor/16x16/mimetypes/text.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/apps/base.png b/sysui/desktop/icons/locolor/32x32/apps/base.png
new file mode 100644
index 000000000000..cfaaaba07a60
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/apps/base.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/apps/calc.png b/sysui/desktop/icons/locolor/32x32/apps/calc.png
new file mode 100644
index 000000000000..4aff7baf77d5
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/apps/calc.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/apps/draw.png b/sysui/desktop/icons/locolor/32x32/apps/draw.png
new file mode 100644
index 000000000000..3efa6d4a7d03
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/apps/draw.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/apps/impress.png b/sysui/desktop/icons/locolor/32x32/apps/impress.png
new file mode 100644
index 000000000000..56dde6ba6cda
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/apps/impress.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/apps/math.png b/sysui/desktop/icons/locolor/32x32/apps/math.png
new file mode 100644
index 000000000000..3b730e50ea50
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/apps/math.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/apps/printeradmin.png b/sysui/desktop/icons/locolor/32x32/apps/printeradmin.png
new file mode 100644
index 000000000000..9d13304ff2ea
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/apps/printeradmin.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/apps/startcenter.png b/sysui/desktop/icons/locolor/32x32/apps/startcenter.png
new file mode 100644
index 000000000000..cfaaaba07a60
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/apps/startcenter.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/apps/writer.png b/sysui/desktop/icons/locolor/32x32/apps/writer.png
new file mode 100644
index 000000000000..eb433dcbb32b
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/apps/writer.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/database.png b/sysui/desktop/icons/locolor/32x32/mimetypes/database.png
new file mode 100644
index 000000000000..709903d46c21
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/database.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/drawing-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/drawing-template.png
new file mode 100644
index 000000000000..76e5abdab9f0
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/drawing-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/drawing.png b/sysui/desktop/icons/locolor/32x32/mimetypes/drawing.png
new file mode 100644
index 000000000000..380c60a7df2c
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/drawing.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/extension.png b/sysui/desktop/icons/locolor/32x32/mimetypes/extension.png
new file mode 100644
index 000000000000..2e9e91157c79
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/extension.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/formula.png b/sysui/desktop/icons/locolor/32x32/mimetypes/formula.png
new file mode 100644
index 000000000000..37306ac617ec
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/formula.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/master-document.png b/sysui/desktop/icons/locolor/32x32/mimetypes/master-document.png
new file mode 100644
index 000000000000..1f3e79927608
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/master-document.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-database.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-database.png
new file mode 100644
index 000000000000..59316672d4b3
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-database.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-drawing-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-drawing-template.png
new file mode 100644
index 000000000000..8379765438ba
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-drawing-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-drawing.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-drawing.png
new file mode 100644
index 000000000000..cae97d401f5d
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-drawing.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-formula.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-formula.png
new file mode 100644
index 000000000000..5a90e75eb86b
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-formula.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-master-document.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-master-document.png
new file mode 100644
index 000000000000..19863a5b9300
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-master-document.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-presentation-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-presentation-template.png
new file mode 100644
index 000000000000..d6d2b1d68c37
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-presentation-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-presentation.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-presentation.png
new file mode 100644
index 000000000000..da3fbe6e01c4
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-presentation.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-spreadsheet-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-spreadsheet-template.png
new file mode 100644
index 000000000000..dd0c002feec5
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-spreadsheet-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-spreadsheet.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-spreadsheet.png
new file mode 100644
index 000000000000..7556a2d60f7c
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-spreadsheet.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-text-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-text-template.png
new file mode 100644
index 000000000000..d559e565ca62
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-text-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-text.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-text.png
new file mode 100644
index 000000000000..2a5ea8ff4211
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-text.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-web-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-web-template.png
new file mode 100644
index 000000000000..a7dcefd1c26f
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-web-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/presentation-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/presentation-template.png
new file mode 100644
index 000000000000..0edabbc86f16
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/presentation-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/presentation.png b/sysui/desktop/icons/locolor/32x32/mimetypes/presentation.png
new file mode 100644
index 000000000000..0eee1162ce15
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/presentation.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/spreadsheet-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/spreadsheet-template.png
new file mode 100644
index 000000000000..158a63a58c92
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/spreadsheet-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/spreadsheet.png b/sysui/desktop/icons/locolor/32x32/mimetypes/spreadsheet.png
new file mode 100644
index 000000000000..f7352ab51783
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/spreadsheet.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/text-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/text-template.png
new file mode 100644
index 000000000000..cfba26102380
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/text-template.png
Binary files differ
diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/text.png b/sysui/desktop/icons/locolor/32x32/mimetypes/text.png
new file mode 100644
index 000000000000..77f87e777b7a
--- /dev/null
+++ b/sysui/desktop/icons/locolor/32x32/mimetypes/text.png
Binary files differ
diff --git a/sysui/desktop/icons/macro.icns b/sysui/desktop/icons/macro.icns
new file mode 100755
index 000000000000..00c3978396f0
--- /dev/null
+++ b/sysui/desktop/icons/macro.icns
Binary files differ
diff --git a/sysui/desktop/icons/main.icns b/sysui/desktop/icons/main.icns
new file mode 100755
index 000000000000..c5c80a01e799
--- /dev/null
+++ b/sysui/desktop/icons/main.icns
Binary files differ
diff --git a/sysui/desktop/icons/main.ico b/sysui/desktop/icons/main.ico
new file mode 100644
index 000000000000..20e665faa5e8
--- /dev/null
+++ b/sysui/desktop/icons/main.ico
Binary files differ
diff --git a/sysui/desktop/icons/makefile.mk b/sysui/desktop/icons/makefile.mk
new file mode 100755
index 000000000000..ce5b0b70b636
--- /dev/null
+++ b/sysui/desktop/icons/makefile.mk
@@ -0,0 +1,135 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..
+
+PRJNAME=sysui
+TARGET=icons
+
+# --- Settings -----------------------------------------------------------
+
+.INCLUDE : settings.mk
+
+# --- Targets -------------------------------------------------------------
+
+all: \
+ $(MISC)$/oasis-database.ico \
+ $(MISC)$/oasis-drawing-template.ico \
+ $(MISC)$/oasis-drawing.ico \
+ $(MISC)$/oasis-empty-template.ico \
+ $(MISC)$/oasis-empty-document.ico \
+ $(MISC)$/oasis-formula.ico \
+ $(MISC)$/oasis-master-document.ico \
+ $(MISC)$/oasis-presentation-template.ico \
+ $(MISC)$/oasis-presentation.ico \
+ $(MISC)$/oasis-spreadsheet-template.ico \
+ $(MISC)$/oasis-spreadsheet.ico \
+ $(MISC)$/oasis-text-template.ico \
+ $(MISC)$/oasis-text.ico \
+ $(MISC)$/oasis-web-template.ico \
+ $(MISC)$/database.ico \
+ $(MISC)$/drawing-template.ico \
+ $(MISC)$/drawing.ico \
+ $(MISC)$/empty-template.ico \
+ $(MISC)$/empty-document.ico \
+ $(MISC)$/formula.ico \
+ $(MISC)$/master-document.ico \
+ $(MISC)$/presentation-template.ico \
+ $(MISC)$/presentation.ico \
+ $(MISC)$/spreadsheet-template.ico \
+ $(MISC)$/spreadsheet.ico \
+ $(MISC)$/text-template.ico \
+ $(MISC)$/text.ico \
+ $(MISC)$/ooo-base-app.ico \
+ $(MISC)$/ooo-base-doc.ico \
+ $(MISC)$/ooo-calc-app.ico \
+ $(MISC)$/ooo-calc-doc.ico \
+ $(MISC)$/ooo-calc-tem.ico \
+ $(MISC)$/ooo-chart-doc.ico \
+ $(MISC)$/ooo-configuration.ico \
+ $(MISC)$/ooo-draw-app.ico \
+ $(MISC)$/ooo-draw-doc.ico \
+ $(MISC)$/ooo-draw-tem.ico \
+ $(MISC)$/ooo-empty-doc.ico \
+ $(MISC)$/ooo-empty-tem.ico \
+ $(MISC)$/ooo-image-doc.ico \
+ $(MISC)$/ooo-impress-app.ico \
+ $(MISC)$/ooo-impress-doc.ico \
+ $(MISC)$/ooo-impress-tem.ico \
+ $(MISC)$/ooo-macro-doc.ico \
+ $(MISC)$/ooo-main-app.ico \
+ $(MISC)$/ooo-master-doc.ico \
+ $(MISC)$/ooo-math-app.ico \
+ $(MISC)$/ooo-math-doc.ico \
+ $(MISC)$/ooo-open.ico \
+ $(MISC)$/ooo-printer.ico \
+ $(MISC)$/ooo-web-doc.ico \
+ $(MISC)$/ooo-writer-app.ico \
+ $(MISC)$/ooo-writer-doc.ico \
+ $(MISC)$/ooo-writer-tem.ico \
+ $(MISC)$/ooo3_calc_doc.ico \
+ $(MISC)$/ooo3_macro_doc.ico \
+ $(MISC)$/ooo3_impress_app.ico \
+ $(MISC)$/ooo3_global_doc.ico \
+ $(MISC)$/ooo3_draw_doc.ico \
+ $(MISC)$/ooo3_chart_doc.ico \
+ $(MISC)$/ooo3_calc_app.ico \
+ $(MISC)$/ooo3_draw_app.ico \
+ $(MISC)$/ooo3_impress_doc.ico \
+ $(MISC)$/ooo3_impress_tem.ico \
+ $(MISC)$/ooo3_html_doc.ico \
+ $(MISC)$/ooo3_base_app.ico \
+ $(MISC)$/ooo3_draw_tem.ico \
+ $(MISC)$/ooo3_base_doc.ico \
+ $(MISC)$/ooo3_calc_tem.ico \
+ $(MISC)$/ooo3_writer_app.ico \
+ $(MISC)$/ooo3_math_app.ico \
+ $(MISC)$/ooo3_main_app.ico \
+ $(MISC)$/ooo3_empty_doc.ico \
+ $(MISC)$/ooo3_writer_doc.ico \
+ $(MISC)$/ooo3_math_doc.ico \
+ $(MISC)$/ooo3_writer_tem.ico \
+ $(MISC)$/ooo3_empty_tem.ico \
+ $(MISC)$/ooo3_open.ico \
+ $(MISC)$/ooo11-base-doc.ico \
+ $(MISC)$/ooo11-calc-doc.ico \
+ $(MISC)$/ooo11-calc-tem.ico \
+ $(MISC)$/ooo11-chart-doc.ico \
+ $(MISC)$/ooo11-draw-doc.ico \
+ $(MISC)$/ooo11-draw-tem.ico \
+ $(MISC)$/ooo11-impress-doc.ico \
+ $(MISC)$/ooo11-impress-tem.ico \
+ $(MISC)$/ooo11-master-doc.ico \
+ $(MISC)$/ooo11-math-doc.ico \
+ $(MISC)$/ooo11-writer-doc.ico \
+ $(MISC)$/ooo11-writer-tem.ico \
+ $(MISC)$/oxt-extension.ico
+
+$(MISC)$/%.ico: %.ico
+ $(COPY) $< $@
+
+.INCLUDE : target.mk
diff --git a/sysui/desktop/icons/master-document.icns b/sysui/desktop/icons/master-document.icns
new file mode 100755
index 000000000000..4b0cf1bb7ea6
--- /dev/null
+++ b/sysui/desktop/icons/master-document.icns
Binary files differ
diff --git a/sysui/desktop/icons/master-document.ico b/sysui/desktop/icons/master-document.ico
new file mode 100644
index 000000000000..bb849c6e011e
--- /dev/null
+++ b/sysui/desktop/icons/master-document.ico
Binary files differ
diff --git a/sysui/desktop/icons/math.icns b/sysui/desktop/icons/math.icns
new file mode 100755
index 000000000000..283c176e9081
--- /dev/null
+++ b/sysui/desktop/icons/math.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-chart.icns b/sysui/desktop/icons/oasis-chart.icns
new file mode 100755
index 000000000000..acdb9709de84
--- /dev/null
+++ b/sysui/desktop/icons/oasis-chart.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-database.icns b/sysui/desktop/icons/oasis-database.icns
new file mode 100755
index 000000000000..9fa0bbf3ed67
--- /dev/null
+++ b/sysui/desktop/icons/oasis-database.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-database.ico b/sysui/desktop/icons/oasis-database.ico
new file mode 100644
index 000000000000..02cf7a484023
--- /dev/null
+++ b/sysui/desktop/icons/oasis-database.ico
Binary files differ
diff --git a/sysui/desktop/icons/oasis-drawing-template.icns b/sysui/desktop/icons/oasis-drawing-template.icns
new file mode 100755
index 000000000000..64c373ecaa33
--- /dev/null
+++ b/sysui/desktop/icons/oasis-drawing-template.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-drawing-template.ico b/sysui/desktop/icons/oasis-drawing-template.ico
new file mode 100644
index 000000000000..af2e9ffd93d9
--- /dev/null
+++ b/sysui/desktop/icons/oasis-drawing-template.ico
Binary files differ
diff --git a/sysui/desktop/icons/oasis-drawing.icns b/sysui/desktop/icons/oasis-drawing.icns
new file mode 100755
index 000000000000..d179d041a6ca
--- /dev/null
+++ b/sysui/desktop/icons/oasis-drawing.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-drawing.ico b/sysui/desktop/icons/oasis-drawing.ico
new file mode 100644
index 000000000000..5297daeee5b6
--- /dev/null
+++ b/sysui/desktop/icons/oasis-drawing.ico
Binary files differ
diff --git a/sysui/desktop/icons/oasis-empty-document.icns b/sysui/desktop/icons/oasis-empty-document.icns
new file mode 100755
index 000000000000..c5c80a01e799
--- /dev/null
+++ b/sysui/desktop/icons/oasis-empty-document.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-empty-document.ico b/sysui/desktop/icons/oasis-empty-document.ico
new file mode 100644
index 000000000000..20e665faa5e8
--- /dev/null
+++ b/sysui/desktop/icons/oasis-empty-document.ico
Binary files differ
diff --git a/sysui/desktop/icons/oasis-empty-template.icns b/sysui/desktop/icons/oasis-empty-template.icns
new file mode 100755
index 000000000000..c5c80a01e799
--- /dev/null
+++ b/sysui/desktop/icons/oasis-empty-template.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-empty-template.ico b/sysui/desktop/icons/oasis-empty-template.ico
new file mode 100644
index 000000000000..20e665faa5e8
--- /dev/null
+++ b/sysui/desktop/icons/oasis-empty-template.ico
Binary files differ
diff --git a/sysui/desktop/icons/oasis-formula.icns b/sysui/desktop/icons/oasis-formula.icns
new file mode 100755
index 000000000000..f6dc588095f4
--- /dev/null
+++ b/sysui/desktop/icons/oasis-formula.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-formula.ico b/sysui/desktop/icons/oasis-formula.ico
new file mode 100644
index 000000000000..fb2f6515bdb2
--- /dev/null
+++ b/sysui/desktop/icons/oasis-formula.ico
Binary files differ
diff --git a/sysui/desktop/icons/oasis-master-document.icns b/sysui/desktop/icons/oasis-master-document.icns
new file mode 100755
index 000000000000..4b0cf1bb7ea6
--- /dev/null
+++ b/sysui/desktop/icons/oasis-master-document.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-master-document.ico b/sysui/desktop/icons/oasis-master-document.ico
new file mode 100644
index 000000000000..bb849c6e011e
--- /dev/null
+++ b/sysui/desktop/icons/oasis-master-document.ico
Binary files differ
diff --git a/sysui/desktop/icons/oasis-presentation-template.icns b/sysui/desktop/icons/oasis-presentation-template.icns
new file mode 100755
index 000000000000..324dc7aae336
--- /dev/null
+++ b/sysui/desktop/icons/oasis-presentation-template.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-presentation-template.ico b/sysui/desktop/icons/oasis-presentation-template.ico
new file mode 100644
index 000000000000..7e99e381a3ff
--- /dev/null
+++ b/sysui/desktop/icons/oasis-presentation-template.ico
Binary files differ
diff --git a/sysui/desktop/icons/oasis-presentation.icns b/sysui/desktop/icons/oasis-presentation.icns
new file mode 100755
index 000000000000..c9bc5d020470
--- /dev/null
+++ b/sysui/desktop/icons/oasis-presentation.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-presentation.ico b/sysui/desktop/icons/oasis-presentation.ico
new file mode 100644
index 000000000000..9e96c3e57653
--- /dev/null
+++ b/sysui/desktop/icons/oasis-presentation.ico
Binary files differ
diff --git a/sysui/desktop/icons/oasis-spreadsheet-template.icns b/sysui/desktop/icons/oasis-spreadsheet-template.icns
new file mode 100755
index 000000000000..f527a14b7969
--- /dev/null
+++ b/sysui/desktop/icons/oasis-spreadsheet-template.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-spreadsheet-template.ico b/sysui/desktop/icons/oasis-spreadsheet-template.ico
new file mode 100644
index 000000000000..a4723714d65f
--- /dev/null
+++ b/sysui/desktop/icons/oasis-spreadsheet-template.ico
Binary files differ
diff --git a/sysui/desktop/icons/oasis-spreadsheet.icns b/sysui/desktop/icons/oasis-spreadsheet.icns
new file mode 100755
index 000000000000..9d61c699c47b
--- /dev/null
+++ b/sysui/desktop/icons/oasis-spreadsheet.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-spreadsheet.ico b/sysui/desktop/icons/oasis-spreadsheet.ico
new file mode 100644
index 000000000000..a9dd6462e742
--- /dev/null
+++ b/sysui/desktop/icons/oasis-spreadsheet.ico
Binary files differ
diff --git a/sysui/desktop/icons/oasis-text-template.icns b/sysui/desktop/icons/oasis-text-template.icns
new file mode 100755
index 000000000000..accd48b9bdd2
--- /dev/null
+++ b/sysui/desktop/icons/oasis-text-template.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-text-template.ico b/sysui/desktop/icons/oasis-text-template.ico
new file mode 100644
index 000000000000..4d33ca0d5a38
--- /dev/null
+++ b/sysui/desktop/icons/oasis-text-template.ico
Binary files differ
diff --git a/sysui/desktop/icons/oasis-text.icns b/sysui/desktop/icons/oasis-text.icns
new file mode 100755
index 000000000000..9b7a301ee02b
--- /dev/null
+++ b/sysui/desktop/icons/oasis-text.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-text.ico b/sysui/desktop/icons/oasis-text.ico
new file mode 100644
index 000000000000..cb08cc50e27e
--- /dev/null
+++ b/sysui/desktop/icons/oasis-text.ico
Binary files differ
diff --git a/sysui/desktop/icons/oasis-web-template.icns b/sysui/desktop/icons/oasis-web-template.icns
new file mode 100755
index 000000000000..735223732855
--- /dev/null
+++ b/sysui/desktop/icons/oasis-web-template.icns
Binary files differ
diff --git a/sysui/desktop/icons/oasis-web-template.ico b/sysui/desktop/icons/oasis-web-template.ico
new file mode 100644
index 000000000000..70c5d61ce49c
--- /dev/null
+++ b/sysui/desktop/icons/oasis-web-template.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-base-app.ico b/sysui/desktop/icons/ooo-base-app.ico
new file mode 100644
index 000000000000..e9af06abd9b1
--- /dev/null
+++ b/sysui/desktop/icons/ooo-base-app.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-base-doc.ico b/sysui/desktop/icons/ooo-base-doc.ico
new file mode 100644
index 000000000000..62411deef5e1
--- /dev/null
+++ b/sysui/desktop/icons/ooo-base-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-calc-app.ico b/sysui/desktop/icons/ooo-calc-app.ico
new file mode 100644
index 000000000000..8d91367e5a2f
--- /dev/null
+++ b/sysui/desktop/icons/ooo-calc-app.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-calc-doc.ico b/sysui/desktop/icons/ooo-calc-doc.ico
new file mode 100644
index 000000000000..06c49654b4f9
--- /dev/null
+++ b/sysui/desktop/icons/ooo-calc-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-calc-tem.ico b/sysui/desktop/icons/ooo-calc-tem.ico
new file mode 100644
index 000000000000..cb34adc84da1
--- /dev/null
+++ b/sysui/desktop/icons/ooo-calc-tem.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-chart-doc.ico b/sysui/desktop/icons/ooo-chart-doc.ico
new file mode 100644
index 000000000000..4a50158b4053
--- /dev/null
+++ b/sysui/desktop/icons/ooo-chart-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-configuration.ico b/sysui/desktop/icons/ooo-configuration.ico
new file mode 100644
index 000000000000..9bae70b68b25
--- /dev/null
+++ b/sysui/desktop/icons/ooo-configuration.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-draw-app.ico b/sysui/desktop/icons/ooo-draw-app.ico
new file mode 100644
index 000000000000..9f4f0c35af14
--- /dev/null
+++ b/sysui/desktop/icons/ooo-draw-app.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-draw-doc.ico b/sysui/desktop/icons/ooo-draw-doc.ico
new file mode 100644
index 000000000000..96d0710455e8
--- /dev/null
+++ b/sysui/desktop/icons/ooo-draw-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-draw-tem.ico b/sysui/desktop/icons/ooo-draw-tem.ico
new file mode 100644
index 000000000000..6b18169708d8
--- /dev/null
+++ b/sysui/desktop/icons/ooo-draw-tem.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-empty-doc.ico b/sysui/desktop/icons/ooo-empty-doc.ico
new file mode 100644
index 000000000000..bd3aa12af516
--- /dev/null
+++ b/sysui/desktop/icons/ooo-empty-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-empty-tem.ico b/sysui/desktop/icons/ooo-empty-tem.ico
new file mode 100644
index 000000000000..b68f0f15f5bd
--- /dev/null
+++ b/sysui/desktop/icons/ooo-empty-tem.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-image-doc.ico b/sysui/desktop/icons/ooo-image-doc.ico
new file mode 100644
index 000000000000..96d0710455e8
--- /dev/null
+++ b/sysui/desktop/icons/ooo-image-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-impress-app.ico b/sysui/desktop/icons/ooo-impress-app.ico
new file mode 100644
index 000000000000..7dcd17aba264
--- /dev/null
+++ b/sysui/desktop/icons/ooo-impress-app.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-impress-doc.ico b/sysui/desktop/icons/ooo-impress-doc.ico
new file mode 100644
index 000000000000..9da080cefaee
--- /dev/null
+++ b/sysui/desktop/icons/ooo-impress-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-impress-tem.ico b/sysui/desktop/icons/ooo-impress-tem.ico
new file mode 100644
index 000000000000..aa861d8bfb84
--- /dev/null
+++ b/sysui/desktop/icons/ooo-impress-tem.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-macro-doc.ico b/sysui/desktop/icons/ooo-macro-doc.ico
new file mode 100644
index 000000000000..266e35d047b7
--- /dev/null
+++ b/sysui/desktop/icons/ooo-macro-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-main-app.ico b/sysui/desktop/icons/ooo-main-app.ico
new file mode 100644
index 000000000000..fa01babdb9c7
--- /dev/null
+++ b/sysui/desktop/icons/ooo-main-app.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-master-doc.ico b/sysui/desktop/icons/ooo-master-doc.ico
new file mode 100644
index 000000000000..4a157a9c27b9
--- /dev/null
+++ b/sysui/desktop/icons/ooo-master-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-math-app.ico b/sysui/desktop/icons/ooo-math-app.ico
new file mode 100644
index 000000000000..d182fd54bc2a
--- /dev/null
+++ b/sysui/desktop/icons/ooo-math-app.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-math-doc.ico b/sysui/desktop/icons/ooo-math-doc.ico
new file mode 100644
index 000000000000..786127ab2686
--- /dev/null
+++ b/sysui/desktop/icons/ooo-math-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-open.ico b/sysui/desktop/icons/ooo-open.ico
new file mode 100644
index 000000000000..78987aec3422
--- /dev/null
+++ b/sysui/desktop/icons/ooo-open.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-printer.ico b/sysui/desktop/icons/ooo-printer.ico
new file mode 100644
index 000000000000..14882d1d1a07
--- /dev/null
+++ b/sysui/desktop/icons/ooo-printer.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-web-doc.ico b/sysui/desktop/icons/ooo-web-doc.ico
new file mode 100644
index 000000000000..f03da4e65d00
--- /dev/null
+++ b/sysui/desktop/icons/ooo-web-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-writer-app.ico b/sysui/desktop/icons/ooo-writer-app.ico
new file mode 100644
index 000000000000..22c9661f1ce0
--- /dev/null
+++ b/sysui/desktop/icons/ooo-writer-app.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-writer-doc.ico b/sysui/desktop/icons/ooo-writer-doc.ico
new file mode 100644
index 000000000000..694a166d4516
--- /dev/null
+++ b/sysui/desktop/icons/ooo-writer-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo-writer-tem.ico b/sysui/desktop/icons/ooo-writer-tem.ico
new file mode 100644
index 000000000000..9379f9bc0c75
--- /dev/null
+++ b/sysui/desktop/icons/ooo-writer-tem.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo11-base-doc.ico b/sysui/desktop/icons/ooo11-base-doc.ico
new file mode 100644
index 000000000000..e2377f4422b4
--- /dev/null
+++ b/sysui/desktop/icons/ooo11-base-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo11-calc-doc.ico b/sysui/desktop/icons/ooo11-calc-doc.ico
new file mode 100644
index 000000000000..bce2ae3628cb
--- /dev/null
+++ b/sysui/desktop/icons/ooo11-calc-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo11-calc-tem.ico b/sysui/desktop/icons/ooo11-calc-tem.ico
new file mode 100644
index 000000000000..bce2ae3628cb
--- /dev/null
+++ b/sysui/desktop/icons/ooo11-calc-tem.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo11-chart-doc.ico b/sysui/desktop/icons/ooo11-chart-doc.ico
new file mode 100644
index 000000000000..e2377f4422b4
--- /dev/null
+++ b/sysui/desktop/icons/ooo11-chart-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo11-draw-doc.ico b/sysui/desktop/icons/ooo11-draw-doc.ico
new file mode 100644
index 000000000000..2d3a08807509
--- /dev/null
+++ b/sysui/desktop/icons/ooo11-draw-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo11-draw-tem.ico b/sysui/desktop/icons/ooo11-draw-tem.ico
new file mode 100644
index 000000000000..2d3a08807509
--- /dev/null
+++ b/sysui/desktop/icons/ooo11-draw-tem.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo11-impress-doc.ico b/sysui/desktop/icons/ooo11-impress-doc.ico
new file mode 100644
index 000000000000..173db796ccce
--- /dev/null
+++ b/sysui/desktop/icons/ooo11-impress-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo11-impress-tem.ico b/sysui/desktop/icons/ooo11-impress-tem.ico
new file mode 100644
index 000000000000..173db796ccce
--- /dev/null
+++ b/sysui/desktop/icons/ooo11-impress-tem.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo11-master-doc.ico b/sysui/desktop/icons/ooo11-master-doc.ico
new file mode 100644
index 000000000000..e2377f4422b4
--- /dev/null
+++ b/sysui/desktop/icons/ooo11-master-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo11-math-doc.ico b/sysui/desktop/icons/ooo11-math-doc.ico
new file mode 100644
index 000000000000..6360ec449502
--- /dev/null
+++ b/sysui/desktop/icons/ooo11-math-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo11-writer-doc.ico b/sysui/desktop/icons/ooo11-writer-doc.ico
new file mode 100644
index 000000000000..745a58b5189f
--- /dev/null
+++ b/sysui/desktop/icons/ooo11-writer-doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo11-writer-tem.ico b/sysui/desktop/icons/ooo11-writer-tem.ico
new file mode 100644
index 000000000000..745a58b5189f
--- /dev/null
+++ b/sysui/desktop/icons/ooo11-writer-tem.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_base_app.icns b/sysui/desktop/icons/ooo3_base_app.icns
new file mode 100755
index 000000000000..9fa0bbf3ed67
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_base_app.icns
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_base_app.ico b/sysui/desktop/icons/ooo3_base_app.ico
new file mode 100644
index 000000000000..02cf7a484023
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_base_app.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_base_doc.ico b/sysui/desktop/icons/ooo3_base_doc.ico
new file mode 100644
index 000000000000..87c58e600eb5
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_base_doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_calc_app.icns b/sysui/desktop/icons/ooo3_calc_app.icns
new file mode 100755
index 000000000000..9d61c699c47b
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_calc_app.icns
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_calc_app.ico b/sysui/desktop/icons/ooo3_calc_app.ico
new file mode 100644
index 000000000000..a9dd6462e742
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_calc_app.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_calc_doc.ico b/sysui/desktop/icons/ooo3_calc_doc.ico
new file mode 100644
index 000000000000..92741f3c6e84
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_calc_doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_calc_tem.ico b/sysui/desktop/icons/ooo3_calc_tem.ico
new file mode 100644
index 000000000000..2a72a5ad4d80
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_calc_tem.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_chart_doc.ico b/sysui/desktop/icons/ooo3_chart_doc.ico
new file mode 100644
index 000000000000..5c46bd462650
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_chart_doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_draw_app.icns b/sysui/desktop/icons/ooo3_draw_app.icns
new file mode 100755
index 000000000000..d179d041a6ca
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_draw_app.icns
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_draw_app.ico b/sysui/desktop/icons/ooo3_draw_app.ico
new file mode 100644
index 000000000000..5297daeee5b6
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_draw_app.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_draw_doc.ico b/sysui/desktop/icons/ooo3_draw_doc.ico
new file mode 100644
index 000000000000..47ed3efbc406
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_draw_doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_draw_tem.ico b/sysui/desktop/icons/ooo3_draw_tem.ico
new file mode 100644
index 000000000000..4a55c995be55
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_draw_tem.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_empty_doc.ico b/sysui/desktop/icons/ooo3_empty_doc.ico
new file mode 100644
index 000000000000..67e3c345e69d
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_empty_doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_empty_tem.ico b/sysui/desktop/icons/ooo3_empty_tem.ico
new file mode 100644
index 000000000000..eecd336bc4b1
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_empty_tem.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_global_doc.ico b/sysui/desktop/icons/ooo3_global_doc.ico
new file mode 100644
index 000000000000..c7113f89e089
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_global_doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_html_doc.ico b/sysui/desktop/icons/ooo3_html_doc.ico
new file mode 100644
index 000000000000..2c8b5c527eb1
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_html_doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_impress_app.icns b/sysui/desktop/icons/ooo3_impress_app.icns
new file mode 100755
index 000000000000..c9bc5d020470
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_impress_app.icns
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_impress_app.ico b/sysui/desktop/icons/ooo3_impress_app.ico
new file mode 100644
index 000000000000..9e96c3e57653
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_impress_app.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_impress_doc.ico b/sysui/desktop/icons/ooo3_impress_doc.ico
new file mode 100644
index 000000000000..0e80d9b01d46
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_impress_doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_impress_tem.ico b/sysui/desktop/icons/ooo3_impress_tem.ico
new file mode 100644
index 000000000000..15f988dcd541
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_impress_tem.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_macro_doc.ico b/sysui/desktop/icons/ooo3_macro_doc.ico
new file mode 100644
index 000000000000..6c614ad05d50
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_macro_doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_main_app.icns b/sysui/desktop/icons/ooo3_main_app.icns
new file mode 100755
index 000000000000..c5c80a01e799
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_main_app.icns
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_main_app.ico b/sysui/desktop/icons/ooo3_main_app.ico
new file mode 100644
index 000000000000..20e665faa5e8
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_main_app.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_math_app.icns b/sysui/desktop/icons/ooo3_math_app.icns
new file mode 100755
index 000000000000..f6dc588095f4
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_math_app.icns
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_math_app.ico b/sysui/desktop/icons/ooo3_math_app.ico
new file mode 100644
index 000000000000..fb2f6515bdb2
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_math_app.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_math_doc.ico b/sysui/desktop/icons/ooo3_math_doc.ico
new file mode 100644
index 000000000000..9e349dcfcbfd
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_math_doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_open.icns b/sysui/desktop/icons/ooo3_open.icns
new file mode 100755
index 000000000000..c5c80a01e799
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_open.icns
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_open.ico b/sysui/desktop/icons/ooo3_open.ico
new file mode 100644
index 000000000000..20e665faa5e8
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_open.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_writer_app.icns b/sysui/desktop/icons/ooo3_writer_app.icns
new file mode 100755
index 000000000000..9b7a301ee02b
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_writer_app.icns
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_writer_app.ico b/sysui/desktop/icons/ooo3_writer_app.ico
new file mode 100644
index 000000000000..cb08cc50e27e
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_writer_app.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_writer_doc.ico b/sysui/desktop/icons/ooo3_writer_doc.ico
new file mode 100644
index 000000000000..1ed299a865f9
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_writer_doc.ico
Binary files differ
diff --git a/sysui/desktop/icons/ooo3_writer_tem.ico b/sysui/desktop/icons/ooo3_writer_tem.ico
new file mode 100644
index 000000000000..f609be128aaf
--- /dev/null
+++ b/sysui/desktop/icons/ooo3_writer_tem.ico
Binary files differ
diff --git a/sysui/desktop/icons/open.icns b/sysui/desktop/icons/open.icns
new file mode 100755
index 000000000000..620f8e125bd6
--- /dev/null
+++ b/sysui/desktop/icons/open.icns
Binary files differ
diff --git a/sysui/desktop/icons/oxt-extension.ico b/sysui/desktop/icons/oxt-extension.ico
new file mode 100644
index 000000000000..b6c1808d4372
--- /dev/null
+++ b/sysui/desktop/icons/oxt-extension.ico
Binary files differ
diff --git a/sysui/desktop/icons/presentation-template.icns b/sysui/desktop/icons/presentation-template.icns
new file mode 100755
index 000000000000..324dc7aae336
--- /dev/null
+++ b/sysui/desktop/icons/presentation-template.icns
Binary files differ
diff --git a/sysui/desktop/icons/presentation-template.ico b/sysui/desktop/icons/presentation-template.ico
new file mode 100644
index 000000000000..7e99e381a3ff
--- /dev/null
+++ b/sysui/desktop/icons/presentation-template.ico
Binary files differ
diff --git a/sysui/desktop/icons/presentation.icns b/sysui/desktop/icons/presentation.icns
new file mode 100755
index 000000000000..c9bc5d020470
--- /dev/null
+++ b/sysui/desktop/icons/presentation.icns
Binary files differ
diff --git a/sysui/desktop/icons/presentation.ico b/sysui/desktop/icons/presentation.ico
new file mode 100644
index 000000000000..9e96c3e57653
--- /dev/null
+++ b/sysui/desktop/icons/presentation.ico
Binary files differ
diff --git a/sysui/desktop/icons/printer.icns b/sysui/desktop/icons/printer.icns
new file mode 100755
index 000000000000..a1eb59934526
--- /dev/null
+++ b/sysui/desktop/icons/printer.icns
Binary files differ
diff --git a/sysui/desktop/icons/spreadsheet-template.icns b/sysui/desktop/icons/spreadsheet-template.icns
new file mode 100755
index 000000000000..f527a14b7969
--- /dev/null
+++ b/sysui/desktop/icons/spreadsheet-template.icns
Binary files differ
diff --git a/sysui/desktop/icons/spreadsheet-template.ico b/sysui/desktop/icons/spreadsheet-template.ico
new file mode 100644
index 000000000000..a4723714d65f
--- /dev/null
+++ b/sysui/desktop/icons/spreadsheet-template.ico
Binary files differ
diff --git a/sysui/desktop/icons/spreadsheet.icns b/sysui/desktop/icons/spreadsheet.icns
new file mode 100755
index 000000000000..9d61c699c47b
--- /dev/null
+++ b/sysui/desktop/icons/spreadsheet.icns
Binary files differ
diff --git a/sysui/desktop/icons/spreadsheet.ico b/sysui/desktop/icons/spreadsheet.ico
new file mode 100644
index 000000000000..a9dd6462e742
--- /dev/null
+++ b/sysui/desktop/icons/spreadsheet.ico
Binary files differ
diff --git a/sysui/desktop/icons/text-template.icns b/sysui/desktop/icons/text-template.icns
new file mode 100755
index 000000000000..accd48b9bdd2
--- /dev/null
+++ b/sysui/desktop/icons/text-template.icns
Binary files differ
diff --git a/sysui/desktop/icons/text-template.ico b/sysui/desktop/icons/text-template.ico
new file mode 100644
index 000000000000..4d33ca0d5a38
--- /dev/null
+++ b/sysui/desktop/icons/text-template.ico
Binary files differ
diff --git a/sysui/desktop/icons/text.icns b/sysui/desktop/icons/text.icns
new file mode 100755
index 000000000000..9b7a301ee02b
--- /dev/null
+++ b/sysui/desktop/icons/text.icns
Binary files differ
diff --git a/sysui/desktop/icons/text.ico b/sysui/desktop/icons/text.ico
new file mode 100644
index 000000000000..cb08cc50e27e
--- /dev/null
+++ b/sysui/desktop/icons/text.ico
Binary files differ
diff --git a/sysui/desktop/icons/writer.icns b/sysui/desktop/icons/writer.icns
new file mode 100755
index 000000000000..d0f44815e8fa
--- /dev/null
+++ b/sysui/desktop/icons/writer.icns
Binary files differ
diff --git a/sysui/desktop/macosx/Info.plist b/sysui/desktop/macosx/Info.plist
new file mode 100755
index 000000000000..8100df25d2a1
--- /dev/null
+++ b/sysui/desktop/macosx/Info.plist
@@ -0,0 +1,1408 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <!-- UTI declarations for OS X >= 10.4 -->
+ <key>UTExportedTypeDeclarations</key>
+ <array>
+ <!-- Writer documents -->
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.openoffice.text</string>
+ <key>UTTypeDescription</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Text</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>sxw</string>
+ <string>sdw</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.sun.xml.writer</string>
+ <string>application/vnd.stardivision.writer</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.oasis-open.opendocument.text</string>
+ <key>UTTypeDescription</key>
+ <string>OpenDocument Text</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>odt</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.text</string>
+ </array>
+ </dict>
+ </dict>
+
+ <!-- Calc documents -->
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.openoffice.spreadsheet</string>
+ <key>UTTypeDescription</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Spreadsheet</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>sxc</string>
+ <string>sdc</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.sun.xml.calc</string>
+ <string>application/vnd.stardivision.calc</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.oasis-open.opendocument.spreadsheet</string>
+ <key>UTTypeDescription</key>
+ <string>OpenDocument Spreadsheet</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>ods</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.spreadsheet</string>
+ </array>
+ </dict>
+ </dict>
+
+ <!-- Impress documents -->
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.openoffice.presentation</string>
+ <key>UTTypeDescription</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Presentation</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>sxi</string>
+ <string>sdd</string>
+ <string>sdp</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.sun.xml.impress</string>
+ <string>application/vnd.stardivision.impress</string>
+ <string>application/vnd.stardivision.impress-packed</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.oasis-open.opendocument.presentation</string>
+ <key>UTTypeDescription</key>
+ <string>OpenDocument Presentation</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>odp</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.presentation</string>
+ </array>
+ </dict>
+ </dict>
+
+ <!-- Draw documents -->
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.openoffice.graphics</string>
+ <key>UTTypeDescription</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Drawing</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>sxd</string>
+ <string>sda</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.sun.xml.draw</string>
+ <string>application/vnd.stardivision.draw</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.oasis-open.opendocument.graphics</string>
+ <key>UTTypeDescription</key>
+ <string>OpenDocument Drawing</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>odg</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.graphics</string>
+ </array>
+ </dict>
+ </dict>
+
+ <!-- Text master documents -->
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.openoffice.text-master</string>
+ <key>UTTypeDescription</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Master</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>sxg</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.sun.xml.writer.global</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.oasis-open.opendocument.text-master</string>
+ <key>UTTypeDescription</key>
+ <string>OpenDocument Master</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>odm</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.text-master</string>
+ </array>
+ </dict>
+ </dict>
+
+ <!-- Math documents -->
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.openoffice.formula</string>
+ <key>UTTypeDescription</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Formula</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>sxm</string>
+ <string>smf</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.sun.xml.math</string>
+ <string>application/vnd.stardivision.math</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.oasis-open.opendocument.formula</string>
+ <key>UTTypeDescription</key>
+ <string>OpenDocument Formula</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>odf</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.formula</string>
+ </array>
+ </dict>
+ </dict>
+
+ <!-- Text template documents -->
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.openoffice.text-template</string>
+ <key>UTTypeDescription</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Text Template</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>stw</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.sun.xml.writer.template</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.oasis-open.opendocument.text-template</string>
+ <key>UTTypeDescription</key>
+ <string>OpenDocument Text Template</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>ott</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.text-template</string>
+ </array>
+ </dict>
+ </dict>
+
+ <!-- Spreadsheet template documents -->
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.openoffice.spreadsheet-template</string>
+ <key>UTTypeDescription</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Spreadsheet Template</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>stc</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.sun.xml.calc.template</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.oasis-open.opendocument.spreadsheet-template</string>
+ <key>UTTypeDescription</key>
+ <string>OpenDocument Spreadsheet Template</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>ots</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.spreadsheet-template</string>
+ </array>
+ </dict>
+ </dict>
+
+ <!-- Presentation template documents -->
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.openoffice.presentation-template</string>
+ <key>UTTypeDescription</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Presentation Template</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>sti</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.sun.xml.impress.template</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.oasis-open.opendocument.presentation-template</string>
+ <key>UTTypeDescription</key>
+ <string>OpenDocument Presentation Template</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>otp</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.presentation-template</string>
+ </array>
+ </dict>
+ </dict>
+
+ <!-- Drawing template documents -->
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.openoffice.graphics-template</string>
+ <key>UTTypeDescription</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Drawing Template</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>std</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.sun.xml.draw.template</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.oasis-open.opendocument.graphics-template</string>
+ <key>UTTypeDescription</key>
+ <string>OpenDocument Drawing Template</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>otg</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.graphics-template</string>
+ </array>
+ </dict>
+ </dict>
+
+ <!-- Base documents -->
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.oasis-open.opendocument.database</string>
+ <key>UTTypeDescription</key>
+ <string>OpenDocument Database</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>odb</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.database</string>
+ </array>
+ </dict>
+ </dict>
+
+ <!-- Extensions -->
+ <dict>
+ <key>UTTypeIdentifier</key>
+ <string>org.openoffice.extension</string>
+ <key>UTTypeDescription</key>
+ <string>${PRODUCTNAME} Extension</string>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ <string>public.content</string>
+ </array>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>oxt</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.openofficeorg.extension</string>
+ </array>
+ </dict>
+ </dict>
+ </array>
+
+ <key>UTImportedTypeDeclarations</key>
+ <array>
+ <!-- Microsoft Word XML -->
+ <dict>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>org.openxmlformats.openxml</string>
+ <string>public.composite-content</string>
+ </array>
+ <key>UTTypeDescription</key>
+ <string>Office Open XML word processing document</string>
+ <key>UTTypeIdentifier</key>
+ <string>org.openxmlformats.wordprocessingml.document</string>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>docx</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.openxmlformats-officedocument.wordprocessingml.document</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>org.openxmlformats.openxml</string>
+ <string>public.composite-content</string>
+ <string>public.executable</string>
+ </array>
+ <key>UTTypeDescription</key>
+ <string>Office Open XML word processing document (macros enabled)</string>
+ <key>UTTypeIdentifier</key>
+ <string>org.openxmlformats.wordprocessingml.document.macroenabled</string>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>docm</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.ms-word.document.macroEnabled.12</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>org.openxmlformats.openxml</string>
+ <string>public.composite-content</string>
+ </array>
+ <key>UTTypeDescription</key>
+ <string>Office Open XML word processing template</string>
+ <key>UTTypeIdentifier</key>
+ <string>org.openxmlformats.wordprocessingml.template</string>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>dotx</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.openxmlformats-officedocument.wordprocessingml.template</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>org.openxmlformats.openxml</string>
+ <string>public.composite-content</string>
+ <string>public.executable</string>
+ </array>
+ <key>UTTypeDescription</key>
+ <string>Office Open XML word processing template (macros enabled)</string>
+ <key>UTTypeIdentifier</key>
+ <string>org.openxmlformats.wordprocessingml.template.macroenabled</string>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>dotm</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.ms-word.template.macroEnabled.12</string>
+ </array>
+ </dict>
+ </dict>
+
+ <!-- Microsoft Excel XML -->
+ <dict>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>org.openxmlformats.openxml</string>
+ <string>public.composite-content</string>
+ </array>
+ <key>UTTypeDescription</key>
+ <string>Office Open XML spreadsheet template</string>
+ <key>UTTypeIdentifier</key>
+ <string>org.openxmlformats.spreadsheetml.template</string>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>xltx</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.openxmlformats-officedocument.spreadsheetml.template</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>org.openxmlformats.openxml</string>
+ <string>public.composite-content</string>
+ <string>public.executable</string>
+ </array>
+ <key>UTTypeDescription</key>
+ <string>Office Open XML spreadsheet template (macros enabled)</string>
+ <key>UTTypeIdentifier</key>
+ <string>org.openxmlformats.spreadsheetml.template.macroenabled</string>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>xltm</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.ms-excel.template.macroEnabled.12</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>org.openxmlformats.openxml</string>
+ <string>public.composite-content</string>
+ </array>
+ <key>UTTypeDescription</key>
+ <string>Office Open XML spreadsheet</string>
+ <key>UTTypeIdentifier</key>
+ <string>org.openxmlformats.spreadsheetml.sheet</string>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>xlsx</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.zip-archive</string>
+ <string>public.composite-content</string>
+ <string>public.executable</string>
+ </array>
+ <key>UTTypeDescription</key>
+ <string>Microsoft Excel 2007 spreadsheet (macros enabled)</string>
+ <key>UTTypeIdentifier</key>
+ <string>com.microsoft.excel.sheet.binary.macroenabled</string>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>xlsb</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.ms-excel.sheet.binary.macroEnabled.12</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>org.openxmlformats.openxml</string>
+ <string>public.composite-content</string>
+ <string>public.executable</string>
+ </array>
+ <key>UTTypeDescription</key>
+ <string>Office Open XML spreadsheet (macros enabled)</string>
+ <key>UTTypeIdentifier</key>
+ <string>org.openxmlformats.spreadsheetml.sheet.macroenabled</string>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>xlsm</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.ms-excel.sheet.macroEnabled.12</string>
+ </array>
+ </dict>
+ </dict>
+
+ <!-- Microsoft Powerpoint XML -->
+ <dict>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>org.openxmlformats.openxml</string>
+ <string>public.presentation</string>
+ </array>
+ <key>UTTypeDescription</key>
+ <string>Office Open XML presentation</string>
+ <key>UTTypeIdentifier</key>
+ <string>org.openxmlformats.presentationml.presentation</string>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>pptx</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.openxmlformats-officedocument.presentationml.presentation</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>org.openxmlformats.openxml</string>
+ <string>public.presentation</string>
+ <string>public.executable</string>
+ </array>
+ <key>UTTypeDescription</key>
+ <string>Office Open XML presentation (macros enabled)</string>
+ <key>UTTypeIdentifier</key>
+ <string>org.openxmlformats.presentationml.presentation.macroenabled</string>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>pptm</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.ms-powerpoint.presentation.macroEnabled.12</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>org.openxmlformats.openxml</string>
+ <string>public.presentation</string>
+ <string>public.executable</string>
+ </array>
+ <key>UTTypeDescription</key>
+ <string>Office Open XML presentation template</string>
+ <key>UTTypeIdentifier</key>
+ <string>org.openxmlformats.presentationml.template</string>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>potx</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.openxmlformats-officedocument.presentationml.template</string>
+ </array>
+ </dict>
+ </dict>
+ <dict>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>org.openxmlformats.openxml</string>
+ <string>public.presentation</string>
+ <string>public.executable</string>
+ </array>
+ <key>UTTypeDescription</key>
+ <string>Office Open XML presentation template (macros enabled)</string>
+ <key>UTTypeIdentifier</key>
+ <string>org.openxmlformats.presentationml.template.macroenabled</string>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>potm</string>
+ </array>
+ <key>public.mime-type</key>
+ <array>
+ <string>application/vnd.ms-powerpoint.template.macroEnabled.12</string>
+ </array>
+ </dict>
+ </dict>
+ </array>
+
+ <!-- Document type declaration for OS X < 10.4 -->
+ <key>CFBundleDocumentTypes</key>
+ <array>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>sxw</string>
+ <string>sdw</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.sun.xml.writer</string>
+ <string>application/vnd.stardivision.writer</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>text.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Text</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>odt</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.text</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>oasis-text.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>OpenDocument Text</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>sxc</string>
+ <string>sdc</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.sun.xml.calc</string>
+ <string>application/vnd.stardivision.calc</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>spreadsheet.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Spreadsheet</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>ods</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.spreadsheet</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>oasis-spreadsheet.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>OpenDocument Spreadsheet</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>sxi</string>
+ <string>sdd</string>
+ <string>sdp</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.sun.xml.impress</string>
+ <string>application/vnd.stardivision.impress</string>
+ <string>application/vnd.stardivision.impress-packed</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>presentation.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Presentation</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>odp</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.presentation</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>oasis-presentation.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>OpenDocument Presentation</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>sxd</string>
+ <string>sda</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.sun.xml.draw</string>
+ <string>application/vnd.stardivision.draw</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>drawing.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Drawing</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>odg</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.graphics</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>oasis-drawing.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>OpenDocument Drawing</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>sxg</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.sun.xml.writer.global</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>master-document.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Master</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>odm</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.text-master</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>oasis-master-document.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>OpenDocument Master</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>sxm</string>
+ <string>smf</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.sun.xml.math</string>
+ <string>application/vnd.stardivision.math</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>formula.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Formula</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>odf</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.formula</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>oasis-formula.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>OpenDocument Formula</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>stw</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.sun.xml.writer.template</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>text-template.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Text Template</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>ott</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.text-template</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>oasis-text-template.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>OpenDocument Text Template</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>stc</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.sun.xml.calc.template</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>spreadsheet-template.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Spreadsheet Template</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>ots</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.spreadsheet-template</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>oasis-spreadsheet-template.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>OpenDocument Spreadsheet Template</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>sti</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.sun.xml.impress.template</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>presentation-template.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Presentation Template</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>otp</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.presentation-template</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>oasis-presentation-template.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>OpenDocument Presentation Template</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>std</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.sun.xml.draw.template</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>drawing-template.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>${FILEFORMATNAME} ${FILEFORMATVERSION} Drawing Template</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>otg</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.graphics-template</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>oasis-drawing-template.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>OpenDocument Drawing Template</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>odb</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.oasis.opendocument.database</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>oasis-database.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>OpenDocument Database</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>doc</string>
+ <string>dot</string>
+ <string>rtf</string>
+ <string>html</string>
+ <string>htm</string>
+ <string>pdb</string>
+ <string>xml</string>
+ <string>psw</string>
+ <string>wpd</string>
+ <string>jtd</string>
+ <string>jtt</string>
+ <string>hwp</string>
+ <string>wps</string>
+ <string>dif</string>
+ <string>dbf</string>
+ <string>xls</string>
+ <string>xlw</string>
+ <string>xlt</string>
+ <string>slk</string>
+ <string>csv</string>
+ <string>wk1</string>
+ <string>wk2</string>
+ <string>123</string>
+ <string>pxl</string>
+ <string>ppt</string>
+ <string>pps</string>
+ <string>pot</string>
+ <string>cgm</string>
+ <string>dxf</string>
+ <string>emf</string>
+ <string>eps</string>
+ <string>met</string>
+ <string>pct</string>
+ <string>sgf</string>
+ <string>sgv</string>
+ <string>svm</string>
+ <string>wmf</string>
+ <string>bmp</string>
+ <string>gif</string>
+ <string>jpg</string>
+ <string>jpeg</string>
+ <string>jfif</string>
+ <string>jif</string>
+ <string>jpe</string>
+ <string>pbm</string>
+ <string>pcx</string>
+ <string>pgm</string>
+ <string>png</string>
+ <string>ppm</string>
+ <string>psd</string>
+ <string>ras</string>
+ <string>tga</string>
+ <string>tif</string>
+ <string>tiff</string>
+ <string>xbm</string>
+ <string>xpm</string>
+ <string>pcd</string>
+ <string>oth</string>
+ <string>mml</string>
+ </array>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>txt</string>
+ <string>TXT</string>
+ <string>text</string>
+ <string>*</string>
+ </array>
+ <key>CFBundleTypeName</key>
+ <string>TEXT</string>
+ <key>CFBundleTypeOSTypes</key>
+ <array>
+ <string>TEXT</string>
+ <string>sEXT</string>
+ <string>ttro</string>
+ </array>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ </dict>
+ <dict>
+ <key>LSItemContentTypes</key>
+ <array>
+ <string>org.openoffice.text</string>
+ <string>org.oasis-open.opendocument.text</string>
+ <string>org.openoffice.spreadsheet</string>
+ <string>org.oasis-open.opendocument.spreadsheet</string>
+ <string>org.openoffice.presentation</string>
+ <string>org.oasis-open.opendocument.presentation</string>
+ <string>org.openoffice.graphics</string>
+ <string>org.oasis-open.opendocument.graphics</string>
+ <string>org.openoffice.text-master</string>
+ <string>org.oasis-open.opendocument.text-master</string>
+ <string>org.openoffice.formula</string>
+ <string>org.oasis-open.opendocument.formula</string>
+ <string>org.openoffice.text-template</string>
+ <string>org.oasis-open.opendocument.text-template</string>
+ <string>org.openoffice.spreadsheet-template</string>
+ <string>org.oasis-open.opendocument.spreadsheet-template</string>
+ <string>org.openoffice.presentation-template</string>
+ <string>org.oasis-open.opendocument.presentation-template</string>
+ <string>org.openoffice.graphics-template</string>
+ <string>org.oasis-open.opendocument.graphics-template</string>
+ <string>org.oasis-open.opendocument.database</string>
+ <string>org.oasis-open.opendocument.chart</string>
+ <string>public.rtf</string>
+ <string>public.html</string>
+ <string>public.jpeg</string>
+ <string>public.tiff</string>
+ <string>public.png</string>
+ <string>public.xbitmap-image</string>
+ <string>com.adobe.encapsulated-postscript</string>
+ <string>com.microsoft.bmp</string>
+ <string>com.microsoft.word.doc</string>
+ <string>com.microsoft.excel.xls</string>
+ <string>com.microsoft.powerpoint.ppt</string>
+ <string>org.openxmlformats.wordprocessingml.document</string>
+ <string>org.openxmlformats.wordprocessingml.document.macroenabled</string>
+ <string>org.openxmlformats.wordprocessingml.template</string>
+ <string>org.openxmlformats.wordprocessingml.template.macroenabled</string>
+ <string>org.openxmlformats.spreadsheetml.sheet</string>
+ <string>org.openxmlformats.spreadsheetml.sheet.macroenabled</string>
+ <string>com.microsoft.excel.sheet.binary.macroenabled</string>
+ <string>org.openxmlformats.spreadsheetml.template</string>
+ <string>org.openxmlformats.spreadsheetml.template.macroenabled</string>
+ <string>org.openxmlformats.presentationml.presentation</string>
+ <string>org.openxmlformats.presentationml.presentation.macroenabled</string>
+ <string>org.openxmlformats.presentationml.template</string>
+ <string>org.openxmlformats.presentationml.template.macroenabled</string>
+ </array>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>oxt</string>
+ </array>
+ <key>CFBundleTypeMIMETypes</key>
+ <array>
+ <string>application/vnd.openofficeorg.extension</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>extension.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>${PRODUCTNAME} Extension</string>
+ <key>CFBundleTypeRole</key>
+ <string>Viewer</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ </array>
+ <key>CFBundleExecutable</key>
+ <string>%EXECUTABLE</string>
+ <key>CFBundleGetInfoString</key>
+ <string>${PRODUCTNAME} ${ABOUTBOXPRODUCTVERSION} ${BUILDIDCWS}</string>
+ <key>CFBundleIconFile</key>
+ <string>main.icns</string>
+ <key>CFBundleShortVersionString</key>
+ <string>${ABOUTBOXPRODUCTVERSION}</string>
+ <key>CFBundleIdentifier</key>
+ <string>org.libreoffice.script</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCTNAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>LibO</string>
+ <key>LSRequiresCarbon</key>
+ <string>1</string>
+ <key>NSPrincipalClass</key>
+ <string>VCL_NSApplication</string>
+</dict>
+</plist>
+
diff --git a/sysui/desktop/macosx/delzip b/sysui/desktop/macosx/delzip
new file mode 100755
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sysui/desktop/macosx/delzip
diff --git a/sysui/desktop/macosx/gen_strings.pl b/sysui/desktop/macosx/gen_strings.pl
new file mode 100755
index 000000000000..648becaec924
--- /dev/null
+++ b/sysui/desktop/macosx/gen_strings.pl
@@ -0,0 +1,116 @@
+:
+eval 'exec perl -wS $0 ${1+"$@"}'
+ if 0;
+
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+use warnings;
+use strict 'vars';
+
+my $my_lang = 'en-US';
+my $plist = 'Info.plist';
+my $lines = 0;
+
+while ($_ = $ARGV[0], /^-/) {
+ shift;
+ last if /^--$/;
+ if (/^-l/) {
+ $my_lang = $ARGV[0];
+ shift;
+ } elsif (/^-p/) {
+ $plist = $ARGV[0];
+ shift;
+ }
+}
+
+# open input file (Info.plist)
+unless (open(SOURCE, $plist)) {
+ print STDERR "Can't open $plist file: $!\n";
+ return;
+}
+
+# XML::Parser not installed by default on MacOS X
+my (%documents,$key,$icon,$name);
+
+$name = "";
+
+while (<SOURCE>) {
+ if ( /<\/dict>/ ) {
+ $documents{$icon} = $name if length $name > 0;
+ $key = $icon = $name = "";
+ } elsif ( /<key>(.*)<\/key>/ ) {
+ $key = $1;
+ } elsif ( /<string>(.*)<\/string>/ ) {
+ if ( $key eq 'CFBundleTypeIconFile' ) {
+ $icon = $1;
+ $icon =~ s/\.icns$//;
+ } elsif ( $key eq 'CFBundleTypeName' ) {
+ $name = $1;
+ }
+ }
+}
+
+close (SOURCE);
+
+print_lang($my_lang);
+print_lang('en-US') unless $lines > 0;
+
+sub print_lang
+{
+ my ($this_lang) = @_;
+
+ # open input file (documents.ulf)
+ unless (open(SOURCE, $ARGV[0])) {
+ print STDERR "Can't open $ARGV[0] file: $!\n";
+ return;
+ }
+
+ my $last_section;
+
+ while (<SOURCE>) {
+
+ if ( /\[(.*)\]/ ) {
+ $last_section = $1;
+ } else {
+ # split locale = "value" into 2 strings
+ my ($lang, $value) = split ' = ';
+
+ if ( $lang ne $_ && $lang eq $this_lang && exists $documents{$last_section} ) {
+ # replacing product variable doesn't work inside zip files and also not for UTF-16
+ next if /%PRODUCTNAME/;
+# s/%PRODUCTNAME/\${FILEFORMATNAME} \${FILEFORMATVERSION}/g;
+ s/$lang/"$documents{$last_section}"/;
+ s/\n/;\n/;
+ print;
+ $lines += 1;
+ }
+ }
+ }
+
+ close (SOURCE);
+}
diff --git a/sysui/desktop/macosx/list_icons.pl b/sysui/desktop/macosx/list_icons.pl
new file mode 100755
index 000000000000..baf155c03d1d
--- /dev/null
+++ b/sysui/desktop/macosx/list_icons.pl
@@ -0,0 +1,84 @@
+:
+eval 'exec perl -wS $0 ${1+"$@"}'
+ if 0;
+
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+use warnings;
+use strict 'vars';
+
+# package all .icns if XML::Parser module is not installed
+eval 'use XML::Parser;'; if ( $@ ) { print '*.icns'; exit 0; };
+
+my $valuetype = "none";
+my $key = "none";
+
+#
+# XML handlers
+#
+
+sub start_handler {
+ my ($parser,$element,%attributes) = @_;
+ $valuetype = "$element";
+}
+
+sub char_handler {
+ my ($parser,$string) = @_;
+ if ( $key eq "CFBundleTypeIconFile" || $key eq "CFBundleIconFile" ) {
+ $string =~ s/^\s+//;
+ $string =~ s/\s+$//;
+ print "$string " if length($string) > 0;
+ }
+ $key = "$string" if $valuetype eq "key";
+}
+
+sub default_handler {
+ my ($parser,$string) = @_;
+}
+
+sub end_handler {
+ my ($parser,$element) = @_;
+
+ $key = "none" if $valuetype ne "key";
+ $valuetype = "none";
+}
+
+#
+# main
+#
+
+my $parser = new XML::Parser(ErrorContext => 2,
+ Namespaces => 1);
+
+$parser->setHandlers( Start => \&start_handler,
+ End => \&end_handler,
+ Char => \&char_handler,
+ Default => \&default_handler);
+$parser->parse(STDIN);
+
+print "\n";
diff --git a/sysui/desktop/macosx/makefile.mk b/sysui/desktop/macosx/makefile.mk
new file mode 100755
index 000000000000..89f23562f3af
--- /dev/null
+++ b/sysui/desktop/macosx/makefile.mk
@@ -0,0 +1,86 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..
+TARGET=desktopmacosx
+
+# --- Settings -------------------------------------------------
+
+.INCLUDE : settings.mk
+
+# --- Files ----------------------------------------------------
+
+.IF "$(OS)"!="MACOSX"
+
+dummy:
+ @echo "Nothing to build for OS $(OS)"
+
+.ELSE # "$(OS)"!="MACOSX"
+
+ZIPFLAGS = -r
+ZIP1TARGET = osxicons
+ZIP1DIR = ../icons
+ZIP1LIST := $(shell $(PERL) -w list_icons.pl < Info.plist)
+
+CREATOR_TYPE=LIBO
+EXECUTABLE=soffice
+
+.IF "$(WITH_LANG)"!=""
+ULFDIR:=$(COMMONMISC)$/desktopshare
+.ELSE # "$(WITH_LANG)"!=""
+ULFDIR:=..$/share
+.ENDIF # "$(WITH_LANG)"!=""
+
+# --- Targets --------------------------------------------------
+
+.INCLUDE : target.mk
+
+.IF "$(ZIP1TARGETN)"!=""
+ZIP1TARGETN : Info.plist extract_icons_names.pl
+
+.ENDIF # "$(ZIP1TARGETN)"!=""
+
+ALLTAR : $(COMMONMISC)$/{PkgInfo Info.plist} $(COMMONBIN)$/InfoPlist_{$(alllangiso)}.zip
+
+$(COMMONMISC)$/PkgInfo :
+ echo "APPL$(CREATOR_TYPE)" > $@
+
+
+$(COMMONMISC)$/Info.plist : $$(@:f)
+ sed -e "s|\%EXECUTABLE|${EXECUTABLE}|g" $< > $@
+
+$(COMMONBIN)$/InfoPlist_{$(alllangiso)}.zip : $(COMMONMISC)$/$$(@:b)/InfoPlist.strings
+ cd $(<:d) && zip ../$(@:f).$(INPATH) $(<:f)
+ $(MV) -f $(COMMONMISC)$/$(@:f).$(INPATH) $@
+
+$(COMMONMISC)$/InfoPlist_{$(alllangiso)}$/InfoPlist.strings : Info.plist $(ULFDIR)$/documents.ulf
+ $(MKDIRHIER) $(@:d)
+ $(PERL) -w gen_strings.pl -l $(@:d:d:b:s/InfoPlist_//) -p $< | iconv -f UTF-8 -t UTF-16 > $@.$(INPATH)
+ $(MV) -f $@.$(INPATH) $@
+
+.ENDIF # "$(OS)"!="MACOSX"
+
diff --git a/sysui/desktop/man/README b/sysui/desktop/man/README
new file mode 100644
index 000000000000..1536ae5cb9da
--- /dev/null
+++ b/sysui/desktop/man/README
@@ -0,0 +1 @@
+FIXME: These man pages are used for distro packaging using "make distro-pack-install"
diff --git a/sysui/desktop/man/libreoffice.1 b/sysui/desktop/man/libreoffice.1
new file mode 100644
index 000000000000..ee814cf3ca28
--- /dev/null
+++ b/sysui/desktop/man/libreoffice.1
@@ -0,0 +1,246 @@
+.TH libreoffice "1" "2010-12-18" "LibreOffice" "User Commands"
+.SH Name
+libreoffice \- LibreOffice office suite
+
+.SH SYNOPSIS
+.B libreoffice
+[\fB\-accept\=\fIaccept\-string\fR] [\fB\-base\fR] [\fB\-calc\fR]
+[\fB\-convert\-to\fR output_file_extension[:output_filter_name] [\-outdir output_dir] \fIfile\fR]...
+[\fB\-display \fIdisplay\fR] [\fB\-draw\fR] [\fB\-global\fR] [\fB\-headless\fR]
+[\fB\-help\fR|\fB\-h\fR|\fB\-?\fR] [\fB\-impress\fR] [\fB\-invisible\fR] [\fB\-infilter="<filter>"\fR]
+[\fB\-math\fR] [\fB\-minimized\fR] [\fB\-n \fIfile\fR]... [\fB\-nodefault\fR]
+[\fB\-nolockcheck\fR] [\fB\-nologo\fR] [\fB\-norestore\fR]
+[\fB\-o \fIfile\fR]... [\fB\-p \fIfile\fR...]
+[\fB\-print\-to\-file [\-printer\-name printer_name] [\-outdir output_dir] file]...
+[\fB\-pt \fIprintername\fR \fIfile\fR...]
+[\fB\-show \fIImpress file\fR]... [\fB\-unaccept=\fIaccept\-string\fR]
+[\fB\-terminate_after_init\fR] [\fB\-view \fIfile\fR]... [\fB\-web\fR]
+[\fB\-writer\fR] [\fIfile\fR...]
+.br
+.B lobase
+.br
+.B localc
+.br
+.B lodraw
+.br
+.B lofromtemplate
+.br
+.B loimpress
+.br
+.B lomath
+.br
+.B loweb
+.br
+.B lowriter
+.br
+
+.SH DESCRIPTION
+LibreOffice (LO for short) is a multi-platform office productivity suite.
+It was derived from OpenOffice.org 3.3 Beta on September 28, 2010.
+
+\fBlibreoffice\fR is a shell script that sets up the environment and
+passes the command line arguments to the \fBsoffice.bin\fR binary.
+
+Alternatively, the following helper scripts start the respective module:
+
+sbase, scalc, sdraw, simpress, smath, sofficerc, spadmin, swriter
+
+.SH OPTIONS
+.TP
+\fB\-accept=\fIaccept\-string\fR
+Specify a UNO connect-string to create a UNO acceptor through which other
+programs can connect to access the API.
+
+.TP
+\fB\-base\fR
+Starts the wizard for a new Base document.
+
+.TP
+\fB\-calc\fR
+Starts with a new Calc document.
+
+.TP
+\fB\-convert\-to\fR output_file_extension[:output_filter_name] [\-outdir output_dir] \fIfile\fR...
+Batch converts files.
+If \fI-outdir\fR is not specified then the current working directory is used as the output directory
+for the converted files.
+
+Examples:
+
+\fB\-convert\-to\fR pdf *.doc
+
+Converts all .doc files to PDFs.
+
+\fB\-convert\-to\fR pdf:writer_pdf_Export \-outdir /home/user *.doc
+
+Converts all .doc files to PDFs using the settings in the Writer PDF export dialog and saving them
+in /home/user.
+
+.TP
+\fB\-display \fIdisplay\fR
+This option specifies the X server to use; see \fBX\fR(7)
+
+.TP
+\fB\-draw\fR
+Starts with a new Draw document.
+
+.TP
+\fB\-global\fR
+Starts with a new Global document.
+
+.TP
+\fB\-headless\fR
+Starts in "headless mode", which allows using the application without user a
+interface.
+
+This special mode can be used when the application is controlled by external
+clients via the API.
+
+It implies \-invisible and strictly ignores any GUI environment.
+\-quickstart does not work with this parameter.
+
+.TP
+\fB\-help\fR|\fB\-h\fR|\fB\-?\fR
+Lists LibreOffice command line parameters.
+
+.TP
+\fB\-impress\fR
+Starts with a new Impress document.
+
+.TP
+\fB\-invisible\fR
+Starts in invisible mode.
+
+Neither the start\-up logo nor the initial program window will be visible.
+LO can be controlled and documents and dialogs can be opened via the API.
+
+When started with this parameter, it can only be quit using the taskmanager (Windows)
+or the kill command (UNIX based systems).
+
+\-quickstart does not work with this parameter.
+
+.TP
+\fB\-infilter="<filter>"\fR
+Force an input filter type if possible.
+For example -infilter="Calc Office Open XML" only
+
+.TP
+\fB\-math\fR
+Starts with a new Math document.
+
+.TP
+\fB\-minimized\fR
+Keeps the splash screen minimized.
+
+.TP
+\fB\-n \fItemplate\fR...
+Creates the a new document from the given templates.
+
+.TP
+\fB\-nodefault\fR
+Starts LO without creating an new document.
+The next time you start LO, the welcome screen is show.
+
+It's used together with \fB\-nologo\fR by quick starters. Note that \fB\-quickstart\fR
+has no longer been supported since OpenOffice.org 2.0.0.
+
+.TP
+\fB\-nolockcheck\fR
+Disables the check for remote instances using the installation.
+
+.TP
+\fB\-nologo\fR
+Disables the splash screen at program start.
+
+.TP
+\fB\-norestore\fR
+Disables restart and file recovery after a system crash. It is possible that LO
+will try to restore a file it keeps crashing on, if that happens \fB\-norestore\fR
+is the only way to start LO.
+
+.TP
+\fB\-nosplash\fR
+Disables the splash screen at program start.
+
+.TP
+\fB\-o \fIfile\fR...
+Opens the given files for editing, even templates.
+
+Without \fb\-o\fR a template file would create a new document derived from that template.
+
+.TP
+\fB\-p \fIfile\fR...
+Prints the given files to the default printer and ends. The splash screen
+does not appear.
+
+If the file name contains spaces, then it must be enclosed in quotation marks.
+
+.TP
+\fB\-print\-to\-file [\-printer\-name printer_name] [\-outdir output_dir] file...
+Batch print files to file.
+If \-printer\-name is not specified the default printer is used.
+If \-outdir is not specified then the current working directory is used as the output directory
+for the converted files.
+
+Examples:
+
+\-print\-to\-file *.doc
+
+Prints all .doc files to the current working directory using the default printer.
+
+\-print\-to\-file \-printer\-name nasty_lowres_printer \-outdir /home/user *.doc
+
+Prints all .doc files to /home/user directory using the nasty_lowres_printer.
+
+.TP
+\fB\-pt \fIprintername\fR \fIfile\fR...
+Prints the given files to the printer \fIprintername\fR and ends. The splash
+screen does not appear.
+
+If a file name contains spaces, then it must be enclosed in quotation marks.
+
+.TP
+\fB\-quickstart \fB\-quickstart=no
+Starts LO with it's quick starter.
+\fB\-quickstart disable the quick starter.
+
+Does not work with \-invisible or \-headless.
+
+.TP
+\fB\-show \fIImpress file\fR...
+Opens the given Impress files, starts the presentation and quits after they have finished.
+
+.TP
+\fB\-unaccept=\fIaccept\-string\fR
+Closes an acceptor that was created with \fB\-accept\fR option.
+
+Use \fB\-unaccept\fR=\fIall\fR to close all open acceptors.
+
+.TP
+\fB\-terminate_after_init\fR
+Starts LO and terminates after it registers some UNO services.
+Doesn't show the splash during startup.
+
+.TP
+\fB\-view \fIfile\fR...
+Opens the given files read-only creating a temporary copy of them at $TMPDIR.
+
+.TP
+\fB\-web\fR
+Starts with a new HTML document.
+
+.TP
+\fB\-writer\fR
+Starts with a new Writer document.
+
+.SH TROUBLESHOOTING PROBLEMS
+See \fBhttp://wiki.documentfoundation.org/BugReport\fR for more details on how to report
+bugs in LibreOffice.
+.SH SEE ALSO
+.BR http://www.documentfoundation.org/
+
+.SH AUTHOR
+This manual page was created by Rene Engelhard <rene@debian.org> for
+the Debian GNU/Linux Distribution, because the original package does not have
+one. It was updated for Novell by Petr Mladek <petr.mladek@novell.com> and
+adapted for LibreOffice by Philipp Weissenbacher <philipp.weissenbacher@gmail.com>.
diff --git a/sysui/desktop/man/unopkg.1 b/sysui/desktop/man/unopkg.1
new file mode 100644
index 000000000000..b98a30d5f5ea
--- /dev/null
+++ b/sysui/desktop/man/unopkg.1
@@ -0,0 +1,80 @@
+.TH unopkg "1" "2008-03-18" "LibreOffice Extension Manager" "User Command"
+.SH "Name"
+unopkg \- LibreOffice Extension Manager
+.SH SYNOPSIS
+.B unopkg
+[\fBadd\fR] <\fIoptions\fR> \fIextension-path...\fR
+.br
+.B unopkg
+[\fBremove\fR] <\fIoptions\fR> \fIextension-identifier...\fR
+.br
+.B unopkg
+[\fBlist\fR] <\fIoptions\fR> \fIextension-identifier...\fR
+.br
+.B unopkg
+[\fBreinstall\fR] <\fIoptions\fR>
+.br
+.B unopkg
+[\fBgui\fR]
+.br
+.B unopkg
+[\fB--help\fR|\fB-h\fR]
+
+.SH DESCRIPTION
+LibreOffice is a fully featured office suite for the daily use with all
+features you would normally expect in an office suite.
+
+There exists many LibreOffice extensions all over the word. For example, see
+\fBhttp://extensions.services.openoffice.org/\fR
+
+This tool allows to manage the extensions from the command line.
+
+.SH SUB\-COMMANDS
+.TP
+\fBadd\fR
+add the given extensions
+.TP
+\fBremove\fR
+remove extensions by the given identifiers
+.TP
+\fBreinstall\fR
+reinstall all deployed extensions (only for experts)
+.TP
+\fBlist\fR
+list information about the deployed extensions
+.TP
+\fBgui\fR
+raise Extension Manager Graphical User Interface (GUI)
+
+.SH OPTIONS
+.TP
+\fB\-\-help\fR|\fB\-h\fR
+display help and exit
+.TP
+\fB\-\-version\fR|\fB\-V\fR
+output version information and exit
+.TP
+\fB--verbose\fR|\fB\-v\fR
+verbose output
+.TP
+\fB\-\-force\fR|\fB\-f\fR
+force overwriting existing extensions
+.TP
+\fB\-\-log\-file\fR <\fIfile\fR>
+custom log file; the default one is <cache-dir>/log.txt
+.TP
+\fB\-\-shared\fR|\fB\-f\fR
+operate on the system installation deployment context; use only when no
+concurrent Office process(es) are running! (only for experts)
+.TP
+\fB\-\-deployment\-context\fR <\fIcontext\fR>
+operate on explicit deployment context (only for experts)
+
+
+.SH TROUBLESHOOTING PROBLEMS
+See \fBhttp://wiki.documentfoundation.org/BugReport\fR for more details about how to report
+bugs in LibreOffice.
+.SH SEE ALSO
+.BR http://www.documentfoundation.org/
+.SH AUTHOR
+This manual page was created by Petr Mladek <pmladek@suse.cz>.
diff --git a/sysui/desktop/mandriva/makefile.mk b/sysui/desktop/mandriva/makefile.mk
new file mode 100755
index 000000000000..011b52e41791
--- /dev/null
+++ b/sysui/desktop/mandriva/makefile.mk
@@ -0,0 +1,59 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..
+
+PRJNAME=sysui
+TARGET=mandriva
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+
+# --- Product Version Information ----------------------------------
+
+.INCLUDE : ../productversion.mk
+
+# --- Files --------------------------------------------------------
+
+.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)"
+
+SPECFILE=$(TARGET)-menus.spec
+RPMFLAGFILES=$(foreach,i,{$(PRODUCTLIST)} $(PKGDIR)$/$i-$(SPECFILE:b)-$(PKGVERSION.$i)-$(PKGREV).noarch.flag)
+
+.ENDIF
+
+# --- Targets -------------------------------------------------------
+
+.INCLUDE : target.mk
+.INCLUDE : ../tg_rpm.mk
+
+.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)"
+
+$(RPMFLAGFILES) : $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag
+
+.ENDIF
diff --git a/sysui/desktop/mandriva/mandriva-menus.spec b/sysui/desktop/mandriva/mandriva-menus.spec
new file mode 100755
index 000000000000..47f64ed226cb
--- /dev/null
+++ b/sysui/desktop/mandriva/mandriva-menus.spec
@@ -0,0 +1,348 @@
+# version and release passed by command-line
+Version: %version
+Release: %release
+Summary: %productname desktop integration
+Name: %pkgprefix-mandriva-menus
+Group: Office
+License: LGPL
+AutoReqProv: no
+BuildArch: noarch
+#
+# FIXME: Limited Edition 2005 contains package mandrakelinux-release,
+# which provides 'mandrake-release'. We should leave 'mandrake-release'
+# here and check for the 'mandriva-release' in the future (next year).
+#
+Requires: mandrake-release
+Provides: libreoffice-desktop-integration
+
+%define _unpackaged_files_terminate_build 0
+%define _binary_filedigest_algorithm 1
+%define _binary_payload w9.gzdio
+
+%define menuversion %(echo %version|cut -d'.' -f 1-2)
+%{?!update_menus:%define update_menus if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi}
+%{?!trigger_clean_menus:%define trigger_clean_menus if [ "$2" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi}
+
+%description
+%productname desktop integration
+
+# Update menus
+#
+# - core02 for spadmin (printeradmin)
+#
+%triggerin -- %pkgprefix, %pkgprefix-core01 %pkgprefix-calc %pkgprefix-draw %pkgprefix-impress %pkgprefix-writer %pkgprefix-math %pkgprefix-core02
+%{update_menus}
+
+# Update menus
+#
+# - core02 for spadmin (printeradmin)
+#
+%triggerpostun -- %pkgprefix, %pkgprefix-core01 %pkgprefix-calc %pkgprefix-draw %pkgprefix-impress %pkgprefix-writer %pkgprefix-math %pkgprefix-core02
+%{trigger_clean_menus}
+
+%post
+
+# update /etc/mime.types
+# backing out existing entries to avoid duplicates
+sed '
+/application\/vnd\.oasis\.opendocument/d
+/application\/vnd\.openofficeorg/d
+/application\/vnd\.sun/d
+/application\/vnd\.stardivision/d
+' /etc/mime.types 2>/dev/null >> /etc/mime.types.tmp$$
+
+# now append our stuff to the temporary file
+cat >> /etc/mime.types.tmp$$ << END
+application/vnd.oasis.opendocument.text odt
+application/vnd.oasis.opendocument.text-flat-xml fodt
+application/vnd.oasis.opendocument.text-template ott
+application/vnd.oasis.opendocument.text-web oth
+application/vnd.oasis.opendocument.text-master odm
+application/vnd.oasis.opendocument.graphics odg
+application/vnd.oasis.opendocument.graphics-flat-xml fodg
+application/vnd.oasis.opendocument.graphics-template otg
+application/vnd.oasis.opendocument.presentation odp
+application/vnd.oasis.opendocument.presentation-flat-xml fodp
+application/vnd.oasis.opendocument.presentation-template otp
+application/vnd.oasis.opendocument.spreadsheet ods
+application/vnd.oasis.opendocument.spreadsheet-flat-xml fods
+application/vnd.oasis.opendocument.spreadsheet-template ots
+application/vnd.oasis.opendocument.chart odc
+application/vnd.oasis.opendocument.formula odf
+application/vnd.oasis.opendocument.image odi
+application/vnd.sun.xml.writer sxw
+application/vnd.sun.xml.writer.template stw
+application/vnd.sun.xml.writer.global sxg
+application/vnd.stardivision.writer sdw vor
+application/vnd.stardivision.writer-global sgl
+application/vnd.sun.xml.calc sxc
+application/vnd.sun.xml.calc.template stc
+application/vnd.stardivision.calc sdc
+application/vnd.stardivision.chart sds
+application/vnd.sun.xml.impress sxi
+application/vnd.sun.xml.impress.template sti
+application/vnd.stardivision.impress sdd sdp
+application/vnd.sun.xml.draw sxd
+application/vnd.sun.xml.draw.template std
+application/vnd.stardivision.draw sda
+application/vnd.sun.xml.math sxm
+application/vnd.stardivision.math smf
+application/vnd.sun.xml.base odb
+application/vnd.openofficeorg.extension oxt
+application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
+application/vnd.ms-word.document.macroenabled.12 docm
+application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
+application/vnd.ms-word.template.macroenabled.12 dotm
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
+application/vnd.ms-excel.sheet.macroenabled.12 xlsm
+application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
+application/vnd.ms-excel.template.macroenabled.12 xltm
+application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
+application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm
+application/vnd.openxmlformats-officedocument.presentationml.template potx
+application/vnd.ms-powerpoint.template.macroenabled.12 potm
+END
+
+# and replace the original file
+mv -f /etc/mime.types.tmp$$ /etc/mime.types 2>/dev/null
+
+# update /etc/mailcap only at initial install
+if [ "$1" = 1 ]
+then
+ # backing out existing entries to avoid duplicates
+ sed '
+/^# LibreOffice/d
+/^application\/vnd\.oasis\.opendocument/d
+/^application\/vnd\.openofficeorg/d
+/^application\/vnd\.sun/d
+/^application\/vnd\.stardivision/d
+/^application\/vnd\.ms-word/d
+/^application\/vnd\.ms-excel/d
+/^application\/vnd\.ms-powerpoint/d
+/^application\/x-star/d
+/excel/d
+/ms[-]*word/d
+/powerpoint/d
+' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$
+
+ # now append our stuff to the temporary file
+ cat >> /etc/mailcap.tmp$$ << END
+# OpenOffice.org
+application/vnd.oasis.opendocument.text; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-template; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-web; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-master; %unixfilename -view %s
+application/vnd.sun.xml.writer; %unixfilename -view %s
+application/vnd.sun.xml.writer.template; %unixfilename -view %s
+application/vnd.sun.xml.writer.global; %unixfilename -view %s
+application/vnd.stardivision.writer; %unixfilename -view %s
+application/vnd.stardivision.writer-global; %unixfilename -view %s
+application/x-starwriter; %unixfilename -view %s
+application/vnd.oasis.opendocument.formula; %unixfilename -view %s
+application/vnd.sun.xml.math; %unixfilename -view %s
+application/vnd.stardivision.math; %unixfilename -view %s
+application/x-starmath; %unixfilename -view %s
+application/msword; %unixfilename -view %s
+application/vnd.oasis.opendocument.spreadsheet; %unixfilename -view %s
+application/vnd.oasis.opendocument.spreadsheet-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.spreadsheet-template; %unixfilename -view %s
+application/vnd.sun.xml.calc; %unixfilename -view %s
+application/vnd.sun.xml.calc.template; %unixfilename -view %s
+application/vnd.stardivision.calc; %unixfilename -view %s
+application/x-starcalc; %unixfilename -view %s
+application/vnd.stardivision.chart; %unixfilename -view %s
+application/x-starchart; %unixfilename -view %s
+application/excel; %unixfilename -view %s
+application/msexcel; %unixfilename -view %s
+application/vnd.ms-excel; %unixfilename -view %s
+application/x-msexcel; %unixfilename -view %s
+application/vnd.oasis.opendocument.presentation; %unixfilename -view %s
+application/vnd.oasis.opendocument.presentation-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.presentation-template; %unixfilename -view %s
+application/vnd.sun.xml.impress; %unixfilename -view %s
+application/vnd.sun.xml.impress.template; %unixfilename -view %s
+application/vnd.stardivision.impress; %unixfilename -view %s
+application/x-starimpress; %unixfilename -view %s
+application/powerpoint; %unixfilename -view %s
+application/mspowerpoint; %unixfilename -view %s
+application/vnd.ms-powerpoint; %unixfilename -view %s
+application/x-mspowerpoint; %unixfilename -view %s
+application/vnd.oasis.opendocument.graphics; %unixfilename -view %s
+application/vnd.oasis.opendocument.graphics-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.graphics-template; %unixfilename -view %s
+application/vnd.sun.xml.draw; %unixfilename -view %s
+application/vnd.sun.xml.draw.template; %unixfilename -view %s
+application/vnd.stardivision.draw; %unixfilename -view %s
+application/x-stardraw; %unixfilename -view %s
+application/vnd.oasis.opendocument.database; %unixfilename -view %s
+application/vnd.sun.xml.base; %unixfilename -view %s
+application/vnd.openofficeorg.extension; %unixfilename %s
+application/vnd.openxmlformats-officedocument.wordprocessingml.document; %unixfilename -view %s
+application/vnd.ms-word.document.macroenabled.12;%unixfilename -view %s
+application/vnd.openxmlformats-officedocument.wordprocessingml.template; %unixfilename -view %s
+application/vnd.ms-word.template.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; %unixfilename -view %s
+application/vnd.ms-excel.sheet.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.spreadsheetml.template; %unixfilename -view %s
+application/vnd.ms-excel.template.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.presentationml.presentation; %unixfilename -view %s
+application/vnd.ms-powerpoint.presentation.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.presentationml.template; %unixfilename -view %s
+application/vnd.ms-powerpoint.template.macroenabled.12; %unixfilename -view %s
+END
+
+ # and replace the original file
+ mv -f /etc/mailcap.tmp$$ /etc/mailcap
+fi
+
+%{update_menus}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT/*
+
+# hack/workaround to make SuSE's brp-symlink-script happy. It wants the targets of all links
+# to be present on the build-system/the buildroot. But the point is that we generate stale
+# links intentionally (until we find a better solution) #46226
+export NO_BRP_STALE_LINK_ERROR=yes
+
+mkdir -p $RPM_BUILD_ROOT
+
+export DESTDIR=$RPM_BUILD_ROOT
+export KDEMAINDIR=/usr
+export GNOMEDIR=/usr
+
+./create_tree.sh
+
+#
+# Mandriva menus fun
+#
+# For more info, see:
+#
+# http://qa.mandriva.com/twiki/bin/view/Main/MenuSystem
+#
+%define _menudir /usr/lib/menu
+mkdir -p $RPM_BUILD_ROOT%{_menudir}
+rm -f "$RPM_BUILD_ROOT%{_menudir}/%{name}"
+
+GenerateMenu() {
+[ -f "$RPM_BUILD_ROOT%{_menudir}/%{name}" ] || touch $RPM_BUILD_ROOT%{_menudir}/%{name}
+mimetypes_item=
+[ "$7" != "" ] && mimetypes_item="mimetypes=\"$7\""
+cat >> $RPM_BUILD_ROOT%{_menudir}/%{name} << EOF
+?package(%pkgprefix-$6): needs=x11 section="$2" icon="%iconprefix-$3.png" title="$4" longtitle="$5" command="$1" \
+$mimetypes_item kde_opt="InitialPreference=100" startup_notify="true"
+EOF
+}
+
+#
+# FIXME: Office/Database request in the Cooker ML, leave in Spreadsheets
+# until new group will be created
+#
+GenerateMenu "%unixfilename -base" \
+ "More Applications/Databases" \
+ "base" \
+ "%productname %{menuversion} Base" \
+ "%productname %{menuversion} Database" \
+ "core01" \
+ "application/vnd.oasis.opendocument.database,application/vnd.sun.xml.base"
+
+GenerateMenu "%unixfilename -calc" \
+ "Office/Spreadsheets" \
+ "calc" \
+ "%productname %{menuversion} Calc" \
+ "%productname %{menuversion} Spreadsheet" \
+ "calc" \
+ "application/vnd.oasis.opendocument.spreadsheet,application/vnd.oasis.opendocument.spreadsheet-template,application/vnd.sun.xml.calc,application/vnd.sun.xml.calc.template,application/vnd.stardivision.calc,application/vnd.stardivision.chart,application/msexcel,application/vnd.ms-excel"
+
+GenerateMenu "%unixfilename -draw" \
+ "Office/Drawing" \
+ "draw" \
+ "%productname %{menuversion} Draw" \
+ "%productname %{menuversion} Drawing" \
+ "draw" \
+ "application/vnd.oasis.opendocument.graphics,application/vnd.oasis.opendocument.graphics-template,application/vnd.sun.xml.draw,application/vnd.sun.xml.draw.template,application/vnd.stardivision.draw"
+
+GenerateMenu "%unixfilename -impress" \
+ "Office/Presentations" \
+ "impress" \
+ "%productname %{menuversion} Impress" \
+ "%productname %{menuversion} Presentation" \
+ "impress" \
+ "application/vnd.oasis.opendocument.presentation,application/vnd.oasis.opendocument.presentation-template,application/vnd.sun.xml.impress,application/vnd.sun.xml.impress.template,application/vnd.stardivision.impress,application/mspowerpoint"
+
+GenerateMenu "%unixfilename -writer" \
+ "Office/Wordprocessors" \
+ "writer" \
+ "%productname %{menuversion} Writer" \
+ "%productname %{menuversion} Word Processing Component" \
+ "writer" \
+ "application/vnd.oasis.opendocument.text,application/vnd.oasis.opendocument.text-template,application/vnd.oasis.opendocument.text-web,application/vnd.oasis.opendocument.text-master,application/vnd.sun.xml.writer,application/vnd.sun.xml.writer.template,application/vnd.sun.xml.writer.global,application/vnd.stardivision.writer,application/msword,application/vnd.ms-word,application/x-doc,application/rtf"
+
+GenerateMenu "%unixfilename -math" \
+ "Office/Wordprocessors" \
+ "math" \
+ "%productname %{menuversion} Math" \
+ "%productname %{menuversion} Formula Editor" \
+ "math" \
+ "application/vnd.oasis.opendocument.formula,application/vnd.sun.xml.math,application/vnd.stardivision.math"
+
+#
+# FIXME: Is there a better group than System/Configuration/Printing? I think no ...
+#
+GenerateMenu "%unixfilename-printeradmin" \
+ "System/Configuration/Printing" \
+ "printeradmin" \
+ "%productname %{menuversion} Printeradmin" \
+ "%productname %{menuversion} Printer Administration" \
+ "core02"
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%preun
+# remove from /etc/mailcap only on de-install
+if [ "$1" = 0 ]
+then
+ # backing all entries pointing to our binary
+ sed '/%unixfilename/d' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$
+
+ # and replace the original file
+ mv -f /etc/mailcap.tmp$$ /etc/mailcap
+fi
+
+%postun
+%{update_menus}
+
+
+%files
+%if "%unixfilename" != "libreoffice%productversion"
+# compat symlinks
+%attr(0755,root,root) /opt/%unixfilename
+%attr(0755,root,root) /usr/bin/libreoffice%productversion
+%attr(0755,root,root) /usr/bin/libreoffice%productversion-printeradmin
+%endif
+%attr(0755,root,root) %verify(not size md5) /usr/bin/%unixfilename
+%attr(0755,root,root) /usr/bin/%unixfilename-printeradmin
+%defattr(0644, root, root)
+%{_menudir}/%{name}
+/usr/share/application-registry/*.applications
+/usr/share/applications/%unixfilename-writer.desktop
+/usr/share/applications/%unixfilename-calc.desktop
+/usr/share/applications/%unixfilename-draw.desktop
+/usr/share/applications/%unixfilename-impress.desktop
+/usr/share/applications/%unixfilename-math.desktop
+/usr/share/applications/%unixfilename-base.desktop
+/usr/share/applications/%unixfilename-printeradmin.desktop
+/usr/share/applications/%unixfilename-startcenter.desktop
+/usr/share/mime-info/*.keys
+/usr/share/mime-info/*.mime
+/usr/share/mimelnk/application/*.desktop
+/usr/share/icons/gnome/*/apps/*png
+/usr/share/icons/gnome/*/mimetypes/*png
+/usr/share/icons/hicolor/*/apps/*png
+/usr/share/icons/hicolor/*/mimetypes/*png
+/usr/share/icons/locolor/*/apps/*png
+/usr/share/icons/locolor/*/mimetypes/*png
+
diff --git a/sysui/desktop/menus/base.desktop b/sysui/desktop/menus/base.desktop
new file mode 100755
index 000000000000..40f7e79ebc8c
--- /dev/null
+++ b/sysui/desktop/menus/base.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=base
+Type=Application
+Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-MoreApplications-Databases;
+Exec=${UNIXBASISROOTNAME} --base %U
+MimeType=application/vnd.oasis.opendocument.database;application/vnd.sun.xml.base;
+Name=%PRODUCTNAME Base
+Name[pt_BR]=%PRODUCTNAME_BR Base
+GenericName=Database Development
+Comment=Manage databases, create queries and reports to track and manage your information by using Base.
+InitialPreference=5
diff --git a/sysui/desktop/menus/calc.desktop b/sysui/desktop/menus/calc.desktop
new file mode 100755
index 000000000000..80cc09ddbedb
--- /dev/null
+++ b/sysui/desktop/menus/calc.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=calc
+Type=Application
+Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Spreadsheets;
+Exec=${UNIXBASISROOTNAME} --calc %U
+MimeType=application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.spreadsheet-flat-xml;application/vnd.oasis.opendocument.spreadsheet-template;application/vnd.sun.xml.calc;application/vnd.sun.xml.calc.template;application/vnd.stardivision.calc;application/vnd.stardivision.chart;application/msexcel;application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.ms-excel.sheet.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.template.macroenabled.12;application/vnd.ms-excel.sheet.binary.macroenabled.12;text/csv;application/x-dbf;
+Name=%PRODUCTNAME Calc
+Name[pt_BR]=%PRODUCTNAME_BR Calc
+GenericName=Spreadsheet
+Comment=Perform calculation, analyze information and manage lists in spreadsheets by using Calc.
+InitialPreference=5
diff --git a/sysui/desktop/menus/draw.desktop b/sysui/desktop/menus/draw.desktop
new file mode 100755
index 000000000000..57f7ade0aea4
--- /dev/null
+++ b/sysui/desktop/menus/draw.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=draw
+Type=Application
+Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Drawing;
+Exec=${UNIXBASISROOTNAME} --draw %U
+MimeType=application/vnd.oasis.opendocument.graphics;application/vnd.oasis.opendocument.graphics-flat-xml;application/vnd.oasis.opendocument.graphics-template;application/vnd.sun.xml.draw;application/vnd.sun.xml.draw.template;application/vnd.stardivision.draw;
+Name=%PRODUCTNAME Draw
+Name[pt_BR]=%PRODUCTNAME_BR Draw
+GenericName=Drawing Program
+Comment=Create and edit drawings, flow charts, and logos by using Draw.
+InitialPreference=5
diff --git a/sysui/desktop/menus/impress.desktop b/sysui/desktop/menus/impress.desktop
new file mode 100755
index 000000000000..025524e17984
--- /dev/null
+++ b/sysui/desktop/menus/impress.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=impress
+Type=Application
+Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Presentations;
+Exec=${UNIXBASISROOTNAME} --impress %U
+MimeType=application/vnd.oasis.opendocument.presentation;application/vnd.oasis.opendocument.presentation-flat-xml;application/vnd.oasis.opendocument.presentation-template;application/vnd.sun.xml.impress;application/vnd.sun.xml.impress.template;application/vnd.stardivision.impress;application/mspowerpoint;application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.ms-powerpoint.presentation.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.ms-powerpoint.template.macroenabled.12;
+Name=%PRODUCTNAME Impress
+Name[pt_BR]=%PRODUCTNAME_BR Impress
+GenericName=Presentation
+Comment=Create and edit presentations for slideshows, meeting and Web pages by using Impress.
+InitialPreference=5
diff --git a/sysui/desktop/menus/javafilter.desktop b/sysui/desktop/menus/javafilter.desktop
new file mode 100755
index 000000000000..8b9c30a2f70f
--- /dev/null
+++ b/sysui/desktop/menus/javafilter.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Type=Application
+Exec=${UNIXBASISROOTNAME} --writer %U
+MimeType=application/x-aportisdoc;application/x-pocket-word;application/x-pocket-excel;
+Name=%PRODUCTNAME Small Device Format Importer
+Name[pt_BR]=%PRODUCTNAME_BR Small Device Format Importer
+GenericName=Small Device Format Importer
+NoDisplay=true
diff --git a/sysui/desktop/menus/math.desktop b/sysui/desktop/menus/math.desktop
new file mode 100755
index 000000000000..55fcc29f312d
--- /dev/null
+++ b/sysui/desktop/menus/math.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=math
+Type=Application
+Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Other;
+Exec=${UNIXBASISROOTNAME} --math %U
+MimeType=application/vnd.oasis.opendocument.formula;application/vnd.sun.xml.math;application/vnd.stardivision.math;
+Name=%PRODUCTNAME Math
+Name[pt_BR]=%PRODUCTNAME_BR Math
+GenericName=Formula Editor
+Comment=Create and edit scientific formulas and equations by using Math.
+InitialPreference=5
diff --git a/sysui/desktop/menus/printeradmin.desktop b/sysui/desktop/menus/printeradmin.desktop
new file mode 100755
index 000000000000..3da4d82a33b1
--- /dev/null
+++ b/sysui/desktop/menus/printeradmin.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=printeradmin
+Type=Application
+Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;
+Exec=${UNIXBASISROOTNAME}-printeradmin
+Name=%PRODUCTNAME Printer Administration
+Name[pt_BR]=%PRODUCTNAME_BR Printer Administration
+
diff --git a/sysui/desktop/menus/qstart.desktop b/sysui/desktop/menus/qstart.desktop
new file mode 100755
index 000000000000..52ac185b9d3f
--- /dev/null
+++ b/sysui/desktop/menus/qstart.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Type=Application
+Categories=Office;
+Exec=${UNIXBASISROOTNAME} --quickstart --nologo --nodefault
+NoDisplay=true
+Name=%PRODUCTNAME Quickstarter
+Name[pt_BR]=%PRODUCTNAME_BR Quickstarter
+Comment=Hook for quickstarter startup
diff --git a/sysui/desktop/menus/startcenter.desktop b/sysui/desktop/menus/startcenter.desktop
new file mode 100755
index 000000000000..390dd93f3a0a
--- /dev/null
+++ b/sysui/desktop/menus/startcenter.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=startcenter
+Type=Application
+Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Other;
+Exec=${UNIXBASISROOTNAME} %U
+MimeType=application/vnd.openofficeorg.extension;
+Name=%PRODUCTNAME
+Name[pt_BR]=%PRODUCTNAME_BR
+GenericName=Office
+Comment=The office productivity suite compatible to the open and standardized ODF document format. Supported by The Document Foundation.
diff --git a/sysui/desktop/menus/writer.desktop b/sysui/desktop/menus/writer.desktop
new file mode 100755
index 000000000000..2222019bbf55
--- /dev/null
+++ b/sysui/desktop/menus/writer.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=writer
+Type=Application
+Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Wordprocessors;
+Exec=${UNIXBASISROOTNAME} --writer %U
+MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-flat-xml;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/vnd.stardivision.writer;application/msword;application/vnd.ms-word;application/x-doc;application/rtf;text/rtf;application/vnd.wordperfect;application/wordperfect;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;
+Name=%PRODUCTNAME Writer
+Name[pt_BR]=%PRODUCTNAME_BR Writer
+GenericName=Word Processor
+Comment=Create and edit text and graphics in letters, reports, documents and Web pages by using Writer.
+InitialPreference=5
diff --git a/sysui/desktop/mimetypes/drawing-template.desktop b/sysui/desktop/mimetypes/drawing-template.desktop
new file mode 100755
index 000000000000..e7bb7108e1d9
--- /dev/null
+++ b/sysui/desktop/mimetypes/drawing-template.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=drawing-template
+Type=MimeType
+Patterns=*.std
+MimeType=application/vnd.sun.xml.draw.template
+Comment=%PRODUCTNAME Drawing Template
diff --git a/sysui/desktop/mimetypes/drawing-template.keys b/sysui/desktop/mimetypes/drawing-template.keys
new file mode 100755
index 000000000000..2c6e8449e138
--- /dev/null
+++ b/sysui/desktop/mimetypes/drawing-template.keys
@@ -0,0 +1,10 @@
+application/vnd.sun.xml.draw.template
+ description=%PRODUCTNAME Drawing Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_intermediate_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_advanced_user_level=openoffice,staroffice,starsuite
+ category=Documents
+ use_category_default=no
+ icon_filename=drawing-template
+
diff --git a/sysui/desktop/mimetypes/drawing.desktop b/sysui/desktop/mimetypes/drawing.desktop
new file mode 100755
index 000000000000..36b74bffc9bd
--- /dev/null
+++ b/sysui/desktop/mimetypes/drawing.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=drawing
+Type=MimeType
+Patterns=*.sxd
+MimeType=application/vnd.sun.xml.draw
+Comment=%PRODUCTNAME Drawing
diff --git a/sysui/desktop/mimetypes/drawing.keys b/sysui/desktop/mimetypes/drawing.keys
new file mode 100755
index 000000000000..2fbd27e43223
--- /dev/null
+++ b/sysui/desktop/mimetypes/drawing.keys
@@ -0,0 +1,10 @@
+application/vnd.sun.xml.draw
+ description=%PRODUCTNAME Drawing
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_intermediate_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_advanced_user_level=openoffice,staroffice,starsuite
+ category=Documents
+ use_category_default=no
+ icon_filename=drawing
+
diff --git a/sysui/desktop/mimetypes/extension.desktop b/sysui/desktop/mimetypes/extension.desktop
new file mode 100755
index 000000000000..80cadae7e9cb
--- /dev/null
+++ b/sysui/desktop/mimetypes/extension.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=extension
+Type=MimeType
+Patterns=*.oxt
+MimeType=application/vnd.openofficeorg.extension
+Comment=%PRODUCTNAME Extension
diff --git a/sysui/desktop/mimetypes/extension.keys b/sysui/desktop/mimetypes/extension.keys
new file mode 100755
index 000000000000..a307e5097c98
--- /dev/null
+++ b/sysui/desktop/mimetypes/extension.keys
@@ -0,0 +1,10 @@
+application/vnd.openofficeorg.extension
+ description=Extension
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_intermediate_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_advanced_user_level=openoffice,staroffice,starsuite
+ category=Documents/Word Processor
+ use_category_default=no
+ icon_filename=extension
+
diff --git a/sysui/desktop/mimetypes/formula.desktop b/sysui/desktop/mimetypes/formula.desktop
new file mode 100755
index 000000000000..9ebaa2f468c7
--- /dev/null
+++ b/sysui/desktop/mimetypes/formula.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=formula
+Type=MimeType
+Patterns=*.sxm
+MimeType=application/vnd.sun.xml.math
+Comment=%PRODUCTNAME Formula
diff --git a/sysui/desktop/mimetypes/formula.keys b/sysui/desktop/mimetypes/formula.keys
new file mode 100755
index 000000000000..845cdff8246f
--- /dev/null
+++ b/sysui/desktop/mimetypes/formula.keys
@@ -0,0 +1,10 @@
+application/vnd.sun.xml.math
+ description=%PRODUCTNAME Formula
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_intermediate_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_advanced_user_level=openoffice,staroffice,starsuite
+ category=Documents
+ use_category_default=no
+ icon_filename=formula
+
diff --git a/sysui/desktop/mimetypes/master-document.desktop b/sysui/desktop/mimetypes/master-document.desktop
new file mode 100755
index 000000000000..1e30554bc4ef
--- /dev/null
+++ b/sysui/desktop/mimetypes/master-document.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=master-document
+Type=MimeType
+Patterns=*.sxg
+MimeType=application/vnd.sun.xml.writer.global
+Comment=%PRODUCTNAME Master Document
diff --git a/sysui/desktop/mimetypes/master-document.keys b/sysui/desktop/mimetypes/master-document.keys
new file mode 100755
index 000000000000..a9882a059b3a
--- /dev/null
+++ b/sysui/desktop/mimetypes/master-document.keys
@@ -0,0 +1,10 @@
+application/vnd.sun.xml.writer.global
+ description=%PRODUCTNAME Master Document
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_intermediate_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_advanced_user_level=openoffice,staroffice,starsuite
+ category=Documents/Word Processor
+ use_category_default=yes
+ icon_filename=master-document
+
diff --git a/sysui/desktop/mimetypes/ms-excel-sheet-12.desktop b/sysui/desktop/mimetypes/ms-excel-sheet-12.desktop
new file mode 100755
index 000000000000..06718a915a6c
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-excel-sheet-12.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.xlsm
+MimeType=application/vnd.ms-excel.sheet.macroenabled.12
+Comment=Microsoft Excel Worksheet
diff --git a/sysui/desktop/mimetypes/ms-excel-sheet-12.keys b/sysui/desktop/mimetypes/ms-excel-sheet-12.keys
new file mode 100755
index 000000000000..be746d9ad8ed
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-excel-sheet-12.keys
@@ -0,0 +1,10 @@
+application/vnd.ms-excel.sheet.macroenabled.12
+ description=Microsoft Excel Worksheet
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Spreadsheet
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/ms-excel-sheet-binary-12.desktop b/sysui/desktop/mimetypes/ms-excel-sheet-binary-12.desktop
new file mode 100755
index 000000000000..b9156ebb7f09
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-excel-sheet-binary-12.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.xlsb
+MimeType=application/vnd.ms-excel.sheet.binary.macroenabled.12
+Comment=Microsoft Excel Worksheet
diff --git a/sysui/desktop/mimetypes/ms-excel-sheet-binary-12.keys b/sysui/desktop/mimetypes/ms-excel-sheet-binary-12.keys
new file mode 100755
index 000000000000..091cff6214ef
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-excel-sheet-binary-12.keys
@@ -0,0 +1,10 @@
+application/vnd.ms-excel.sheet.binary.macroenabled.12
+ description=Microsoft Excel Worksheet
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Spreadsheet
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/ms-excel-sheet.desktop b/sysui/desktop/mimetypes/ms-excel-sheet.desktop
new file mode 100755
index 000000000000..7af20a0eb6f6
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-excel-sheet.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.xls
+MimeType=application/vnd.ms-excel
+Comment=Microsoft Excel Worksheet
diff --git a/sysui/desktop/mimetypes/ms-excel-sheet.keys b/sysui/desktop/mimetypes/ms-excel-sheet.keys
new file mode 100755
index 000000000000..fde5f41b0dbc
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-excel-sheet.keys
@@ -0,0 +1,10 @@
+application/vnd.ms-excel
+ description=Microsoft Excel Worksheet
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Spreadsheet
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/ms-excel-template-12.desktop b/sysui/desktop/mimetypes/ms-excel-template-12.desktop
new file mode 100755
index 000000000000..04688e10f518
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-excel-template-12.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.xltm
+MimeType=application/vnd.ms-excel.template.macroenabled.12
+Comment=Microsoft Excel Worksheet Template
diff --git a/sysui/desktop/mimetypes/ms-excel-template-12.keys b/sysui/desktop/mimetypes/ms-excel-template-12.keys
new file mode 100755
index 000000000000..8eb36cc1b229
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-excel-template-12.keys
@@ -0,0 +1,10 @@
+application/vnd.ms-excel.template.macroenabled.12
+ description=Microsoft Excel Worksheet Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Spreadsheet
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/ms-powerpoint-presentation-12.desktop b/sysui/desktop/mimetypes/ms-powerpoint-presentation-12.desktop
new file mode 100755
index 000000000000..082c9681f486
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-powerpoint-presentation-12.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.pptm
+MimeType=application/vnd.ms-powerpoint.presentation.macroenabled.12
+Comment=Microsoft PowerPoint Presentation
diff --git a/sysui/desktop/mimetypes/ms-powerpoint-presentation-12.keys b/sysui/desktop/mimetypes/ms-powerpoint-presentation-12.keys
new file mode 100755
index 000000000000..2e86010f4b7d
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-powerpoint-presentation-12.keys
@@ -0,0 +1,10 @@
+application/vnd.ms-powerpoint.presentation.macroenabled.12
+ description=Microsoft PowerPoint Presentation
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Presentation
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/ms-powerpoint-presentation.desktop b/sysui/desktop/mimetypes/ms-powerpoint-presentation.desktop
new file mode 100755
index 000000000000..5408638e7e50
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-powerpoint-presentation.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.ppt
+MimeType=application/vnd.ms-powerpoint
+Comment=Microsoft PowerPoint Presentation
diff --git a/sysui/desktop/mimetypes/ms-powerpoint-presentation.keys b/sysui/desktop/mimetypes/ms-powerpoint-presentation.keys
new file mode 100755
index 000000000000..f808f5dcc217
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-powerpoint-presentation.keys
@@ -0,0 +1,10 @@
+application/vnd.ms-powerpoint
+ description=Microsoft PowerPoint Presentation
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Presentation
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/ms-powerpoint-template-12.desktop b/sysui/desktop/mimetypes/ms-powerpoint-template-12.desktop
new file mode 100755
index 000000000000..8e984e5f516f
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-powerpoint-template-12.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.potm
+MimeType=application/vnd.ms-powerpoint.template.macroenabled.12
+Comment=Microsoft PowerPoint Presentation Template
diff --git a/sysui/desktop/mimetypes/ms-powerpoint-template-12.keys b/sysui/desktop/mimetypes/ms-powerpoint-template-12.keys
new file mode 100755
index 000000000000..07f25626936f
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-powerpoint-template-12.keys
@@ -0,0 +1,10 @@
+application/vnd.ms-powerpoint.template.macroenabled.12
+ description=Microsoft PowerPoint Presentation Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Presentation
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/ms-word-document-12.desktop b/sysui/desktop/mimetypes/ms-word-document-12.desktop
new file mode 100755
index 000000000000..d787d2b59b2d
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-word-document-12.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.docm
+MimeType=application/vnd.ms-word.document.macroenabled.12
+Comment=Microsoft Word Document
diff --git a/sysui/desktop/mimetypes/ms-word-document-12.keys b/sysui/desktop/mimetypes/ms-word-document-12.keys
new file mode 100755
index 000000000000..456564c1a126
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-word-document-12.keys
@@ -0,0 +1,10 @@
+application/vnd.ms-word.document.macroenabled.12
+ description=Microsoft Word Document
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Word Processor
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/ms-word-document.desktop b/sysui/desktop/mimetypes/ms-word-document.desktop
new file mode 100755
index 000000000000..e47ed43ac4f1
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-word-document.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.doc
+MimeType=application/msword
+Comment=Microsoft Word Document
diff --git a/sysui/desktop/mimetypes/ms-word-document.keys b/sysui/desktop/mimetypes/ms-word-document.keys
new file mode 100755
index 000000000000..aefa45037692
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-word-document.keys
@@ -0,0 +1,10 @@
+application/msword
+ description=Microsoft Word Document
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Word Processor
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/ms-word-document2.desktop b/sysui/desktop/mimetypes/ms-word-document2.desktop
new file mode 100755
index 000000000000..cf2395c8cd27
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-word-document2.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.doc
+MimeType=application/vnd.ms-word
+Comment=Microsoft Word Document
diff --git a/sysui/desktop/mimetypes/ms-word-document2.keys b/sysui/desktop/mimetypes/ms-word-document2.keys
new file mode 100755
index 000000000000..260ee7f3a188
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-word-document2.keys
@@ -0,0 +1,10 @@
+application/vnd.ms-word
+ description=Microsoft Word Document
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Word Processor
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/ms-word-template-12.desktop b/sysui/desktop/mimetypes/ms-word-template-12.desktop
new file mode 100755
index 000000000000..9ea1ce4c7abc
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-word-template-12.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.dotm
+MimeType=application/vnd.ms-word.template.macroenabled.12
+Comment=Microsoft Word Document Template
diff --git a/sysui/desktop/mimetypes/ms-word-template-12.keys b/sysui/desktop/mimetypes/ms-word-template-12.keys
new file mode 100755
index 000000000000..8b49db70151f
--- /dev/null
+++ b/sysui/desktop/mimetypes/ms-word-template-12.keys
@@ -0,0 +1,10 @@
+application/vnd.ms-word.template.macroenabled.12
+ description=Microsoft Word Document Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Word Processor
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/oasis-database.desktop b/sysui/desktop/mimetypes/oasis-database.desktop
new file mode 100755
index 000000000000..27f95fe97e35
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-database.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-database
+Type=MimeType
+Patterns=*.odb
+MimeType=application/vnd.sun.xml.base
+Comment=OpenDocument Database
diff --git a/sysui/desktop/mimetypes/oasis-database.keys b/sysui/desktop/mimetypes/oasis-database.keys
new file mode 100755
index 000000000000..19e97202b50a
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-database.keys
@@ -0,0 +1,10 @@
+application/vnd.sun.xml.base
+ description=OpenDocument Database
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents
+ use_category_default=no
+ icon_filename=oasis-database
+
diff --git a/sysui/desktop/mimetypes/oasis-drawing-flat-xml.desktop b/sysui/desktop/mimetypes/oasis-drawing-flat-xml.desktop
new file mode 100755
index 000000000000..fd061eb74c8e
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-drawing-flat-xml.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-drawing
+Type=MimeType
+Patterns=*.fodg
+MimeType=application/vnd.oasis.opendocument.graphics-flat-xml
+Comment=OpenDocument Drawing (Flat XML)
diff --git a/sysui/desktop/mimetypes/oasis-drawing-flat-xml.keys b/sysui/desktop/mimetypes/oasis-drawing-flat-xml.keys
new file mode 100755
index 000000000000..bc4a6f3b4173
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-drawing-flat-xml.keys
@@ -0,0 +1,10 @@
+application/vnd.oasis.opendocument.graphics-flat-xml
+ description=OpenDocument Drawing (Flat XML)
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents
+ use_category_default=no
+ icon_filename=oasis-drawing
+
diff --git a/sysui/desktop/mimetypes/oasis-drawing-template.desktop b/sysui/desktop/mimetypes/oasis-drawing-template.desktop
new file mode 100755
index 000000000000..fcb57c942da1
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-drawing-template.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-drawing-template
+Type=MimeType
+Patterns=*.otg
+MimeType=application/vnd.oasis.opendocument.graphics-template
+Comment=OpenDocument Drawing Template
diff --git a/sysui/desktop/mimetypes/oasis-drawing-template.keys b/sysui/desktop/mimetypes/oasis-drawing-template.keys
new file mode 100755
index 000000000000..8638fec329e4
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-drawing-template.keys
@@ -0,0 +1,10 @@
+application/vnd.oasis.opendocument.graphics-template
+ description=OpenDocument Drawing Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents
+ use_category_default=no
+ icon_filename=oasis-drawing-template
+
diff --git a/sysui/desktop/mimetypes/oasis-drawing.desktop b/sysui/desktop/mimetypes/oasis-drawing.desktop
new file mode 100755
index 000000000000..c10aaef87b3c
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-drawing.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-drawing
+Type=MimeType
+Patterns=*.odg
+MimeType=application/vnd.oasis.opendocument.graphics
+Comment=OpenDocument Drawing
diff --git a/sysui/desktop/mimetypes/oasis-drawing.keys b/sysui/desktop/mimetypes/oasis-drawing.keys
new file mode 100755
index 000000000000..c659749ddbf5
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-drawing.keys
@@ -0,0 +1,10 @@
+application/vnd.oasis.opendocument.graphics
+ description=OpenDocument Drawing
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents
+ use_category_default=no
+ icon_filename=oasis-drawing
+
diff --git a/sysui/desktop/mimetypes/oasis-formula.desktop b/sysui/desktop/mimetypes/oasis-formula.desktop
new file mode 100755
index 000000000000..f81a25acc655
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-formula.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-formula
+Type=MimeType
+Patterns=*.odf
+MimeType=application/vnd.oasis.opendocument.formula
+Comment=OpenDocument Formula
diff --git a/sysui/desktop/mimetypes/oasis-formula.keys b/sysui/desktop/mimetypes/oasis-formula.keys
new file mode 100755
index 000000000000..60618cb21443
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-formula.keys
@@ -0,0 +1,10 @@
+application/vnd.oasis.opendocument.formula
+ description=OpenDocument Formula
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents
+ use_category_default=no
+ icon_filename=oasis-formula
+
diff --git a/sysui/desktop/mimetypes/oasis-master-document.desktop b/sysui/desktop/mimetypes/oasis-master-document.desktop
new file mode 100755
index 000000000000..d4aeeabea917
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-master-document.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-master-document
+Type=MimeType
+Patterns=*.odm
+MimeType=application/vnd.oasis.opendocument.text-master
+Comment=OpenDocument Master Document
diff --git a/sysui/desktop/mimetypes/oasis-master-document.keys b/sysui/desktop/mimetypes/oasis-master-document.keys
new file mode 100755
index 000000000000..f950763205dd
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-master-document.keys
@@ -0,0 +1,10 @@
+application/vnd.oasis.opendocument.text-master
+ description=OpenDocument Master Document
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Word Processor
+ use_category_default=yes
+ icon_filename=oasis-master-document
+
diff --git a/sysui/desktop/mimetypes/oasis-presentation-flat-xml.desktop b/sysui/desktop/mimetypes/oasis-presentation-flat-xml.desktop
new file mode 100755
index 000000000000..62887d8a8203
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-presentation-flat-xml.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-presentation
+Type=MimeType
+Patterns=*.fodp
+MimeType=application/vnd.oasis.opendocument.presentation-flat-xml
+Comment=OpenDocument Presentation
diff --git a/sysui/desktop/mimetypes/oasis-presentation-flat-xml.keys b/sysui/desktop/mimetypes/oasis-presentation-flat-xml.keys
new file mode 100755
index 000000000000..f4c9b5816059
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-presentation-flat-xml.keys
@@ -0,0 +1,10 @@
+application/vnd.oasis.opendocument.presentation-flat-xml
+ description=OpenDocument Presentation (Flat XML)
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Presentation
+ use_category_default=yes
+ icon_filename=oasis-presentation
+
diff --git a/sysui/desktop/mimetypes/oasis-presentation-template.desktop b/sysui/desktop/mimetypes/oasis-presentation-template.desktop
new file mode 100755
index 000000000000..f4a441c878f5
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-presentation-template.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-presentation-template
+Type=MimeType
+Patterns=*.otp
+MimeType=application/vnd.oasis.opendocument.presentation-template
+Comment=OpenDocument Presentation Template
diff --git a/sysui/desktop/mimetypes/oasis-presentation-template.keys b/sysui/desktop/mimetypes/oasis-presentation-template.keys
new file mode 100755
index 000000000000..b504592a725d
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-presentation-template.keys
@@ -0,0 +1,10 @@
+application/vnd.oasis.opendocument.presentation-template
+ description=OpenDocument Presentation Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Presentation
+ use_category_default=yes
+ icon_filename=oasis-presentation-template
+
diff --git a/sysui/desktop/mimetypes/oasis-presentation.desktop b/sysui/desktop/mimetypes/oasis-presentation.desktop
new file mode 100755
index 000000000000..2aad0beec6ec
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-presentation.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-presentation
+Type=MimeType
+Patterns=*.odp
+MimeType=application/vnd.oasis.opendocument.presentation
+Comment=OpenDocument Presentation
diff --git a/sysui/desktop/mimetypes/oasis-presentation.keys b/sysui/desktop/mimetypes/oasis-presentation.keys
new file mode 100755
index 000000000000..07c10cfcadd6
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-presentation.keys
@@ -0,0 +1,10 @@
+application/vnd.oasis.opendocument.presentation
+ description=OpenDocument Presentation
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Presentation
+ use_category_default=yes
+ icon_filename=oasis-presentation
+
diff --git a/sysui/desktop/mimetypes/oasis-spreadsheet-flat-xml.desktop b/sysui/desktop/mimetypes/oasis-spreadsheet-flat-xml.desktop
new file mode 100755
index 000000000000..84a73527418c
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-spreadsheet-flat-xml.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-spreadsheet
+Type=MimeType
+Patterns=*.fods
+MimeType=application/vnd.oasis.opendocument.spreadsheet-flat-xml
+Comment=OpenDocument Spreadsheet (Flat XML)
diff --git a/sysui/desktop/mimetypes/oasis-spreadsheet-flat-xml.keys b/sysui/desktop/mimetypes/oasis-spreadsheet-flat-xml.keys
new file mode 100755
index 000000000000..2675c3295e43
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-spreadsheet-flat-xml.keys
@@ -0,0 +1,10 @@
+application/vnd.oasis.opendocument.spreadsheet-flat-xml
+ description=OpenDocument Spreadsheet (Flat XML)
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Spreadsheet
+ use_category_default=yes
+ icon_filename=oasis-spreadsheet
+
diff --git a/sysui/desktop/mimetypes/oasis-spreadsheet-template.desktop b/sysui/desktop/mimetypes/oasis-spreadsheet-template.desktop
new file mode 100755
index 000000000000..5d6d2d6f7bb5
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-spreadsheet-template.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-spreadsheet-template
+Type=MimeType
+Patterns=*.ots
+MimeType=application/vnd.oasis.opendocument.spreadsheet-template
+Comment=OpenDocument Spreadsheet Template
diff --git a/sysui/desktop/mimetypes/oasis-spreadsheet-template.keys b/sysui/desktop/mimetypes/oasis-spreadsheet-template.keys
new file mode 100755
index 000000000000..e616a4f3a973
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-spreadsheet-template.keys
@@ -0,0 +1,10 @@
+application/vnd.oasis.opendocument.spreadsheet-template
+ description=OpenDocument Spreadsheet Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Spreadsheet
+ use_category_default=yes
+ icon_filename=oasis-spreadsheet-template
+
diff --git a/sysui/desktop/mimetypes/oasis-spreadsheet.desktop b/sysui/desktop/mimetypes/oasis-spreadsheet.desktop
new file mode 100755
index 000000000000..611a61a2c976
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-spreadsheet.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-spreadsheet
+Type=MimeType
+Patterns=*.ods
+MimeType=application/vnd.oasis.opendocument.spreadsheet
+Comment=OpenDocument Spreadsheet
diff --git a/sysui/desktop/mimetypes/oasis-spreadsheet.keys b/sysui/desktop/mimetypes/oasis-spreadsheet.keys
new file mode 100755
index 000000000000..009f630e166a
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-spreadsheet.keys
@@ -0,0 +1,10 @@
+application/vnd.oasis.opendocument.spreadsheet
+ description=OpenDocument Spreadsheet
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Spreadsheet
+ use_category_default=yes
+ icon_filename=oasis-spreadsheet
+
diff --git a/sysui/desktop/mimetypes/oasis-text-flat-xml.desktop b/sysui/desktop/mimetypes/oasis-text-flat-xml.desktop
new file mode 100755
index 000000000000..f75891c3397f
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-text-flat-xml.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-text
+Type=MimeType
+Patterns=*.fodt
+MimeType=application/vnd.oasis.opendocument.text-flat-xml
+Comment=OpenDocument Text (Flat XML)
diff --git a/sysui/desktop/mimetypes/oasis-text-flat-xml.keys b/sysui/desktop/mimetypes/oasis-text-flat-xml.keys
new file mode 100755
index 000000000000..aaedf1221cfc
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-text-flat-xml.keys
@@ -0,0 +1,10 @@
+application/vnd.oasis.opendocument.text-flat-xml
+ description=OpenDocument Text (Flat XML)
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Word Processor
+ use_category_default=yes
+ icon_filename=oasis-text
+
diff --git a/sysui/desktop/mimetypes/oasis-text-template.desktop b/sysui/desktop/mimetypes/oasis-text-template.desktop
new file mode 100755
index 000000000000..9c0d989bbbdd
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-text-template.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-text-template
+Type=MimeType
+Patterns=*.ott
+MimeType=application/vnd.oasis.opendocument.text-template
+Comment=OpenDocument Text Template
diff --git a/sysui/desktop/mimetypes/oasis-text-template.keys b/sysui/desktop/mimetypes/oasis-text-template.keys
new file mode 100755
index 000000000000..3ce0868d69a9
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-text-template.keys
@@ -0,0 +1,9 @@
+application/vnd.oasis.opendocument.text-template
+ description=OpenDocument Text Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Word Processor
+ use_category_default=yes
+ icon_filename=oasis-text-template
diff --git a/sysui/desktop/mimetypes/oasis-text.desktop b/sysui/desktop/mimetypes/oasis-text.desktop
new file mode 100755
index 000000000000..769c5cc6d792
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-text.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-text
+Type=MimeType
+Patterns=*.odt
+MimeType=application/vnd.oasis.opendocument.text
+Comment=OpenDocument Text
diff --git a/sysui/desktop/mimetypes/oasis-text.keys b/sysui/desktop/mimetypes/oasis-text.keys
new file mode 100755
index 000000000000..acc8a2916260
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-text.keys
@@ -0,0 +1,10 @@
+application/vnd.oasis.opendocument.text
+ description=OpenDocument Text
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Word Processor
+ use_category_default=yes
+ icon_filename=oasis-text
+
diff --git a/sysui/desktop/mimetypes/oasis-web-template.desktop b/sysui/desktop/mimetypes/oasis-web-template.desktop
new file mode 100755
index 000000000000..716225f17df3
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-web-template.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=oasis-web-template
+Type=MimeType
+Patterns=*.oth
+MimeType=application/vnd.oasis.opendocument.text-web
+Comment=HTML Document Template
diff --git a/sysui/desktop/mimetypes/oasis-web-template.keys b/sysui/desktop/mimetypes/oasis-web-template.keys
new file mode 100755
index 000000000000..888e45870e75
--- /dev/null
+++ b/sysui/desktop/mimetypes/oasis-web-template.keys
@@ -0,0 +1,10 @@
+application/vnd.oasis.opendocument.text-web
+ description=HTML Document Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Word Processor
+ use_category_default=yes
+ icon_filename=oasis-web-template
+
diff --git a/sysui/desktop/mimetypes/openoffice.applications b/sysui/desktop/mimetypes/openoffice.applications
new file mode 100755
index 000000000000..6d878010e214
--- /dev/null
+++ b/sysui/desktop/mimetypes/openoffice.applications
@@ -0,0 +1,9 @@
+OFFICENAME
+ command=OFFICENAME
+ name=%PRODUCTNAME
+ can_open_multiple_files=true
+ expects_uris=true
+ requires_terminal=false
+ uses_gnomevfs=true
+ mime_types=application/vnd.oasis.opendocument.text,application/vnd.oasis.opendocument.text-flat-xml,application/vnd.oasis.opendocument.text-template,application/vnd.oasis.opendocument.text-web,application/vnd.oasis.opendocument.text-master,application/vnd.oasis.opendocument.graphics,application/vnd.oasis.opendocument.graphics-flat-xml,application/vnd.oasis.opendocument.graphics-template,application/vnd.oasis.opendocument.presentation,application/vnd.oasis.opendocument.presentation-flat-xml,application/vnd.oasis.opendocument.presentation-template,application/vnd.oasis.opendocument.spreadsheet,application/vnd.oasis.opendocument.spreadsheet-flat-xml,application/vnd.oasis.opendocument.spreadsheet-template,application/vnd.oasis.opendocument.formula,application/vnd.oasis.opendocument.database,application/vnd.ms-excel,application/rtf,application/msword,application/vnd.ms-powerpoint,application/vnd.stardivision.calc,application/vnd.stardivision.chart,application/vnd.stardivision.draw,application/vnd.stardivision.impress,application/vnd.stardivision.mail,application/vnd.stardivision.math,application/vnd.stardivision.writer,application/vnd.sun.xml.calc,application/vnd.sun.xml.calc.template,application/vnd.sun.xml.draw,application/vnd.sun.xml.draw.template,application/vnd.sun.xml.impress,application/vnd.sun.xml.impress.template,application/vnd.sun.xml.math,application/vnd.sun.xml.writer,application/vnd.sun.xml.writer.global,application/vnd.sun.xml.writer.template,application/vnd.sun.xml.base,image/x-emf,image/x-pcx,image/x-photo-cd,image/x-pict;application/vnd.wordperfect;application/vnd.openofficeorg.extension;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.ms-excel.sheet.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.template.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.ms-powerpoint.presentation.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.ms-powerpoint.template.macroenabled.12;application/vnd.ms-excel.sheet.binary.macroenabled.12;
+
diff --git a/sysui/desktop/mimetypes/openoffice.mime b/sysui/desktop/mimetypes/openoffice.mime
new file mode 100755
index 000000000000..fc895cf64829
--- /dev/null
+++ b/sysui/desktop/mimetypes/openoffice.mime
@@ -0,0 +1,95 @@
+application/vnd.oasis.opendocument.text:
+ ext: odt
+
+application/vnd.oasis.opendocument.text-flat-xml:
+ ext: fodt
+
+application/vnd.oasis.opendocument.text-template:
+ ext: ott
+
+application/vnd.oasis.opendocument.text-web:
+ ext: oth
+
+application/vnd.oasis.opendocument.text-master:
+ ext: odm
+
+application/vnd.oasis.opendocument.graphics:
+ ext: odg
+
+application/vnd.oasis.opendocument.graphics-flat-xml:
+ ext: fodg
+
+application/vnd.oasis.opendocument.graphics-template:
+ ext: otg
+
+application/vnd.oasis.opendocument.presentation:
+ ext: odp
+
+application/vnd.oasis.opendocument.presentation-flat-xml:
+ ext: fodp
+
+application/vnd.oasis.opendocument.presentation-template:
+ ext: otp
+
+application/vnd.oasis.opendocument.spreadsheet:
+ ext: ods
+
+application/vnd.oasis.opendocument.spreadsheet-flat-xml:
+ ext: fods
+
+application/vnd.oasis.opendocument.spreadsheet-template:
+ ext: ots
+
+application/vnd.oasis.opendocument.formula:
+ ext: odf
+
+application/vnd.sun.xml.base:
+ ext: odb
+
+application/vnd.openxmlformats-officedocument.wordprocessingml.document
+ ext: docx
+
+application/vnd.ms-word.document.macroenabled.12
+ ext: docm
+
+application/vnd.openxmlformats-officedocument.wordprocessingml.template
+ ext: dotx
+
+application/vnd.ms-word.template.macroenabled.12
+ ext: dotm
+
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
+ ext: xlsx
+
+application/vnd.ms-excel.sheet.macroenabled.12
+ ext: xlsm
+
+application/vnd.openxmlformats-officedocument.spreadsheetml.template
+ ext: xltx
+
+application/vnd.ms-excel.template.macroenabled.12
+ ext: xltm
+
+application/vnd.openxmlformats-officedocument.presentationml.presentation
+ ext: pptx
+
+application/vnd.ms-powerpoint.presentation.macroenabled.12
+ ext: pptm
+
+application/vnd.openxmlformats-officedocument.presentationml.template
+ ext: potx
+
+application/vnd.ms-powerpoint.template.macroenabled.12
+ ext: potm
+
+application/vnd.ms-excel.sheet.binary.macroenabled.12
+ ext: xlsb
+
+application/vnd.ms-word
+ ext: doc
+
+application/vnd.ms-excel
+ ext: xls
+
+application/vnd.ms-powerpoint
+ ext: ppt
diff --git a/sysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-presentation.desktop b/sysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-presentation.desktop
new file mode 100755
index 000000000000..b7648c76c47e
--- /dev/null
+++ b/sysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-presentation.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.pptx
+MimeType=application/vnd.openxmlformats-officedocument.presentationml.presentation
+Comment=Microsoft PowerPoint Presentation
diff --git a/sysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-presentation.keys b/sysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-presentation.keys
new file mode 100755
index 000000000000..7061ccc88074
--- /dev/null
+++ b/sysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-presentation.keys
@@ -0,0 +1,10 @@
+application/vnd.openxmlformats-officedocument.presentationml.presentation
+ description=Microsoft PowerPoint Presentation
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Presentation
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-template.desktop b/sysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-template.desktop
new file mode 100755
index 000000000000..32e177ef56fb
--- /dev/null
+++ b/sysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-template.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.potx
+MimeType=application/vnd.openxmlformats-officedocument.presentationml.template
+Comment=Microsoft PowerPoint Presentation Template
diff --git a/sysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-template.keys b/sysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-template.keys
new file mode 100755
index 000000000000..362b1eea1b30
--- /dev/null
+++ b/sysui/desktop/mimetypes/openxmlformats-officedocument-presentationml-template.keys
@@ -0,0 +1,10 @@
+application/vnd.openxmlformats-officedocument.presentationml.template
+ description=Microsoft PowerPoint Presentation Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Presentation
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-sheet.desktop b/sysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-sheet.desktop
new file mode 100755
index 000000000000..d65a50aac974
--- /dev/null
+++ b/sysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-sheet.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.xlsx
+MimeType=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
+Comment=Microsoft Excel Worksheet
diff --git a/sysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-sheet.keys b/sysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-sheet.keys
new file mode 100755
index 000000000000..cf7a4babbe0e
--- /dev/null
+++ b/sysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-sheet.keys
@@ -0,0 +1,10 @@
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
+ description=Microsoft Excel Worksheet
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Spreadsheet
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-template.desktop b/sysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-template.desktop
new file mode 100755
index 000000000000..c095099bc135
--- /dev/null
+++ b/sysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-template.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.xltx
+MimeType=application/vnd.openxmlformats-officedocument.spreadsheetml.template
+Comment=Microsoft Excel Worksheet Template
diff --git a/sysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-template.keys b/sysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-template.keys
new file mode 100755
index 000000000000..ab5a5918ba63
--- /dev/null
+++ b/sysui/desktop/mimetypes/openxmlformats-officedocument-spreadsheetml-template.keys
@@ -0,0 +1,10 @@
+application/vnd.openxmlformats-officedocument.spreadsheetml.template
+ description=Microsoft Excel Worksheet Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Spreadsheet
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-document.desktop b/sysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-document.desktop
new file mode 100755
index 000000000000..e5886f17d507
--- /dev/null
+++ b/sysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-document.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.docx
+MimeType=application/vnd.openxmlformats-officedocument.wordprocessingml.document
+Comment=Microsoft Word Document
diff --git a/sysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-document.keys b/sysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-document.keys
new file mode 100755
index 000000000000..4e8f28bdba01
--- /dev/null
+++ b/sysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-document.keys
@@ -0,0 +1,10 @@
+application/vnd.openxmlformats-officedocument.wordprocessingml.document
+ description=Microsoft Word Document
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Word Processor
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-template.desktop b/sysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-template.desktop
new file mode 100755
index 000000000000..d2559d8125b6
--- /dev/null
+++ b/sysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-template.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=
+Type=MimeType
+Patterns=*.dotx
+MimeType=application/vnd.openxmlformats-officedocument.wordprocessingml.template
+Comment=Microsoft Word Document Template
diff --git a/sysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-template.keys b/sysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-template.keys
new file mode 100755
index 000000000000..8951ca3b595a
--- /dev/null
+++ b/sysui/desktop/mimetypes/openxmlformats-officedocument-wordprocessingml-template.keys
@@ -0,0 +1,10 @@
+application/vnd.openxmlformats-officedocument.wordprocessingml.template
+ description=Microsoft Word Document Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=
+ short_list_application_ids_for_intermediate_user_level=
+ short_list_application_ids_for_advanced_user_level=
+ category=Documents/Word Processor
+ use_category_default=yes
+ icon_filename=
+
diff --git a/sysui/desktop/mimetypes/presentation-template.desktop b/sysui/desktop/mimetypes/presentation-template.desktop
new file mode 100755
index 000000000000..5d69e224042b
--- /dev/null
+++ b/sysui/desktop/mimetypes/presentation-template.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=presentation-template
+Type=MimeType
+Patterns=*.sti
+MimeType=application/vnd.sun.xml.impress.template
+Comment=%PRODUCTNAME Presentation Template
diff --git a/sysui/desktop/mimetypes/presentation-template.keys b/sysui/desktop/mimetypes/presentation-template.keys
new file mode 100755
index 000000000000..a909f737da13
--- /dev/null
+++ b/sysui/desktop/mimetypes/presentation-template.keys
@@ -0,0 +1,10 @@
+application/vnd.sun.xml.impress.template
+ description=%PRODUCTNAME Presentation Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_intermediate_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_advanced_user_level=openoffice,staroffice,starsuite
+ category=Documents/Presentation
+ use_category_default=yes
+ icon_filename=presentation-template
+
diff --git a/sysui/desktop/mimetypes/presentation.desktop b/sysui/desktop/mimetypes/presentation.desktop
new file mode 100755
index 000000000000..bf349281494f
--- /dev/null
+++ b/sysui/desktop/mimetypes/presentation.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=presentation
+Type=MimeType
+Patterns=*.sxi
+MimeType=application/vnd.sun.xml.impress
+Comment=%PRODUCTNAME Presentation
diff --git a/sysui/desktop/mimetypes/presentation.keys b/sysui/desktop/mimetypes/presentation.keys
new file mode 100755
index 000000000000..4620867abe7d
--- /dev/null
+++ b/sysui/desktop/mimetypes/presentation.keys
@@ -0,0 +1,10 @@
+application/vnd.sun.xml.impress
+ description=%PRODUCTNAME Presentation
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_intermediate_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_advanced_user_level=openoffice,staroffice,starsuite
+ category=Documents/Presentation
+ use_category_default=yes
+ icon_filename=presentation
+
diff --git a/sysui/desktop/mimetypes/spreadsheet-template.desktop b/sysui/desktop/mimetypes/spreadsheet-template.desktop
new file mode 100755
index 000000000000..2ade1dadb2e5
--- /dev/null
+++ b/sysui/desktop/mimetypes/spreadsheet-template.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=spreadsheet-template
+Type=MimeType
+Patterns=*.stc
+MimeType=application/vnd.sun.xml.calc.template
+Comment=%PRODUCTNAME Spreadsheet Template
diff --git a/sysui/desktop/mimetypes/spreadsheet-template.keys b/sysui/desktop/mimetypes/spreadsheet-template.keys
new file mode 100755
index 000000000000..604cca7def8d
--- /dev/null
+++ b/sysui/desktop/mimetypes/spreadsheet-template.keys
@@ -0,0 +1,10 @@
+application/vnd.sun.xml.calc.template
+ description=%PRODUCTNAME Spreadsheet Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_intermediate_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_advanced_user_level=openoffice,staroffice,starsuite
+ category=Documents/Spreadsheet
+ use_category_default=yes
+ icon_filename=spreadsheet-template
+
diff --git a/sysui/desktop/mimetypes/spreadsheet.desktop b/sysui/desktop/mimetypes/spreadsheet.desktop
new file mode 100755
index 000000000000..4fd14aa426b8
--- /dev/null
+++ b/sysui/desktop/mimetypes/spreadsheet.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=spreadsheet
+Type=MimeType
+Patterns=*.sxc
+MimeType=application/vnd.sun.xml.calc
+Comment=%PRODUCTNAME Spreadsheet
diff --git a/sysui/desktop/mimetypes/spreadsheet.keys b/sysui/desktop/mimetypes/spreadsheet.keys
new file mode 100755
index 000000000000..d108e64284df
--- /dev/null
+++ b/sysui/desktop/mimetypes/spreadsheet.keys
@@ -0,0 +1,10 @@
+application/vnd.sun.xml.calc
+ description=%PRODUCTNAME Spreadsheet
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_intermediate_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_advanced_user_level=openoffice,staroffice,starsuite
+ category=Documents/Spreadsheet
+ use_category_default=yes
+ icon_filename=spreadsheet
+
diff --git a/sysui/desktop/mimetypes/text-template.desktop b/sysui/desktop/mimetypes/text-template.desktop
new file mode 100755
index 000000000000..584f66007ceb
--- /dev/null
+++ b/sysui/desktop/mimetypes/text-template.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=text-template
+Type=MimeType
+Patterns=*.stw
+MimeType=application/vnd.sun.xml.writer.template
+Comment=%PRODUCTNAME Text Document Template
diff --git a/sysui/desktop/mimetypes/text-template.keys b/sysui/desktop/mimetypes/text-template.keys
new file mode 100755
index 000000000000..ef9d424be5ee
--- /dev/null
+++ b/sysui/desktop/mimetypes/text-template.keys
@@ -0,0 +1,9 @@
+application/vnd.sun.xml.writer.template
+ description=%PRODUCTNAME Text Document Template
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_intermediate_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_advanced_user_level=openoffice,staroffice,starsuite
+ category=Documents/Word Processor
+ use_category_default=yes
+ icon_filename=text-template
diff --git a/sysui/desktop/mimetypes/text.desktop b/sysui/desktop/mimetypes/text.desktop
new file mode 100755
index 000000000000..695a1aadab47
--- /dev/null
+++ b/sysui/desktop/mimetypes/text.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Hidden=false
+Icon=text
+Type=MimeType
+Patterns=*.sxw
+MimeType=application/vnd.sun.xml.writer
+Comment=%PRODUCTNAME Text Document
diff --git a/sysui/desktop/mimetypes/text.keys b/sysui/desktop/mimetypes/text.keys
new file mode 100755
index 000000000000..e42244f2631f
--- /dev/null
+++ b/sysui/desktop/mimetypes/text.keys
@@ -0,0 +1,10 @@
+application/vnd.sun.xml.writer
+ description=%PRODUCTNAME Text Document
+ default_action_type=application
+ short_list_application_ids_for_novice_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_intermediate_user_level=openoffice,staroffice,starsuite
+ short_list_application_ids_for_advanced_user_level=openoffice,staroffice,starsuite
+ category=Documents/Word Processor
+ use_category_default=yes
+ icon_filename=text
+
diff --git a/sysui/desktop/os2/makefile.mk b/sysui/desktop/os2/makefile.mk
new file mode 100755
index 000000000000..7d1637254a01
--- /dev/null
+++ b/sysui/desktop/os2/makefile.mk
@@ -0,0 +1,123 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..
+
+PRJNAME=sysui
+TARGET=icons
+
+# --- Settings -----------------------------------------------------------
+
+.INCLUDE : settings.mk
+
+# --- Targets -------------------------------------------------------------
+
+all: \
+ $(MISC)$/ooo-base-app.ico \
+ $(MISC)$/ooo-base-doc.ico \
+ $(MISC)$/ooo-calc-app.ico \
+ $(MISC)$/ooo-calc-doc.ico \
+ $(MISC)$/ooo-calc-tem.ico \
+ $(MISC)$/ooo-chart-doc.ico \
+ $(MISC)$/ooo-configuration.ico \
+ $(MISC)$/ooo-draw-app.ico \
+ $(MISC)$/ooo-draw-doc.ico \
+ $(MISC)$/ooo-draw-tem.ico \
+ $(MISC)$/ooo-empty-doc.ico \
+ $(MISC)$/ooo-empty-tem.ico \
+ $(MISC)$/ooo-image-doc.ico \
+ $(MISC)$/ooo-impress-app.ico \
+ $(MISC)$/ooo-impress-doc.ico \
+ $(MISC)$/ooo-impress-tem.ico \
+ $(MISC)$/ooo-macro-doc.ico \
+ $(MISC)$/ooo-main-app.ico \
+ $(MISC)$/ooo-master-doc.ico \
+ $(MISC)$/ooo-math-app.ico \
+ $(MISC)$/ooo-math-doc.ico \
+ $(MISC)$/ooo-open.ico \
+ $(MISC)$/ooo-printer.ico \
+ $(MISC)$/ooo-web-doc.ico \
+ $(MISC)$/ooo-writer-app.ico \
+ $(MISC)$/ooo-writer-doc.ico \
+ $(MISC)$/ooo-writer-tem.ico \
+ $(MISC)$/ooo11-base-doc.ico \
+ $(MISC)$/ooo11-calc-doc.ico \
+ $(MISC)$/ooo11-calc-tem.ico \
+ $(MISC)$/ooo11-chart-doc.ico \
+ $(MISC)$/ooo11-draw-doc.ico \
+ $(MISC)$/ooo11-draw-tem.ico \
+ $(MISC)$/ooo11-impress-doc.ico \
+ $(MISC)$/ooo11-impress-tem.ico \
+ $(MISC)$/ooo11-master-doc.ico \
+ $(MISC)$/ooo11-math-doc.ico \
+ $(MISC)$/ooo11-writer-doc.ico \
+ $(MISC)$/ooo11-writer-tem.ico \
+ $(MISC)$/so8-base-app.ico \
+ $(MISC)$/so8-base-doc.ico \
+ $(MISC)$/so8-calc-app.ico \
+ $(MISC)$/so8-calc-doc.ico \
+ $(MISC)$/so8-calc-tem.ico \
+ $(MISC)$/so8-chart-doc.ico \
+ $(MISC)$/so8-configuration.ico \
+ $(MISC)$/so8-draw-app.ico \
+ $(MISC)$/so8-draw-doc.ico \
+ $(MISC)$/so8-draw-tem.ico \
+ $(MISC)$/so8-empty-doc.ico \
+ $(MISC)$/so8-empty-tem.ico \
+ $(MISC)$/so8-image-doc.ico \
+ $(MISC)$/so8-impress-app.ico \
+ $(MISC)$/so8-impress-doc.ico \
+ $(MISC)$/so8-impress-tem.ico \
+ $(MISC)$/so8-macro-doc.ico \
+ $(MISC)$/so8-main-app.ico \
+ $(MISC)$/so8-master-doc.ico \
+ $(MISC)$/so8-math-app.ico \
+ $(MISC)$/so8-math-doc.ico \
+ $(MISC)$/so8-open.ico \
+ $(MISC)$/so8-printer.ico \
+ $(MISC)$/so8-web-doc.ico \
+ $(MISC)$/so8-writer-app.ico \
+ $(MISC)$/so8-writer-doc.ico \
+ $(MISC)$/so8-writer-tem.ico \
+ $(MISC)$/so7-base-doc.ico \
+ $(MISC)$/so7-calc-doc.ico \
+ $(MISC)$/so7-calc-tem.ico \
+ $(MISC)$/so7-chart-doc.ico \
+ $(MISC)$/so7-draw-doc.ico \
+ $(MISC)$/so7-draw-tem.ico \
+ $(MISC)$/so7-impress-doc.ico \
+ $(MISC)$/so7-impress-tem.ico \
+ $(MISC)$/so7-master-doc.ico \
+ $(MISC)$/so7-math-doc.ico \
+ $(MISC)$/so7-writer-doc.ico \
+ $(MISC)$/so7-writer-tem.ico
+
+$(MISC)$/%.ico: %.ico
+ +$(COPY) $< $@
+
+.INCLUDE : target.mk
+
diff --git a/sysui/desktop/os2/ooo-base-app.ico b/sysui/desktop/os2/ooo-base-app.ico
new file mode 100644
index 000000000000..e55abae34476
--- /dev/null
+++ b/sysui/desktop/os2/ooo-base-app.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-base-doc.ico b/sysui/desktop/os2/ooo-base-doc.ico
new file mode 100644
index 000000000000..e1b033ad1050
--- /dev/null
+++ b/sysui/desktop/os2/ooo-base-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-calc-app.ico b/sysui/desktop/os2/ooo-calc-app.ico
new file mode 100644
index 000000000000..66adbc663516
--- /dev/null
+++ b/sysui/desktop/os2/ooo-calc-app.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-calc-doc.ico b/sysui/desktop/os2/ooo-calc-doc.ico
new file mode 100644
index 000000000000..0cfc09f9c9f1
--- /dev/null
+++ b/sysui/desktop/os2/ooo-calc-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-calc-tem.ico b/sysui/desktop/os2/ooo-calc-tem.ico
new file mode 100644
index 000000000000..363703e35369
--- /dev/null
+++ b/sysui/desktop/os2/ooo-calc-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-chart-doc.ico b/sysui/desktop/os2/ooo-chart-doc.ico
new file mode 100644
index 000000000000..fee582f29d49
--- /dev/null
+++ b/sysui/desktop/os2/ooo-chart-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-configuration.ico b/sysui/desktop/os2/ooo-configuration.ico
new file mode 100644
index 000000000000..2723b37fcb8e
--- /dev/null
+++ b/sysui/desktop/os2/ooo-configuration.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-draw-app.ico b/sysui/desktop/os2/ooo-draw-app.ico
new file mode 100644
index 000000000000..1524d9989566
--- /dev/null
+++ b/sysui/desktop/os2/ooo-draw-app.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-draw-doc.ico b/sysui/desktop/os2/ooo-draw-doc.ico
new file mode 100644
index 000000000000..a63a39b787cf
--- /dev/null
+++ b/sysui/desktop/os2/ooo-draw-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-draw-tem.ico b/sysui/desktop/os2/ooo-draw-tem.ico
new file mode 100644
index 000000000000..cac9513cb3c2
--- /dev/null
+++ b/sysui/desktop/os2/ooo-draw-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-empty-doc.ico b/sysui/desktop/os2/ooo-empty-doc.ico
new file mode 100644
index 000000000000..350e6ac37da3
--- /dev/null
+++ b/sysui/desktop/os2/ooo-empty-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-empty-tem.ico b/sysui/desktop/os2/ooo-empty-tem.ico
new file mode 100644
index 000000000000..3cdff3d8c73a
--- /dev/null
+++ b/sysui/desktop/os2/ooo-empty-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-image-doc.ico b/sysui/desktop/os2/ooo-image-doc.ico
new file mode 100644
index 000000000000..b1fed4dca8da
--- /dev/null
+++ b/sysui/desktop/os2/ooo-image-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-impress-app.ico b/sysui/desktop/os2/ooo-impress-app.ico
new file mode 100644
index 000000000000..e58eaad5cdc9
--- /dev/null
+++ b/sysui/desktop/os2/ooo-impress-app.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-impress-doc.ico b/sysui/desktop/os2/ooo-impress-doc.ico
new file mode 100644
index 000000000000..ba1b6df74e33
--- /dev/null
+++ b/sysui/desktop/os2/ooo-impress-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-impress-tem.ico b/sysui/desktop/os2/ooo-impress-tem.ico
new file mode 100644
index 000000000000..93a3509ad5fe
--- /dev/null
+++ b/sysui/desktop/os2/ooo-impress-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-macro-doc.ico b/sysui/desktop/os2/ooo-macro-doc.ico
new file mode 100644
index 000000000000..2fe6c55f581e
--- /dev/null
+++ b/sysui/desktop/os2/ooo-macro-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-main-app.ico b/sysui/desktop/os2/ooo-main-app.ico
new file mode 100644
index 000000000000..f7edd4524bc1
--- /dev/null
+++ b/sysui/desktop/os2/ooo-main-app.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-master-doc.ico b/sysui/desktop/os2/ooo-master-doc.ico
new file mode 100644
index 000000000000..2861de24d1c4
--- /dev/null
+++ b/sysui/desktop/os2/ooo-master-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-math-app.ico b/sysui/desktop/os2/ooo-math-app.ico
new file mode 100644
index 000000000000..c3c3c81c9106
--- /dev/null
+++ b/sysui/desktop/os2/ooo-math-app.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-math-doc.ico b/sysui/desktop/os2/ooo-math-doc.ico
new file mode 100644
index 000000000000..a605e9e1ae0e
--- /dev/null
+++ b/sysui/desktop/os2/ooo-math-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-open.ico b/sysui/desktop/os2/ooo-open.ico
new file mode 100644
index 000000000000..508909ea3815
--- /dev/null
+++ b/sysui/desktop/os2/ooo-open.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-printer.ico b/sysui/desktop/os2/ooo-printer.ico
new file mode 100644
index 000000000000..30ed6cd00ccc
--- /dev/null
+++ b/sysui/desktop/os2/ooo-printer.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-web-doc.ico b/sysui/desktop/os2/ooo-web-doc.ico
new file mode 100644
index 000000000000..d8b497633528
--- /dev/null
+++ b/sysui/desktop/os2/ooo-web-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-writer-app.ico b/sysui/desktop/os2/ooo-writer-app.ico
new file mode 100644
index 000000000000..c6a5e1fdfc7f
--- /dev/null
+++ b/sysui/desktop/os2/ooo-writer-app.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-writer-doc.ico b/sysui/desktop/os2/ooo-writer-doc.ico
new file mode 100644
index 000000000000..02a95ecee479
--- /dev/null
+++ b/sysui/desktop/os2/ooo-writer-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo-writer-tem.ico b/sysui/desktop/os2/ooo-writer-tem.ico
new file mode 100644
index 000000000000..b356cffbdcbf
--- /dev/null
+++ b/sysui/desktop/os2/ooo-writer-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo11-base-doc.ico b/sysui/desktop/os2/ooo11-base-doc.ico
new file mode 100644
index 000000000000..dda0cba1e22f
--- /dev/null
+++ b/sysui/desktop/os2/ooo11-base-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo11-calc-doc.ico b/sysui/desktop/os2/ooo11-calc-doc.ico
new file mode 100644
index 000000000000..d891a04c869a
--- /dev/null
+++ b/sysui/desktop/os2/ooo11-calc-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo11-calc-tem.ico b/sysui/desktop/os2/ooo11-calc-tem.ico
new file mode 100644
index 000000000000..d891a04c869a
--- /dev/null
+++ b/sysui/desktop/os2/ooo11-calc-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo11-chart-doc.ico b/sysui/desktop/os2/ooo11-chart-doc.ico
new file mode 100644
index 000000000000..dda0cba1e22f
--- /dev/null
+++ b/sysui/desktop/os2/ooo11-chart-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo11-draw-doc.ico b/sysui/desktop/os2/ooo11-draw-doc.ico
new file mode 100644
index 000000000000..61312fbe562e
--- /dev/null
+++ b/sysui/desktop/os2/ooo11-draw-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo11-draw-tem.ico b/sysui/desktop/os2/ooo11-draw-tem.ico
new file mode 100644
index 000000000000..61312fbe562e
--- /dev/null
+++ b/sysui/desktop/os2/ooo11-draw-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo11-impress-doc.ico b/sysui/desktop/os2/ooo11-impress-doc.ico
new file mode 100644
index 000000000000..cebf5e56bc77
--- /dev/null
+++ b/sysui/desktop/os2/ooo11-impress-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo11-impress-tem.ico b/sysui/desktop/os2/ooo11-impress-tem.ico
new file mode 100644
index 000000000000..cebf5e56bc77
--- /dev/null
+++ b/sysui/desktop/os2/ooo11-impress-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo11-master-doc.ico b/sysui/desktop/os2/ooo11-master-doc.ico
new file mode 100644
index 000000000000..dda0cba1e22f
--- /dev/null
+++ b/sysui/desktop/os2/ooo11-master-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo11-math-doc.ico b/sysui/desktop/os2/ooo11-math-doc.ico
new file mode 100644
index 000000000000..ab8c16007727
--- /dev/null
+++ b/sysui/desktop/os2/ooo11-math-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo11-writer-doc.ico b/sysui/desktop/os2/ooo11-writer-doc.ico
new file mode 100644
index 000000000000..901d8ec3df33
--- /dev/null
+++ b/sysui/desktop/os2/ooo11-writer-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/ooo11-writer-tem.ico b/sysui/desktop/os2/ooo11-writer-tem.ico
new file mode 100644
index 000000000000..901d8ec3df33
--- /dev/null
+++ b/sysui/desktop/os2/ooo11-writer-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/so7-base-doc.ico b/sysui/desktop/os2/so7-base-doc.ico
new file mode 100644
index 000000000000..5ffd7549cc5b
--- /dev/null
+++ b/sysui/desktop/os2/so7-base-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so7-calc-doc.ico b/sysui/desktop/os2/so7-calc-doc.ico
new file mode 100644
index 000000000000..ead58e51ff6d
--- /dev/null
+++ b/sysui/desktop/os2/so7-calc-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so7-calc-tem.ico b/sysui/desktop/os2/so7-calc-tem.ico
new file mode 100644
index 000000000000..bdbeb0406ccd
--- /dev/null
+++ b/sysui/desktop/os2/so7-calc-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/so7-chart-doc.ico b/sysui/desktop/os2/so7-chart-doc.ico
new file mode 100644
index 000000000000..5412287c37ea
--- /dev/null
+++ b/sysui/desktop/os2/so7-chart-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so7-draw-doc.ico b/sysui/desktop/os2/so7-draw-doc.ico
new file mode 100644
index 000000000000..3e4ab098070d
--- /dev/null
+++ b/sysui/desktop/os2/so7-draw-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so7-draw-tem.ico b/sysui/desktop/os2/so7-draw-tem.ico
new file mode 100644
index 000000000000..ca46a39a5f21
--- /dev/null
+++ b/sysui/desktop/os2/so7-draw-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/so7-impress-doc.ico b/sysui/desktop/os2/so7-impress-doc.ico
new file mode 100644
index 000000000000..4df2d73d3c23
--- /dev/null
+++ b/sysui/desktop/os2/so7-impress-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so7-impress-tem.ico b/sysui/desktop/os2/so7-impress-tem.ico
new file mode 100644
index 000000000000..0c29d09ebf53
--- /dev/null
+++ b/sysui/desktop/os2/so7-impress-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/so7-master-doc.ico b/sysui/desktop/os2/so7-master-doc.ico
new file mode 100644
index 000000000000..70a7fa52afe7
--- /dev/null
+++ b/sysui/desktop/os2/so7-master-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so7-math-doc.ico b/sysui/desktop/os2/so7-math-doc.ico
new file mode 100644
index 000000000000..9e1f3bb4dbf2
--- /dev/null
+++ b/sysui/desktop/os2/so7-math-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so7-writer-doc.ico b/sysui/desktop/os2/so7-writer-doc.ico
new file mode 100644
index 000000000000..01e1fcc897bf
--- /dev/null
+++ b/sysui/desktop/os2/so7-writer-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so7-writer-tem.ico b/sysui/desktop/os2/so7-writer-tem.ico
new file mode 100644
index 000000000000..c6bc74e0e2e3
--- /dev/null
+++ b/sysui/desktop/os2/so7-writer-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-base-app.ico b/sysui/desktop/os2/so8-base-app.ico
new file mode 100644
index 000000000000..8480d3cf506f
--- /dev/null
+++ b/sysui/desktop/os2/so8-base-app.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-base-doc.ico b/sysui/desktop/os2/so8-base-doc.ico
new file mode 100644
index 000000000000..c539d1f4a773
--- /dev/null
+++ b/sysui/desktop/os2/so8-base-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-calc-app.ico b/sysui/desktop/os2/so8-calc-app.ico
new file mode 100644
index 000000000000..fc129ca9771d
--- /dev/null
+++ b/sysui/desktop/os2/so8-calc-app.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-calc-doc.ico b/sysui/desktop/os2/so8-calc-doc.ico
new file mode 100644
index 000000000000..b5184ff419aa
--- /dev/null
+++ b/sysui/desktop/os2/so8-calc-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-calc-tem.ico b/sysui/desktop/os2/so8-calc-tem.ico
new file mode 100644
index 000000000000..6c6b6dbbd44e
--- /dev/null
+++ b/sysui/desktop/os2/so8-calc-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-chart-doc.ico b/sysui/desktop/os2/so8-chart-doc.ico
new file mode 100644
index 000000000000..a3b8ae3c0a1a
--- /dev/null
+++ b/sysui/desktop/os2/so8-chart-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-configuration.ico b/sysui/desktop/os2/so8-configuration.ico
new file mode 100644
index 000000000000..eebd9d899aac
--- /dev/null
+++ b/sysui/desktop/os2/so8-configuration.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-draw-app.ico b/sysui/desktop/os2/so8-draw-app.ico
new file mode 100644
index 000000000000..c491094c5faa
--- /dev/null
+++ b/sysui/desktop/os2/so8-draw-app.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-draw-doc.ico b/sysui/desktop/os2/so8-draw-doc.ico
new file mode 100644
index 000000000000..28d1b32e161e
--- /dev/null
+++ b/sysui/desktop/os2/so8-draw-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-draw-tem.ico b/sysui/desktop/os2/so8-draw-tem.ico
new file mode 100644
index 000000000000..caf6ddc8c94d
--- /dev/null
+++ b/sysui/desktop/os2/so8-draw-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-empty-doc.ico b/sysui/desktop/os2/so8-empty-doc.ico
new file mode 100644
index 000000000000..23b1bfa00843
--- /dev/null
+++ b/sysui/desktop/os2/so8-empty-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-empty-tem.ico b/sysui/desktop/os2/so8-empty-tem.ico
new file mode 100644
index 000000000000..08d0ff03730b
--- /dev/null
+++ b/sysui/desktop/os2/so8-empty-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-image-doc.ico b/sysui/desktop/os2/so8-image-doc.ico
new file mode 100644
index 000000000000..2c734453e638
--- /dev/null
+++ b/sysui/desktop/os2/so8-image-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-impress-app.ico b/sysui/desktop/os2/so8-impress-app.ico
new file mode 100644
index 000000000000..f77ba1d055d0
--- /dev/null
+++ b/sysui/desktop/os2/so8-impress-app.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-impress-doc.ico b/sysui/desktop/os2/so8-impress-doc.ico
new file mode 100644
index 000000000000..9bf3ea37f130
--- /dev/null
+++ b/sysui/desktop/os2/so8-impress-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-impress-tem.ico b/sysui/desktop/os2/so8-impress-tem.ico
new file mode 100644
index 000000000000..fe6a1ffbc61d
--- /dev/null
+++ b/sysui/desktop/os2/so8-impress-tem.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-macro-doc.ico b/sysui/desktop/os2/so8-macro-doc.ico
new file mode 100644
index 000000000000..e828c0cd7afa
--- /dev/null
+++ b/sysui/desktop/os2/so8-macro-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-main-app.ico b/sysui/desktop/os2/so8-main-app.ico
new file mode 100644
index 000000000000..d158dd3bdbda
--- /dev/null
+++ b/sysui/desktop/os2/so8-main-app.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-master-doc.ico b/sysui/desktop/os2/so8-master-doc.ico
new file mode 100644
index 000000000000..1b2ba16e5d45
--- /dev/null
+++ b/sysui/desktop/os2/so8-master-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-math-app.ico b/sysui/desktop/os2/so8-math-app.ico
new file mode 100644
index 000000000000..0299bedde70e
--- /dev/null
+++ b/sysui/desktop/os2/so8-math-app.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-math-doc.ico b/sysui/desktop/os2/so8-math-doc.ico
new file mode 100644
index 000000000000..cacbcd977732
--- /dev/null
+++ b/sysui/desktop/os2/so8-math-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-open.ico b/sysui/desktop/os2/so8-open.ico
new file mode 100644
index 000000000000..6dcee498e5e6
--- /dev/null
+++ b/sysui/desktop/os2/so8-open.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-printer.ico b/sysui/desktop/os2/so8-printer.ico
new file mode 100644
index 000000000000..49780f9cc7b9
--- /dev/null
+++ b/sysui/desktop/os2/so8-printer.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-web-doc.ico b/sysui/desktop/os2/so8-web-doc.ico
new file mode 100644
index 000000000000..15a4d860c58d
--- /dev/null
+++ b/sysui/desktop/os2/so8-web-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-writer-app.ico b/sysui/desktop/os2/so8-writer-app.ico
new file mode 100644
index 000000000000..9b36afd75534
--- /dev/null
+++ b/sysui/desktop/os2/so8-writer-app.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-writer-doc.ico b/sysui/desktop/os2/so8-writer-doc.ico
new file mode 100644
index 000000000000..12bc54839cfc
--- /dev/null
+++ b/sysui/desktop/os2/so8-writer-doc.ico
Binary files differ
diff --git a/sysui/desktop/os2/so8-writer-tem.ico b/sysui/desktop/os2/so8-writer-tem.ico
new file mode 100644
index 000000000000..ff1a9fe2e220
--- /dev/null
+++ b/sysui/desktop/os2/so8-writer-tem.ico
Binary files differ
diff --git a/sysui/desktop/productversion.mk b/sysui/desktop/productversion.mk
new file mode 100755
index 000000000000..0b027a44ccf1
--- /dev/null
+++ b/sysui/desktop/productversion.mk
@@ -0,0 +1,80 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+.IF "$(OS)"=="LINUX"
+PKGREV = $(BUILD)
+.ELSE
+PKGREV = $(LAST_MINOR:s/m//:s/s/./)
+.ENDIF
+
+ABSLOCALOUT:=$(shell @cd $(PRJ) && pwd)$/$(ROUT)
+
+# create desktop-integration subfolder on linux
+.IF "$(OS)"=="LINUX" || "$(OS)"=="AIX"
+# rpm seems to require absolute paths here :(
+PKGDIR:=$(ABSLOCALOUT)$/bin$/desktop-integration
+RPMMACROS= \
+ --define "_rpmdir $(PKGDIR)" \
+ --define "_rpmfilename %%{{NAME}}-%%{{VERSION}}-%%{{RELEASE}}.%%{{ARCH}}.rpm"
+.ELSE
+PKGDIR=$(BIN)
+.ENDIF
+
+.INCLUDE : productversion.mk
+
+PKGVERSION = $(PRODUCTVERSION)
+# gnome-vfs treats everything behind the last '.' as an icon extension,
+# even though the "icon_filename" in '.keys' is specified as filename
+# without extension. Since it also does not know how to handle "2-writer"
+# type icons :-), we are stripping all '.' for now.
+# ToDo: maybe we use a product major later ??
+ICONVERSION = $(PRODUCTVERSIONSHORT:s/.//g)
+# UNIXWRAPPERNAME variable is used to generate the common desktop files below share/xdg;
+# the default values get replaced by make_installer.pl at (core0x) packaging time;
+# another wrapper name can be forced by --with-unix-wrapper configure option
+# which is need by other distributors, see http://www.openoffice.org/issues/show_bug.cgi?id=75366
+UNIXWRAPPERNAME *= '$${{UNIXPRODUCTNAME}}$${{BRANDPACKAGEVERSION}}'
+
+PRODUCTNAME.libreoffice = LibreOffice
+PRODUCTVERSION.libreoffice = $(PRODUCTVERSION)
+PRODUCTVERSIONSHORT.libreoffice = $(PRODUCTVERSIONSHORT)
+PKGVERSION.libreoffice = $(PKGVERSION)
+UNIXFILENAME.libreoffice = $(PRODUCTNAME.libreoffice:l)$(PRODUCTVERSION.libreoffice)
+ICONPREFIX.libreoffice = $(UNIXFILENAME.libreoffice:s/.//g)
+
+PRODUCTNAME.broffice = BrOffice
+PRODUCTVERSION.broffice = $(PRODUCTVERSION)
+PRODUCTVERSIONSHORT.broffice = $(PRODUCTVERSIONSHORT)
+PKGVERSION.broffice = $(PKGVERSION)
+UNIXFILENAME.broffice = $(PRODUCTNAME.broffice:l)$(PRODUCTVERSION.broffice)
+ICONPREFIX.broffice = $(UNIXFILENAME.broffice:s/.//g)
+
+PRODUCTNAME.oxygenoffice = OxygenOffice
+PRODUCTVERSION.oxygenoffice = $(PRODUCTVERSION)
+PRODUCTVERSIONSHORT.oxygenoffice = $(PRODUCTVERSIONSHORT)
+PKGVERSION.oxygenoffice = $(PKGVERSION)
+UNIXFILENAME.oxygenoffice = $(PRODUCTNAME.oxygenoffice:l)$(PRODUCTVERSION.oxygenoffice)
+ICONPREFIX.oxygenoffice = $(UNIXFILENAME.oxygenoffice:s/.//g)
diff --git a/sysui/desktop/redhat/makefile.mk b/sysui/desktop/redhat/makefile.mk
new file mode 100755
index 000000000000..a633cfe244f4
--- /dev/null
+++ b/sysui/desktop/redhat/makefile.mk
@@ -0,0 +1,59 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..
+
+PRJNAME=sysui
+TARGET=redhat
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+
+# --- Product Version Information ----------------------------------
+
+.INCLUDE : ../productversion.mk
+
+# --- Files --------------------------------------------------------
+
+.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)"
+
+SPECFILE=$(TARGET)-menus.spec
+RPMFLAGFILES=$(foreach,i,{$(PRODUCTLIST)} $(PKGDIR)$/$i-$(SPECFILE:b)-$(PKGVERSION.$i)-$(PKGREV).noarch.flag)
+
+.ENDIF
+
+# --- Targets -------------------------------------------------------
+
+.INCLUDE : target.mk
+.INCLUDE : ../tg_rpm.mk
+
+.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)"
+
+$(RPMFLAGFILES) : $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag
+
+.ENDIF
diff --git a/sysui/desktop/redhat/redhat-menus.spec b/sysui/desktop/redhat/redhat-menus.spec
new file mode 100755
index 000000000000..aa7249793537
--- /dev/null
+++ b/sysui/desktop/redhat/redhat-menus.spec
@@ -0,0 +1,365 @@
+# version and release passed by command-line
+Version: %version
+Release: %release
+Summary: %productname desktop integration
+Name: %pkgprefix-redhat-menus
+Group: Office
+License: LGPL
+Vendor: The Document Foundation
+AutoReqProv: no
+BuildArch: noarch
+Requires: redhat-release
+Provides: libreoffice-desktop-integration
+%define _unpackaged_files_terminate_build 0
+%define _binary_filedigest_algorithm 1
+%define _binary_payload w9.gzdio
+
+%define gnome_dir /usr
+%define gnome_mime_theme hicolor
+
+%description
+%productname desktop integration
+
+%install
+# hack/workaround to make SuSE's brp-symlink-script happy. It wants the targets of all links
+# to be present on the build-system/the buildroot. But the point is that we generate stale
+# links intentionally (until we find a better solution) #46226
+export NO_BRP_STALE_LINK_ERROR=yes
+
+mkdir -p $RPM_BUILD_ROOT
+
+# set parameters for the create_tree script
+export DESTDIR=$RPM_BUILD_ROOT
+export KDEMAINDIR=/usr
+export GNOMEDIR=%{gnome_dir}
+
+./create_tree.sh
+
+# legacy redhat KDE location for .desktop files
+mkdir -p $RPM_BUILD_ROOT/usr/share/applnk-redhat/Office
+for i in `cat launcherlist`; do
+ ln -sf /opt/%unixfilename/share/xdg/$i $RPM_BUILD_ROOT/usr/share/applnk-redhat/Office/%unixfilename-$i
+done
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%triggerin -- %pkgprefix, %pkgprefix-writer, %pkgprefix-calc, %pkgprefix-draw, %pkgprefix-impress, %pkgprefix-base, %pkgprefix-math
+if [ -x /usr/bin/update-desktop-database ]; then
+ update-desktop-database -q /usr/share/applications
+fi
+
+%triggerun -- %pkgprefix, %pkgprefix-writer, %pkgprefix-calc, %pkgprefix-draw, %pkgprefix-impress, %pkgprefix-base, %pkgprefix-math
+if [ "$1" = "0" ] ; then
+ # the menu-package gets uninstalled/updated - postun will run the command
+ exit 0
+fi
+if [ "$2" = "0" ] ; then
+ # the triggering package gets removed
+ if [ -x /usr/bin/update-desktop-database ]; then
+ update-desktop-database -q /usr/share/applications
+ fi
+fi
+
+%post
+# run always, since there are versions of this package that did not include
+# a shared-mime-info xml file
+if [ -x /usr/bin/update-mime-database ]; then
+ update-mime-database /usr/share/mime
+fi
+
+# add symlinks so that nautilus can identify the mime-icons
+# not strictly freedesktop-stuff but there is no common naming scheme yet.
+# One proposal is "mime-application:vnd.oasis.opendocument.spreadsheet.png"
+# for e.g. application/vnd.oasis.opendocument.spreadsheet
+link_target_root="%{gnome_dir}/share/icons/%{gnome_mime_theme}"
+
+if [ ! -d "${link_target_root}" ]
+then
+ link_target_root="%{gnome_dir}/share/icons/gnome"
+fi
+
+for subdir in `cd ${link_target_root}; ls -d *`
+do
+ link_dir="%{gnome_dir}/share/icons/%{gnome_mime_theme}/$subdir/mimetypes"
+ link_target_dir="../../../gnome/$subdir/mimetypes/"
+
+ test -d "${link_dir}" || mkdir -p "${link_dir}"
+ test -d ${link_dir}/${link_target_dir} || continue
+
+ icon=${link_target_dir}%iconprefix-drawing.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.draw.png
+ icon=${link_target_dir}%iconprefix-drawing-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.draw.template.png
+ icon=${link_target_dir}%iconprefix-formula.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.math.png
+ icon=${link_target_dir}%iconprefix-master-document.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.writer.global.png
+ icon=${link_target_dir}%iconprefix-oasis-database.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.base.png
+ icon=${link_target_dir}%iconprefix-oasis-database.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.database.png
+ icon=${link_target_dir}%iconprefix-oasis-drawing.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.graphics.png
+ icon=${link_target_dir}%iconprefix-oasis-drawing-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.graphics-template.png
+ icon=${link_target_dir}%iconprefix-oasis-formula.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.formula.png
+ icon=${link_target_dir}%iconprefix-oasis-master-document.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text-master.png
+ icon=${link_target_dir}%iconprefix-oasis-presentation.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.presentation.png
+ icon=${link_target_dir}%iconprefix-oasis-presentation-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.presentation-template.png
+ icon=${link_target_dir}%iconprefix-oasis-spreadsheet.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.spreadsheet.png
+ icon=${link_target_dir}%iconprefix-oasis-spreadsheet-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.spreadsheet-template.png
+ icon=${link_target_dir}%iconprefix-oasis-text.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text.png
+ icon=${link_target_dir}%iconprefix-oasis-text-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text-template.png
+ icon=${link_target_dir}%iconprefix-oasis-web-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text-web.png
+ icon=${link_target_dir}%iconprefix-presentation.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.impress.png
+ icon=${link_target_dir}%iconprefix-presentation-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.impress.template.png
+ icon=${link_target_dir}%iconprefix-spreadsheet.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.calc.png
+ icon=${link_target_dir}%iconprefix-spreadsheet-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.calc.template.png
+ icon=${link_target_dir}%iconprefix-text.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.writer.png
+ icon=${link_target_dir}%iconprefix-text-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.writer.template.png
+ icon=${link_target_dir}%iconprefix-extension.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.openofficeorg.extension.png
+done
+
+# run only on first install, since postun is run when updating
+# post would be run before the old files are removed
+if [ "$1" = "1" ] ; then # first install
+ for theme in gnome hicolor locolor; do
+ if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
+ # touch it, just in case we cannot find the binary...
+ touch /usr/share/icons/$theme
+ if (which gtk-update-icon-cache); then
+ gtk-update-icon-cache /usr/share/icons/$theme
+ fi
+ # ignore errors (e.g. when there is a cache, but no index.theme)
+ true
+ fi
+ done
+fi
+
+# update /etc/mime.types
+# backing out existing entries to avoid duplicates
+sed '
+/application\/vnd\.oasis\.opendocument/d
+/application\/vnd\.openofficeorg/d
+/application\/vnd\.sun/d
+/application\/vnd\.stardivision/d
+' /etc/mime.types 2>/dev/null >> /etc/mime.types.tmp$$
+
+# now append our stuff to the temporary file
+cat >> /etc/mime.types.tmp$$ << END
+application/vnd.oasis.opendocument.text odt
+application/vnd.oasis.opendocument.text-flat-xml fodt
+application/vnd.oasis.opendocument.text-template ott
+application/vnd.oasis.opendocument.text-web oth
+application/vnd.oasis.opendocument.text-master odm
+application/vnd.oasis.opendocument.graphics odg
+application/vnd.oasis.opendocument.graphics-flat-xml fodg
+application/vnd.oasis.opendocument.graphics-template otg
+application/vnd.oasis.opendocument.presentation odp
+application/vnd.oasis.opendocument.presentation-flat-xml fodp
+application/vnd.oasis.opendocument.presentation-template otp
+application/vnd.oasis.opendocument.spreadsheet ods
+application/vnd.oasis.opendocument.spreadsheet-flat-xml fods
+application/vnd.oasis.opendocument.spreadsheet-template ots
+application/vnd.oasis.opendocument.chart odc
+application/vnd.oasis.opendocument.formula odf
+application/vnd.oasis.opendocument.image odi
+application/vnd.sun.xml.writer sxw
+application/vnd.sun.xml.writer.template stw
+application/vnd.sun.xml.writer.global sxg
+application/vnd.stardivision.writer sdw vor
+application/vnd.stardivision.writer-global sgl
+application/vnd.sun.xml.calc sxc
+application/vnd.sun.xml.calc.template stc
+application/vnd.stardivision.calc sdc
+application/vnd.stardivision.chart sds
+application/vnd.sun.xml.impress sxi
+application/vnd.sun.xml.impress.template sti
+application/vnd.stardivision.impress sdd sdp
+application/vnd.sun.xml.draw sxd
+application/vnd.sun.xml.draw.template std
+application/vnd.stardivision.draw sda
+application/vnd.sun.xml.math sxm
+application/vnd.stardivision.math smf
+application/vnd.sun.xml.base odb
+application/vnd.openofficeorg.extension oxt
+application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
+application/vnd.ms-word.document.macroenabled.12 docm
+application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
+application/vnd.ms-word.template.macroenabled.12 dotm
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
+application/vnd.ms-excel.sheet.macroenabled.12 xlsm
+application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
+application/vnd.ms-excel.template.macroenabled.12 xltm
+application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
+application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm
+application/vnd.openxmlformats-officedocument.presentationml.template potx
+application/vnd.ms-powerpoint.template.macroenabled.12 potm
+END
+
+# and replace the original file
+mv -f /etc/mime.types.tmp$$ /etc/mime.types 2>/dev/null
+
+# update /etc/mailcap only at initial install
+if [ "$1" = 1 ]
+then
+ # backing out existing entries to avoid duplicates
+ sed '
+/^# LibreOffice/d
+/^application\/vnd\.oasis\.opendocument/d
+/^application\/vnd\.openofficeorg/d
+/^application\/vnd\.sun/d
+/^application\/vnd\.stardivision/d
+/^application\/vnd\.ms-word/d
+/^application\/vnd\.ms-excel/d
+/^application\/vnd\.ms-powerpoint/d
+/^application\/x-star/d
+/excel/d
+/ms[-]*word/d
+/powerpoint/d
+' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$
+
+ # now append our stuff to the temporary file
+ cat >> /etc/mailcap.tmp$$ << END
+# LibreOffice
+application/vnd.oasis.opendocument.text; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-template; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-web; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-master; %unixfilename -view %s
+application/vnd.sun.xml.writer; %unixfilename -view %s
+application/vnd.sun.xml.writer.template; %unixfilename -view %s
+application/vnd.sun.xml.writer.global; %unixfilename -view %s
+application/vnd.stardivision.writer; %unixfilename -view %s
+application/vnd.stardivision.writer-global; %unixfilename -view %s
+application/x-starwriter; %unixfilename -view %s
+application/vnd.oasis.opendocument.formula; %unixfilename -view %s
+application/vnd.sun.xml.math; %unixfilename -view %s
+application/vnd.stardivision.math; %unixfilename -view %s
+application/x-starmath; %unixfilename -view %s
+application/msword; %unixfilename -view %s
+application/vnd.oasis.opendocument.spreadsheet; %unixfilename -view %s
+application/vnd.oasis.opendocument.spreadsheet-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.spreadsheet-template; %unixfilename -view %s
+application/vnd.sun.xml.calc; %unixfilename -view %s
+application/vnd.sun.xml.calc.template; %unixfilename -view %s
+application/vnd.stardivision.calc; %unixfilename -view %s
+application/x-starcalc; %unixfilename -view %s
+application/vnd.stardivision.chart; %unixfilename -view %s
+application/x-starchart; %unixfilename -view %s
+application/excel; %unixfilename -view %s
+application/msexcel; %unixfilename -view %s
+application/vnd.ms-excel; %unixfilename -view %s
+application/x-msexcel; %unixfilename -view %s
+application/vnd.oasis.opendocument.presentation; %unixfilename -view %s
+application/vnd.oasis.opendocument.presentation-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.presentation-template; %unixfilename -view %s
+application/vnd.sun.xml.impress; %unixfilename -view %s
+application/vnd.sun.xml.impress.template; %unixfilename -view %s
+application/vnd.stardivision.impress; %unixfilename -view %s
+application/x-starimpress; %unixfilename -view %s
+application/powerpoint; %unixfilename -view %s
+application/mspowerpoint; %unixfilename -view %s
+application/vnd.ms-powerpoint; %unixfilename -view %s
+application/x-mspowerpoint; %unixfilename -view %s
+application/vnd.oasis.opendocument.graphics; %unixfilename -view %s
+application/vnd.oasis.opendocument.graphics-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.graphics-template; %unixfilename -view %s
+application/vnd.sun.xml.draw; %unixfilename -view %s
+application/vnd.sun.xml.draw.template; %unixfilename -view %s
+application/vnd.stardivision.draw; %unixfilename -view %s
+application/x-stardraw; %unixfilename -view %s
+application/vnd.oasis.opendocument.database; %unixfilename -view %s
+application/vnd.sun.xml.base; %unixfilename -view %s
+application/vnd.writerperfect; %unixfilename -view %s
+application/wordperfect5.1; %unixfilename -view %s
+application/x-wordperfect; %unixfilename -view %s
+application/wordperfect; %unixfilename -view %s
+application/wpwin; %unixfilename -view %s
+application/vnd.openofficeorg.extension; %unixfilename %s
+application/vnd.openxmlformats-officedocument.wordprocessingml.document; %unixfilename -view %s
+application/vnd.ms-word.document.macroenabled.12;%unixfilename -view %s
+application/vnd.openxmlformats-officedocument.wordprocessingml.template; %unixfilename -view %s
+application/vnd.ms-word.template.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; %unixfilename -view %s
+application/vnd.ms-excel.sheet.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.spreadsheetml.template; %unixfilename -view %s
+application/vnd.ms-excel.template.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.presentationml.presentation; %unixfilename -view %s
+application/vnd.ms-powerpoint.presentation.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.presentationml.template; %unixfilename -view %s
+application/vnd.ms-powerpoint.template.macroenabled.12; %unixfilename -view %s
+END
+
+ # and replace the original file
+ mv -f /etc/mailcap.tmp$$ /etc/mailcap
+fi
+
+%preun
+# remove from /etc/mailcap only on de-install
+if [ "$1" = 0 ]
+then
+ # backing all entries pointing to our binary
+ sed '/%unixfilename/d' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$
+
+ # and replace the original file
+ mv -f /etc/mailcap.tmp$$ /etc/mailcap
+fi
+
+%postun
+# run only when erasing this package, since %post of the new package ran
+# previously or updates already handled by triggers.
+if [ "$1" = 0 ] ; then
+ if [ -x /usr/bin/update-desktop-database ]; then
+ update-desktop-database -q /usr/share/applications
+ fi
+ if [ -x /usr/bin/update-mime-database ]; then
+ update-mime-database /usr/share/mime
+ fi
+fi
+#run always
+for theme in gnome hicolor locolor; do
+ if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
+ # touch it, just in case we cannot find the binary...
+ touch /usr/share/icons/$theme
+ if (which gtk-update-icon-cache); then
+ gtk-update-icon-cache /usr/share/icons/$theme
+ fi
+ # ignore errors (e.g. when there is a cache, but no index.theme)
+ true
+ fi
+done
+echo unixfilename=%unixfilename
+
+%files
+%if "%unixfilename" != "libreoffice%productversion"
+# compat symlinks
+%attr(0755,root,root) /opt/%unixfilename
+%attr(0755,root,root) /usr/bin/libreoffice%productversion
+%attr(0755,root,root) /usr/bin/libreoffice%productversion-printeradmin
+%endif
+%attr(0755,root,root) %verify(not size md5) /usr/bin/%unixfilename
+%attr(0755,root,root) /usr/bin/%unixfilename-printeradmin
+%defattr(0644, root, root)
+/usr/share/application-registry/*.applications
+/usr/share/applications/%unixfilename-writer.desktop
+/usr/share/applications/%unixfilename-calc.desktop
+/usr/share/applications/%unixfilename-draw.desktop
+/usr/share/applications/%unixfilename-impress.desktop
+/usr/share/applications/%unixfilename-math.desktop
+/usr/share/applications/%unixfilename-base.desktop
+/usr/share/applications/%unixfilename-printeradmin.desktop
+/usr/share/applications/%unixfilename-startcenter.desktop
+/usr/share/applications/%unixfilename-javafilter.desktop
+/usr/share/applnk-redhat/Office/%unixfilename-writer.desktop
+/usr/share/applnk-redhat/Office/%unixfilename-calc.desktop
+/usr/share/applnk-redhat/Office/%unixfilename-draw.desktop
+/usr/share/applnk-redhat/Office/%unixfilename-impress.desktop
+/usr/share/applnk-redhat/Office/%unixfilename-math.desktop
+/usr/share/applnk-redhat/Office/%unixfilename-base.desktop
+/usr/share/applnk-redhat/Office/%unixfilename-printeradmin.desktop
+/usr/share/applnk-redhat/Office/%unixfilename-startcenter.desktop
+/usr/share/applnk-redhat/Office/%unixfilename-javafilter.desktop
+/usr/share/mime-info/*.keys
+/usr/share/mime-info/*.mime
+/usr/share/mimelnk/application/*.desktop
+/usr/share/icons/gnome/*/apps/*png
+/usr/share/icons/gnome/*/mimetypes/*png
+/usr/share/icons/hicolor/*/apps/*png
+/usr/share/icons/hicolor/*/mimetypes/*png
+/usr/share/icons/locolor/*/apps/*png
+/usr/share/icons/locolor/*/mimetypes/*png
+/usr/share/mime/packages/*
diff --git a/sysui/desktop/share/add_specfile_triggers.sed b/sysui/desktop/share/add_specfile_triggers.sed
new file mode 100755
index 000000000000..a8d9d2932a0c
--- /dev/null
+++ b/sysui/desktop/share/add_specfile_triggers.sed
@@ -0,0 +1,4 @@
+/#include<symlink_triggers>/ {
+r ../share/symlink_triggers
+d
+}
diff --git a/sysui/desktop/share/brand.pl b/sysui/desktop/share/brand.pl
new file mode 100755
index 000000000000..ec71b9f90995
--- /dev/null
+++ b/sysui/desktop/share/brand.pl
@@ -0,0 +1,135 @@
+:
+eval 'exec perl -wS $0 ${1+"$@"}'
+ if 0;
+
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+
+#*********************************************************************
+#
+# main
+#
+
+$destdir = pop @ARGV;
+mkdir $destdir,0777;
+
+$productname = "LibreOffice";
+$productname_br = "BrOffice";
+$productfilename = "libreoffice";
+$prefix = "";
+$iconprefix = "";
+
+while ($_ = $ARGV[0], /^-/) {
+ shift;
+ last if /^--$/;
+ if (/^-p/) {
+ $productname = $ARGV[0];
+ shift;
+ }
+ if (/^-b/) {
+ $productname_br = $ARGV[0];
+ shift;
+ }
+ if (/^-u/) {
+ $productfilename = $ARGV[0];
+ shift;
+ }
+ if (/^--prefix/) {
+ $prefix = $ARGV[0];
+ shift;
+ }
+ if (/^--iconprefix/) {
+ $iconprefix = $ARGV[0];
+ shift;
+ }
+ if (/^--category/) {
+ $category = $ARGV[0];
+ shift;
+ }
+}
+
+
+while (<>) {
+ unless (open INFILE,$ARGV) {
+ print STDOUT "Can't open input file $ARGV: $!\n";
+ exit 1;
+ }
+
+ $srcfile = substr($ARGV, rindex($ARGV, "/") + 1);
+
+ unless (open OUTFILE,"> $destdir/$prefix$srcfile") {
+ print STDOUT "Can't open output file $destdir/$prefix$srcfile: $!\n";
+ exit 1;
+ }
+
+ while (<INFILE>) {
+ # remove possible Windows line-ends
+ chomp;
+
+ # patch all occurrences of openoffice in ICON line with
+ # $prefix
+ s/Icon=/Icon=$iconprefix/;
+
+ # patch all occurrences of openoffice in icon_filename
+ # line with $prefix
+ s/icon_filename=/icon_filename=$iconprefix/;
+
+ # patch all occurrences of openoffice in EXEC line with
+ # $productfilename
+ if ( /Exec/ ) {
+ s/openoffice/$productfilename/;
+ }
+
+ # if $productfilename != "openoffice, add it to the list
+ # of applications.
+ if ( /user_level=$/ ) {
+ $_ = $_ . $productfilename;
+ } elsif ( /user_level/ ) {
+ s/$productfilename,//;
+ s/user_level=/user_level=$productfilename,/
+ }
+
+ # append special category if specified
+ if ( /Categories/ ) {
+ if ( length($category) > 0 ) {
+ $_ = "$_$category;";
+ }
+ }
+
+ # replace %PRODUCTNAME_BR placeholders
+ s/%PRODUCTNAME_BR/$productname_br/g;
+
+ # replace %PRODUCTNAME placeholders
+ s/%PRODUCTNAME/$productname/g;
+
+ print OUTFILE "$_\n";
+ }
+
+ close(OUTFILE);
+ close(INFILE);
+}
diff --git a/sysui/desktop/share/create_mime_xml.pl b/sysui/desktop/share/create_mime_xml.pl
new file mode 100755
index 000000000000..e1fc890ff181
--- /dev/null
+++ b/sysui/desktop/share/create_mime_xml.pl
@@ -0,0 +1,89 @@
+#!/usr/bin/perl
+use File::Basename;
+$basedir = dirname($0);
+$productname = 'LibreOffice';
+$mimedir = $basedir.'/../mimetypes';
+
+$FS= ' '; # field seperator (space) - for documents.ulf
+$, = "\n"; # set output field separator (newline)
+$\ = "\n"; # set output record separator (newline)
+
+## get list of components and corresponding translations from documents.ulf
+open(DOCUMENTS_ULF, $ARGV[0]) || die 'Cannot open "documents.ulf".';
+while (<DOCUMENTS_ULF>) {
+ if (/^\[/) {
+ # section starts
+ s/^\[(.*)]/$1/;
+ chomp;
+ $module = $_;
+ } else {
+ # translated strings
+ ($lang,$junk,$comment) = split($FS, $_, 3);
+ $comment =~ s/^"(.*)"$/$1/;
+ $comment =~ s/%PRODUCTNAME/$productname/;
+ chomp $lang;
+ chomp $comment;
+ if ($lang eq "en-US") {
+ $value = " <comment>$comment</comment>";
+ } else {
+ $value = ' <comment xml:lang="'.$lang.'">'.$comment.'</comment>';
+ }
+ push(@{$mimehash{$module}}, $value) unless $lang eq "";
+ }
+}
+close DOCUMENTS_ULF;
+
+## creating the xml on stdout
+print '<?xml version="1.0" encoding="UTF-8"?>';
+print '<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">';
+
+foreach $component (sort(keys %mimehash)) {
+ print STDERR "Processing entries for $component";
+ # mimetype and glob
+ getMimedata($component);
+ print ' <mime-type type="'.$mimetype.'">';
+ print (sort({customsort($a) cmp customsort($b)} @{$mimehash{$component}}));
+ print ' <glob pattern="'.$glob.'"/>';
+ if ( $component =~ /oasis/ ) {
+ print ' <magic'.( $mimetype =~ /-/ ? ' priority="60"' : '').'>';
+ print ' <match type="string" offset="38" value="'.$mimetype.'"/>';
+ print ' </magic>';
+ }
+ print ' </mime-type>';
+}
+print '</mime-info>';
+
+sub customsort {
+ # sort <comment> before <comment xml:lang...>
+ $in = shift;
+ $in =~ tr/>/A/;
+ $in =~ tr/ /Z/;
+ return $in;
+}
+
+## get mime-type and glob from ../mimetype/*.desktop
+sub getMimedata {
+ $desktop_name = shift;
+ $desktop_file = $mimedir.'/'.$desktop_name.'.desktop';
+ $mimetype = "";
+ $glob = "";
+ open(DESKTOP_FILE, $desktop_file) || die 'Cannot open "desktop"-file.'.$!;
+ while (<DESKTOP_FILE>) {
+ ## get mimetype
+ if (/^MimeType=/) {
+ s/^MimeType=(.*)\n$/$1/;
+ $mimetype = "$_";
+ }
+ ## get glob
+ if (/^Patterns=/) {
+ s/^Patterns=(.*)\n$/\1/;
+ $glob = "$_";
+ }
+ }
+ close DESKTOP_FILE;
+ # die if we cannot determine the glob-pattern or mimtetype
+ die "Could not get mime-type fom $desktop_file" if ($mimetype eq "");
+ die "Could not get glob-pattern fom $desktop_file" if ($glob eq "");
+}
+
+## END vim: set ts=4:
diff --git a/sysui/desktop/share/create_tree.sh b/sysui/desktop/share/create_tree.sh
new file mode 100755
index 000000000000..2a5b26a2f2ed
--- /dev/null
+++ b/sysui/desktop/share/create_tree.sh
@@ -0,0 +1,71 @@
+umask 022
+
+if [ "${KDEMAINDIR}" ]
+then
+ echo Copying icons ..
+ for i in `cd ${ICON_SOURCE_DIR}; find ${ICON_THEMES:-hicolor/???x??? hicolor/??x?? locolor} -name "*.png"`
+ do
+ targetdir=${DESTDIR}/${KDEMAINDIR}/share/icons/`dirname $i`
+ mkdir -p $targetdir
+ destfile=$targetdir/${ICON_PREFIX:-}${ICON_PREFIX:+-}`basename $i`
+ cp ${ICON_SOURCE_DIR}/$i $destfile
+ chmod 0644 $destfile
+ done
+
+ mkdir -p ${DESTDIR}/${KDEMAINDIR}/share/mimelnk/application
+ for i in `cat mimelnklist`; do
+ cp $i ${DESTDIR}/${KDEMAINDIR}/share/mimelnk/application/${PREFIX}-$i
+ done
+ chmod 0644 ${DESTDIR}/${KDEMAINDIR}/share/mimelnk/application/*
+fi
+
+if [ "${GNOMEDIR}" ]
+then
+ echo Copying GNOME icons ..
+ for i in `cd ${ICON_SOURCE_DIR}/hicolor; find ??x?? ???x??? -name "*.png"`
+ do
+ targetdir=${DESTDIR}/${GNOMEDIR}/share/icons/gnome/`dirname $i`
+ mkdir -p $targetdir
+ destfile=$targetdir/${ICON_PREFIX:-}${ICON_PREFIX:+-}`basename $i`
+ cp ${ICON_SOURCE_DIR}/hicolor/$i $destfile
+ chmod 0644 $destfile
+ done
+
+ mkdir -p ${DESTDIR}/${GNOMEDIR}/share/mime-info
+ cp openoffice.mime ${DESTDIR}/${GNOMEDIR}/share/mime-info/${PREFIX}.mime
+ cp openoffice.keys ${DESTDIR}/${GNOMEDIR}/share/mime-info/${PREFIX}.keys
+ chmod 0644 ${DESTDIR}/${GNOMEDIR}/share/mime-info/${PREFIX}.*
+
+ mkdir -p ${DESTDIR}/${GNOMEDIR}/share/application-registry
+ cp openoffice.applications ${DESTDIR}/${GNOMEDIR}/share/application-registry/${PREFIX}.applications
+ chmod 0644 ${DESTDIR}/${GNOMEDIR}/share/application-registry/${PREFIX}.*
+fi
+
+mkdir -p ${DESTDIR}/usr/bin
+
+test -n "$OFFICE_PREFIX" && office_prefix="$OFFICE_PREFIX" || office_prefix=/opt
+office_root=${office_prefix}/${PREFIX}
+
+#this symlink is needed to have the API boostrap functions running right
+ln -sf ${office_root}/program/soffice ${DESTDIR}/usr/bin/${PREFIX}
+
+cp printeradmin.sh ${DESTDIR}/usr/bin/${PREFIX}-printeradmin
+chmod 0755 ${DESTDIR}/usr/bin/${PREFIX} ${DESTDIR}/usr/bin/${PREFIX}-printeradmin
+
+if test "${PREFIX}" != libreoffice${PRODUCTVERSION} ; then
+ # compat symlinks
+ mkdir -p ${DESTDIR}${office_prefix}
+ ln -sf libreoffice${PRODUCTVERSION} ${DESTDIR}${office_root}
+ ln -sf /usr/bin/${PREFIX} ${DESTDIR}/usr/bin/libreoffice${PRODUCTVERSION}
+ ln -sf /usr/bin/${PREFIX}-printeradmin ${DESTDIR}/usr/bin/libreoffice${PRODUCTVERSION}-printeradmin
+fi
+
+mkdir -p ${DESTDIR}/usr/share/mime/packages
+cp openoffice.org.xml ${DESTDIR}/usr/share/mime/packages/libreoffice${PRODUCTVERSION}.xml
+chmod 0644 ${DESTDIR}/usr/share/mime/packages/libreoffice${PRODUCTVERSION}.xml
+
+mkdir -p ${DESTDIR}/usr/share/applications
+for i in `cat launcherlist`; do
+ ln -sf ${office_root}/share/xdg/$i ${DESTDIR}/usr/share/applications/${PREFIX}-$i
+done
+
diff --git a/sysui/desktop/share/documents.ulf b/sysui/desktop/share/documents.ulf
new file mode 100755
index 000000000000..88fd05c879d2
--- /dev/null
+++ b/sysui/desktop/share/documents.ulf
@@ -0,0 +1,107 @@
+[text]
+en-US = "%PRODUCTNAME Text Document"
+
+[text-template]
+en-US = "%PRODUCTNAME Text Document Template"
+
+[master-document]
+en-US = "%PRODUCTNAME Master Document"
+
+[formula]
+en-US = "%PRODUCTNAME Formula"
+
+[presentation]
+en-US = "%PRODUCTNAME Presentation"
+
+[presentation-template]
+en-US = "%PRODUCTNAME Presentation Template"
+
+[drawing]
+en-US = "%PRODUCTNAME Drawing"
+
+[drawing-template]
+en-US = "%PRODUCTNAME Drawing Template"
+
+[spreadsheet]
+en-US = "%PRODUCTNAME Spreadsheet"
+
+[spreadsheet-template]
+en-US = "%PRODUCTNAME Spreadsheet Template"
+
+[oasis-text]
+en-US = "OpenDocument Text"
+
+[oasis-text-template]
+en-US = "OpenDocument Text Template"
+
+[oasis-master-document]
+en-US = "OpenDocument Master Document"
+
+[oasis-formula]
+en-US = "OpenDocument Formula"
+
+[oasis-presentation]
+en-US = "OpenDocument Presentation"
+
+[oasis-presentation-template]
+en-US = "OpenDocument Presentation Template"
+
+[oasis-drawing]
+en-US = "OpenDocument Drawing"
+
+[oasis-drawing-template]
+en-US = "OpenDocument Drawing Template"
+
+[oasis-spreadsheet]
+en-US = "OpenDocument Spreadsheet"
+
+[oasis-spreadsheet-template]
+en-US = "OpenDocument Spreadsheet Template"
+
+[oasis-database]
+en-US = "OpenDocument Database"
+
+[oasis-web-template]
+en-US = "HTML Document Template"
+
+[extension]
+en-US = "%PRODUCTNAME Extension"
+
+[ms-excel-sheet-12]
+en-US = "Microsoft Excel Worksheet"
+
+[ms-excel-template-12]
+en-US = "Microsoft Excel Worksheet Template"
+
+[ms-powerpoint-presentation-12]
+en-US = "Microsoft PowerPoint Presentation"
+
+[ms-powerpoint-template-12]
+en-US = "Microsoft PowerPoint Presentation Template"
+
+[ms-word-document-12]
+en-US = "Microsoft Word Document"
+
+[ms-word-template-12]
+en-US = "Microsoft Word Document Template"
+
+[openxmlformats-officedocument-presentationml-presentation]
+en-US = "Microsoft PowerPoint Presentation"
+
+[openxmlformats-officedocument-presentationml-template]
+en-US = "Microsoft PowerPoint Presentation Template"
+
+[openxmlformats-officedocument-spreadsheetml-sheet]
+en-US = "Microsoft Excel Worksheet"
+
+[openxmlformats-officedocument-spreadsheetml-template]
+en-US = "Microsoft Excel Worksheet Template"
+
+[openxmlformats-officedocument-wordprocessingml-document]
+en-US = "Microsoft Word Document"
+
+[openxmlformats-officedocument-wordprocessingml-template]
+en-US = "Microsoft Word Document Template"
+
+[ms-excel-sheet-binary-12]
+en-US = "Microsoft Excel Worksheet"
diff --git a/sysui/desktop/share/launcher_comment.ulf b/sysui/desktop/share/launcher_comment.ulf
new file mode 100755
index 000000000000..e36949263fce
--- /dev/null
+++ b/sysui/desktop/share/launcher_comment.ulf
@@ -0,0 +1,21 @@
+[writer]
+en-US = "Create and edit text and graphics in letters, reports, documents and Web pages by using Writer."
+
+[impress]
+en-US = "Create and edit presentations for slideshows, meeting and Web pages by using Impress."
+
+[draw]
+en-US = "Create and edit drawings, flow charts, and logos by using Draw."
+
+[calc]
+en-US = "Perform calculation, analyze information and manage lists in spreadsheets by using Calc."
+
+[math]
+en-US = "Create and edit scientific formulas and equations by using Math."
+
+[base]
+en-US = "Manage databases, create queries and reports to track and manage your information by using Base."
+
+[startcenter]
+en-US = "The office productivity suite compatible to the open and standardized ODF document format. Supported by The Document Foundation."
+
diff --git a/sysui/desktop/share/launcher_genericname.ulf b/sysui/desktop/share/launcher_genericname.ulf
new file mode 100755
index 000000000000..ff8041a155fc
--- /dev/null
+++ b/sysui/desktop/share/launcher_genericname.ulf
@@ -0,0 +1,23 @@
+[writer]
+en-US = "Word Processor"
+
+[impress]
+en-US = "Presentation"
+
+[calc]
+en-US = "Spreadsheet"
+
+[base]
+en-US = "Database Development"
+
+[math]
+en-US = "Formula Editor"
+
+[draw]
+en-US = "Drawing Program"
+
+[startcenter]
+en-US = "Office"
+
+[javafilter]
+en-US = "Small Device Format Importer"
diff --git a/sysui/desktop/share/launcher_name.ulf b/sysui/desktop/share/launcher_name.ulf
new file mode 100755
index 000000000000..db97e2686d47
--- /dev/null
+++ b/sysui/desktop/share/launcher_name.ulf
@@ -0,0 +1,3 @@
+[printeradmin]
+en-US = "%PRODUCTNAME Printer Administration"
+
diff --git a/sysui/desktop/share/makefile.mk b/sysui/desktop/share/makefile.mk
new file mode 100755
index 000000000000..68cba5949e5b
--- /dev/null
+++ b/sysui/desktop/share/makefile.mk
@@ -0,0 +1,264 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..
+
+PRJNAME=sysui
+TARGET=desktopshare
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+
+# --- Product Version Information ----------------------------------
+
+.INCLUDE : ../productversion.mk
+
+# --- Files --------------------------------------------------------
+
+.IF "$(WITH_LANG)"!=""
+ULFDIR:=$(COMMONMISC)$/$(TARGET)
+.ELSE # "$(WITH_LANG)"!=""
+ULFDIR:=.
+.ENDIF # "$(WITH_LANG)"!=""
+
+ULFFILES= \
+ documents.ulf \
+ launcher_comment.ulf \
+ launcher_genericname.ulf \
+ launcher_name.ulf
+
+LAUNCHERLIST = writer calc draw impress math base printeradmin qstart startcenter javafilter
+LAUNCHERDEPN = ../menus/{$(LAUNCHERLIST)}.desktop
+
+LAUNCHERFLAGFILE = $(COMMONMISC)/$(TARGET)/xdg.flag
+
+MIMELIST = \
+ text \
+ text-template \
+ spreadsheet \
+ spreadsheet-template \
+ drawing \
+ drawing-template \
+ presentation \
+ presentation-template \
+ formula \
+ master-document \
+ oasis-text \
+ oasis-text-template \
+ oasis-spreadsheet \
+ oasis-spreadsheet-template \
+ oasis-drawing \
+ oasis-drawing-template \
+ oasis-presentation \
+ oasis-presentation-template \
+ oasis-formula \
+ oasis-master-document \
+ oasis-database \
+ oasis-web-template \
+ ms-excel-sheet-12 \
+ ms-excel-sheet \
+ ms-excel-template-12 \
+ ms-powerpoint-presentation-12 \
+ ms-powerpoint-presentation \
+ ms-powerpoint-template-12 \
+ ms-word-document-12 \
+ ms-word-document \
+ ms-word-document2 \
+ ms-word-template-12 \
+ openxmlformats-officedocument-presentationml-presentation \
+ openxmlformats-officedocument-presentationml-template \
+ openxmlformats-officedocument-spreadsheetml-sheet \
+ openxmlformats-officedocument-spreadsheetml-template \
+ openxmlformats-officedocument-wordprocessingml-document \
+ openxmlformats-officedocument-wordprocessingml-template \
+ ms-excel-sheet-binary-12 \
+ extension
+
+MIMEICONLIST = \
+ oasis-text \
+ oasis-text-template \
+ oasis-spreadsheet \
+ oasis-spreadsheet-template \
+ oasis-drawing \
+ oasis-drawing-template \
+ oasis-presentation \
+ oasis-presentation-template \
+ oasis-formula \
+ oasis-master-document \
+ oasis-database \
+ oasis-web-template \
+ text \
+ text-template \
+ spreadsheet \
+ spreadsheet-template \
+ drawing \
+ drawing-template \
+ presentation \
+ presentation-template \
+ formula \
+ master-document \
+ database \
+ extension
+
+ICONDEPN = \
+ ../icons/hicolor/{16x16 32x32 48x48}/apps/{$(LAUNCHERLIST:s/qstart//:s/javafilter//)}.png \
+ ../icons/hicolor/{16x16 32x32 48x48}/mimetypes/{$(MIMEICONLIST)}.png \
+ ../icons/locolor/{16x16 32x32}/apps/{$(LAUNCHERLIST:s/qstart//:s/javafilter//)}.png \
+ ../icons/locolor/{16x16 32x32}/mimetypes/{$(MIMEICONLIST)}.png
+
+# --- Targets ------------------------------------------------------
+
+.INCLUDE : target.mk
+
+.IF "$(GUI)"=="UNX"
+ALLTAR : $(LAUNCHERFLAGFILE) $(SPECFILES) $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag
+
+.ENDIF # "$(GUI)"=="UNIX"
+
+#
+# Copy/patch the .desktop files to the output tree and
+# merge-in the translations.
+#
+
+$(LAUNCHERFLAGFILE) : ../productversion.mk brand.pl translate.pl $(ULFDIR)$/launcher_name.ulf $(ULFDIR)$/launcher_comment.ulf $(ULFDIR)/launcher_genericname.ulf
+$(LAUNCHERFLAGFILE) : $(LAUNCHERDEPN)
+ @@-$(MKDIRHIER) $(@:db).$(INPATH).$(@:f)
+ @echo Creating desktop entries for $(@:f) ..
+ @echo ---------------------------------
+ @$(PERL) brand.pl -p '$${{PRODUCTNAME}} $${{PRODUCTVERSION}}' -b '$${{PRODUCTNAME_BR}} $${{PRODUCTVERSION}}' -u $(UNIXWRAPPERNAME) --iconprefix "$(ICONPREFIX.libreoffice)-" $< $(@:db).$(INPATH).$(@:f)
+ @$(PERL) translate.pl -p '$${{PRODUCTNAME}} $${{PRODUCTVERSION}}' -b '$${{PRODUCTNAME_BR}} $${{PRODUCTVERSION}}' -d $(@:db).$(INPATH).$(@:f) --ext "desktop" --key "Name" $(ULFDIR)$/launcher_name.ulf
+ @$(PERL) translate.pl -p '$${{PRODUCTNAME}} $${{PRODUCTVERSION}}' -b '$${{PRODUCTNAME_BR}} $${{PRODUCTVERSION}}' -d $(@:db).$(INPATH).$(@:f) --ext "desktop" --key "Comment" $(ULFDIR)$/launcher_comment.ulf
+ @$(PERL) translate.pl -p '$${{PRODUCTNAME}} $${{PRODUCTVERSION}}' -p '$${{PRODUCTNAME_BR}} $${{PRODUCTVERSION}}' -d $(@:db).$(INPATH).$(@:f) --ext "desktop" --key "GenericName" $(ULFDIR)$/launcher_genericname.ulf
+.IF "$(WITH_LIBSN)"=="YES"
+ @noop x$(foreach,i,$(LAUNCHERLIST) $(shell @echo "StartupNotify=true" >> $(@:db).$(INPATH).$(@:f)/$i.desktop))x
+.ENDIF
+ @$(MV) -f $(@:db).$(INPATH).$(@:f)/* $(@:d)
+ @rmdir $(@:db).$(INPATH).$(@:f)
+ @touch $@
+
+#
+# Create shared mime info xml file
+#
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.org.xml : ../mimetypes/{$(MIMELIST)}.desktop create_mime_xml.pl
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.org.xml : $(ULFDIR)$/documents.ulf
+ @echo Create shared mime info xml file ..
+ @echo ---------------------------------
+ @$(PERL) create_mime_xml.pl $< > $@.$(INPATH)
+ @mv -f $@.$(INPATH) $@
+
+#
+# Create GNOME mime-info files
+#
+
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.keys : ../mimetypes/openoffice.mime brand.pl translate.pl ../productversion.mk $(ULFDIR)$/documents.ulf
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.keys : ../mimetypes/{$(MIMELIST)}.keys
+ @@-$(MKDIRHIER) $(@:d)
+ @echo Creating GNOME .keys file for $(@:d:d:f) ..
+ @echo ---------------------------------
+ @$(PERL) brand.pl -p $(PRODUCTNAME.$(@:d:d:f)) -u $(UNIXFILENAME.$(@:d:d:f)) --iconprefix '$(ICONPREFIX.libreoffice)-' $< $(MISC)/$(@:d:d:f)
+ @$(PERL) translate.pl -p $(PRODUCTNAME.$(@:d:d:f)) -d $(MISC)/$(@:d:d:f) --ext "keys" --key "description" $(ULFDIR)$/documents.ulf
+ @cat $(MISC)/$(@:d:d:f)/{$(MIMELIST)}.keys > $@.$(INPATH)
+ @mv -f $@.$(INPATH) $@
+
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.mime : ../mimetypes/$$(@:f)
+ @@-$(MKDIRHIER) $(@:d)
+ @echo Creating GNOME .mime file for $(@:d:d:f) ..
+ @echo ---------------------------------
+ @cat $< | tr -d "\015" > $@.$(INPATH)
+ @mv -f $@.$(INPATH) $@
+
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.applications : ../productversion.mk
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.applications : ../mimetypes/$$(@:f)
+ @@-$(MKDIRHIER) $(@:d)
+ @echo Creating GNOME .applications file for $(@:d:d:f) ..
+ @echo ---------------------------------
+ @cat $< | tr -d "\015" | sed -e "s/OFFICENAME/$(UNIXFILENAME.$(@:d:d:f))/" -e "s/%PRODUCTNAME/$(PRODUCTNAME.$(@:d:d:f)) $(PRODUCTVERSION.$(@:d:d:f))/" > $@.$(INPATH)
+ @mv -f $@.$(INPATH) $@
+
+#
+# Create KDE mimelnk files
+#
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/mimelnklist : brand.pl translate.pl ../productversion.mk $(ULFDIR)$/documents.ulf
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/mimelnklist : ../mimetypes/{$(MIMELIST)}.desktop
+ @@-$(MKDIRHIER) $(@:db).$(INPATH)
+ @echo Creating KDE mimelnk entries for $(@:d:d:f) ..
+ @echo ---------------------------------
+ @$(PERL) brand.pl -p "$(PRODUCTNAME.$(@:d:d:f))" -u $(UNIXFILENAME.$(@:d:d:f)) --iconprefix '$(ICONPREFIX.libreoffice)-' $< $(@:db).$(INPATH)
+ @$(PERL) ../share/translate.pl -p "$(PRODUCTNAME.$(@:d:d:f))" -d $(@:db).$(INPATH) --ext "desktop" --key "Comment" $(ULFDIR)$/documents.ulf
+ @mv -f $(@:db).$(INPATH)/* $(@:d)
+ @rmdir $(@:db).$(INPATH)
+ @echo "{$(MIMELIST)}.desktop" > $@
+
+#
+# Generate customized install scripts
+#
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/create_tree.sh : makefile.mk
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/create_tree.sh : $$(@:f)
+ @@-$(MKDIRHIER) $(@:d)
+ @echo "#!/bin/bash" > $@.$(INPATH)
+ @echo "PREFIX=$(UNIXFILENAME.$(@:d:d:f))" >> $@.$(INPATH)
+ @echo "ICON_PREFIX=$(ICONPREFIX.libreoffice)" >> $@.$(INPATH)
+ @echo "ICON_SOURCE_DIR=../../../desktop/icons" >> $@.$(INPATH)
+ @echo "PRODUCTVERSION=$(PRODUCTVERSION.$(@:d:d:f))" >> $@.$(INPATH)
+ @cat $< >> $@.$(INPATH)
+ @chmod 774 $@.$(INPATH)
+ @mv -f $@.$(INPATH) $@
+
+#
+# Create skript files
+#
+
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/{openoffice printeradmin}.sh : ../productversion.mk
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/{openoffice printeradmin}.sh : $$(@:f)
+ @@-$(MKDIRHIER) $(@:d)
+ @cat $< | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(@:d:d:f))/g" > $@.$(INPATH)
+ @mv -f $@.$(INPATH) $@
+
+#
+# Launcher list
+#
+
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/launcherlist : $(LAUNCHERDEPN)
+ @@-$(MKDIRHIER) $(@:d)
+ @echo "{$(LAUNCHERLIST:s/qstart//)}.desktop" >$@.$(INPATH)
+ @mv -f $@.$(INPATH) $@
+
+#
+# Flagfile
+#
+$(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag : $(ICONDEPN) \
+ $(COMMONMISC)$/{$(PRODUCTLIST)}$/launcherlist \
+ $(COMMONMISC)$/{$(PRODUCTLIST)}$/mimelnklist \
+ $(COMMONMISC)$/{$(PRODUCTLIST)}$/create_tree.sh \
+ $(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.keys \
+ $(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.mime \
+ $(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.org.xml \
+ $(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.applications \
+ $(COMMONMISC)$/{$(PRODUCTLIST)}$/{openoffice printeradmin}.sh
+ @touch $@
+
diff --git a/sysui/desktop/share/openoffice.sh b/sysui/desktop/share/openoffice.sh
new file mode 100755
index 000000000000..d3ecf978ee8f
--- /dev/null
+++ b/sysui/desktop/share/openoffice.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /opt/%PREFIX/program/soffice "$@"
diff --git a/sysui/desktop/share/printeradmin.sh b/sysui/desktop/share/printeradmin.sh
new file mode 100755
index 000000000000..0eb631f345f0
--- /dev/null
+++ b/sysui/desktop/share/printeradmin.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /opt/%PREFIX/program/spadmin
diff --git a/sysui/desktop/share/translate.pl b/sysui/desktop/share/translate.pl
new file mode 100755
index 000000000000..cdc636b7a266
--- /dev/null
+++ b/sysui/desktop/share/translate.pl
@@ -0,0 +1,151 @@
+:
+eval 'exec perl -wS $0 ${1+"$@"}'
+ if 0;
+
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+
+#*********************************************************************
+#
+# main
+#
+
+my ($prefix, $ext, $key);
+$productname = "LibreOffice";
+$productname_br = "BrOffice";
+$workdir = ".";
+
+while ($_ = $ARGV[0], /^-/) {
+ shift;
+ last if /^--$/;
+ if (/^-p/) {
+ $productname = $ARGV[0];
+ shift;
+ }
+ if (/^-b/) {
+ $productname_br = $ARGV[0];
+ shift;
+ }
+ if (/^-d/) {
+ $workdir = $ARGV[0];
+ shift;
+ }
+ if (/^--key/) {
+ $key = $ARGV[0];
+ shift;
+ }
+ if (/^--prefix/) {
+ $prefix = $ARGV[0];
+ shift;
+ }
+ if (/^--ext/) {
+ $ext = $ARGV[0];
+ shift;
+ }
+}
+
+# open input file
+unless (open(SOURCE, $ARGV[0])) {
+ print STDERR "Can't open $ARGV[0] file: $!\n";
+ return;
+}
+
+
+# For every section in the specified ulf file there should exist
+# a template file in $workdir ..
+while (<SOURCE>) {
+ $line = $_;
+
+ if ( "[" eq substr($line, 0, 1) ) {
+ # Pass the tail of the template to the output file
+ while (<TEMPLATE>) {
+ print OUTFILE;
+ }
+
+ close(TEMPLATE);
+
+ if (close(OUTFILE)) {
+ system "mv -f $outfile.tmp $outfile\n";
+ }
+
+ $_ = substr($line, 1, index($line,"]")-1);
+ $outfile = "$workdir/$prefix$_.$ext";
+
+ # open the template file - ignore sections for which no
+ # templates exist
+ unless(open(TEMPLATE, $outfile)) {
+ print STDERR "Warning: No template found for item $_: $outfile: $!\n";
+ next;
+ }
+
+ # open output file
+ unless (open(OUTFILE, "> $outfile.tmp")) {
+ print STDERR "Can't create output file $outfile.tmp: $!\n";
+ exit -1;
+ }
+
+ # Pass the head of the template to the output file
+KEY: while (<TEMPLATE>) {
+ print OUTFILE;
+ last KEY if (/$key/);
+ }
+
+ } else {
+ # split locale = "value" into 2 strings
+ ($locale, $value) = split(' = ', $line);
+
+ if ( $locale ne $line ) {
+ # replace en-US with en
+ $locale=~s/en-US/en/;
+
+ # use just anything inside the ""
+ $value = substr($value, index($value, "\"") + 1, rindex($value, "\"") - 1);
+
+ # replace resource placeholder
+ $value=~s/%PRODUCTNAME_BR/$productname_br/g;
+ $value=~s/%PRODUCTNAME/$productname/g;
+
+ $locale=~s/-/_/;
+ if ($ext eq "desktop") {
+ print OUTFILE "$key\[$locale\]=$value\n";
+ } else {
+ print OUTFILE "\t\[$locale\]$key=$value\n";
+ }
+ }
+ }
+}
+
+while (<TEMPLATE>) {
+ print OUTFILE;
+}
+
+if (close(OUTFILE)) {
+ system "mv -f $outfile.tmp $outfile\n";
+}
+
+close(TEMPLATE);
diff --git a/sysui/desktop/slackware/makefile.mk b/sysui/desktop/slackware/makefile.mk
new file mode 100755
index 000000000000..4da439ed439d
--- /dev/null
+++ b/sysui/desktop/slackware/makefile.mk
@@ -0,0 +1,112 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..
+
+PRJNAME=sysui
+TARGET=slackware
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+
+# --- Product Version Information ----------------------------------
+
+.INCLUDE : ../productversion.mk
+
+# --- Files --------------------------------------------------------
+
+MENUFILES=$(PKGDIR)$/{$(PRODUCTLIST)}3.4-$(TARGET)-menus-$(PKGVERSION)-noarch-$(PKGREV).tgz
+
+# --- Targets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
+.IF "$(OS)" == "LINUX"
+
+ALLTAR : $(MENUFILES)
+
+$(MISC)/$(TARGET)/usr/share/applications/ :
+ @$(MKDIRHIER) $(@)
+
+# --- slackware-specific stuff ------------------------------------
+# symlinks shall not be included in the tarball, but created with the doinst-script
+
+# FIXME: removal of *-extension.* only to create identical packages to OOF680
+%/usr/share/applications :
+ @$(MKDIRHIER) $@
+ /bin/sh -c "cd $(COMMONMISC)$/$(*:b:s/-/ /:1:s/3.4//); DESTDIR=$(shell @cd $*; pwd) GNOMEDIR="" ICON_PREFIX=$(ICONPREFIX.$(*:b:s/-/ /:1:s/3.4//)) KDEMAINDIR=/opt/kde .$/create_tree.sh"
+ $(RM) $*$/opt$/kde$/share$/icons$/*$/*$/*$/*-extension.png
+ $(RM) $*$/opt$/kde$/share$/mimelnk$/application$/*-extension.desktop
+ $(RM) $*$/usr$/share$/applications$/*.desktop
+ $(RM) $*$/usr$/bin$/soffice
+
+%$/install$/doinst.sh : update-script
+ @echo "( cd etc ; rm -rf $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.4//)) )" > $@
+ @echo "( cd etc ; ln -snf /opt/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.4//):s/-//) $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.4//)) )" >> $@
+ @echo "( cd usr/bin ; rm -rf soffice )" >> $@
+ @echo "( cd usr/bin ; ln -sf /etc/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.4//))/program/soffice soffice )" >> $@
+ @echo -e $(foreach,i,$(shell @cat $(COMMONMISC)$/$(*:b:s/-/ /:1:s/3.4//)/launcherlist) "\n( cd usr/share/applications ; rm -rf $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.4//))-$i )\n( cd usr/share/applications ; ln -sf /etc/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.4//))/share/xdg/$i $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.4//))-$i )") >> $@
+ @cat $< >> $@
+
+%$/install$/slack-desc : slack-desc
+ @$(MKDIRHIER) $(@:d)
+ @sed -e "s/PKGNAME/$(*:b:s/-/ /:1:s/3.4//)-$(TARGET)-menus/g" -e "s/PKGVERSION/$(PKGVERSION.$(*:b:s/-/ /:1:s/3.4//))/g" \
+ -e "s/LONGPRODUCTNAME/$(PRODUCTNAME.$(*:b:s/-/ /:1:s/3.4//)) $(PRODUCTVERSION.$(*:b:s/-/ /:1:s/3.4//))/g" \
+ -e "s/PRODUCTNAME/$(PRODUCTNAME.$(*:b:s/-/ /:1:s/3.4//))/g" \
+ -e "s/UNIXFILENAME/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.4//))/g" $< > $@
+
+# needed to satisfy the slackware package tools - they need
+# the entries like this
+# ./ <- very important
+# directory/file
+# the follwoing does not work (no description found then):
+# ./
+# ./directory/file
+# and this doesn't work either (broken file-list, package cannot be removed)
+# directory/file
+
+$(MISC)/$(TARGET)/empty.tar :
+ @$(MKDIRHIER) $(@:d)/empty
+ @$(GNUTAR) -C $(MISC)/$(TARGET)/empty --owner=root --group=root --same-owner -cf $@ .
+
+
+# --- packaging ---------------------------------------------------
+
+$(MENUFILES) : makefile.mk slack-desc update-script $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag
+$(MENUFILES) : $(MISC)/$(TARGET)/empty.tar
+ @-$(MKDIRHIER) $(@:d)
+ -$(RM) $(@:d)$/$(@:b:s/-/ /:1)-$(TARGET)-menus-*.tgz
+ -$(RM) -r $(MISC)$/$(@:b)
+ dmake $(MISC)$/$(@:b)$/usr/share/applications $(MISC)$/$(@:b)$/install$/slack-desc $(MISC)$/$(@:b)$/install$/doinst.sh
+ @$(COPY) $(MISC)/$(TARGET)$/empty.tar $@.tmp
+ @$(GNUTAR) -C $(MISC)/$(@:b) --owner=root --group=root --same-owner --exclude application.flag -rf $@.tmp install usr opt
+ @gzip < $@.tmp > $@
+ @$(RM) $@.tmp
+ $(RM) -r $(MISC)$/$(@:b)
+
+.ENDIF
diff --git a/sysui/desktop/slackware/slack-desc b/sysui/desktop/slackware/slack-desc
new file mode 100755
index 000000000000..d19137371298
--- /dev/null
+++ b/sysui/desktop/slackware/slack-desc
@@ -0,0 +1,13 @@
+# needs to be 11 lines - variables replaced by the makefile...
+ |-----handy-ruler------------------------------------------------------|
+PKGNAME: PRODUCTNAME Desktop-Integration for Slackware
+PKGNAME: Version: PKGVERSION, License: LGPL
+PKGNAME:
+PKGNAME: Note that this package is non-functional without the main packages of
+PKGNAME: LONGPRODUCTNAME
+PKGNAME: If you did install the main packages to another location than the
+PKGNAME: default, make sure to adapt the link
+PKGNAME: /etc/UNIXFILENAME
+PKGNAME: accordingly to point to the correct location.
+PKGNAME:
+PKGNAME: This package is provided by The Document Foundation
diff --git a/sysui/desktop/slackware/update-script b/sysui/desktop/slackware/update-script
new file mode 100755
index 000000000000..f7f957ac9e33
--- /dev/null
+++ b/sysui/desktop/slackware/update-script
@@ -0,0 +1,8 @@
+
+if (which update-desktop-database); then
+ update-desktop-database -q /usr/share/applications
+fi
+
+if (which update-mime-database); then
+ update-mime-database /usr/share/mime
+fi
diff --git a/sysui/desktop/solaris/copyright b/sysui/desktop/solaris/copyright
new file mode 100755
index 000000000000..bc2059a3ef79
--- /dev/null
+++ b/sysui/desktop/solaris/copyright
@@ -0,0 +1,2 @@
+Copyright 2000, 2010 Oracle and/or its affiliates. All rights reserved.
+Use is subject to license terms.
diff --git a/sysui/desktop/solaris/depend b/sysui/desktop/solaris/depend
new file mode 100755
index 000000000000..050e13593ae6
--- /dev/null
+++ b/sysui/desktop/solaris/depend
@@ -0,0 +1,7 @@
+P SUNWcar Core Architecture, (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris, (Shared Libs)
+P SUNWloc System Localization
diff --git a/sysui/desktop/solaris/mailcap b/sysui/desktop/solaris/mailcap
new file mode 100755
index 000000000000..19407fd81805
--- /dev/null
+++ b/sysui/desktop/solaris/mailcap
@@ -0,0 +1,82 @@
+if [ "$1" = install ]
+then
+# backing out existing entries to avoid duplicates
+sed '
+/^# OpenOffice.org/d
+/^application\/vnd\.oasis\.opendocument/d
+/^application\/vnd\.openofficeorg/d
+/^application\/vnd\.sun/d
+/^application\/vnd\.stardivision/d
+/^application\/vnd\.ms-word/d
+/^application\/vnd\.ms-excel/d
+/^application\/vnd\.ms-powerpoint/d
+/^application\/x-star/d
+/excel/d
+/ms[-]*word/d
+/powerpoint/d
+' ${PKG_INSTALL_ROOT}/etc/mailcap 2>/dev/null
+
+# now append our stuff to the temporary file
+cat << END
+# OpenOffice.org
+application/vnd.oasis.opendocument.text; %PREFIX -view %s
+application/vnd.oasis.opendocument.text-flat-xml; %PREFIX -view %s
+application/vnd.oasis.opendocument.text-template; %PREFIX -view %s
+application/vnd.oasis.opendocument.text-web; %PREFIX -view %s
+application/vnd.oasis.opendocument.text-master; %PREFIX -view %s
+application/vnd.sun.xml.writer; %PREFIX -view %s
+application/vnd.sun.xml.writer.template; %PREFIX -view %s
+application/vnd.sun.xml.writer.global; %PREFIX -view %s
+application/vnd.stardivision.writer; %PREFIX -view %s
+application/vnd.stardivision.writer-global; %PREFIX -view %s
+application/x-starwriter; %PREFIX -view %s
+application/vnd.oasis.opendocument.formula; %PREFIX -view %s
+application/vnd.sun.xml.math; %PREFIX -view %s
+application/vnd.stardivision.math; %PREFIX -view %s
+application/x-starmath; %PREFIX -view %s
+application/msword; %PREFIX -view %s
+application/vnd.oasis.opendocument.spreadsheet; %PREFIX -view %s
+application/vnd.oasis.opendocument.spreadsheet-flat-xml; %PREFIX -view %s
+application/vnd.oasis.opendocument.spreadsheet-template; %PREFIX -view %s
+application/vnd.sun.xml.calc; %PREFIX -view %s
+application/vnd.sun.xml.calc.template; %PREFIX -view %s
+application/vnd.stardivision.calc; %PREFIX -view %s
+application/x-starcalc; %PREFIX -view %s
+application/vnd.stardivision.chart; %PREFIX -view %s
+application/x-starchart; %PREFIX -view %s
+application/excel; %PREFIX -view %s
+application/msexcel; %PREFIX -view %s
+application/vnd.ms-excel; %PREFIX -view %s
+application/x-msexcel; %PREFIX -view %s
+application/vnd.oasis.opendocument.presentation; %PREFIX -view %s
+application/vnd.oasis.opendocument.presentation-flat-xml; %PREFIX -view %s
+application/vnd.oasis.opendocument.presentation-template; %PREFIX -view %s
+application/vnd.sun.xml.impress; %PREFIX -view %s
+application/vnd.sun.xml.impress.template; %PREFIX -view %s
+application/vnd.stardivision.impress; %PREFIX -view %s
+application/x-starimpress; %PREFIX -view %s
+application/powerpoint; %PREFIX -view %s
+application/mspowerpoint; %PREFIX -view %s
+application/vnd.ms-powerpoint; %PREFIX -view %s
+application/x-mspowerpoint; %PREFIX -view %s
+application/vnd.oasis.opendocument.graphics; %PREFIX -view %s
+application/vnd.oasis.opendocument.graphics-flat-xml; %PREFIX -view %s
+application/vnd.oasis.opendocument.graphics-template; %PREFIX -view %s
+application/vnd.sun.xml.draw; %PREFIX -view %s
+application/vnd.sun.xml.draw.template; %PREFIX -view %s
+application/vnd.stardivision.draw; %PREFIX -view %s
+application/x-stardraw; %PREFIX -view %s
+application/vnd.sun.xml.base; %PREFIX -view %s
+application/vnd.oasis.opendocument.database; %PREFIX -view %s
+application/vnd.writerperfect; %PREFIX -view %s
+application/wordperfect5.1; %PREFIX -view %s
+application/x-wordperfect; %PREFIX -view %s
+application/wordperfect; %PREFIX -view %s
+application/wpwin; %PREFIX -view %s
+application/vnd.openofficeorg.extension; %PREFIX %s
+END
+else
+# backing all entries pointing to our binary
+sed '/%PREFIX/d' ${PKG_INSTALL_ROOT}/etc/mailcap 2>/dev/null
+fi
+
diff --git a/sysui/desktop/solaris/makefile.mk b/sysui/desktop/solaris/makefile.mk
new file mode 100755
index 000000000000..f74dae146e84
--- /dev/null
+++ b/sysui/desktop/solaris/makefile.mk
@@ -0,0 +1,130 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..
+
+PRJNAME=sysui
+TARGET=solaris
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+
+# --- Product Version Information ----------------------------------
+
+.INCLUDE : ../productversion.mk
+
+# --- Files --------------------------------------------------------
+
+.IF "$(OS)"=="SOLARIS"
+
+PKGFILES = $(BIN)$/pkg$/{$(PRODUCTLIST)}-desktop-integration.tar.gz
+
+PKGDATESTRING = $(shell @date -u +%Y.%m.%d)
+PKGARCH=all
+
+FASPAC=`test -f $(SOLARBINDIR)/faspac-so.sh && echo "/sbin/sh" || echo "echo"`
+
+.ENDIF
+
+# --- Targets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
+.IF "$(OS)"=="SOLARIS"
+
+ALLTAR : $(PKGFILES)
+
+# --- pkginfo ----------------------------------------------------
+
+# Copy the pkginfo file to $(MISC)
+$(MISC)/{$(PRODUCTLIST)}/{pkginfo depend} : $$(@:f) ../productversion.mk makefile.mk
+ @$(MKDIRHIER) $(@:d)
+ @cat $(@:f) | tr -d "\015" | sed -e "s/%PRODUCTNAME/$(PRODUCTNAME.$(@:d:d:f)) $(PRODUCTVERSION.$(@:d:d:f))/g" -e "s/%pkgprefix/$(@:d:d:f:s/.//)/" > $@
+
+# --- mailcap ---------------------------------
+
+# Copy the prototype file to $(MISC)
+$(MISC)/{$(PRODUCTLIST)}/mailcap : $$(@:f) ../productversion.mk
+ @$(MKDIRHIER) $(@:d)
+ @cat $(@:f) | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(@:d:d:f))/g" -e "s_%SOURCE_$(MISC)/$(@:d:d:f)_g" > $@
+
+# --- copyright--------------------------------
+
+# Copy the copyright file to $(MISC)
+$(MISC)/{$(PRODUCTLIST)}/copyright : $$(@:f)
+ @$(MKDIRHIER) $(@:d)
+ @cat $(@:f) | tr -d "\015" > $@
+
+# --- postinstall--------------------------------
+
+
+# Copy the postinstall file to $(MISC)
+$(MISC)/{$(PRODUCTLIST)}/postinstall : $$(@:f)
+ @$(MKDIRHIER) $(@:d)
+ @cat $(@:f) | tr -d "\015" > $@
+
+# --- postremove--------------------------------
+
+# Copy the postremove file to $(MISC)
+$(MISC)/{$(PRODUCTLIST)}/postremove : $$(@:f)
+ @$(MKDIRHIER) $(@:d)
+ @cat $(@:f) | tr -d "\015" > $@
+
+# --- openoffice.xml---------------------------
+
+.IF "$(common_build)"=="TRUE"
+# Copy the openoffice.org.xml file to $(MISC)
+#$(MISC)/$(foreach,i,$(PRODUCTLIST) $i/$i.xml) : $(COMMONMISC)/$$(@:b)/openoffice.org.xml
+$(MISC)/$(foreach,i,$(PRODUCTLIST) $(MISC)/$i/openoffice.org.xml) : $(COMMONMISC)/$$(@:b)/openoffice.org.xml
+ $(MKDIRHIER) $(@:d)
+ echo hier hier $@
+ cat $< | tr -d "\015" > $@
+.ENDIF # "$(COMMON_BUILD)"==""
+
+# --- prototype ---------------------------------------------------
+
+# Copy the prototype file to $(MISC)
+$(MISC)/{$(PRODUCTLIST)}$/prototype : $$(@:f) ../productversion.mk makefile.mk
+ @$(MKDIRHIER) $(@:d)
+ cat $(@:f) | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(@:d:d:f))/g" -e "s_%SOURCE_$(COMMONMISC)/$(@:d:d:f)_g" -e "s/%ICONPREFIX/$(ICONPREFIX.$(@:d:d:f))/g" > $@
+
+# --- packaging ---------------------------------------------------
+
+#$(PKGFILES) : $(MISC)/{$(PRODUCTLIST)}/{copyright pkginfo depend mailcap postinstall postremove} makefile.mk $(MISC)/$$(@:b:b:s/-desktop-integration//)/$$(@:b:b:s/-desktop-integration//).xml
+$(PKGFILES) : $(MISC)/{$(PRODUCTLIST)}/{copyright pkginfo depend mailcap postinstall postremove} makefile.mk $(MISC)/$$(@:b:b:s/-desktop-integration//)/openoffice.org.xml
+$(PKGFILES) : $(MISC)$/{$(PRODUCTLIST)}$/prototype
+ @-$(RM) $(BIN)$/$(@:f)
+ @$(MKDIRHIER) $(@:d)
+ pkgmk -l 1073741824 -r . -f $(MISC)$/$(@:b:b:s/-/ /:1)$/prototype -o -d $(PKGDIR) ARCH=$(PKGARCH) VERSION=$(PKGVERSION.$(@:b:s/-/ /:1)),REV=$(PKGREV).$(PKGDATESTRING)
+.IF "$(DONTCOMPRESS)"==""
+ $(FASPAC) $(SOLARBINDIR)/faspac-so.sh -a -d $(PKGDIR) $(@:b:b:s/-/ /:1:s/.//)$(PRODUCTVERSIONSHORT)-desktop-int
+.ENDIF # "$(DONTCOMPRESS)"==""
+ @$(GNUTAR) -cf - -C $(PKGDIR) $(@:b:b:s/-/ /:1:s/.//)$(PRODUCTVERSIONSHORT)-desktop-int | gzip > $@
+ @rm -rf $(PKGDIR)/$(@:b:b:s/-/ /:1:s/.//)$(PRODUCTVERSIONSHORT)-desktop-int
+
+.ENDIF
diff --git a/sysui/desktop/solaris/mime.types b/sysui/desktop/solaris/mime.types
new file mode 100755
index 000000000000..939d0e53cf00
--- /dev/null
+++ b/sysui/desktop/solaris/mime.types
@@ -0,0 +1,63 @@
+if [ "$1" = install ]
+then
+# backing out existing entries to avoid duplicates
+sed '
+/application\/vnd\.oasis\.opendocument/d
+/application\/vnd\.sun/d
+/application\/vnd\.stardivision/d
+' ${PKG_INSTALL_ROOT}/etc/mime.types 2>/dev/null
+
+# now append our stuff to the temporary file
+cat << END
+application/vnd.oasis.opendocument.text odt
+application/vnd.oasis.opendocument.text-flat-xml fodt
+application/vnd.oasis.opendocument.text-template ott
+application/vnd.oasis.opendocument.text-web oth
+application/vnd.oasis.opendocument.text-master odm
+application/vnd.oasis.opendocument.graphics odg
+application/vnd.oasis.opendocument.graphics-flat-xml fodg
+application/vnd.oasis.opendocument.graphics-template otg
+application/vnd.oasis.opendocument.presentation odp
+application/vnd.oasis.opendocument.presentation-flat-xml fodp
+application/vnd.oasis.opendocument.presentation-template otp
+application/vnd.oasis.opendocument.spreadsheet ods
+application/vnd.oasis.opendocument.spreadsheet-flat-xml fods
+application/vnd.oasis.opendocument.spreadsheet-template ots
+application/vnd.oasis.opendocument.chart odc
+application/vnd.oasis.opendocument.formula odf
+application/vnd.oasis.opendocument.image odi
+application/vnd.sun.xml.writer sxw
+application/vnd.sun.xml.writer.template stw
+application/vnd.sun.xml.writer.global sxg
+application/vnd.stardivision.writer sdw vor
+application/vnd.stardivision.writer-global sgl
+application/vnd.sun.xml.calc sxc
+application/vnd.sun.xml.calc.template stc
+application/vnd.stardivision.calc sdc
+application/vnd.stardivision.chart sds
+application/vnd.sun.xml.impress sxi
+application/vnd.sun.xml.impress.template sti
+application/vnd.stardivision.impress sdd sdp
+application/vnd.sun.xml.draw sxd
+application/vnd.sun.xml.draw.template std
+application/vnd.stardivision.draw sda
+application/vnd.sun.xml.math sxm
+application/vnd.stardivision.math smf
+application/vnd.sun.xml.base odb
+application/vnd.openofficeorg.extension oxt
+application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
+application/vnd.ms-word.document.macroenabled.12 docm
+application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
+application/vnd.ms-word.template.macroenabled.12 dotm
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
+application/vnd.ms-excel.sheet.macroenabled.12 xlsm
+application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
+application/vnd.ms-excel.template.macroenabled.12 xltm
+application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
+application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm
+application/vnd.openxmlformats-officedocument.presentationml.template potx
+application/vnd.ms-powerpoint.template.macroenabled.12 potm
+END
+else
+cat ${PKG_INSTALL_ROOT}/etc/mime.types
+fi
diff --git a/sysui/desktop/solaris/pkginfo b/sysui/desktop/solaris/pkginfo
new file mode 100755
index 000000000000..4f7f42df8341
--- /dev/null
+++ b/sysui/desktop/solaris/pkginfo
@@ -0,0 +1,16 @@
+PKG=%pkgprefix3-desktop-int
+NAME=%PRODUCTNAME Solaris desktop integration
+CATEGORY=application
+BASEDIR=/
+VENDOR=OpenOffice.org
+HOTLINE=Please contact your local service provider
+EMAIL=
+MAXINST=1000
+SUNW_PKGTYPE=usr
+SUNW_PKGVERS=1.0
+CLASSES=none build
+OFFICE_PATH=
+LEGACY_GNOME="false"
+DESC=Desktop integration for %PRODUCTNAME
+SUNW_PRODNAME=%PRODUCTNAME
+SUNW_PRODVERS=3
diff --git a/sysui/desktop/solaris/postinstall b/sysui/desktop/solaris/postinstall
new file mode 100755
index 000000000000..2f775ba6d78a
--- /dev/null
+++ b/sysui/desktop/solaris/postinstall
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# check whether /usr is writable
+tiptoe="${PKG_INSTALL_ROOT}/usr/_.$$"
+touch "$tiptoe" >/dev/null 2>&1
+if [ $? -ne 0 ]; then
+ exit 0
+fi
+rm -f "$tiptoe"
+
+# update shared mime database
+if [ -x /usr/bin/update-mime-database ]; then
+ update-mime-database ${PKG_INSTALL_ROOT}/usr/share/mime
+fi
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q
+elif (which update-desktop-database); then
+ update-desktop-database -q /usr/share/applications
+fi
+
+
+exit 0
diff --git a/sysui/desktop/solaris/postremove b/sysui/desktop/solaris/postremove
new file mode 100755
index 000000000000..460c3f2fa196
--- /dev/null
+++ b/sysui/desktop/solaris/postremove
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# check whether /usr is writable
+tiptoe="${PKG_INSTALL_ROOT}/usr/_.$$"
+touch "$tiptoe" >/dev/null 2>&1
+if [ $? -ne 0 ]; then
+ exit 0
+fi
+rm -f "$tiptoe"
+
+# update shared mime database
+if [ -x /usr/bin/update-mime-database ]; then
+ update-mime-database ${PKG_INSTALL_ROOT}/usr/share/mime
+fi
+
+exit 0
diff --git a/sysui/desktop/solaris/prototype b/sysui/desktop/solaris/prototype
new file mode 100755
index 000000000000..ef541c3134ea
--- /dev/null
+++ b/sysui/desktop/solaris/prototype
@@ -0,0 +1,66 @@
+i pkginfo=pkginfo
+i copyright=./copyright
+i depend=depend
+i postinstall=postinstall
+i postremove=postremove
+d none etc 0755 root sys
+d none usr 0755 root sys
+d none usr/bin 0755 root bin
+s none usr/bin/soffice=../../opt/%PREFIX/program/soffice
+f none usr/bin/%PREFIX=%SOURCE/openoffice.sh 0755 root bin
+f none usr/bin/%PREFIX-printeradmin=%SOURCE/printeradmin.sh 0755 root bin
+d none usr/share 0755 root sys
+d none usr/share/applications 0755 root other
+d none usr/share/mime 0755 root root
+d none usr/share/mime/packages 0755 root root
+d none usr/share/application-registry 0755 root other
+d none usr/share/mime-info 0755 root other
+d none usr/share/pixmaps 0755 root other
+d none share/mime 0755 root other
+d none share/mime/packages 0755 root other
+!default 0644 root bin
+e build etc/mime.types=./mime.types
+e build etc/mailcap=mailcap
+f none usr/share/mime/packages/%PREFIX.xml=%SOURCE/openoffice.org.xml
+f none usr/share/application-registry/%PREFIX.applications=%SOURCE/openoffice.applications
+s none usr/share/applications/%PREFIX-writer.desktop=../../../opt/%PREFIX/share/xdg/writer.desktop
+s none usr/share/applications/%PREFIX-calc.desktop=../../../opt/%PREFIX/share/xdg/calc.desktop
+s none usr/share/applications/%PREFIX-draw.desktop=../../../opt/%PREFIX/share/xdg/draw.desktop
+s none usr/share/applications/%PREFIX-impress.desktop=../../../opt/%PREFIX/share/xdg/impress.desktop
+s none usr/share/applications/%PREFIX-math.desktop=../../../opt/%PREFIX/share/xdg/math.desktop
+s none usr/share/applications/%PREFIX-base.desktop=../../../opt/%PREFIX/share/xdg/base.desktop
+s none usr/share/applications/%PREFIX-printeradmin.desktop=../../../opt/%PREFIX/share/xdg/printeradmin.desktop
+f none usr/share/mime-info/%PREFIX.keys=%SOURCE/openoffice.keys
+f none usr/share/mime-info/%PREFIX.mime=%SOURCE/openoffice.mime
+f none usr/share/pixmaps/%ICONPREFIX-writer.png=../icons/hicolor/48x48/apps/writer.png
+f none usr/share/pixmaps/%ICONPREFIX-calc.png=../icons/hicolor/48x48/apps/calc.png
+f none usr/share/pixmaps/%ICONPREFIX-draw.png=../icons/hicolor/48x48/apps/draw.png
+f none usr/share/pixmaps/%ICONPREFIX-impress.png=../icons/hicolor/48x48/apps/impress.png
+f none usr/share/pixmaps/%ICONPREFIX-math.png=../icons/hicolor/48x48/apps/math.png
+f none usr/share/pixmaps/%ICONPREFIX-base.png=../icons/hicolor/48x48/apps/base.png
+f none usr/share/pixmaps/%ICONPREFIX-printeradmin.png=../icons/hicolor/48x48/apps/printeradmin.png
+f none usr/share/pixmaps/%ICONPREFIX-text.png=../icons/hicolor/48x48/mimetypes/text.png
+f none usr/share/pixmaps/%ICONPREFIX-text-template.png=../icons/hicolor/48x48/mimetypes/text-template.png
+f none usr/share/pixmaps/%ICONPREFIX-spreadsheet.png=../icons/hicolor/48x48/mimetypes/spreadsheet.png
+f none usr/share/pixmaps/%ICONPREFIX-spreadsheet-template.png=../icons/hicolor/48x48/mimetypes/spreadsheet-template.png
+f none usr/share/pixmaps/%ICONPREFIX-drawing.png=../icons/hicolor/48x48/mimetypes/drawing.png
+f none usr/share/pixmaps/%ICONPREFIX-drawing-template.png=../icons/hicolor/48x48/mimetypes/drawing-template.png
+f none usr/share/pixmaps/%ICONPREFIX-presentation.png=../icons/hicolor/48x48/mimetypes/presentation.png
+f none usr/share/pixmaps/%ICONPREFIX-presentation-template.png=../icons/hicolor/48x48/mimetypes/presentation-template.png
+f none usr/share/pixmaps/%ICONPREFIX-master-document.png=../icons/hicolor/48x48/mimetypes/master-document.png
+f none usr/share/pixmaps/%ICONPREFIX-formula.png=../icons/hicolor/48x48/mimetypes/formula.png
+f none usr/share/pixmaps/%ICONPREFIX-database.png=../icons/hicolor/48x48/mimetypes/database.png
+f none usr/share/pixmaps/%ICONPREFIX-extension.png=../icons/hicolor/48x48/mimetypes/extension.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-text.png=../icons/hicolor/48x48/mimetypes/oasis-text.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-text-template.png=../icons/hicolor/48x48/mimetypes/oasis-text-template.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-spreadsheet.png=../icons/hicolor/48x48/mimetypes/oasis-spreadsheet.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-spreadsheet-template.png=../icons/hicolor/48x48/mimetypes/oasis-spreadsheet-template.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-drawing.png=../icons/hicolor/48x48/mimetypes/oasis-drawing.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-drawing-template.png=../icons/hicolor/48x48/mimetypes/oasis-drawing-template.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-presentation.png=../icons/hicolor/48x48/mimetypes/oasis-presentation.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-presentation-template.png=../icons/hicolor/48x48/mimetypes/oasis-presentation-template.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-master-document.png=../icons/hicolor/48x48/mimetypes/oasis-master-document.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-formula.png=../icons/hicolor/48x48/mimetypes/oasis-formula.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-database.png=../icons/hicolor/48x48/mimetypes/oasis-database.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-web-template.png=../icons/hicolor/48x48/mimetypes/oasis-web-template.png
+
diff --git a/sysui/desktop/suse/makefile.mk b/sysui/desktop/suse/makefile.mk
new file mode 100755
index 000000000000..31ac8c6cf590
--- /dev/null
+++ b/sysui/desktop/suse/makefile.mk
@@ -0,0 +1,59 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..
+
+PRJNAME=sysui
+TARGET=suse
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+
+# --- Product Version Information ----------------------------------
+
+.INCLUDE : ../productversion.mk
+
+# --- Files --------------------------------------------------------
+
+.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)"
+
+SPECFILE=$(TARGET)-menus.spec
+RPMFLAGFILES=$(foreach,i,{$(PRODUCTLIST)} $(PKGDIR)$/$i-$(SPECFILE:b)-$(PKGVERSION.$i)-$(PKGREV).noarch.flag)
+
+.ENDIF
+
+# --- Targets -------------------------------------------------------
+
+.INCLUDE : target.mk
+.INCLUDE : ../tg_rpm.mk
+
+.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)"
+
+$(RPMFLAGFILES) : $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag
+
+.ENDIF
diff --git a/sysui/desktop/suse/suse-menus.spec b/sysui/desktop/suse/suse-menus.spec
new file mode 100755
index 000000000000..37806153aa31
--- /dev/null
+++ b/sysui/desktop/suse/suse-menus.spec
@@ -0,0 +1,367 @@
+# version and release passed by command-line
+Version: %version
+Release: %release
+Summary: %productname desktop integration
+Name: %pkgprefix-suse-menus
+Group: Office
+License: LGPL
+Vendor: The Document Foundation
+AutoReqProv: no
+BuildArch: noarch
+# /etc/SuSE-release for SuSE, SLES and Novell Linux Desktop ..
+Requires: /etc/SuSE-release
+# .. but not for Sun JDS
+Conflicts: SunDesktopVersion
+Provides: libreoffice-desktop-integration
+%define _unpackaged_files_terminate_build 0
+%define _binary_filedigest_algorithm 1
+%define _binary_payload w9.gzdio
+
+%define gnome_dir /opt/gnome
+%define gnome_mime_theme hicolor
+
+%description
+%productname desktop integration
+
+%install
+rm -rf $RPM_BUILD_ROOT/*
+
+# hack/workaround to make SuSE's brp-symlink-script happy. It wants the targets of all links
+# to be present on the build-system/the buildroot. But the point is that we generate stale
+# links intentionally (until we find a better solution) #46226
+export NO_BRP_STALE_LINK_ERROR=yes
+
+mkdir -p $RPM_BUILD_ROOT
+
+# set parameters for the create_tree script
+export DESTDIR=$RPM_BUILD_ROOT
+export KDEMAINDIR=/opt/kde3
+export GNOMEDIR=%{gnome_dir}
+
+./create_tree.sh
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%triggerin -- %pkgprefix, %pkgprefix-writer, %pkgprefix-calc, %pkgprefix-draw, %pkgprefix-impress, %pkgprefix-base, %pkgprefix-math
+if [ -x /opt/gnome/bin/update-desktop-database ]; then
+ echo Update Desktop Database
+ /opt/gnome/bin/update-desktop-database -q /usr/share/applications
+ /opt/gnome/bin/update-desktop-database
+fi
+
+%triggerun -- %pkgprefix, %pkgprefix-writer, %pkgprefix-calc, %pkgprefix-draw, %pkgprefix-impress, %pkgprefix-base, %pkgprefix-math
+if [ "$1" = "0" ] ; then
+ # the menu-package gets uninstalled/updated - postun will run the command
+ exit 0
+fi
+if [ "$2" = "0" ] ; then
+ # the triggering package gets removed
+ if [ -x /opt/gnome/bin/update-desktop-database ]; then
+ echo Update Desktop Database
+ /opt/gnome/bin/update-desktop-database -q /usr/share/applications
+ /opt/gnome/bin/update-desktop-database
+fi
+fi
+
+%post
+# run always, since there are versions of this package that did not include
+# a shared-mime-info xml file
+if [ -x /usr/bin/update-mime-database ]; then
+ update-mime-database /usr/share/mime
+fi
+
+if [ -x /opt/gnome/bin/update-desktop-database ]; then
+ echo Update Desktop Database
+ /opt/gnome/bin/update-desktop-database -q /usr/share/applications
+ /opt/gnome/bin/update-desktop-database
+fi
+
+# add symlinks so that nautilus can identify the mime-icons
+# not strictly freedesktop-stuff but there is no common naming scheme yet.
+# One proposal is "mime-application:vnd.oasis.opendocument.spreadsheet.png"
+# for e.g. application/vnd.oasis.opendocument.spreadsheet
+link_target_root="%{gnome_dir}/share/icons/%{gnome_mime_theme}"
+
+if [ ! -d "${link_target_root}" ]
+then
+ link_target_root="%{gnome_dir}/share/icons/gnome"
+fi
+
+for subdir in `cd ${link_target_root}; ls -d *`
+do
+ link_dir="%{gnome_dir}/share/icons/%{gnome_mime_theme}/$subdir/mimetypes"
+ link_target_dir="../../../gnome/$subdir/mimetypes/"
+
+ test -d "${link_dir}" || mkdir -p "${link_dir}"
+ test -d ${link_dir}/${link_target_dir} || continue
+
+ icon=${link_target_dir}%iconprefix-drawing.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.draw.png
+ icon=${link_target_dir}%iconprefix-drawing-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.draw.template.png
+ icon=${link_target_dir}%iconprefix-formula.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.math.png
+ icon=${link_target_dir}%iconprefix-master-document.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.writer.global.png
+ icon=${link_target_dir}%iconprefix-oasis-database.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.base.png
+ icon=${link_target_dir}%iconprefix-oasis-database.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.database.png
+ icon=${link_target_dir}%iconprefix-oasis-drawing.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.graphics.png
+ icon=${link_target_dir}%iconprefix-oasis-drawing-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.graphics-template.png
+ icon=${link_target_dir}%iconprefix-oasis-formula.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.formula.png
+ icon=${link_target_dir}%iconprefix-oasis-master-document.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text-master.png
+ icon=${link_target_dir}%iconprefix-oasis-presentation.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.presentation.png
+ icon=${link_target_dir}%iconprefix-oasis-presentation-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.presentation-template.png
+ icon=${link_target_dir}%iconprefix-oasis-spreadsheet.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.spreadsheet.png
+ icon=${link_target_dir}%iconprefix-oasis-spreadsheet-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.spreadsheet-template.png
+ icon=${link_target_dir}%iconprefix-oasis-text.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text.png
+ icon=${link_target_dir}%iconprefix-oasis-text-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text-template.png
+ icon=${link_target_dir}%iconprefix-oasis-web-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text-web.png
+ icon=${link_target_dir}%iconprefix-presentation.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.impress.png
+ icon=${link_target_dir}%iconprefix-presentation-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.impress.template.png
+ icon=${link_target_dir}%iconprefix-spreadsheet.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.calc.png
+ icon=${link_target_dir}%iconprefix-spreadsheet-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.calc.template.png
+ icon=${link_target_dir}%iconprefix-text.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.writer.png
+ icon=${link_target_dir}%iconprefix-text-template.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.sun.xml.writer.template.png
+ icon=${link_target_dir}%iconprefix-extension.png; test -f ${link_dir}/$icon && ln -sf ${icon} ${link_dir}/gnome-mime-application-vnd.openofficeorg.extension.png
+done
+
+# run only on first install, since postun is run when updating
+# post would be run before the old files are removed
+if [ "$1" = "1" ] ; then # first install
+ for themedir in /opt/gnome/share/icons/gnome /opt/gnome/share/icons/hicolor /opt/kde3/share/icons/hicolor /opt/kde3/share/icons/locolor; do
+ if [ -e $themedir/icon-theme.cache ] ; then
+ # touch in, in case we cannot find gtk-update-icon-cache (just to make sure)
+ touch $themedir
+ # path to gtk-update-icon-cache is not in rpm's install_script_path by default.
+ if [ -x /opt/gnome/bin/gtk-update-icon-cache ]; then
+ /opt/gnome/bin/gtk-update-icon-cache $themedir
+ fi
+ # ignore errors (e.g. when there is a cache, but no index.theme)
+ true
+ fi
+ done
+fi
+
+# update /etc/mime.types
+# backing out existing entries to avoid duplicates
+sed '
+/application\/vnd\.oasis\.opendocument/d
+/application\/vnd\.openofficeorg/d
+/application\/vnd\.sun/d
+/application\/vnd\.stardivision/d
+' /etc/mime.types 2>/dev/null >> /etc/mime.types.tmp$$
+
+
+# now append our stuff to the temporary file
+cat >> /etc/mime.types.tmp$$ << END
+application/vnd.oasis.opendocument.text odt
+application/vnd.oasis.opendocument.text-flat-xml fodt
+application/vnd.oasis.opendocument.text-template ott
+application/vnd.oasis.opendocument.text-web oth
+application/vnd.oasis.opendocument.text-master odm
+application/vnd.oasis.opendocument.graphics odg
+application/vnd.oasis.opendocument.graphics-flat-xml fodg
+application/vnd.oasis.opendocument.graphics-template otg
+application/vnd.oasis.opendocument.presentation odp
+application/vnd.oasis.opendocument.presentation-flat-xml fodp
+application/vnd.oasis.opendocument.presentation-template otp
+application/vnd.oasis.opendocument.spreadsheet ods
+application/vnd.oasis.opendocument.spreadsheet-flat-xml fods
+application/vnd.oasis.opendocument.spreadsheet-template ots
+application/vnd.oasis.opendocument.chart odc
+application/vnd.oasis.opendocument.formula odf
+application/vnd.oasis.opendocument.image odi
+application/vnd.sun.xml.writer sxw
+application/vnd.sun.xml.writer.template stw
+application/vnd.sun.xml.writer.global sxg
+application/vnd.stardivision.writer sdw vor
+application/vnd.stardivision.writer-global sgl
+application/vnd.sun.xml.calc sxc
+application/vnd.sun.xml.calc.template stc
+application/vnd.stardivision.calc sdc
+application/vnd.stardivision.chart sds
+application/vnd.sun.xml.impress sxi
+application/vnd.sun.xml.impress.template sti
+application/vnd.stardivision.impress sdd sdp
+application/vnd.sun.xml.draw sxd
+application/vnd.sun.xml.draw.template std
+application/vnd.stardivision.draw sda
+application/vnd.sun.xml.math sxm
+application/vnd.stardivision.math smf
+application/vnd.sun.xml.base odb
+application/vnd.openofficeorg.extension oxt
+application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
+application/vnd.ms-word.document.macroenabled.12 docm
+application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
+application/vnd.ms-word.template.macroenabled.12 dotm
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
+application/vnd.ms-excel.sheet.macroenabled.12 xlsm
+application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
+application/vnd.ms-excel.template.macroenabled.12 xltm
+application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
+application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm
+application/vnd.openxmlformats-officedocument.presentationml.template potx
+application/vnd.ms-powerpoint.template.macroenabled.12 potm
+END
+
+# and replace the original file
+mv -f /etc/mime.types.tmp$$ /etc/mime.types 2>/dev/null
+
+# update /etc/mailcap only at initial install
+if [ "$1" = 1 ]
+then
+ # backing out existing entries to avoid duplicates
+ sed '
+/^# OpenOffice.org/d
+/^application\/vnd\.oasis\.opendocument/d
+/^application\/vnd\.openofficeorg/d
+/^application\/vnd\.sun/d
+/^application\/vnd\.stardivision/d
+/^application\/vnd\.ms-word/d
+/^application\/vnd\.ms-excel/d
+/^application\/vnd\.ms-powerpoint/d
+/^application\/x-star/d
+/excel/d
+/ms[-]*word/d
+/powerpoint/d
+' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$
+
+ # now append our stuff to the temporary file
+ cat >> /etc/mailcap.tmp$$ << END
+# OpenOffice.org
+application/vnd.oasis.opendocument.text; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-template; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-web; %unixfilename -view %s
+application/vnd.oasis.opendocument.text-master; %unixfilename -view %s
+application/vnd.sun.xml.writer; %unixfilename -view %s
+application/vnd.sun.xml.writer.template; %unixfilename -view %s
+application/vnd.sun.xml.writer.global; %unixfilename -view %s
+application/vnd.stardivision.writer; %unixfilename -view %s
+application/vnd.stardivision.writer-global; %unixfilename -view %s
+application/x-starwriter; %unixfilename -view %s
+application/vnd.oasis.opendocument.formula; %unixfilename -view %s
+application/vnd.sun.xml.math; %unixfilename -view %s
+application/vnd.stardivision.math; %unixfilename -view %s
+application/x-starmath; %unixfilename -view %s
+application/msword; %unixfilename -view %s
+application/vnd.oasis.opendocument.spreadsheet; %unixfilename -view %s
+application/vnd.oasis.opendocument.spreadsheet-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.spreadsheet-template; %unixfilename -view %s
+application/vnd.sun.xml.calc; %unixfilename -view %s
+application/vnd.sun.xml.calc.template; %unixfilename -view %s
+application/vnd.stardivision.calc; %unixfilename -view %s
+application/x-starcalc; %unixfilename -view %s
+application/vnd.stardivision.chart; %unixfilename -view %s
+application/x-starchart; %unixfilename -view %s
+application/excel; %unixfilename -view %s
+application/msexcel; %unixfilename -view %s
+application/vnd.ms-excel; %unixfilename -view %s
+application/x-msexcel; %unixfilename -view %s
+application/vnd.oasis.opendocument.presentation; %unixfilename -view %s
+application/vnd.oasis.opendocument.presentation-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.presentation-template; %unixfilename -view %s
+application/vnd.sun.xml.impress; %unixfilename -view %s
+application/vnd.sun.xml.impress.template; %unixfilename -view %s
+application/vnd.stardivision.impress; %unixfilename -view %s
+application/x-starimpress; %unixfilename -view %s
+application/powerpoint; %unixfilename -view %s
+application/mspowerpoint; %unixfilename -view %s
+application/vnd.ms-powerpoint; %unixfilename -view %s
+application/x-mspowerpoint; %unixfilename -view %s
+application/vnd.oasis.opendocument.graphics; %unixfilename -view %s
+application/vnd.oasis.opendocument.graphics-flat-xml; %unixfilename -view %s
+application/vnd.oasis.opendocument.graphics-template; %unixfilename -view %s
+application/vnd.sun.xml.draw; %unixfilename -view %s
+application/vnd.sun.xml.draw.template; %unixfilename -view %s
+application/vnd.stardivision.draw; %unixfilename -view %s
+application/x-stardraw; %unixfilename -view %s
+application/vnd.oasis.opendocument.database; %unixfilename -view %s
+application/vnd.sun.xml.base; %unixfilename -view %s
+application/vnd.wordperfect; %unixfilename -view %s
+application/wordperfect5.1; %unixfilename -view %s
+application/x-wordperfect; %unixfilename -view %s
+application/wordperfect; %unixfilename -view %s
+application/wpwin; %unixfilename -view %s
+application/vnd.openofficeorg.extension; %unixfilename %s
+application/vnd.openxmlformats-officedocument.wordprocessingml.document; %unixfilename -view %s
+application/vnd.ms-word.document.macroenabled.12;%unixfilename -view %s
+application/vnd.openxmlformats-officedocument.wordprocessingml.template; %unixfilename -view %s
+application/vnd.ms-word.template.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; %unixfilename -view %s
+application/vnd.ms-excel.sheet.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.spreadsheetml.template; %unixfilename -view %s
+application/vnd.ms-excel.template.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.presentationml.presentation; %unixfilename -view %s
+application/vnd.ms-powerpoint.presentation.macroenabled.12; %unixfilename -view %s
+application/vnd.openxmlformats-officedocument.presentationml.template; %unixfilename -view %s
+application/vnd.ms-powerpoint.template.macroenabled.12; %unixfilename -view %s
+END
+
+ # and replace the original file
+ mv -f /etc/mailcap.tmp$$ /etc/mailcap
+fi
+
+%preun
+# remove from /etc/mailcap only on de-install
+if [ "$1" = 0 ]
+then
+ # backing all entries pointing to our binary
+ sed '/%unixfilename/d' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$
+
+ # and replace the original file
+ mv -f /etc/mailcap.tmp$$ /etc/mailcap
+fi
+
+%postun
+# run only when erasing this package, since %post of the new package ran
+# previously or updates already handled by triggers.
+if [ "$1" = 0 ] ; then
+ if [ -x /opt/gnome/bin/update-desktop-database ]; then
+ /opt/gnome/bin/update-desktop-database -q /usr/share/applications
+ fi
+ if [ -x /usr/bin/update-mime-database ]; then
+ update-mime-database /usr/share/mime
+ fi
+fi
+#run always
+for themedir in /opt/gnome/share/icons/gnome /opt/gnome/share/icons/hicolor /opt/kde3/share/icons/hicolor /opt/kde3/share/icons/locolor; do
+ if [ -e $themedir/icon-theme.cache ] ; then
+ # touch in, in case we cannot find gtk-update-icon-cache (just to make sure)
+ touch $themedir
+ # path to gtk-update-icon-cache is not in rpm's install_script_path by default.
+ if [ -x /opt/gnome/bin/gtk-update-icon-cache ]; then
+ /opt/gnome/bin/gtk-update-icon-cache $themedir
+ fi
+ # ignore errors (e.g. when there is a cache, but no index.theme)
+ true
+ fi
+done
+
+%files
+%if "%unixfilename" != "libreoffice%productversion"
+# compat symlinks
+%attr(0755,root,root) /opt/%unixfilename
+%attr(0755,root,root) /usr/bin/libreoffice%productversion
+%attr(0755,root,root) /usr/bin/libreoffice%productversion-printeradmin
+%endif
+%attr(0755,root,root) %verify(not size md5) /usr/bin/%unixfilename
+%attr(0755,root,root) /usr/bin/%unixfilename-printeradmin
+%defattr(0644, root, root)
+/opt/gnome/share/application-registry/*.applications
+/usr/share/applications/%unixfilename-writer.desktop
+/usr/share/applications/%unixfilename-calc.desktop
+/usr/share/applications/%unixfilename-draw.desktop
+/usr/share/applications/%unixfilename-impress.desktop
+/usr/share/applications/%unixfilename-math.desktop
+/usr/share/applications/%unixfilename-base.desktop
+/usr/share/applications/%unixfilename-printeradmin.desktop
+/usr/share/applications/%unixfilename-startcenter.desktop
+/usr/share/applications/%unixfilename-javafilter.desktop
+/opt/gnome/share/mime-info/*.keys
+/opt/gnome/share/mime-info/*.mime
+/opt/kde3/share/mimelnk/application/*.desktop
+/opt/gnome/share/icons/gnome/*/apps/*png
+/opt/gnome/share/icons/gnome/*/mimetypes/*png
+/opt/kde3/share/icons/hicolor/*/apps/*png
+/opt/kde3/share/icons/hicolor/*/mimetypes/*png
+/opt/kde3/share/icons/locolor/*/apps/*png
+/opt/kde3/share/icons/locolor/*/mimetypes/*png
+/usr/share/mime/packages/*
diff --git a/sysui/desktop/tg_rpm.mk b/sysui/desktop/tg_rpm.mk
new file mode 100755
index 000000000000..0ff9af4dca3d
--- /dev/null
+++ b/sysui/desktop/tg_rpm.mk
@@ -0,0 +1,46 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)"
+
+ALLTAR : $(RPMFLAGFILES)
+
+$(RPMFLAGFILES) : $(SPECFILE)
+ @-$(MKDIRHIER) $(@:d)
+ -$(RM) $(@:d)$(@:b:s/-/ /:1)-$(SPECFILE:b)-*
+ $(RPM) -bb $< $(RPMMACROS) \
+ --buildroot $(ABSLOCALOUT)$/misc$/$(@:b) \
+ --define "_builddir $(shell @cd $(COMMONMISC)$/$(@:b:s/-/ /:1) && pwd)" \
+ --define "productname $(PRODUCTNAME.$(@:b:s/-/ /:1))" \
+ --define "pkgprefix $(@:b:s/-/ /:1)$(PRODUCTVERSION.$(@:b:s/-/ /:1))" \
+ --define "unixfilename $(UNIXFILENAME.$(@:b:s/-/ /:1))" \
+ --define "productversion $(PRODUCTVERSION.$(@:b:s/-/ /:1))" \
+ --define "iconprefix $(ICONPREFIX.$(@:b:s/-/ /:1))" \
+ --define "version $(PKGVERSION.$(@:b:s/-/ /:1))" \
+ --define "release $(PKGREV)" \
+ --define "_unpackaged_files_terminate_build 0" && $(TOUCH) $@
+.ENDIF
diff --git a/sysui/desktop/util/makefile.mk b/sysui/desktop/util/makefile.mk
new file mode 100755
index 000000000000..8255cc08ca50
--- /dev/null
+++ b/sysui/desktop/util/makefile.mk
@@ -0,0 +1,66 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..
+
+PRJNAME=sysui
+TARGET=launcher
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+.INCLUDE : ..$/productversion.mk
+
+.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)"
+RPMTARFILES=$(BIN)$/rpm$/{$(PRODUCTLIST)}-desktop-integration.tar.gz
+.ENDIF
+
+.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/deb//)"
+DEBTARFILES=$(BIN)$/deb$/{$(PRODUCTLIST)}-desktop-integration.tar.gz
+.ENDIF
+
+# --- Targets ------------------------------------------------------
+
+.INCLUDE : target.mk
+
+ALLTAR: $(RPMTARFILES) $(DEBTARFILES)
+
+.IF "$(RPMTARFILES)" != ""
+
+$(RPMTARFILES) : $(PKGDIR)
+ $(MKDIRHIER) $(@:d)
+ $(GNUTAR) -C $(PKGDIR:d:d) -cf - $(PKGDIR:f)$/{$(shell cd $(PKGDIR); ls $(@:b:b:s/-/ /:1)*.rpm)} | gzip > $@
+
+.ENDIF # "$(TARFILE)" != ""
+
+.IF "$(DEBTARFILES)" != ""
+
+$(DEBTARFILES) : $(PKGDIR)
+ $(MKDIRHIER) $(@:d)
+ $(GNUTAR) -C $(PKGDIR:d:d) -cf - $(PKGDIR:f)$/{$(shell @cd $(PKGDIR); ls $(@:b:b:s/-/ /:1)*.deb)} | gzip > $@
+
+.ENDIF
diff --git a/sysui/desktop/util/pkgdiff.pl b/sysui/desktop/util/pkgdiff.pl
new file mode 100755
index 000000000000..dca659669112
--- /dev/null
+++ b/sysui/desktop/util/pkgdiff.pl
@@ -0,0 +1,119 @@
+: # -*- perl -*-
+eval 'exec perl -wS $0 ${1+"$@"}'
+ if 0;
+
+use File::Temp qw/ tempdir /;
+use File::Basename;
+use Cwd;
+
+$tempdir = tempdir();
+$dir = cwd();
+
+sub unpack_rpm
+{
+ my ($package) = @_;
+
+ system << "EOF"
+rpm --query --queryformat "[trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERNAME} %{TRIGGERVERSION}\n%{TRIGGERSCRIPTS}\n]" --package $package > triggers
+rpm --query --queryformat "%{PREIN}\n" --package $package > prein
+rpm --query --queryformat "%{POSTIN}\n" --package $package > postin
+rpm --query --queryformat "%{PREUN}\n" --package $package > preun
+rpm --query --queryformat "%{POSTUN}\n" --package $package > postun
+rpm --query --queryformat "[%{FILEMODES:perms} %{FILEUSERNAME}/%{FILEGROUPNAME} .%{FILENAMES} -> %{FILELINKTOS}\n]" --package $package | sed 's/ -> \$//' | sort --key=3 -o filelist
+
+rpm2cpio $package | cpio --extract --make-directories
+
+rm --force `sed --silent 's|^lrw.r..r..-* root/root \\./\\(.*\\) -> .*|\\1 |p' filelist | tr -d "\\012"`
+EOF
+
+# the last step removes all symbolic links from the extracted file tree as they
+# are handled by diffing the filelist
+}
+
+sub unpack_deb
+{
+ my ($package) = @_;
+
+ system << "EOF"
+ar x $package control.tar.gz data.tar.gz
+tar --extract --ungzip --file=control.tar.gz
+rm --force control control.tar.gz
+tar --extract --ungzip --file=data.tar.gz
+tar --list --verbose --ungzip --file=data.tar.gz | sed -e 's| root/root .* \./|- root/root ./|' -e 's|^d\\(.*\\)/\$|d\\1|' | sort --key=3 -o filelist
+rm --force data.tar.gz
+
+rm --force `sed --silent 's|^lrw.r..r..- root/root \\./\\(.*\\) -> .*|\\1 |p' filelist | tr -d "\\012"`
+EOF
+
+# the last step removes all symbolic links from the extracted file tree as they
+# are handled by diffing the filelist
+}
+
+sub unpack_solpkg
+{
+ my ($package) = @_;
+
+ system << "EOF"
+sed -e '1 d' -e 's/[0-9][0-9]* [0-9][0-9]* [0-9]\\{10\\}\$//' $package/pkgmap > filelist
+grep -v "^PSTAMP=" $package/pkginfo > pkginfo
+cp $package/install/* .
+if [ -f $package/archive/none.bz2 ]; then
+ bzcat $package/archive/none.bz2 | cpio -i -d
+else
+ cp -pr $package/reloc/* .
+fi
+EOF
+}
+
+sub unpack_tgz {
+ my ($package) = @_;
+
+ system << "EOF"
+cat $package | gunzip | tar -xf -
+EOF
+}
+
+my $script = basename($0);
+
+die "Usage: $script <package 1> <package 2>\n" unless $#ARGV == 1;
+
+my @pkgroot = ();
+
+while ( $#ARGV >= 0 )
+{
+ my $package = shift;
+
+ # make package paths absolute if necessary
+ $package = $dir . "/" . $package unless $package =~ /^\//;
+
+ my $basename = basename($package);
+
+ # when comparing identically named packages, append a "-2"
+ unless ( mkdir "$tempdir/$basename", 0777 ) {
+ $basename = $basename . "-2";
+ mkdir "$tempdir/$basename", 0777;
+ }
+
+ # change working directory, unpack the package and change back ..
+ die "Unable to change to unpack directory $tempdir/$basename: $!\n" unless chdir "$tempdir/$basename";
+
+ if ( $package =~ /\.rpm$/ ) { unpack_rpm( $package ); }
+ elsif( $package =~ /\.deb$/ ) { unpack_deb( $package ); }
+ elsif( -f "$package/pkgmap" ) { unpack_solpkg( $package ); }
+ elsif( $package =~ /\.tgz$/ ) { unpack_tgz( $package ); }
+
+ push @pkgroot, $basename;
+ chdir $dir;
+}
+
+# print "$0\n";
+
+die "Unable to change to working directory $tempdir: $!\n" unless chdir $tempdir;
+
+system "diff -ru @pkgroot[0] @pkgroot[1]";
+system "rm -rf *";
+
+chdir $dir;
+rmdir $tempdir;
+#print STDERR "rm -rf $tempdir\n";
+
diff --git a/sysui/prj/build.lst b/sysui/prj/build.lst
new file mode 100644
index 000000000000..f44ee336dcab
--- /dev/null
+++ b/sysui/prj/build.lst
@@ -0,0 +1,19 @@
+su sysui : TRANSLATIONS:translations offapi xml2cmp rdbmaker l10ntools setup_native NULL
+#su sysui\source\win32\QuickStart nmake - w su_win32_quickstart NULL
+#su sysui\source\win32\QuickStart\so nmake - w su_win32_quickstart_so su_win32_quickstart.w NULL
+su sysui\desktop\icons nmake - w su_iconsw NULL
+su sysui\desktop\os2 nmake - p su_iconsw NULL
+su sysui\desktop\macosx nmake - u su_dtmacosx su_dtshare.u NULL
+su sysui\desktop\cleanversion nmake - u su_dtcleanversion NULL
+su sysui\desktop\share nmake - u su_dtshare su_dtcleanversion.u NULL
+su sysui\desktop\menus get - all su_dtmenus NULL
+su sysui\desktop\mimetypes get - all su_dtmime NULL
+su sysui\desktop\redhat nmake - u su_dtredhat su_dtshare.u su_dtcleanversion.u NULL
+su sysui\desktop\suse nmake - u su_dtsuse su_dtshare.u NULL
+su sysui\desktop\mandriva nmake - u su_dtmdk su_dtshare.u NULL
+su sysui\desktop\freedesktop nmake - u su_dtfreedesktop su_dtredhat.u NULL
+su sysui\desktop\debian nmake - u su_dtdebian su_dtshare.u NULL
+su sysui\desktop\slackware nmake - u su_dtslackware su_dtshare.u NULL
+su sysui\desktop\solaris nmake - u su_dtsolaris su_dtshare.u NULL
+su sysui\desktop\util nmake - u su_desktop su_dtredhat.u su_dtsuse.u su_dtmdk.u su_dtfreedesktop.u su_dtdebian.u su_dtslackware.u NULL
+su sysui\util nmake - all su_util su_dtsolaris.u su_desktop.u su_iconsw.w NULL
diff --git a/sysui/prj/d.lst b/sysui/prj/d.lst
new file mode 100644
index 000000000000..918ee8bcbc8f
--- /dev/null
+++ b/sysui/prj/d.lst
@@ -0,0 +1,23 @@
+mkdir: %_DEST%\res%_EXT%\icons
+mkdir: %_DEST%\inc%_EXT%\icons
+mkdir: %_DEST%\bin%_EXT%\so
+mkdir: %_DEST%\bin%_EXT%\desktop-integration
+mkdir: %_DEST%\bin%_EXT%\desktop-integration\rpm
+mkdir: %_DEST%\bin%_EXT%\desktop-integration\deb
+mkdir: %_DEST%\bin%_EXT%\desktop-integration\pkg
+
+..\%__SRC%\misc\*.ico %_DEST%\res%_EXT%\icons\*.ico
+..\%__SRC%\misc\*.gif %_DEST%\res%_EXT%\icons\*.gif
+..\%__SRC%\bin\*.zip %_DEST%\bin%_EXT%\*.zip
+..\%__SRC%\bin\*.tar.gz %_DEST%\bin%_EXT%\*.tar.gz
+..\%__SRC%\bin\rpm\*.tar.gz %_DEST%\bin%_EXT%\desktop-integration\rpm\*.tar.gz
+..\%__SRC%\bin\deb\*.tar.gz %_DEST%\bin%_EXT%\desktop-integration\deb\*.tar.gz
+..\%__SRC%\bin\pkg\*.tar.gz %_DEST%\bin%_EXT%\desktop-integration\pkg\*.tar.gz
+
+..\%__SRC%\bin\*.dll %_DEST%\bin%_EXT%\*.dll
+
+..\%__SRC%\misc\ooo3_main_app.ico %_DEST%\bin%_EXT%\soffice.ico
+
+..\%__SRC%\misc\desktopshare\*.desktop %_DEST%\pck%_EXT%\*.desktop
+..\%__SRC%\misc\PkgInfo %_DEST%\pck%_EXT%\PkgInfo
+..\%__SRC%\misc\Info.plist %_DEST%\pck%_EXT%\Info.plist
diff --git a/sysui/source/win32/misc/AutoBuffer.cxx b/sysui/source/win32/misc/AutoBuffer.cxx
new file mode 100644
index 000000000000..9eaa9968aa05
--- /dev/null
+++ b/sysui/source/win32/misc/AutoBuffer.cxx
@@ -0,0 +1,166 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+//------------------------------------------------------------------------
+// includes
+//------------------------------------------------------------------------
+
+#include "AutoBuffer.hxx"
+#include <osl/diagnose.h>
+
+#include <windows.h>
+
+//------------------------------------------------------------------------
+// namespace directives
+//------------------------------------------------------------------------
+
+using rtl::OUString;
+
+//------------------------------------------------------------------------
+//
+//------------------------------------------------------------------------
+
+CAutoUnicodeBuffer::CAutoUnicodeBuffer( size_t size, sal_Bool bLazyCreation ) :
+ m_buffSize( size ),
+ m_pBuff( NULL )
+{
+ if ( !bLazyCreation )
+ init( );
+}
+
+//------------------------------------------------------------------------
+//
+//------------------------------------------------------------------------
+
+CAutoUnicodeBuffer::~CAutoUnicodeBuffer( )
+{
+ delete [] m_pBuff;
+}
+
+//------------------------------------------------------------------------
+//
+//------------------------------------------------------------------------
+
+sal_Bool SAL_CALL CAutoUnicodeBuffer::resize( size_t new_size )
+{
+ OSL_ASSERT( new_size >= 0 );
+
+ if ( new_size != m_buffSize )
+ {
+ if ( new_size > m_buffSize )
+ {
+ delete [] m_pBuff;
+ m_pBuff = NULL;
+ }
+
+ m_buffSize = new_size;
+ }
+
+ return sal_True;
+}
+
+//------------------------------------------------------------------------
+//
+//------------------------------------------------------------------------
+
+void SAL_CALL CAutoUnicodeBuffer::empty( )
+{
+ if ( m_pBuff )
+ ZeroMemory( m_pBuff, m_buffSize * sizeof( sal_Unicode ) );
+}
+
+//------------------------------------------------------------------------
+//
+//------------------------------------------------------------------------
+
+sal_Bool SAL_CALL CAutoUnicodeBuffer::fill( const sal_Unicode* pContent, size_t nLen )
+{
+ OSL_ASSERT( pContent && m_buffSize && (m_buffSize >= nLen) );
+
+ init( );
+
+ sal_Bool bRet = sal_False;
+
+ if ( m_pBuff && pContent && nLen )
+ {
+ CopyMemory( m_pBuff, pContent, nLen * sizeof( sal_Unicode ) );
+ bRet = sal_True;
+ }
+
+ return bRet;
+}
+
+//------------------------------------------------------------------------
+//
+//------------------------------------------------------------------------
+
+size_t SAL_CALL CAutoUnicodeBuffer::size( ) const
+{
+ return m_buffSize;
+}
+
+//------------------------------------------------------------------------
+//
+//------------------------------------------------------------------------
+
+CAutoUnicodeBuffer::operator sal_Unicode*( )
+{
+ return m_pBuff;
+}
+
+//------------------------------------------------------------------------
+//
+//------------------------------------------------------------------------
+
+sal_Unicode* CAutoUnicodeBuffer::operator&( )
+{
+ return m_pBuff;
+}
+
+//------------------------------------------------------------------------
+//
+//------------------------------------------------------------------------
+
+const sal_Unicode* CAutoUnicodeBuffer::operator&( ) const
+{
+ return m_pBuff;
+}
+
+//------------------------------------------------------------------------
+//
+//------------------------------------------------------------------------
+
+void SAL_CALL CAutoUnicodeBuffer::init( )
+{
+ if ( !m_pBuff && (m_buffSize > 0) )
+ m_pBuff = new sal_Unicode[ m_buffSize ];
+
+ empty( );
+}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sysui/source/win32/misc/AutoBuffer.hxx b/sysui/source/win32/misc/AutoBuffer.hxx
new file mode 100644
index 000000000000..9d3b4e1c1b6c
--- /dev/null
+++ b/sysui/source/win32/misc/AutoBuffer.hxx
@@ -0,0 +1,86 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef _AUTO_BUFFER_HXX_
+#define _AUTO_BUFFER_HXX_
+
+//------------------------------------------------------------------------
+// includes
+//------------------------------------------------------------------------
+
+#include <sal/types.h>
+
+#include <rtl/ustring>
+
+//-------------------------------------------------------------
+// A simple unicode buffer management class, the class itself
+// is responsible for the allocated unicode buffer, any
+// modification of the buffer size outside the class may lead
+// to undefined behaviour
+//-------------------------------------------------------------
+
+class CAutoUnicodeBuffer
+{
+public:
+
+ // if bLazyCreation is true the buffer will be created
+ // when someone wants to fill the buffer
+ CAutoUnicodeBuffer( size_t size, sal_Bool bLazyCreation = sal_False );
+ ~CAutoUnicodeBuffer( );
+
+ // resizes the buffer
+ sal_Bool SAL_CALL resize( size_t new_size );
+
+ // zeros the buffer
+ void SAL_CALL empty( );
+
+ // fills the buffer with a given content
+ sal_Bool SAL_CALL fill( const sal_Unicode* pContent, size_t nLen );
+
+ // returns the size of the buffer
+ size_t SAL_CALL size( ) const;
+
+ // conversion operator
+ operator sal_Unicode*( );
+
+ // address operator
+ sal_Unicode* operator&( );
+
+ const sal_Unicode* operator&( ) const;
+
+private:
+ void SAL_CALL init( );
+
+private:
+ size_t m_buffSize; // the number of unicode chars
+ sal_Unicode* m_pBuff;
+};
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sysui/source/win32/misc/WinImplHelper.cxx b/sysui/source/win32/misc/WinImplHelper.cxx
new file mode 100644
index 000000000000..845a324400e3
--- /dev/null
+++ b/sysui/source/win32/misc/WinImplHelper.cxx
@@ -0,0 +1,361 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+//------------------------------------------------------------------------
+// includes
+//------------------------------------------------------------------------
+
+#include <osl/diagnose.h>
+#include "AutoBuffer.hxx"
+#include "WinImplHelper.hxx"
+#include <com/sun/star/uno/Sequence.hxx>
+
+#include <systools/win32/user9x.h>
+
+//------------------------------------------------------------
+// namespace directives
+//------------------------------------------------------------
+
+using rtl::OUString;
+using ::com::sun::star::lang::IllegalArgumentException;
+using ::com::sun::star::uno::Reference;
+using ::com::sun::star::uno::XInterface;
+using ::com::sun::star::uno::Any;
+using ::com::sun::star::uno::Sequence;
+
+//------------------------------------------------------------
+// determine if we are running under Win2000
+//------------------------------------------------------------
+
+sal_Bool SAL_CALL IsWin2000( )
+{
+ OSVERSIONINFOEX osvi;
+ BOOL bOsVersionInfoEx;
+ sal_Bool bRet = sal_False;
+
+ osvi.dwOSVersionInfoSize = sizeof( OSVERSIONINFOEX );
+ bOsVersionInfoEx = GetVersionEx( ( OSVERSIONINFO* )&osvi );
+ if( !bOsVersionInfoEx )
+ {
+ // if OSVERSIONINFOEX doesn't work
+ osvi.dwOSVersionInfoSize = sizeof( OSVERSIONINFO );
+ if( !GetVersionEx( ( OSVERSIONINFO* )&osvi ) )
+ return sal_False;
+ }
+
+ if( ( VER_PLATFORM_WIN32_NT == osvi.dwPlatformId ) && ( osvi.dwMajorVersion >= 5 ) )
+ bRet = sal_True;
+
+ return bRet;
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+void SAL_CALL ListboxAddString( HWND hwnd, const OUString& aString )
+{
+ LRESULT rc = SendMessageW(
+ hwnd, CB_ADDSTRING, 0, reinterpret_cast< LPARAM >(aString.getStr( )) );
+
+ OSL_ASSERT( (CB_ERR != rc) && (CB_ERRSPACE != rc) );
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+OUString SAL_CALL ListboxGetString( HWND hwnd, sal_Int32 aPosition )
+{
+ OSL_ASSERT( IsWindow( hwnd ) );
+
+ OUString aString;
+
+ LRESULT lItem =
+ SendMessageW( hwnd, CB_GETLBTEXTLEN, aPosition, 0 );
+
+ if ( (CB_ERR != lItem) && (lItem > 0) )
+ {
+ // message returns the len of a combobox item
+ // without trailing '\0' that's why += 1
+ lItem++;
+
+ CAutoUnicodeBuffer aBuff( lItem );
+
+ LRESULT lRet =
+ SendMessageW(
+ hwnd, CB_GETLBTEXT, aPosition,
+ reinterpret_cast<LPARAM>(&aBuff) );
+
+ OSL_ASSERT( lRet != CB_ERR );
+
+ if ( CB_ERR != lRet )
+ aString = OUString( aBuff, lRet );
+ }
+
+ return aString;
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+void SAL_CALL ListboxAddItem( HWND hwnd, const Any& aItem, const Reference< XInterface >& rXInterface, sal_Int16 aArgPos )
+ throw( IllegalArgumentException )
+{
+ OSL_ASSERT( IsWindow( hwnd ) );
+
+ if ( !aItem.hasValue( ) ||
+ aItem.getValueType( ) != getCppuType((OUString*)0) )
+ throw IllegalArgumentException(
+ OUString(RTL_CONSTASCII_USTRINGPARAM( "invalid value type or any has no value" )),
+ rXInterface,
+ aArgPos );
+
+ OUString cbItem;
+ aItem >>= cbItem;
+
+ ListboxAddString( hwnd, cbItem );
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+void SAL_CALL ListboxAddItems( HWND hwnd, const Any& aItemList, const Reference< XInterface >& rXInterface, sal_Int16 aArgPos )
+ throw( IllegalArgumentException )
+{
+ OSL_ASSERT( IsWindow( hwnd ) );
+
+ if ( !aItemList.hasValue( ) ||
+ aItemList.getValueType( ) != getCppuType((Sequence<OUString>*)0) )
+ throw IllegalArgumentException(
+ OUString(RTL_CONSTASCII_USTRINGPARAM( "invalid value type or any has no value" )),
+ rXInterface,
+ aArgPos );
+
+ Sequence< OUString > aStringList;
+ aItemList >>= aStringList;
+
+ sal_Int32 nItemCount = aStringList.getLength( );
+ for( sal_Int32 i = 0; i < nItemCount; i++ )
+ {
+ ListboxAddString( hwnd, aStringList[i] );
+ }
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+void SAL_CALL ListboxDeleteItem( HWND hwnd, const Any& aPosition, const Reference< XInterface >& rXInterface, sal_Int16 aArgPos )
+ throw( IllegalArgumentException )
+{
+ OSL_ASSERT( IsWindow( hwnd ) );
+
+ if ( !aPosition.hasValue( ) ||
+ ( (aPosition.getValueType( ) != getCppuType((sal_Int32*)0)) &&
+ (aPosition.getValueType( ) != getCppuType((sal_Int16*)0)) &&
+ (aPosition.getValueType( ) != getCppuType((sal_Int8*)0)) ) )
+ throw IllegalArgumentException(
+ OUString(RTL_CONSTASCII_USTRINGPARAM( "invalid value type or any has no value" )),
+ rXInterface,
+ aArgPos );
+
+ sal_Int32 nPos;
+ aPosition >>= nPos;
+
+ LRESULT lRet = SendMessage( hwnd, CB_DELETESTRING, nPos, 0 );
+
+ // if the return value is CB_ERR the given
+ // index was not correct
+ if ( CB_ERR == lRet )
+ throw IllegalArgumentException(
+ OUString(RTL_CONSTASCII_USTRINGPARAM( "inavlid item position" )),
+ rXInterface,
+ aArgPos );
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+void SAL_CALL ListboxDeleteItems( HWND hwnd, const Any& /*unused*/, const Reference< XInterface >& rXInterface, sal_Int16 aArgPos )
+ throw( IllegalArgumentException )
+{
+ OSL_ASSERT( IsWindow( hwnd ) );
+
+ LRESULT lRet = 0;
+
+ do
+ {
+ // the return value on success is the number
+ // of remaining elements in the listbox
+ lRet = SendMessageW( hwnd, CB_DELETESTRING, 0, 0 );
+ }
+ while ( (lRet != CB_ERR) && (lRet > 0) );
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+void SAL_CALL ListboxSetSelectedItem( HWND hwnd, const Any& aPosition, const Reference< XInterface >& rXInterface, sal_Int16 aArgPos )
+ throw( IllegalArgumentException )
+{
+ OSL_ASSERT( IsWindow( hwnd ) );
+
+ if ( !aPosition.hasValue( ) ||
+ ( (aPosition.getValueType( ) != getCppuType((sal_Int32*)0)) &&
+ (aPosition.getValueType( ) != getCppuType((sal_Int16*)0)) &&
+ (aPosition.getValueType( ) != getCppuType((sal_Int8*)0)) ) )
+ throw IllegalArgumentException(
+ OUString(RTL_CONSTASCII_USTRINGPARAM( "invalid value type or any has no value" )),
+ rXInterface,
+ aArgPos );
+
+ sal_Int32 nPos;
+ aPosition >>= nPos;
+
+ if ( nPos < -1 )
+ throw IllegalArgumentException(
+ OUString(RTL_CONSTASCII_USTRINGPARAM("invalid index")),
+ rXInterface,
+ aArgPos );
+
+ LRESULT lRet = SendMessageW( hwnd, CB_SETCURSEL, nPos, 0 );
+
+ if ( (CB_ERR == lRet) && (-1 != nPos) )
+ throw IllegalArgumentException(
+ OUString(RTL_CONSTASCII_USTRINGPARAM("invalid index")),
+ rXInterface,
+ aArgPos );
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+Any SAL_CALL ListboxGetItems( HWND hwnd )
+{
+ OSL_ASSERT( IsWindow( hwnd ) );
+
+ LRESULT nItemCount = SendMessageW( hwnd, CB_GETCOUNT, 0, 0 );
+
+ Sequence< OUString > aItemList;
+
+ if ( CB_ERR != nItemCount )
+ {
+ aItemList.realloc( nItemCount );
+
+ for ( sal_Int32 i = 0; i < nItemCount; i++ )
+ {
+ aItemList[i] = ListboxGetString( hwnd, i );
+ }
+ }
+
+ Any aAny;
+ aAny <<= aItemList;
+
+ return aAny;
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+Any SAL_CALL ListboxGetSelectedItem( HWND hwnd )
+{
+ OSL_ASSERT( IsWindow( hwnd ) );
+
+ LRESULT idxItem = SendMessageW( hwnd, CB_GETCURSEL, 0, 0 );
+
+ Any aAny;
+ aAny <<= ListboxGetString( hwnd, idxItem );
+
+ return aAny;
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+Any SAL_CALL CheckboxGetState( HWND hwnd )
+{
+ OSL_ASSERT( IsWindow( hwnd ) );
+
+ LRESULT lChkState = SendMessageW( hwnd, BM_GETCHECK, 0, 0 );
+ sal_Bool bChkState = (lChkState == BST_CHECKED) ? sal_True : sal_False;
+ Any aAny;
+ aAny.setValue( &bChkState, getCppuType((sal_Bool*)0) );
+ return aAny;
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+void SAL_CALL CheckboxSetState(
+ HWND hwnd, const ::com::sun::star::uno::Any& aState, const Reference< XInterface >& rXInterface, sal_Int16 aArgPos )
+ throw( IllegalArgumentException )
+{
+ OSL_ASSERT( IsWindow( hwnd ) );
+
+ if ( !aState.hasValue( ) ||
+ aState.getValueType( ) != getCppuType((sal_Bool*)0) )
+ throw IllegalArgumentException(
+ OUString(RTL_CONSTASCII_USTRINGPARAM( "invalid value type or any has no value" )),
+ rXInterface,
+ aArgPos );
+
+ sal_Bool bCheckState = *reinterpret_cast< const sal_Bool* >( aState.getValue( ) );
+ WPARAM wParam = bCheckState ? BST_CHECKED : BST_UNCHECKED;
+ SendMessageW( hwnd, BM_SETCHECK, wParam, 0 );
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+sal_uInt32 SAL_CALL _wcslenex( const sal_Unicode* pStr )
+{
+ if ( !pStr )
+ return 0;
+
+ const sal_Unicode* pTemp = pStr;
+ sal_uInt32 strLen = 0;
+ while( *pTemp || *(pTemp + 1) )
+ {
+ pTemp++;
+ strLen++;
+ }
+
+ return strLen;
+}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sysui/source/win32/misc/WinImplHelper.hxx b/sysui/source/win32/misc/WinImplHelper.hxx
new file mode 100644
index 000000000000..9999a8832009
--- /dev/null
+++ b/sysui/source/win32/misc/WinImplHelper.hxx
@@ -0,0 +1,91 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+
+#ifndef _WINIMPLHELPER_HXX_
+#define _WINIMPLHELPER_HXX_
+
+//------------------------------------------------------------------------
+// includes
+//------------------------------------------------------------------------
+
+#include <sal/types.h>
+
+#include <rtl/ustring>
+
+#include <windows.h>
+#include <com/sun/star/uno/Any.hxx>
+#include <com/sun/star/lang/IllegalArgumentException.hpp>
+
+//------------------------------------------------------------------------
+// deklarations
+//------------------------------------------------------------------------
+
+sal_Bool SAL_CALL IsWin2000( );
+
+// set actions
+void SAL_CALL ListboxAddItem(
+ HWND hwnd, const ::com::sun::star::uno::Any& aItem, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rXInterface, sal_Int16 aArgPos )
+ throw( ::com::sun::star::lang::IllegalArgumentException );
+
+void SAL_CALL ListboxAddItems(
+ HWND hwnd, const ::com::sun::star::uno::Any& aItemList, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rXInterface, sal_Int16 aArgPos )
+ throw( ::com::sun::star::lang:: IllegalArgumentException );
+
+void SAL_CALL ListboxDeleteItem(
+ HWND hwnd, const ::com::sun::star::uno::Any& aPosition, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rXInterface, sal_Int16 aArgPos )
+ throw( ::com::sun::star::lang::IllegalArgumentException );
+
+void SAL_CALL ListboxDeleteItems(
+ HWND hwnd, const ::com::sun::star::uno::Any& aUnused, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rXInterface, sal_Int16 aArgPos )
+ throw( ::com::sun::star::lang::IllegalArgumentException );
+
+void SAL_CALL ListboxSetSelectedItem(
+ HWND hwnd, const ::com::sun::star::uno::Any& aPosition, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rXInterface, sal_Int16 aArgPos )
+ throw( ::com::sun::star::lang::IllegalArgumentException );
+
+// get actions
+::com::sun::star::uno::Any SAL_CALL ListboxGetItems( HWND hwnd );
+::com::sun::star::uno::Any SAL_CALL ListboxGetSelectedItem( HWND hwnd );
+
+// checkbox helper functions
+::com::sun::star::uno::Any SAL_CALL CheckboxGetState( HWND hwnd );
+
+void SAL_CALL CheckboxSetState(
+ HWND hwnd, const ::com::sun::star::uno::Any& aState, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rXInterface, sal_Int16 aArgPos )
+ throw( ::com::sun::star::lang::IllegalArgumentException );
+
+// calculates the length of '\0' separated and '\0\0'
+// ending strings used in some Win32 functions
+// e.g. Filter\0*.txt\0\0
+// the returned length excludes the last '\0'
+sal_uInt32 SAL_CALL _wcslenex( const sal_Unicode* pStr );
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sysui/source/win32/misc/makefile.mk b/sysui/source/win32/misc/makefile.mk
new file mode 100755
index 000000000000..b3b94be7640d
--- /dev/null
+++ b/sysui/source/win32/misc/makefile.mk
@@ -0,0 +1,52 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+PRJNAME=sysui
+TARGET=utils
+LIBTARGET=NO
+
+# --- Settings ----------------------------------
+
+.INCLUDE : settings.mk
+
+CFLAGS+=/GX
+
+# --- Files -------------------------------------
+
+SLOFILES=$(SLO)$/WinImplHelper.obj\
+ $(SLO)$/AutoBuffer.obj\
+ $(SLO)$/resourceprovider.obj
+
+LIB1TARGET=$(SLB)$/$(TARGET).lib
+LIB1OBJFILES=$(SLOFILES)
+
+# --- Targets ----------------------------------
+
+.INCLUDE : target.mk
+
+
diff --git a/sysui/source/win32/misc/resourceprovider.cxx b/sysui/source/win32/misc/resourceprovider.cxx
new file mode 100644
index 000000000000..dc95c6d08fb2
--- /dev/null
+++ b/sysui/source/win32/misc/resourceprovider.cxx
@@ -0,0 +1,232 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+//------------------------------------------------------------------------
+// includes
+//------------------------------------------------------------------------
+
+#include <osl/diagnose.h>
+#include <rtl/ustrbuf.hxx>
+#include "resourceprovider.hxx"
+#include <tools/resmgr.hxx>
+#include <com/sun/star/ui/dialogs/CommonFilePickerElementIds.hpp>
+#include <com/sun/star/ui/dialogs/ExtendedFilePickerElementIds.hpp>
+
+#include <svtools/svtools.hrc>
+
+//------------------------------------------------------------
+// namespace directives
+//------------------------------------------------------------
+
+using rtl::OUString;
+using namespace ::com::sun::star::ui::dialogs::ExtendedFilePickerElementIds;
+using namespace ::com::sun::star::ui::dialogs::CommonFilePickerElementIds;
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+#define RES_NAME svt
+
+// because the label of a listbox is
+// a control itself (static text) we
+// have defined a control id for this
+// label which is the listbox control
+// id + 100
+#define LB_LABEL_OFFSET 100
+
+const rtl::OUString TILDE = OUString(RTL_CONSTASCII_USTRINGPARAM( "~" ));
+const sal_Unicode TILDE_SIGN = L'~';
+
+#define FOLDERPICKER_TITLE 500
+#define FOLDER_PICKER_DEF_DESCRIPTION 501
+
+//------------------------------------------------------------
+// we have to translate control ids to resource ids
+//------------------------------------------------------------
+
+struct _Entry
+{
+ sal_Int32 ctrlId;
+ sal_Int16 resId;
+};
+
+_Entry CtrlIdToResIdTable[] = {
+ { CHECKBOX_AUTOEXTENSION, STR_SVT_FILEPICKER_AUTO_EXTENSION },
+ { CHECKBOX_PASSWORD, STR_SVT_FILEPICKER_PASSWORD },
+ { CHECKBOX_FILTEROPTIONS, STR_SVT_FILEPICKER_FILTER_OPTIONS },
+ { CHECKBOX_READONLY, STR_SVT_FILEPICKER_READONLY },
+ { CHECKBOX_LINK, STR_SVT_FILEPICKER_INSERT_AS_LINK },
+ { CHECKBOX_PREVIEW, STR_SVT_FILEPICKER_SHOW_PREVIEW },
+ { PUSHBUTTON_PLAY, STR_SVT_FILEPICKER_PLAY },
+ { LISTBOX_VERSION + LB_LABEL_OFFSET, STR_SVT_FILEPICKER_VERSION },
+ { LISTBOX_TEMPLATE + LB_LABEL_OFFSET, STR_SVT_FILEPICKER_TEMPLATES },
+ { LISTBOX_IMAGE_TEMPLATE + LB_LABEL_OFFSET, STR_SVT_FILEPICKER_IMAGE_TEMPLATE },
+ { CHECKBOX_SELECTION, STR_SVT_FILEPICKER_SELECTION },
+ { FOLDERPICKER_TITLE, STR_SVT_FOLDERPICKER_DEFAULT_TITLE },
+ { FOLDER_PICKER_DEF_DESCRIPTION, STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION }
+};
+
+const sal_Int32 SIZE_TABLE = sizeof( CtrlIdToResIdTable ) / sizeof( _Entry );
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+sal_Int16 CtrlIdToResId( sal_Int32 aControlId )
+{
+ sal_Int16 aResId = -1;
+
+ for ( sal_Int32 i = 0; i < SIZE_TABLE; i++ )
+ {
+ if ( CtrlIdToResIdTable[i].ctrlId == aControlId )
+ {
+ aResId = CtrlIdToResIdTable[i].resId;
+ break;
+ }
+ }
+
+ return aResId;
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+class CResourceProvider_Impl
+{
+public:
+
+ //-------------------------------------
+ //
+ //-------------------------------------
+
+ CResourceProvider_Impl( )
+ {
+ m_ResMgr = CREATEVERSIONRESMGR( RES_NAME );
+ }
+
+ //-------------------------------------
+ //
+ //-------------------------------------
+
+ ~CResourceProvider_Impl( )
+ {
+ delete m_ResMgr;
+ }
+
+ //-------------------------------------
+ //
+ //-------------------------------------
+
+ OUString getResString( sal_Int16 aId )
+ {
+ String aResString;
+ OUString aResOUString;
+
+ try
+ {
+ OSL_ASSERT( m_ResMgr );
+
+ // translate the control id to a resource id
+ sal_Int16 aResId = CtrlIdToResId( aId );
+
+ if ( aResId > -1 )
+ {
+ aResString = String( ResId( aResId, m_ResMgr ) );
+ aResOUString = OUString( aResString );
+
+ // remove '~' signs, if there are two '~' signs
+ // in a row we remove only one of them
+ if ( aResOUString.indexOf( TILDE ) > -1 )
+ {
+ sal_Int32 nStrLen = aResOUString.getLength( );
+ rtl::OUStringBuffer aBuffer( nStrLen );
+ sal_Int32 i = 0;
+ const sal_Unicode* pPos = aResOUString.getStr( );
+ const sal_Unicode* pNext = aResOUString.getStr( ) + 1;
+ const sal_Unicode* pEnd = aResOUString.getStr( ) + nStrLen;
+
+ while( pPos < pEnd )
+ {
+ // we insert the next character only if the current character
+ // in not a '~' or the following character is also a '~'
+ if ( (*pPos != TILDE_SIGN) ||
+ ((*pPos == TILDE_SIGN) && (pNext < pEnd) && (*pNext == TILDE_SIGN)) )
+ {
+ aBuffer.insert( i, *pPos );
+ i++;
+ }
+
+ pPos++;
+ pNext++;
+ }
+
+ aResOUString = aBuffer.makeStringAndClear( );
+ }
+ }
+ }
+ catch(...)
+ {
+ }
+
+ return aResOUString;
+ }
+
+public:
+ ResMgr* m_ResMgr;
+};
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+CResourceProvider::CResourceProvider( ) :
+ m_pImpl( new CResourceProvider_Impl() )
+{
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+CResourceProvider::~CResourceProvider( )
+{
+ delete m_pImpl;
+}
+
+//------------------------------------------------------------
+//
+//------------------------------------------------------------
+
+OUString CResourceProvider::getResString( sal_Int32 aId )
+{
+ return m_pImpl->getResString( aId );
+}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sysui/source/win32/misc/resourceprovider.hxx b/sysui/source/win32/misc/resourceprovider.hxx
new file mode 100644
index 000000000000..bb43e3a1717c
--- /dev/null
+++ b/sysui/source/win32/misc/resourceprovider.hxx
@@ -0,0 +1,61 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+
+#ifndef _RESOURCEPROVIDER_HXX_
+#define _RESOURCEPROVIDER_HXX_
+
+//------------------------------------------------------------------------
+// includes
+//------------------------------------------------------------------------
+
+#include <sal/types.h>
+
+#include <rtl/ustring>
+
+//------------------------------------------------------------------------
+// deklarations
+//------------------------------------------------------------------------
+
+class CResourceProvider_Impl;
+
+class CResourceProvider
+{
+public:
+ CResourceProvider( );
+ ~CResourceProvider( );
+
+ rtl::OUString getResString( sal_Int32 aId );
+
+private:
+ CResourceProvider_Impl* m_pImpl;
+};
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sysui/util/checksize.pl b/sysui/util/checksize.pl
new file mode 100755
index 000000000000..559dcc45f68e
--- /dev/null
+++ b/sysui/util/checksize.pl
@@ -0,0 +1,87 @@
+:
+eval 'exec perl -wS $0 ${1+"$@"}'
+ if 0;
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+#
+#
+#
+
+my
+$is_debug=0;
+my $err = 0;
+my $path = "../" . $ENV{'INPATH'} . "/";
+
+#Path of the directory from which the recursion starts (must have ending '/').
+print "Checking:$path\n";
+# Initiate the recursion
+&RecurseDirs($path);
+if ($err > 0)
+{
+ print "Error: $err damaged files encountered\n";
+ exit(1); # stop dmake
+} else
+{
+ print "ok.\n";
+}
+exit;
+
+#### SUBROUTINES SECTION ####
+
+# Function that recurses through the directory tree calling FileFunction on all files
+sub RecurseDirs {
+ my ($path) = @_;
+ my $file; #Variable for a file
+
+ opendir (DIRECTORY, $path) or
+ die "Error: Can't read $path\n";
+ my @all_files = grep (!/^\.\.?$/, readdir (DIRECTORY)); #Read all the files except for '.' and '..'
+ closedir (DIRECTORY);
+
+ foreach $file (@all_files) {
+ if (-d "$path$file/") {
+ &RecurseDirs("$path$file/");
+ } else {
+ &check($path, $file);
+ }
+ }
+}
+
+############################################################################
+sub check #04.02.2005 13:40
+############################################################################
+ {
+ my $path = shift;
+ my $file = shift;
+ print "$path$file\n" if ((-e "$path$file") && $is_debug);
+ # don't check dpc,flag,rpmflag,sdf [obj for UNX] files, or etc subdirectory
+ return if ( ($file =~ /.+\.(dpc|\w*?flag)/) || ($file =~ /.+\.obj/ && $ENV{GUI} eq 'UNX') || ($path =~ /.+etc/) || ($path =~ /.+logs/) || ($path =~ /.+sdf/) );
+ if ( -z "$path$file" ) {
+ print "Error: $path$file 0 Bytes!\n";
+ $err++;
+ }
+ }
diff --git a/sysui/util/exports.dxp b/sysui/util/exports.dxp
new file mode 100755
index 000000000000..f0e1c69934bc
--- /dev/null
+++ b/sysui/util/exports.dxp
@@ -0,0 +1,2 @@
+component_getImplementationEnvironment
+component_getFactory
diff --git a/sysui/util/makefile.mk b/sysui/util/makefile.mk
new file mode 100755
index 000000000000..bea30771933f
--- /dev/null
+++ b/sysui/util/makefile.mk
@@ -0,0 +1,44 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..
+
+PRJNAME=sysui
+TARGET=sysui
+USE_LDUMP2=TRUE
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+
+.INCLUDE : target.mk
+
+ALLTAR : $(MISC)$/checksize.done
+
+$(MISC)$/checksize.done .PHONY:
+ $(PERL) checksize.pl
+