diff options
Diffstat (limited to 'sysui')
628 files changed, 8749 insertions, 0 deletions
diff --git a/sysui/desktop/cleanversion/makefile.mk b/sysui/desktop/cleanversion/makefile.mk new file mode 100644 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 100644 index 000000000000..608496d9e2f4 --- /dev/null +++ b/sysui/desktop/debian/control @@ -0,0 +1,6 @@ +Description: %productname desktop integration +Maintainer: OpenOffice.org +Architecture: all +Provides: openoffice.org-desktop-integration, openoffice.org-unbundled +Conflicts: openofficeorg-desktop-integration, openofficeorg-debian-menus, openoffice.org-bundled +Replaces: openofficeorg-desktop-integration, openofficeorg-debian-menus diff --git a/sysui/desktop/debian/makefile.mk b/sysui/desktop/debian/makefile.mk new file mode 100644 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 100644 index 000000000000..bf30a918cf0b --- /dev/null +++ b/sysui/desktop/debian/openoffice.org-debian-menus @@ -0,0 +1,42 @@ +?package(openoffice.org-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(openoffice.org-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(openoffice.org-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(openoffice.org-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(openoffice.org-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(openoffice.org-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 100644 index 000000000000..19753b529e97 --- /dev/null +++ b/sysui/desktop/debian/postinst @@ -0,0 +1,157 @@ +#!/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-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-template otg +application/vnd.oasis.opendocument.presentation odp +application/vnd.oasis.opendocument.presentation-template otp +application/vnd.oasis.opendocument.spreadsheet ods +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 ' +/^# 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; %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-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-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-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 100644 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 100644 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 100644 index 000000000000..1649971dad99 --- /dev/null +++ b/sysui/desktop/freedesktop/freedesktop-menus.spec @@ -0,0 +1,337 @@ +# 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: openoffice.org3-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 + +%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=/usr +export GNOME_MIME_THEME=hicolor + +./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 + + +#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-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-template otg +application/vnd.oasis.opendocument.presentation odp +application/vnd.oasis.opendocument.presentation-template otp +application/vnd.oasis.opendocument.spreadsheet ods +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 ' +/^# 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-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-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-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-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) +%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 100644 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 Binary files differnew file mode 100644 index 000000000000..e1ed62c2628b --- /dev/null +++ b/sysui/desktop/icons/base.icns diff --git a/sysui/desktop/icons/calc.icns b/sysui/desktop/icons/calc.icns Binary files differnew file mode 100644 index 000000000000..a3d4edc5728a --- /dev/null +++ b/sysui/desktop/icons/calc.icns diff --git a/sysui/desktop/icons/configuration.icns b/sysui/desktop/icons/configuration.icns Binary files differnew file mode 100644 index 000000000000..fe0f0946826a --- /dev/null +++ b/sysui/desktop/icons/configuration.icns diff --git a/sysui/desktop/icons/database.icns b/sysui/desktop/icons/database.icns Binary files differnew file mode 100644 index 000000000000..115dc859cdcd --- /dev/null +++ b/sysui/desktop/icons/database.icns diff --git a/sysui/desktop/icons/database.ico b/sysui/desktop/icons/database.ico Binary files differnew file mode 100644 index 000000000000..171d39bb9643 --- /dev/null +++ b/sysui/desktop/icons/database.ico diff --git a/sysui/desktop/icons/draw.icns b/sysui/desktop/icons/draw.icns Binary files differnew file mode 100644 index 000000000000..da511e30dd79 --- /dev/null +++ b/sysui/desktop/icons/draw.icns diff --git a/sysui/desktop/icons/drawing-template.icns b/sysui/desktop/icons/drawing-template.icns Binary files differnew file mode 100644 index 000000000000..407484582f93 --- /dev/null +++ b/sysui/desktop/icons/drawing-template.icns diff --git a/sysui/desktop/icons/drawing-template.ico b/sysui/desktop/icons/drawing-template.ico Binary files differnew file mode 100644 index 000000000000..5b5a74e99f41 --- /dev/null +++ b/sysui/desktop/icons/drawing-template.ico diff --git a/sysui/desktop/icons/drawing.icns b/sysui/desktop/icons/drawing.icns Binary files differnew file mode 100644 index 000000000000..5322625b0507 --- /dev/null +++ b/sysui/desktop/icons/drawing.icns diff --git a/sysui/desktop/icons/drawing.ico b/sysui/desktop/icons/drawing.ico Binary files differnew file mode 100644 index 000000000000..1065490a2807 --- /dev/null +++ b/sysui/desktop/icons/drawing.ico diff --git a/sysui/desktop/icons/empty-document.icns b/sysui/desktop/icons/empty-document.icns Binary files differnew file mode 100644 index 000000000000..ab676f6ef8f1 --- /dev/null +++ b/sysui/desktop/icons/empty-document.icns diff --git a/sysui/desktop/icons/empty-document.ico b/sysui/desktop/icons/empty-document.ico Binary files differnew file mode 100644 index 000000000000..4115c3089682 --- /dev/null +++ b/sysui/desktop/icons/empty-document.ico diff --git a/sysui/desktop/icons/empty-template.icns b/sysui/desktop/icons/empty-template.icns Binary files differnew file mode 100644 index 000000000000..50e63b94256d --- /dev/null +++ b/sysui/desktop/icons/empty-template.icns diff --git a/sysui/desktop/icons/empty-template.ico b/sysui/desktop/icons/empty-template.ico Binary files differnew file mode 100644 index 000000000000..dec147610af4 --- /dev/null +++ b/sysui/desktop/icons/empty-template.ico diff --git a/sysui/desktop/icons/extension.icns b/sysui/desktop/icons/extension.icns Binary files differnew file mode 100755 index 000000000000..cec1b92c37b2 --- /dev/null +++ b/sysui/desktop/icons/extension.icns diff --git a/sysui/desktop/icons/formula.icns b/sysui/desktop/icons/formula.icns Binary files differnew file mode 100644 index 000000000000..4620688c79c6 --- /dev/null +++ b/sysui/desktop/icons/formula.icns diff --git a/sysui/desktop/icons/formula.ico b/sysui/desktop/icons/formula.ico Binary files differnew file mode 100644 index 000000000000..e06aef187734 --- /dev/null +++ b/sysui/desktop/icons/formula.ico diff --git a/sysui/desktop/icons/hicolor/128x128/apps/base.png b/sysui/desktop/icons/hicolor/128x128/apps/base.png Binary files differnew file mode 100755 index 000000000000..398c2f058d92 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/apps/base.png diff --git a/sysui/desktop/icons/hicolor/128x128/apps/calc.png b/sysui/desktop/icons/hicolor/128x128/apps/calc.png Binary files differnew file mode 100644 index 000000000000..8156308833f7 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/apps/calc.png diff --git a/sysui/desktop/icons/hicolor/128x128/apps/draw.png b/sysui/desktop/icons/hicolor/128x128/apps/draw.png Binary files differnew file mode 100755 index 000000000000..3f71b25fe107 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/apps/draw.png diff --git a/sysui/desktop/icons/hicolor/128x128/apps/impress.png b/sysui/desktop/icons/hicolor/128x128/apps/impress.png Binary files differnew file mode 100755 index 000000000000..b62b449e574f --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/apps/impress.png diff --git a/sysui/desktop/icons/hicolor/128x128/apps/main.png b/sysui/desktop/icons/hicolor/128x128/apps/main.png Binary files differnew file mode 100755 index 000000000000..1b51a60bddea --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/apps/main.png diff --git a/sysui/desktop/icons/hicolor/128x128/apps/math.png b/sysui/desktop/icons/hicolor/128x128/apps/math.png Binary files differnew file mode 100755 index 000000000000..d37c98aa405e --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/apps/math.png diff --git a/sysui/desktop/icons/hicolor/128x128/apps/startcenter.png b/sysui/desktop/icons/hicolor/128x128/apps/startcenter.png Binary files differnew file mode 100644 index 000000000000..1b51a60bddea --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/apps/startcenter.png diff --git a/sysui/desktop/icons/hicolor/128x128/apps/writer.png b/sysui/desktop/icons/hicolor/128x128/apps/writer.png Binary files differnew file mode 100755 index 000000000000..b991a6d2e233 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/apps/writer.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/database.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/database.png Binary files differnew file mode 100644 index 000000000000..93b8e60cb276 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/database.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/drawing-template.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/drawing-template.png Binary files differnew file mode 100644 index 000000000000..15b80e039313 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/drawing-template.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/drawing.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/drawing.png Binary files differnew file mode 100644 index 000000000000..9d47f747dffa --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/drawing.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/formula.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/formula.png Binary files differnew file mode 100644 index 000000000000..184dd0ca6ca8 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/formula.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/master-document.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/master-document.png Binary files differnew file mode 100644 index 000000000000..acf19ff835f2 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/master-document.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-database.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-database.png Binary files differnew file mode 100755 index 000000000000..f95bbf137a5b --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-database.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-drawing-template.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-drawing-template.png Binary files differnew file mode 100755 index 000000000000..630a51ebb430 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-drawing-template.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-drawing.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-drawing.png Binary files differnew file mode 100755 index 000000000000..82ac8d15bfc3 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-drawing.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-formula.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-formula.png Binary files differnew file mode 100755 index 000000000000..c838eaa12851 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-formula.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-master-document.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-master-document.png Binary files differnew file mode 100755 index 000000000000..640e2d98614c --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-master-document.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-presentation-template.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-presentation-template.png Binary files differnew file mode 100755 index 000000000000..c4954802e82c --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-presentation-template.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-presentation.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-presentation.png Binary files differnew file mode 100755 index 000000000000..1d5acededb94 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-presentation.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-spreadsheet-template.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-spreadsheet-template.png Binary files differnew file mode 100644 index 000000000000..01781db415fa --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-spreadsheet-template.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-spreadsheet.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-spreadsheet.png Binary files differnew file mode 100644 index 000000000000..bc46714afa92 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-spreadsheet.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-text-template.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-text-template.png Binary files differnew file mode 100755 index 000000000000..569bd514fcb7 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-text-template.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-text.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-text.png Binary files differnew file mode 100755 index 000000000000..b45244ac1a4b --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-text.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-web-template.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-web-template.png Binary files differnew file mode 100755 index 000000000000..8e6c4580e9fd --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/oasis-web-template.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/presentation-template.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/presentation-template.png Binary files differnew file mode 100644 index 000000000000..c8a3813188de --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/presentation-template.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/presentation.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/presentation.png Binary files differnew file mode 100644 index 000000000000..2a0552eb62b4 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/presentation.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/spreadsheet-template.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/spreadsheet-template.png Binary files differnew file mode 100644 index 000000000000..cc7aa51bcb3c --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/spreadsheet-template.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/spreadsheet.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/spreadsheet.png Binary files differnew file mode 100644 index 000000000000..c701fd7b5d46 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/spreadsheet.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/text-template.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/text-template.png Binary files differnew file mode 100644 index 000000000000..652c1ce480c9 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/text-template.png diff --git a/sysui/desktop/icons/hicolor/128x128/mimetypes/text.png b/sysui/desktop/icons/hicolor/128x128/mimetypes/text.png Binary files differnew file mode 100644 index 000000000000..f881aca21839 --- /dev/null +++ b/sysui/desktop/icons/hicolor/128x128/mimetypes/text.png diff --git a/sysui/desktop/icons/hicolor/16x16/apps/base.png b/sysui/desktop/icons/hicolor/16x16/apps/base.png Binary files differnew file mode 100644 index 000000000000..57a4477cc662 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/apps/base.png diff --git a/sysui/desktop/icons/hicolor/16x16/apps/calc.png b/sysui/desktop/icons/hicolor/16x16/apps/calc.png Binary files differnew file mode 100644 index 000000000000..78f923d0edf7 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/apps/calc.png diff --git a/sysui/desktop/icons/hicolor/16x16/apps/draw.png b/sysui/desktop/icons/hicolor/16x16/apps/draw.png Binary files differnew file mode 100644 index 000000000000..7779dd46f374 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/apps/draw.png diff --git a/sysui/desktop/icons/hicolor/16x16/apps/impress.png b/sysui/desktop/icons/hicolor/16x16/apps/impress.png Binary files differnew file mode 100644 index 000000000000..ff07597b1d5e --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/apps/impress.png diff --git a/sysui/desktop/icons/hicolor/16x16/apps/main.png b/sysui/desktop/icons/hicolor/16x16/apps/main.png Binary files differnew file mode 100755 index 000000000000..3aa8f08a8c5d --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/apps/main.png diff --git a/sysui/desktop/icons/hicolor/16x16/apps/math.png b/sysui/desktop/icons/hicolor/16x16/apps/math.png Binary files differnew file mode 100644 index 000000000000..10c71e6caa2e --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/apps/math.png diff --git a/sysui/desktop/icons/hicolor/16x16/apps/printeradmin.png b/sysui/desktop/icons/hicolor/16x16/apps/printeradmin.png Binary files differnew file mode 100755 index 000000000000..399076c9934d --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/apps/printeradmin.png diff --git a/sysui/desktop/icons/hicolor/16x16/apps/startcenter.png b/sysui/desktop/icons/hicolor/16x16/apps/startcenter.png Binary files differnew file mode 100644 index 000000000000..3aa8f08a8c5d --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/apps/startcenter.png diff --git a/sysui/desktop/icons/hicolor/16x16/apps/writer.png b/sysui/desktop/icons/hicolor/16x16/apps/writer.png Binary files differnew file mode 100644 index 000000000000..2b82110e180b --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/apps/writer.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/database.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/database.png Binary files differnew file mode 100644 index 000000000000..fb32e00a1ba6 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/database.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/drawing-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/drawing-template.png Binary files differnew file mode 100644 index 000000000000..f045190f395a --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/drawing-template.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/drawing.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/drawing.png Binary files differnew file mode 100644 index 000000000000..3bd7b7d29cb1 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/drawing.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/extension.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/extension.png Binary files differnew file mode 100755 index 000000000000..be3c8ef4d3cf --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/extension.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/formula.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/formula.png Binary files differnew file mode 100644 index 000000000000..e7e95875efed --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/formula.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/master-document.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/master-document.png Binary files differnew file mode 100644 index 000000000000..e442a0c0985d --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/master-document.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-database.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-database.png Binary files differnew file mode 100644 index 000000000000..e4ae28570f08 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-database.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-drawing-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-drawing-template.png Binary files differnew file mode 100644 index 000000000000..eaad54fcdf7e --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-drawing-template.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-drawing.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-drawing.png Binary files differnew file mode 100644 index 000000000000..3d66cc97eb5e --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-drawing.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-formula.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-formula.png Binary files differnew file mode 100644 index 000000000000..4cefbb690d10 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-formula.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-master-document.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-master-document.png Binary files differnew file mode 100644 index 000000000000..12aab4a27c32 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-master-document.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-presentation-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-presentation-template.png Binary files differnew file mode 100644 index 000000000000..9f281836d793 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-presentation-template.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-presentation.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-presentation.png Binary files differnew file mode 100644 index 000000000000..46942cba2852 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-presentation.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-spreadsheet-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-spreadsheet-template.png Binary files differnew file mode 100644 index 000000000000..4781bfc3a6fc --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-spreadsheet-template.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-spreadsheet.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-spreadsheet.png Binary files differnew file mode 100644 index 000000000000..abc38d4310c9 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-spreadsheet.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-text-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-text-template.png Binary files differnew file mode 100644 index 000000000000..9836814c6c2c --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-text-template.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-text.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-text.png Binary files differnew file mode 100644 index 000000000000..06c1f30c8fa2 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-text.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-web-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-web-template.png Binary files differnew file mode 100644 index 000000000000..01c04a0ea697 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/oasis-web-template.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/presentation-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/presentation-template.png Binary files differnew file mode 100644 index 000000000000..df1d5293a83d --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/presentation-template.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/presentation.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/presentation.png Binary files differnew file mode 100644 index 000000000000..6803ae4c7492 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/presentation.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/spreadsheet-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/spreadsheet-template.png Binary files differnew file mode 100644 index 000000000000..5be785e40f64 --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/spreadsheet-template.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/spreadsheet.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/spreadsheet.png Binary files differnew file mode 100644 index 000000000000..46c72242a02a --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/spreadsheet.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/text-template.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/text-template.png Binary files differnew file mode 100644 index 000000000000..2827f29f3a4e --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/text-template.png diff --git a/sysui/desktop/icons/hicolor/16x16/mimetypes/text.png b/sysui/desktop/icons/hicolor/16x16/mimetypes/text.png Binary files differnew file mode 100644 index 000000000000..c0d1cd3dcc7a --- /dev/null +++ b/sysui/desktop/icons/hicolor/16x16/mimetypes/text.png diff --git a/sysui/desktop/icons/hicolor/32x32/apps/base.png b/sysui/desktop/icons/hicolor/32x32/apps/base.png Binary files differnew file mode 100644 index 000000000000..f4772d75dac3 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/apps/base.png diff --git a/sysui/desktop/icons/hicolor/32x32/apps/calc.png b/sysui/desktop/icons/hicolor/32x32/apps/calc.png Binary files differnew file mode 100644 index 000000000000..a1eae7b37a17 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/apps/calc.png diff --git a/sysui/desktop/icons/hicolor/32x32/apps/draw.png b/sysui/desktop/icons/hicolor/32x32/apps/draw.png Binary files differnew file mode 100644 index 000000000000..4dc928a35168 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/apps/draw.png diff --git a/sysui/desktop/icons/hicolor/32x32/apps/impress.png b/sysui/desktop/icons/hicolor/32x32/apps/impress.png Binary files differnew file mode 100644 index 000000000000..9abced7df4ba --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/apps/impress.png diff --git a/sysui/desktop/icons/hicolor/32x32/apps/main.png b/sysui/desktop/icons/hicolor/32x32/apps/main.png Binary files differnew file mode 100755 index 000000000000..296c6f4c58b1 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/apps/main.png diff --git a/sysui/desktop/icons/hicolor/32x32/apps/math.png b/sysui/desktop/icons/hicolor/32x32/apps/math.png Binary files differnew file mode 100644 index 000000000000..146a7dea71b6 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/apps/math.png diff --git a/sysui/desktop/icons/hicolor/32x32/apps/printeradmin.png b/sysui/desktop/icons/hicolor/32x32/apps/printeradmin.png Binary files differnew file mode 100755 index 000000000000..b09999c7d083 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/apps/printeradmin.png diff --git a/sysui/desktop/icons/hicolor/32x32/apps/startcenter.png b/sysui/desktop/icons/hicolor/32x32/apps/startcenter.png Binary files differnew file mode 100644 index 000000000000..296c6f4c58b1 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/apps/startcenter.png diff --git a/sysui/desktop/icons/hicolor/32x32/apps/writer.png b/sysui/desktop/icons/hicolor/32x32/apps/writer.png Binary files differnew file mode 100644 index 000000000000..97b9d3f5cfb3 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/apps/writer.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/database.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/database.png Binary files differnew file mode 100644 index 000000000000..6e0a4b8f60ba --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/database.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/drawing-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/drawing-template.png Binary files differnew file mode 100644 index 000000000000..a341632dabb7 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/drawing-template.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/drawing.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/drawing.png Binary files differnew file mode 100644 index 000000000000..4abe5c0f80af --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/drawing.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/extension.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/extension.png Binary files differnew file mode 100755 index 000000000000..b4d8171c19ef --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/extension.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/formula.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/formula.png Binary files differnew file mode 100644 index 000000000000..d989593924c2 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/formula.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/master-document.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/master-document.png Binary files differnew file mode 100644 index 000000000000..d4b033f4aab8 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/master-document.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-database.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-database.png Binary files differnew file mode 100644 index 000000000000..461bdf37b774 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-database.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-drawing-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-drawing-template.png Binary files differnew file mode 100644 index 000000000000..cdc2f2df0fc8 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-drawing-template.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-drawing.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-drawing.png Binary files differnew file mode 100644 index 000000000000..55dda2143e57 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-drawing.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-formula.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-formula.png Binary files differnew file mode 100644 index 000000000000..6b8f2f732201 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-formula.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-master-document.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-master-document.png Binary files differnew file mode 100644 index 000000000000..234bac461e74 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-master-document.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-presentation-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-presentation-template.png Binary files differnew file mode 100644 index 000000000000..012516065215 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-presentation-template.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-presentation.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-presentation.png Binary files differnew file mode 100644 index 000000000000..fedeb0620a75 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-presentation.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-spreadsheet-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-spreadsheet-template.png Binary files differnew file mode 100644 index 000000000000..9d63063e67d0 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-spreadsheet-template.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-spreadsheet.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-spreadsheet.png Binary files differnew file mode 100644 index 000000000000..020d95bef310 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-spreadsheet.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-text-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-text-template.png Binary files differnew file mode 100644 index 000000000000..983b39e611ae --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-text-template.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-text.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-text.png Binary files differnew file mode 100644 index 000000000000..ac350cb409d1 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-text.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-web-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-web-template.png Binary files differnew file mode 100644 index 000000000000..8e906f8be1df --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/oasis-web-template.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/presentation-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/presentation-template.png Binary files differnew file mode 100644 index 000000000000..5163f441039a --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/presentation-template.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/presentation.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/presentation.png Binary files differnew file mode 100644 index 000000000000..730f86f0ba63 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/presentation.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/spreadsheet-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/spreadsheet-template.png Binary files differnew file mode 100644 index 000000000000..d81cd27dd93f --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/spreadsheet-template.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/spreadsheet.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/spreadsheet.png Binary files differnew file mode 100644 index 000000000000..dc9bd083c218 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/spreadsheet.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/text-template.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/text-template.png Binary files differnew file mode 100644 index 000000000000..7c738c21eb59 --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/text-template.png diff --git a/sysui/desktop/icons/hicolor/32x32/mimetypes/text.png b/sysui/desktop/icons/hicolor/32x32/mimetypes/text.png Binary files differnew file mode 100644 index 000000000000..1454b20fd5db --- /dev/null +++ b/sysui/desktop/icons/hicolor/32x32/mimetypes/text.png diff --git a/sysui/desktop/icons/hicolor/48x48/apps/base.png b/sysui/desktop/icons/hicolor/48x48/apps/base.png Binary files differnew file mode 100644 index 000000000000..382ad3e6ec54 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/apps/base.png diff --git a/sysui/desktop/icons/hicolor/48x48/apps/calc.png b/sysui/desktop/icons/hicolor/48x48/apps/calc.png Binary files differnew file mode 100644 index 000000000000..d94aae38fbdd --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/apps/calc.png diff --git a/sysui/desktop/icons/hicolor/48x48/apps/draw.png b/sysui/desktop/icons/hicolor/48x48/apps/draw.png Binary files differnew file mode 100644 index 000000000000..1a2d252c7cbf --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/apps/draw.png diff --git a/sysui/desktop/icons/hicolor/48x48/apps/impress.png b/sysui/desktop/icons/hicolor/48x48/apps/impress.png Binary files differnew file mode 100644 index 000000000000..35d3b25c5566 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/apps/impress.png diff --git a/sysui/desktop/icons/hicolor/48x48/apps/main.png b/sysui/desktop/icons/hicolor/48x48/apps/main.png Binary files differnew file mode 100755 index 000000000000..86bcf599553f --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/apps/main.png diff --git a/sysui/desktop/icons/hicolor/48x48/apps/math.png b/sysui/desktop/icons/hicolor/48x48/apps/math.png Binary files differnew file mode 100644 index 000000000000..3572d76b6bd9 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/apps/math.png diff --git a/sysui/desktop/icons/hicolor/48x48/apps/printeradmin.png b/sysui/desktop/icons/hicolor/48x48/apps/printeradmin.png Binary files differnew file mode 100755 index 000000000000..a11cbe5ab107 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/apps/printeradmin.png diff --git a/sysui/desktop/icons/hicolor/48x48/apps/startcenter.png b/sysui/desktop/icons/hicolor/48x48/apps/startcenter.png Binary files differnew file mode 100644 index 000000000000..86bcf599553f --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/apps/startcenter.png diff --git a/sysui/desktop/icons/hicolor/48x48/apps/writer.png b/sysui/desktop/icons/hicolor/48x48/apps/writer.png Binary files differnew file mode 100644 index 000000000000..8041a209ddda --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/apps/writer.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/database.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/database.png Binary files differnew file mode 100644 index 000000000000..b385ed9db537 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/database.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/drawing-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/drawing-template.png Binary files differnew file mode 100644 index 000000000000..b7da9bfa2c81 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/drawing-template.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/drawing.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/drawing.png Binary files differnew file mode 100644 index 000000000000..85499fd2199f --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/drawing.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/extension.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/extension.png Binary files differnew file mode 100755 index 000000000000..395001990fcc --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/extension.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/formula.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/formula.png Binary files differnew file mode 100644 index 000000000000..bcc61b432b94 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/formula.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/master-document.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/master-document.png Binary files differnew file mode 100644 index 000000000000..7a7b86956537 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/master-document.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-database.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-database.png Binary files differnew file mode 100644 index 000000000000..77e684960ec2 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-database.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-drawing-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-drawing-template.png Binary files differnew file mode 100644 index 000000000000..8cb4dd3fa7d0 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-drawing-template.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-drawing.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-drawing.png Binary files differnew file mode 100644 index 000000000000..258b3b2fc1e2 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-drawing.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-formula.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-formula.png Binary files differnew file mode 100644 index 000000000000..f6508de45379 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-formula.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-master-document.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-master-document.png Binary files differnew file mode 100644 index 000000000000..1923fc9b9ff4 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-master-document.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-presentation-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-presentation-template.png Binary files differnew file mode 100644 index 000000000000..00d311317566 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-presentation-template.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-presentation.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-presentation.png Binary files differnew file mode 100644 index 000000000000..635953e1c714 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-presentation.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-spreadsheet-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-spreadsheet-template.png Binary files differnew file mode 100644 index 000000000000..7c4beda53d60 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-spreadsheet-template.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-spreadsheet.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-spreadsheet.png Binary files differnew file mode 100644 index 000000000000..4c407a0f5fc1 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-spreadsheet.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-text-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-text-template.png Binary files differnew file mode 100644 index 000000000000..64b86940885a --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-text-template.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-text.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-text.png Binary files differnew file mode 100644 index 000000000000..0c04210a0c9a --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-text.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-web-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-web-template.png Binary files differnew file mode 100644 index 000000000000..0ff92ec7a267 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/oasis-web-template.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/presentation-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/presentation-template.png Binary files differnew file mode 100644 index 000000000000..d9651bf654af --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/presentation-template.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/presentation.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/presentation.png Binary files differnew file mode 100644 index 000000000000..e058d25f822e --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/presentation.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/spreadsheet-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/spreadsheet-template.png Binary files differnew file mode 100644 index 000000000000..5d5e46e21bc0 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/spreadsheet-template.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/spreadsheet.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/spreadsheet.png Binary files differnew file mode 100644 index 000000000000..c352966320a1 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/spreadsheet.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/text-template.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/text-template.png Binary files differnew file mode 100644 index 000000000000..ad5129774837 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/text-template.png diff --git a/sysui/desktop/icons/hicolor/48x48/mimetypes/text.png b/sysui/desktop/icons/hicolor/48x48/mimetypes/text.png Binary files differnew file mode 100644 index 000000000000..2a1707006d82 --- /dev/null +++ b/sysui/desktop/icons/hicolor/48x48/mimetypes/text.png diff --git a/sysui/desktop/icons/impress.icns b/sysui/desktop/icons/impress.icns Binary files differnew file mode 100644 index 000000000000..22a9475ae6b3 --- /dev/null +++ b/sysui/desktop/icons/impress.icns diff --git a/sysui/desktop/icons/locolor/16x16/apps/base.png b/sysui/desktop/icons/locolor/16x16/apps/base.png Binary files differnew file mode 100644 index 000000000000..347d030bc740 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/apps/base.png diff --git a/sysui/desktop/icons/locolor/16x16/apps/calc.png b/sysui/desktop/icons/locolor/16x16/apps/calc.png Binary files differnew file mode 100644 index 000000000000..060d78d2eada --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/apps/calc.png diff --git a/sysui/desktop/icons/locolor/16x16/apps/draw.png b/sysui/desktop/icons/locolor/16x16/apps/draw.png Binary files differnew file mode 100644 index 000000000000..bc4f8cb803cd --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/apps/draw.png diff --git a/sysui/desktop/icons/locolor/16x16/apps/impress.png b/sysui/desktop/icons/locolor/16x16/apps/impress.png Binary files differnew file mode 100644 index 000000000000..b780901ee3bf --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/apps/impress.png diff --git a/sysui/desktop/icons/locolor/16x16/apps/math.png b/sysui/desktop/icons/locolor/16x16/apps/math.png Binary files differnew file mode 100644 index 000000000000..4c7f8e88330e --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/apps/math.png diff --git a/sysui/desktop/icons/locolor/16x16/apps/printeradmin.png b/sysui/desktop/icons/locolor/16x16/apps/printeradmin.png Binary files differnew file mode 100644 index 000000000000..c64e48f6d58b --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/apps/printeradmin.png diff --git a/sysui/desktop/icons/locolor/16x16/apps/startcenter.png b/sysui/desktop/icons/locolor/16x16/apps/startcenter.png Binary files differnew file mode 100644 index 000000000000..347d030bc740 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/apps/startcenter.png diff --git a/sysui/desktop/icons/locolor/16x16/apps/writer.png b/sysui/desktop/icons/locolor/16x16/apps/writer.png Binary files differnew file mode 100644 index 000000000000..c452804daf41 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/apps/writer.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/database.png b/sysui/desktop/icons/locolor/16x16/mimetypes/database.png Binary files differnew file mode 100644 index 000000000000..bbf485561e19 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/database.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/drawing-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/drawing-template.png Binary files differnew file mode 100644 index 000000000000..74770d5d482f --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/drawing-template.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/drawing.png b/sysui/desktop/icons/locolor/16x16/mimetypes/drawing.png Binary files differnew file mode 100644 index 000000000000..30303797baf7 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/drawing.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/extension.png b/sysui/desktop/icons/locolor/16x16/mimetypes/extension.png Binary files differnew file mode 100755 index 000000000000..2ff170cb4189 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/extension.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/formula.png b/sysui/desktop/icons/locolor/16x16/mimetypes/formula.png Binary files differnew file mode 100644 index 000000000000..3eb7f884f91d --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/formula.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/master-document.png b/sysui/desktop/icons/locolor/16x16/mimetypes/master-document.png Binary files differnew file mode 100644 index 000000000000..c424e4fbf430 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/master-document.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-database.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-database.png Binary files differnew file mode 100644 index 000000000000..ce87e664b482 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-database.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-drawing-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-drawing-template.png Binary files differnew file mode 100644 index 000000000000..53fe069ca410 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-drawing-template.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-drawing.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-drawing.png Binary files differnew file mode 100644 index 000000000000..42f31de4c769 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-drawing.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-formula.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-formula.png Binary files differnew file mode 100644 index 000000000000..f01150fc9cf7 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-formula.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-master-document.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-master-document.png Binary files differnew file mode 100644 index 000000000000..d2bf0065faeb --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-master-document.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-presentation-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-presentation-template.png Binary files differnew file mode 100644 index 000000000000..ccbe7bfc6dcf --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-presentation-template.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-presentation.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-presentation.png Binary files differnew file mode 100644 index 000000000000..d87f465af1df --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-presentation.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-spreadsheet-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-spreadsheet-template.png Binary files differnew file mode 100644 index 000000000000..dd6b36a87479 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-spreadsheet-template.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-spreadsheet.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-spreadsheet.png Binary files differnew file mode 100644 index 000000000000..907cff3dc227 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-spreadsheet.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-text-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-text-template.png Binary files differnew file mode 100644 index 000000000000..df779f671390 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-text-template.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-text.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-text.png Binary files differnew file mode 100644 index 000000000000..2148e49d3c73 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-text.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-web-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-web-template.png Binary files differnew file mode 100644 index 000000000000..fed7af4f2a12 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/oasis-web-template.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/presentation-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/presentation-template.png Binary files differnew file mode 100644 index 000000000000..bb20d139e1a5 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/presentation-template.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/presentation.png b/sysui/desktop/icons/locolor/16x16/mimetypes/presentation.png Binary files differnew file mode 100644 index 000000000000..b82ddf720912 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/presentation.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/spreadsheet-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/spreadsheet-template.png Binary files differnew file mode 100644 index 000000000000..3546349b59a3 --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/spreadsheet-template.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/spreadsheet.png b/sysui/desktop/icons/locolor/16x16/mimetypes/spreadsheet.png Binary files differnew file mode 100644 index 000000000000..df164ff2caae --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/spreadsheet.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/text-template.png b/sysui/desktop/icons/locolor/16x16/mimetypes/text-template.png Binary files differnew file mode 100644 index 000000000000..4d895288251e --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/text-template.png diff --git a/sysui/desktop/icons/locolor/16x16/mimetypes/text.png b/sysui/desktop/icons/locolor/16x16/mimetypes/text.png Binary files differnew file mode 100644 index 000000000000..6ff2517af44d --- /dev/null +++ b/sysui/desktop/icons/locolor/16x16/mimetypes/text.png diff --git a/sysui/desktop/icons/locolor/32x32/apps/base.png b/sysui/desktop/icons/locolor/32x32/apps/base.png Binary files differnew file mode 100644 index 000000000000..cfaaaba07a60 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/apps/base.png diff --git a/sysui/desktop/icons/locolor/32x32/apps/calc.png b/sysui/desktop/icons/locolor/32x32/apps/calc.png Binary files differnew file mode 100644 index 000000000000..4aff7baf77d5 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/apps/calc.png diff --git a/sysui/desktop/icons/locolor/32x32/apps/draw.png b/sysui/desktop/icons/locolor/32x32/apps/draw.png Binary files differnew file mode 100644 index 000000000000..3efa6d4a7d03 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/apps/draw.png diff --git a/sysui/desktop/icons/locolor/32x32/apps/impress.png b/sysui/desktop/icons/locolor/32x32/apps/impress.png Binary files differnew file mode 100644 index 000000000000..56dde6ba6cda --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/apps/impress.png diff --git a/sysui/desktop/icons/locolor/32x32/apps/math.png b/sysui/desktop/icons/locolor/32x32/apps/math.png Binary files differnew file mode 100644 index 000000000000..3b730e50ea50 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/apps/math.png diff --git a/sysui/desktop/icons/locolor/32x32/apps/printeradmin.png b/sysui/desktop/icons/locolor/32x32/apps/printeradmin.png Binary files differnew file mode 100644 index 000000000000..2ad360fe1b72 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/apps/printeradmin.png diff --git a/sysui/desktop/icons/locolor/32x32/apps/startcenter.png b/sysui/desktop/icons/locolor/32x32/apps/startcenter.png Binary files differnew file mode 100644 index 000000000000..cfaaaba07a60 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/apps/startcenter.png diff --git a/sysui/desktop/icons/locolor/32x32/apps/writer.png b/sysui/desktop/icons/locolor/32x32/apps/writer.png Binary files differnew file mode 100644 index 000000000000..eb433dcbb32b --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/apps/writer.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/database.png b/sysui/desktop/icons/locolor/32x32/mimetypes/database.png Binary files differnew file mode 100644 index 000000000000..709903d46c21 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/database.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/drawing-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/drawing-template.png Binary files differnew file mode 100644 index 000000000000..76e5abdab9f0 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/drawing-template.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/drawing.png b/sysui/desktop/icons/locolor/32x32/mimetypes/drawing.png Binary files differnew file mode 100644 index 000000000000..380c60a7df2c --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/drawing.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/extension.png b/sysui/desktop/icons/locolor/32x32/mimetypes/extension.png Binary files differnew file mode 100755 index 000000000000..2e9e91157c79 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/extension.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/formula.png b/sysui/desktop/icons/locolor/32x32/mimetypes/formula.png Binary files differnew file mode 100644 index 000000000000..37306ac617ec --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/formula.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/master-document.png b/sysui/desktop/icons/locolor/32x32/mimetypes/master-document.png Binary files differnew file mode 100644 index 000000000000..1f3e79927608 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/master-document.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-database.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-database.png Binary files differnew file mode 100644 index 000000000000..59316672d4b3 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-database.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-drawing-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-drawing-template.png Binary files differnew file mode 100644 index 000000000000..8379765438ba --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-drawing-template.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-drawing.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-drawing.png Binary files differnew file mode 100644 index 000000000000..cae97d401f5d --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-drawing.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-formula.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-formula.png Binary files differnew file mode 100644 index 000000000000..5a90e75eb86b --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-formula.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-master-document.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-master-document.png Binary files differnew file mode 100644 index 000000000000..19863a5b9300 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-master-document.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-presentation-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-presentation-template.png Binary files differnew file mode 100644 index 000000000000..d6d2b1d68c37 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-presentation-template.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-presentation.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-presentation.png Binary files differnew file mode 100644 index 000000000000..da3fbe6e01c4 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-presentation.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-spreadsheet-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-spreadsheet-template.png Binary files differnew file mode 100644 index 000000000000..dd0c002feec5 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-spreadsheet-template.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-spreadsheet.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-spreadsheet.png Binary files differnew file mode 100644 index 000000000000..7556a2d60f7c --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-spreadsheet.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-text-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-text-template.png Binary files differnew file mode 100644 index 000000000000..d559e565ca62 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-text-template.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-text.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-text.png Binary files differnew file mode 100644 index 000000000000..2a5ea8ff4211 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-text.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-web-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-web-template.png Binary files differnew file mode 100644 index 000000000000..a7dcefd1c26f --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/oasis-web-template.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/presentation-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/presentation-template.png Binary files differnew file mode 100644 index 000000000000..0edabbc86f16 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/presentation-template.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/presentation.png b/sysui/desktop/icons/locolor/32x32/mimetypes/presentation.png Binary files differnew file mode 100644 index 000000000000..0eee1162ce15 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/presentation.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/spreadsheet-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/spreadsheet-template.png Binary files differnew file mode 100644 index 000000000000..158a63a58c92 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/spreadsheet-template.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/spreadsheet.png b/sysui/desktop/icons/locolor/32x32/mimetypes/spreadsheet.png Binary files differnew file mode 100644 index 000000000000..f7352ab51783 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/spreadsheet.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/text-template.png b/sysui/desktop/icons/locolor/32x32/mimetypes/text-template.png Binary files differnew file mode 100644 index 000000000000..cfba26102380 --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/text-template.png diff --git a/sysui/desktop/icons/locolor/32x32/mimetypes/text.png b/sysui/desktop/icons/locolor/32x32/mimetypes/text.png Binary files differnew file mode 100644 index 000000000000..77f87e777b7a --- /dev/null +++ b/sysui/desktop/icons/locolor/32x32/mimetypes/text.png diff --git a/sysui/desktop/icons/macro.icns b/sysui/desktop/icons/macro.icns Binary files differnew file mode 100644 index 000000000000..00c3978396f0 --- /dev/null +++ b/sysui/desktop/icons/macro.icns diff --git a/sysui/desktop/icons/main.icns b/sysui/desktop/icons/main.icns Binary files differnew file mode 100755 index 000000000000..8357c09c0c89 --- /dev/null +++ b/sysui/desktop/icons/main.icns diff --git a/sysui/desktop/icons/makefile.mk b/sysui/desktop/icons/makefile.mk new file mode 100644 index 000000000000..ac32cdbe453b --- /dev/null +++ b/sysui/desktop/icons/makefile.mk @@ -0,0 +1,198 @@ +#************************************************************************* +# +# 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)$/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)$/so9_empty_tem.ico \ + $(MISC)$/so9_math_app.ico \ + $(MISC)$/so9_global_doc.ico \ + $(MISC)$/so9_main_app.ico \ + $(MISC)$/so9_empty_doc.ico \ + $(MISC)$/so9_math_doc.ico \ + $(MISC)$/so9_base_app.ico \ + $(MISC)$/so9_html_doc.ico \ + $(MISC)$/so9_impress_doc.ico \ + $(MISC)$/so9_draw_tem.ico \ + $(MISC)$/so9_writer_tem.ico \ + $(MISC)$/so9_impress_app.ico \ + $(MISC)$/so9_calc_tem.ico \ + $(MISC)$/so9_base_doc.ico \ + $(MISC)$/so9_macro_doc.ico \ + $(MISC)$/so9_calc_doc.ico \ + $(MISC)$/so9_draw_doc.ico \ + $(MISC)$/so9_writer_doc.ico \ + $(MISC)$/so9_calc_app.ico \ + $(MISC)$/so9_impress_tem.ico \ + $(MISC)$/so9_chart_doc.ico \ + $(MISC)$/so9_writer_app.ico \ + $(MISC)$/so9_draw_app.ico \ + $(MISC)$/so9_open.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)$/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 Binary files differnew file mode 100644 index 000000000000..33fdae3d47b7 --- /dev/null +++ b/sysui/desktop/icons/master-document.icns diff --git a/sysui/desktop/icons/master-document.ico b/sysui/desktop/icons/master-document.ico Binary files differnew file mode 100644 index 000000000000..2c581f59a2b2 --- /dev/null +++ b/sysui/desktop/icons/master-document.ico diff --git a/sysui/desktop/icons/math.icns b/sysui/desktop/icons/math.icns Binary files differnew file mode 100644 index 000000000000..283c176e9081 --- /dev/null +++ b/sysui/desktop/icons/math.icns diff --git a/sysui/desktop/icons/oasis-chart.icns b/sysui/desktop/icons/oasis-chart.icns Binary files differnew file mode 100644 index 000000000000..acdb9709de84 --- /dev/null +++ b/sysui/desktop/icons/oasis-chart.icns diff --git a/sysui/desktop/icons/oasis-database.icns b/sysui/desktop/icons/oasis-database.icns Binary files differnew file mode 100644 index 000000000000..4d70286b0d9f --- /dev/null +++ b/sysui/desktop/icons/oasis-database.icns diff --git a/sysui/desktop/icons/oasis-database.ico b/sysui/desktop/icons/oasis-database.ico Binary files differnew file mode 100644 index 000000000000..3157568c3252 --- /dev/null +++ b/sysui/desktop/icons/oasis-database.ico diff --git a/sysui/desktop/icons/oasis-drawing-template.icns b/sysui/desktop/icons/oasis-drawing-template.icns Binary files differnew file mode 100644 index 000000000000..dcb55db8e98f --- /dev/null +++ b/sysui/desktop/icons/oasis-drawing-template.icns diff --git a/sysui/desktop/icons/oasis-drawing-template.ico b/sysui/desktop/icons/oasis-drawing-template.ico Binary files differnew file mode 100644 index 000000000000..f98a2d6f44cb --- /dev/null +++ b/sysui/desktop/icons/oasis-drawing-template.ico diff --git a/sysui/desktop/icons/oasis-drawing.icns b/sysui/desktop/icons/oasis-drawing.icns Binary files differnew file mode 100644 index 000000000000..3802af5ef3b5 --- /dev/null +++ b/sysui/desktop/icons/oasis-drawing.icns diff --git a/sysui/desktop/icons/oasis-drawing.ico b/sysui/desktop/icons/oasis-drawing.ico Binary files differnew file mode 100644 index 000000000000..b24f2dadbe86 --- /dev/null +++ b/sysui/desktop/icons/oasis-drawing.ico diff --git a/sysui/desktop/icons/oasis-empty-document.icns b/sysui/desktop/icons/oasis-empty-document.icns Binary files differnew file mode 100644 index 000000000000..c52970324b27 --- /dev/null +++ b/sysui/desktop/icons/oasis-empty-document.icns diff --git a/sysui/desktop/icons/oasis-empty-document.ico b/sysui/desktop/icons/oasis-empty-document.ico Binary files differnew file mode 100644 index 000000000000..a12b54c2a2bf --- /dev/null +++ b/sysui/desktop/icons/oasis-empty-document.ico diff --git a/sysui/desktop/icons/oasis-empty-template.icns b/sysui/desktop/icons/oasis-empty-template.icns Binary files differnew file mode 100644 index 000000000000..ee6d299991d7 --- /dev/null +++ b/sysui/desktop/icons/oasis-empty-template.icns diff --git a/sysui/desktop/icons/oasis-empty-template.ico b/sysui/desktop/icons/oasis-empty-template.ico Binary files differnew file mode 100644 index 000000000000..63ac9f348fda --- /dev/null +++ b/sysui/desktop/icons/oasis-empty-template.ico diff --git a/sysui/desktop/icons/oasis-formula.icns b/sysui/desktop/icons/oasis-formula.icns Binary files differnew file mode 100644 index 000000000000..657ea29eb95c --- /dev/null +++ b/sysui/desktop/icons/oasis-formula.icns diff --git a/sysui/desktop/icons/oasis-formula.ico b/sysui/desktop/icons/oasis-formula.ico Binary files differnew file mode 100644 index 000000000000..8ba738304e85 --- /dev/null +++ b/sysui/desktop/icons/oasis-formula.ico diff --git a/sysui/desktop/icons/oasis-master-document.icns b/sysui/desktop/icons/oasis-master-document.icns Binary files differnew file mode 100644 index 000000000000..c39cb8963c82 --- /dev/null +++ b/sysui/desktop/icons/oasis-master-document.icns diff --git a/sysui/desktop/icons/oasis-master-document.ico b/sysui/desktop/icons/oasis-master-document.ico Binary files differnew file mode 100644 index 000000000000..2104eafef55c --- /dev/null +++ b/sysui/desktop/icons/oasis-master-document.ico diff --git a/sysui/desktop/icons/oasis-presentation-template.icns b/sysui/desktop/icons/oasis-presentation-template.icns Binary files differnew file mode 100644 index 000000000000..57455ada701a --- /dev/null +++ b/sysui/desktop/icons/oasis-presentation-template.icns diff --git a/sysui/desktop/icons/oasis-presentation-template.ico b/sysui/desktop/icons/oasis-presentation-template.ico Binary files differnew file mode 100644 index 000000000000..ef561b821598 --- /dev/null +++ b/sysui/desktop/icons/oasis-presentation-template.ico diff --git a/sysui/desktop/icons/oasis-presentation.icns b/sysui/desktop/icons/oasis-presentation.icns Binary files differnew file mode 100644 index 000000000000..cf768ac47ba9 --- /dev/null +++ b/sysui/desktop/icons/oasis-presentation.icns diff --git a/sysui/desktop/icons/oasis-presentation.ico b/sysui/desktop/icons/oasis-presentation.ico Binary files differnew file mode 100644 index 000000000000..6f2c1602efdf --- /dev/null +++ b/sysui/desktop/icons/oasis-presentation.ico diff --git a/sysui/desktop/icons/oasis-spreadsheet-template.icns b/sysui/desktop/icons/oasis-spreadsheet-template.icns Binary files differnew file mode 100644 index 000000000000..8235e5287806 --- /dev/null +++ b/sysui/desktop/icons/oasis-spreadsheet-template.icns diff --git a/sysui/desktop/icons/oasis-spreadsheet-template.ico b/sysui/desktop/icons/oasis-spreadsheet-template.ico Binary files differnew file mode 100644 index 000000000000..1124d9f433e9 --- /dev/null +++ b/sysui/desktop/icons/oasis-spreadsheet-template.ico diff --git a/sysui/desktop/icons/oasis-spreadsheet.icns b/sysui/desktop/icons/oasis-spreadsheet.icns Binary files differnew file mode 100644 index 000000000000..5facf50dbcf2 --- /dev/null +++ b/sysui/desktop/icons/oasis-spreadsheet.icns diff --git a/sysui/desktop/icons/oasis-spreadsheet.ico b/sysui/desktop/icons/oasis-spreadsheet.ico Binary files differnew file mode 100644 index 000000000000..160ab0cbf36c --- /dev/null +++ b/sysui/desktop/icons/oasis-spreadsheet.ico diff --git a/sysui/desktop/icons/oasis-text-template.icns b/sysui/desktop/icons/oasis-text-template.icns Binary files differnew file mode 100644 index 000000000000..0f0fe3f89788 --- /dev/null +++ b/sysui/desktop/icons/oasis-text-template.icns diff --git a/sysui/desktop/icons/oasis-text-template.ico b/sysui/desktop/icons/oasis-text-template.ico Binary files differnew file mode 100644 index 000000000000..602124fabee7 --- /dev/null +++ b/sysui/desktop/icons/oasis-text-template.ico diff --git a/sysui/desktop/icons/oasis-text.icns b/sysui/desktop/icons/oasis-text.icns Binary files differnew file mode 100644 index 000000000000..2d031fe49953 --- /dev/null +++ b/sysui/desktop/icons/oasis-text.icns diff --git a/sysui/desktop/icons/oasis-text.ico b/sysui/desktop/icons/oasis-text.ico Binary files differnew file mode 100644 index 000000000000..d2bd5943164c --- /dev/null +++ b/sysui/desktop/icons/oasis-text.ico diff --git a/sysui/desktop/icons/oasis-web-template.icns b/sysui/desktop/icons/oasis-web-template.icns Binary files differnew file mode 100644 index 000000000000..ee6d299991d7 --- /dev/null +++ b/sysui/desktop/icons/oasis-web-template.icns diff --git a/sysui/desktop/icons/oasis-web-template.ico b/sysui/desktop/icons/oasis-web-template.ico Binary files differnew file mode 100644 index 000000000000..63ac9f348fda --- /dev/null +++ b/sysui/desktop/icons/oasis-web-template.ico diff --git a/sysui/desktop/icons/ooo-base-app.ico b/sysui/desktop/icons/ooo-base-app.ico Binary files differnew file mode 100644 index 000000000000..e9af06abd9b1 --- /dev/null +++ b/sysui/desktop/icons/ooo-base-app.ico diff --git a/sysui/desktop/icons/ooo-base-doc.ico b/sysui/desktop/icons/ooo-base-doc.ico Binary files differnew file mode 100644 index 000000000000..62411deef5e1 --- /dev/null +++ b/sysui/desktop/icons/ooo-base-doc.ico diff --git a/sysui/desktop/icons/ooo-calc-app.ico b/sysui/desktop/icons/ooo-calc-app.ico Binary files differnew file mode 100644 index 000000000000..8d91367e5a2f --- /dev/null +++ b/sysui/desktop/icons/ooo-calc-app.ico diff --git a/sysui/desktop/icons/ooo-calc-doc.ico b/sysui/desktop/icons/ooo-calc-doc.ico Binary files differnew file mode 100644 index 000000000000..06c49654b4f9 --- /dev/null +++ b/sysui/desktop/icons/ooo-calc-doc.ico diff --git a/sysui/desktop/icons/ooo-calc-tem.ico b/sysui/desktop/icons/ooo-calc-tem.ico Binary files differnew file mode 100644 index 000000000000..cb34adc84da1 --- /dev/null +++ b/sysui/desktop/icons/ooo-calc-tem.ico diff --git a/sysui/desktop/icons/ooo-chart-doc.ico b/sysui/desktop/icons/ooo-chart-doc.ico Binary files differnew file mode 100644 index 000000000000..4a50158b4053 --- /dev/null +++ b/sysui/desktop/icons/ooo-chart-doc.ico diff --git a/sysui/desktop/icons/ooo-configuration.ico b/sysui/desktop/icons/ooo-configuration.ico Binary files differnew file mode 100644 index 000000000000..9bae70b68b25 --- /dev/null +++ b/sysui/desktop/icons/ooo-configuration.ico diff --git a/sysui/desktop/icons/ooo-draw-app.ico b/sysui/desktop/icons/ooo-draw-app.ico Binary files differnew file mode 100644 index 000000000000..9f4f0c35af14 --- /dev/null +++ b/sysui/desktop/icons/ooo-draw-app.ico diff --git a/sysui/desktop/icons/ooo-draw-doc.ico b/sysui/desktop/icons/ooo-draw-doc.ico Binary files differnew file mode 100644 index 000000000000..96d0710455e8 --- /dev/null +++ b/sysui/desktop/icons/ooo-draw-doc.ico diff --git a/sysui/desktop/icons/ooo-draw-tem.ico b/sysui/desktop/icons/ooo-draw-tem.ico Binary files differnew file mode 100644 index 000000000000..6b18169708d8 --- /dev/null +++ b/sysui/desktop/icons/ooo-draw-tem.ico diff --git a/sysui/desktop/icons/ooo-empty-doc.ico b/sysui/desktop/icons/ooo-empty-doc.ico Binary files differnew file mode 100644 index 000000000000..bd3aa12af516 --- /dev/null +++ b/sysui/desktop/icons/ooo-empty-doc.ico diff --git a/sysui/desktop/icons/ooo-empty-tem.ico b/sysui/desktop/icons/ooo-empty-tem.ico Binary files differnew file mode 100644 index 000000000000..b68f0f15f5bd --- /dev/null +++ b/sysui/desktop/icons/ooo-empty-tem.ico diff --git a/sysui/desktop/icons/ooo-image-doc.ico b/sysui/desktop/icons/ooo-image-doc.ico Binary files differnew file mode 100644 index 000000000000..96d0710455e8 --- /dev/null +++ b/sysui/desktop/icons/ooo-image-doc.ico diff --git a/sysui/desktop/icons/ooo-impress-app.ico b/sysui/desktop/icons/ooo-impress-app.ico Binary files differnew file mode 100644 index 000000000000..7dcd17aba264 --- /dev/null +++ b/sysui/desktop/icons/ooo-impress-app.ico diff --git a/sysui/desktop/icons/ooo-impress-doc.ico b/sysui/desktop/icons/ooo-impress-doc.ico Binary files differnew file mode 100644 index 000000000000..9da080cefaee --- /dev/null +++ b/sysui/desktop/icons/ooo-impress-doc.ico diff --git a/sysui/desktop/icons/ooo-impress-tem.ico b/sysui/desktop/icons/ooo-impress-tem.ico Binary files differnew file mode 100644 index 000000000000..aa861d8bfb84 --- /dev/null +++ b/sysui/desktop/icons/ooo-impress-tem.ico diff --git a/sysui/desktop/icons/ooo-macro-doc.ico b/sysui/desktop/icons/ooo-macro-doc.ico Binary files differnew file mode 100644 index 000000000000..266e35d047b7 --- /dev/null +++ b/sysui/desktop/icons/ooo-macro-doc.ico diff --git a/sysui/desktop/icons/ooo-main-app.ico b/sysui/desktop/icons/ooo-main-app.ico Binary files differnew file mode 100644 index 000000000000..fa01babdb9c7 --- /dev/null +++ b/sysui/desktop/icons/ooo-main-app.ico diff --git a/sysui/desktop/icons/ooo-master-doc.ico b/sysui/desktop/icons/ooo-master-doc.ico Binary files differnew file mode 100644 index 000000000000..4a157a9c27b9 --- /dev/null +++ b/sysui/desktop/icons/ooo-master-doc.ico diff --git a/sysui/desktop/icons/ooo-math-app.ico b/sysui/desktop/icons/ooo-math-app.ico Binary files differnew file mode 100644 index 000000000000..d182fd54bc2a --- /dev/null +++ b/sysui/desktop/icons/ooo-math-app.ico diff --git a/sysui/desktop/icons/ooo-math-doc.ico b/sysui/desktop/icons/ooo-math-doc.ico Binary files differnew file mode 100644 index 000000000000..786127ab2686 --- /dev/null +++ b/sysui/desktop/icons/ooo-math-doc.ico diff --git a/sysui/desktop/icons/ooo-open.ico b/sysui/desktop/icons/ooo-open.ico Binary files differnew file mode 100644 index 000000000000..78987aec3422 --- /dev/null +++ b/sysui/desktop/icons/ooo-open.ico diff --git a/sysui/desktop/icons/ooo-printer.ico b/sysui/desktop/icons/ooo-printer.ico Binary files differnew file mode 100644 index 000000000000..14882d1d1a07 --- /dev/null +++ b/sysui/desktop/icons/ooo-printer.ico diff --git a/sysui/desktop/icons/ooo-web-doc.ico b/sysui/desktop/icons/ooo-web-doc.ico Binary files differnew file mode 100644 index 000000000000..f03da4e65d00 --- /dev/null +++ b/sysui/desktop/icons/ooo-web-doc.ico diff --git a/sysui/desktop/icons/ooo-writer-app.ico b/sysui/desktop/icons/ooo-writer-app.ico Binary files differnew file mode 100644 index 000000000000..22c9661f1ce0 --- /dev/null +++ b/sysui/desktop/icons/ooo-writer-app.ico diff --git a/sysui/desktop/icons/ooo-writer-doc.ico b/sysui/desktop/icons/ooo-writer-doc.ico Binary files differnew file mode 100644 index 000000000000..694a166d4516 --- /dev/null +++ b/sysui/desktop/icons/ooo-writer-doc.ico diff --git a/sysui/desktop/icons/ooo-writer-tem.ico b/sysui/desktop/icons/ooo-writer-tem.ico Binary files differnew file mode 100644 index 000000000000..9379f9bc0c75 --- /dev/null +++ b/sysui/desktop/icons/ooo-writer-tem.ico diff --git a/sysui/desktop/icons/ooo11-base-doc.ico b/sysui/desktop/icons/ooo11-base-doc.ico Binary files differnew file mode 100755 index 000000000000..e2377f4422b4 --- /dev/null +++ b/sysui/desktop/icons/ooo11-base-doc.ico diff --git a/sysui/desktop/icons/ooo11-calc-doc.ico b/sysui/desktop/icons/ooo11-calc-doc.ico Binary files differnew file mode 100755 index 000000000000..bce2ae3628cb --- /dev/null +++ b/sysui/desktop/icons/ooo11-calc-doc.ico diff --git a/sysui/desktop/icons/ooo11-calc-tem.ico b/sysui/desktop/icons/ooo11-calc-tem.ico Binary files differnew file mode 100755 index 000000000000..bce2ae3628cb --- /dev/null +++ b/sysui/desktop/icons/ooo11-calc-tem.ico diff --git a/sysui/desktop/icons/ooo11-chart-doc.ico b/sysui/desktop/icons/ooo11-chart-doc.ico Binary files differnew file mode 100755 index 000000000000..e2377f4422b4 --- /dev/null +++ b/sysui/desktop/icons/ooo11-chart-doc.ico diff --git a/sysui/desktop/icons/ooo11-draw-doc.ico b/sysui/desktop/icons/ooo11-draw-doc.ico Binary files differnew file mode 100755 index 000000000000..2d3a08807509 --- /dev/null +++ b/sysui/desktop/icons/ooo11-draw-doc.ico diff --git a/sysui/desktop/icons/ooo11-draw-tem.ico b/sysui/desktop/icons/ooo11-draw-tem.ico Binary files differnew file mode 100755 index 000000000000..2d3a08807509 --- /dev/null +++ b/sysui/desktop/icons/ooo11-draw-tem.ico diff --git a/sysui/desktop/icons/ooo11-impress-doc.ico b/sysui/desktop/icons/ooo11-impress-doc.ico Binary files differnew file mode 100755 index 000000000000..173db796ccce --- /dev/null +++ b/sysui/desktop/icons/ooo11-impress-doc.ico diff --git a/sysui/desktop/icons/ooo11-impress-tem.ico b/sysui/desktop/icons/ooo11-impress-tem.ico Binary files differnew file mode 100755 index 000000000000..173db796ccce --- /dev/null +++ b/sysui/desktop/icons/ooo11-impress-tem.ico diff --git a/sysui/desktop/icons/ooo11-master-doc.ico b/sysui/desktop/icons/ooo11-master-doc.ico Binary files differnew file mode 100755 index 000000000000..e2377f4422b4 --- /dev/null +++ b/sysui/desktop/icons/ooo11-master-doc.ico diff --git a/sysui/desktop/icons/ooo11-math-doc.ico b/sysui/desktop/icons/ooo11-math-doc.ico Binary files differnew file mode 100755 index 000000000000..6360ec449502 --- /dev/null +++ b/sysui/desktop/icons/ooo11-math-doc.ico diff --git a/sysui/desktop/icons/ooo11-writer-doc.ico b/sysui/desktop/icons/ooo11-writer-doc.ico Binary files differnew file mode 100755 index 000000000000..745a58b5189f --- /dev/null +++ b/sysui/desktop/icons/ooo11-writer-doc.ico diff --git a/sysui/desktop/icons/ooo11-writer-tem.ico b/sysui/desktop/icons/ooo11-writer-tem.ico Binary files differnew file mode 100755 index 000000000000..745a58b5189f --- /dev/null +++ b/sysui/desktop/icons/ooo11-writer-tem.ico diff --git a/sysui/desktop/icons/ooo3_base_app.ico b/sysui/desktop/icons/ooo3_base_app.ico Binary files differnew file mode 100755 index 000000000000..ba96b7987627 --- /dev/null +++ b/sysui/desktop/icons/ooo3_base_app.ico diff --git a/sysui/desktop/icons/ooo3_base_doc.ico b/sysui/desktop/icons/ooo3_base_doc.ico Binary files differnew file mode 100644 index 000000000000..87c58e600eb5 --- /dev/null +++ b/sysui/desktop/icons/ooo3_base_doc.ico diff --git a/sysui/desktop/icons/ooo3_calc_app.ico b/sysui/desktop/icons/ooo3_calc_app.ico Binary files differnew file mode 100755 index 000000000000..c96041541556 --- /dev/null +++ b/sysui/desktop/icons/ooo3_calc_app.ico diff --git a/sysui/desktop/icons/ooo3_calc_doc.ico b/sysui/desktop/icons/ooo3_calc_doc.ico Binary files differnew file mode 100644 index 000000000000..92741f3c6e84 --- /dev/null +++ b/sysui/desktop/icons/ooo3_calc_doc.ico diff --git a/sysui/desktop/icons/ooo3_calc_tem.ico b/sysui/desktop/icons/ooo3_calc_tem.ico Binary files differnew file mode 100644 index 000000000000..2a72a5ad4d80 --- /dev/null +++ b/sysui/desktop/icons/ooo3_calc_tem.ico diff --git a/sysui/desktop/icons/ooo3_chart_doc.ico b/sysui/desktop/icons/ooo3_chart_doc.ico Binary files differnew file mode 100644 index 000000000000..5c46bd462650 --- /dev/null +++ b/sysui/desktop/icons/ooo3_chart_doc.ico diff --git a/sysui/desktop/icons/ooo3_draw_app.ico b/sysui/desktop/icons/ooo3_draw_app.ico Binary files differnew file mode 100755 index 000000000000..6e00cb893786 --- /dev/null +++ b/sysui/desktop/icons/ooo3_draw_app.ico diff --git a/sysui/desktop/icons/ooo3_draw_doc.ico b/sysui/desktop/icons/ooo3_draw_doc.ico Binary files differnew file mode 100644 index 000000000000..47ed3efbc406 --- /dev/null +++ b/sysui/desktop/icons/ooo3_draw_doc.ico diff --git a/sysui/desktop/icons/ooo3_draw_tem.ico b/sysui/desktop/icons/ooo3_draw_tem.ico Binary files differnew file mode 100644 index 000000000000..4a55c995be55 --- /dev/null +++ b/sysui/desktop/icons/ooo3_draw_tem.ico diff --git a/sysui/desktop/icons/ooo3_empty_doc.ico b/sysui/desktop/icons/ooo3_empty_doc.ico Binary files differnew file mode 100644 index 000000000000..67e3c345e69d --- /dev/null +++ b/sysui/desktop/icons/ooo3_empty_doc.ico diff --git a/sysui/desktop/icons/ooo3_empty_tem.ico b/sysui/desktop/icons/ooo3_empty_tem.ico Binary files differnew file mode 100644 index 000000000000..eecd336bc4b1 --- /dev/null +++ b/sysui/desktop/icons/ooo3_empty_tem.ico diff --git a/sysui/desktop/icons/ooo3_global_doc.ico b/sysui/desktop/icons/ooo3_global_doc.ico Binary files differnew file mode 100644 index 000000000000..c7113f89e089 --- /dev/null +++ b/sysui/desktop/icons/ooo3_global_doc.ico diff --git a/sysui/desktop/icons/ooo3_html_doc.ico b/sysui/desktop/icons/ooo3_html_doc.ico Binary files differnew file mode 100644 index 000000000000..2c8b5c527eb1 --- /dev/null +++ b/sysui/desktop/icons/ooo3_html_doc.ico diff --git a/sysui/desktop/icons/ooo3_impress_app.ico b/sysui/desktop/icons/ooo3_impress_app.ico Binary files differnew file mode 100755 index 000000000000..23ee3ecc5edf --- /dev/null +++ b/sysui/desktop/icons/ooo3_impress_app.ico diff --git a/sysui/desktop/icons/ooo3_impress_doc.ico b/sysui/desktop/icons/ooo3_impress_doc.ico Binary files differnew file mode 100644 index 000000000000..0e80d9b01d46 --- /dev/null +++ b/sysui/desktop/icons/ooo3_impress_doc.ico diff --git a/sysui/desktop/icons/ooo3_impress_tem.ico b/sysui/desktop/icons/ooo3_impress_tem.ico Binary files differnew file mode 100644 index 000000000000..15f988dcd541 --- /dev/null +++ b/sysui/desktop/icons/ooo3_impress_tem.ico diff --git a/sysui/desktop/icons/ooo3_macro_doc.ico b/sysui/desktop/icons/ooo3_macro_doc.ico Binary files differnew file mode 100644 index 000000000000..6c614ad05d50 --- /dev/null +++ b/sysui/desktop/icons/ooo3_macro_doc.ico diff --git a/sysui/desktop/icons/ooo3_main_app.ico b/sysui/desktop/icons/ooo3_main_app.ico Binary files differnew file mode 100755 index 000000000000..98fcea3748a9 --- /dev/null +++ b/sysui/desktop/icons/ooo3_main_app.ico diff --git a/sysui/desktop/icons/ooo3_math_app.ico b/sysui/desktop/icons/ooo3_math_app.ico Binary files differnew file mode 100755 index 000000000000..605814c96e95 --- /dev/null +++ b/sysui/desktop/icons/ooo3_math_app.ico diff --git a/sysui/desktop/icons/ooo3_math_doc.ico b/sysui/desktop/icons/ooo3_math_doc.ico Binary files differnew file mode 100644 index 000000000000..9e349dcfcbfd --- /dev/null +++ b/sysui/desktop/icons/ooo3_math_doc.ico diff --git a/sysui/desktop/icons/ooo3_open.ico b/sysui/desktop/icons/ooo3_open.ico Binary files differnew file mode 100755 index 000000000000..98fcea3748a9 --- /dev/null +++ b/sysui/desktop/icons/ooo3_open.ico diff --git a/sysui/desktop/icons/ooo3_writer_app.ico b/sysui/desktop/icons/ooo3_writer_app.ico Binary files differnew file mode 100755 index 000000000000..005bd587661b --- /dev/null +++ b/sysui/desktop/icons/ooo3_writer_app.ico diff --git a/sysui/desktop/icons/ooo3_writer_doc.ico b/sysui/desktop/icons/ooo3_writer_doc.ico Binary files differnew file mode 100644 index 000000000000..1ed299a865f9 --- /dev/null +++ b/sysui/desktop/icons/ooo3_writer_doc.ico diff --git a/sysui/desktop/icons/ooo3_writer_tem.ico b/sysui/desktop/icons/ooo3_writer_tem.ico Binary files differnew file mode 100644 index 000000000000..f609be128aaf --- /dev/null +++ b/sysui/desktop/icons/ooo3_writer_tem.ico diff --git a/sysui/desktop/icons/open.icns b/sysui/desktop/icons/open.icns Binary files differnew file mode 100644 index 000000000000..620f8e125bd6 --- /dev/null +++ b/sysui/desktop/icons/open.icns diff --git a/sysui/desktop/icons/oxt-extension.ico b/sysui/desktop/icons/oxt-extension.ico Binary files differnew file mode 100644 index 000000000000..b6c1808d4372 --- /dev/null +++ b/sysui/desktop/icons/oxt-extension.ico diff --git a/sysui/desktop/icons/presentation-template.icns b/sysui/desktop/icons/presentation-template.icns Binary files differnew file mode 100644 index 000000000000..f4d01878b9fb --- /dev/null +++ b/sysui/desktop/icons/presentation-template.icns diff --git a/sysui/desktop/icons/presentation-template.ico b/sysui/desktop/icons/presentation-template.ico Binary files differnew file mode 100644 index 000000000000..471940369aaf --- /dev/null +++ b/sysui/desktop/icons/presentation-template.ico diff --git a/sysui/desktop/icons/presentation.icns b/sysui/desktop/icons/presentation.icns Binary files differnew file mode 100644 index 000000000000..091be5b13677 --- /dev/null +++ b/sysui/desktop/icons/presentation.icns diff --git a/sysui/desktop/icons/presentation.ico b/sysui/desktop/icons/presentation.ico Binary files differnew file mode 100644 index 000000000000..360ef79e18b9 --- /dev/null +++ b/sysui/desktop/icons/presentation.ico diff --git a/sysui/desktop/icons/printer.icns b/sysui/desktop/icons/printer.icns Binary files differnew file mode 100644 index 000000000000..a1eb59934526 --- /dev/null +++ b/sysui/desktop/icons/printer.icns diff --git a/sysui/desktop/icons/so7-base-doc.ico b/sysui/desktop/icons/so7-base-doc.ico Binary files differnew file mode 100755 index 000000000000..e4beab7270e1 --- /dev/null +++ b/sysui/desktop/icons/so7-base-doc.ico diff --git a/sysui/desktop/icons/so7-calc-doc.ico b/sysui/desktop/icons/so7-calc-doc.ico Binary files differnew file mode 100755 index 000000000000..8b34fc606c5d --- /dev/null +++ b/sysui/desktop/icons/so7-calc-doc.ico diff --git a/sysui/desktop/icons/so7-calc-tem.ico b/sysui/desktop/icons/so7-calc-tem.ico Binary files differnew file mode 100755 index 000000000000..d074a214a90b --- /dev/null +++ b/sysui/desktop/icons/so7-calc-tem.ico diff --git a/sysui/desktop/icons/so7-chart-doc.ico b/sysui/desktop/icons/so7-chart-doc.ico Binary files differnew file mode 100755 index 000000000000..bdc613fb30e2 --- /dev/null +++ b/sysui/desktop/icons/so7-chart-doc.ico diff --git a/sysui/desktop/icons/so7-draw-doc.ico b/sysui/desktop/icons/so7-draw-doc.ico Binary files differnew file mode 100755 index 000000000000..c2881862053a --- /dev/null +++ b/sysui/desktop/icons/so7-draw-doc.ico diff --git a/sysui/desktop/icons/so7-draw-tem.ico b/sysui/desktop/icons/so7-draw-tem.ico Binary files differnew file mode 100755 index 000000000000..8d713d0f470e --- /dev/null +++ b/sysui/desktop/icons/so7-draw-tem.ico diff --git a/sysui/desktop/icons/so7-impress-doc.ico b/sysui/desktop/icons/so7-impress-doc.ico Binary files differnew file mode 100755 index 000000000000..a8f9518e624b --- /dev/null +++ b/sysui/desktop/icons/so7-impress-doc.ico diff --git a/sysui/desktop/icons/so7-impress-tem.ico b/sysui/desktop/icons/so7-impress-tem.ico Binary files differnew file mode 100755 index 000000000000..ac140b269242 --- /dev/null +++ b/sysui/desktop/icons/so7-impress-tem.ico diff --git a/sysui/desktop/icons/so7-master-doc.ico b/sysui/desktop/icons/so7-master-doc.ico Binary files differnew file mode 100755 index 000000000000..1c3068715990 --- /dev/null +++ b/sysui/desktop/icons/so7-master-doc.ico diff --git a/sysui/desktop/icons/so7-math-doc.ico b/sysui/desktop/icons/so7-math-doc.ico Binary files differnew file mode 100755 index 000000000000..d1cd9bd4c6bd --- /dev/null +++ b/sysui/desktop/icons/so7-math-doc.ico diff --git a/sysui/desktop/icons/so7-writer-doc.ico b/sysui/desktop/icons/so7-writer-doc.ico Binary files differnew file mode 100755 index 000000000000..b8eb3df20564 --- /dev/null +++ b/sysui/desktop/icons/so7-writer-doc.ico diff --git a/sysui/desktop/icons/so7-writer-tem.ico b/sysui/desktop/icons/so7-writer-tem.ico Binary files differnew file mode 100755 index 000000000000..318cce4bc9a7 --- /dev/null +++ b/sysui/desktop/icons/so7-writer-tem.ico diff --git a/sysui/desktop/icons/so8-base-app.ico b/sysui/desktop/icons/so8-base-app.ico Binary files differnew file mode 100755 index 000000000000..4a22d3529614 --- /dev/null +++ b/sysui/desktop/icons/so8-base-app.ico diff --git a/sysui/desktop/icons/so8-base-doc.ico b/sysui/desktop/icons/so8-base-doc.ico Binary files differnew file mode 100755 index 000000000000..bcddbf957630 --- /dev/null +++ b/sysui/desktop/icons/so8-base-doc.ico diff --git a/sysui/desktop/icons/so8-calc-app.ico b/sysui/desktop/icons/so8-calc-app.ico Binary files differnew file mode 100755 index 000000000000..a28cab56157b --- /dev/null +++ b/sysui/desktop/icons/so8-calc-app.ico diff --git a/sysui/desktop/icons/so8-calc-doc.ico b/sysui/desktop/icons/so8-calc-doc.ico Binary files differnew file mode 100755 index 000000000000..5f293dd82c30 --- /dev/null +++ b/sysui/desktop/icons/so8-calc-doc.ico diff --git a/sysui/desktop/icons/so8-calc-tem.ico b/sysui/desktop/icons/so8-calc-tem.ico Binary files differnew file mode 100755 index 000000000000..98bf90678573 --- /dev/null +++ b/sysui/desktop/icons/so8-calc-tem.ico diff --git a/sysui/desktop/icons/so8-chart-doc.ico b/sysui/desktop/icons/so8-chart-doc.ico Binary files differnew file mode 100755 index 000000000000..01ff8365434b --- /dev/null +++ b/sysui/desktop/icons/so8-chart-doc.ico diff --git a/sysui/desktop/icons/so8-configuration.ico b/sysui/desktop/icons/so8-configuration.ico Binary files differnew file mode 100755 index 000000000000..57f3b6701b30 --- /dev/null +++ b/sysui/desktop/icons/so8-configuration.ico diff --git a/sysui/desktop/icons/so8-draw-app.ico b/sysui/desktop/icons/so8-draw-app.ico Binary files differnew file mode 100755 index 000000000000..6003ccb3d7c3 --- /dev/null +++ b/sysui/desktop/icons/so8-draw-app.ico diff --git a/sysui/desktop/icons/so8-draw-doc.ico b/sysui/desktop/icons/so8-draw-doc.ico Binary files differnew file mode 100755 index 000000000000..f4f169bd6fb5 --- /dev/null +++ b/sysui/desktop/icons/so8-draw-doc.ico diff --git a/sysui/desktop/icons/so8-draw-tem.ico b/sysui/desktop/icons/so8-draw-tem.ico Binary files differnew file mode 100755 index 000000000000..d3f63c38dbe0 --- /dev/null +++ b/sysui/desktop/icons/so8-draw-tem.ico diff --git a/sysui/desktop/icons/so8-empty-doc.ico b/sysui/desktop/icons/so8-empty-doc.ico Binary files differnew file mode 100755 index 000000000000..b71d2b939ca7 --- /dev/null +++ b/sysui/desktop/icons/so8-empty-doc.ico diff --git a/sysui/desktop/icons/so8-empty-tem.ico b/sysui/desktop/icons/so8-empty-tem.ico Binary files differnew file mode 100755 index 000000000000..9368b0a81aef --- /dev/null +++ b/sysui/desktop/icons/so8-empty-tem.ico diff --git a/sysui/desktop/icons/so8-image-doc.ico b/sysui/desktop/icons/so8-image-doc.ico Binary files differnew file mode 100755 index 000000000000..11b4f0f6c718 --- /dev/null +++ b/sysui/desktop/icons/so8-image-doc.ico diff --git a/sysui/desktop/icons/so8-impress-app.ico b/sysui/desktop/icons/so8-impress-app.ico Binary files differnew file mode 100755 index 000000000000..8fae43dab26d --- /dev/null +++ b/sysui/desktop/icons/so8-impress-app.ico diff --git a/sysui/desktop/icons/so8-impress-doc.ico b/sysui/desktop/icons/so8-impress-doc.ico Binary files differnew file mode 100755 index 000000000000..9a91f89f2900 --- /dev/null +++ b/sysui/desktop/icons/so8-impress-doc.ico diff --git a/sysui/desktop/icons/so8-impress-tem.ico b/sysui/desktop/icons/so8-impress-tem.ico Binary files differnew file mode 100755 index 000000000000..f84f813f992c --- /dev/null +++ b/sysui/desktop/icons/so8-impress-tem.ico diff --git a/sysui/desktop/icons/so8-macro-doc.ico b/sysui/desktop/icons/so8-macro-doc.ico Binary files differnew file mode 100755 index 000000000000..f3742e1274e7 --- /dev/null +++ b/sysui/desktop/icons/so8-macro-doc.ico diff --git a/sysui/desktop/icons/so8-main-app.ico b/sysui/desktop/icons/so8-main-app.ico Binary files differnew file mode 100755 index 000000000000..aa044ad9c702 --- /dev/null +++ b/sysui/desktop/icons/so8-main-app.ico diff --git a/sysui/desktop/icons/so8-master-doc.ico b/sysui/desktop/icons/so8-master-doc.ico Binary files differnew file mode 100755 index 000000000000..27a1d2f61c49 --- /dev/null +++ b/sysui/desktop/icons/so8-master-doc.ico diff --git a/sysui/desktop/icons/so8-math-app.ico b/sysui/desktop/icons/so8-math-app.ico Binary files differnew file mode 100755 index 000000000000..956c259c756a --- /dev/null +++ b/sysui/desktop/icons/so8-math-app.ico diff --git a/sysui/desktop/icons/so8-math-doc.ico b/sysui/desktop/icons/so8-math-doc.ico Binary files differnew file mode 100755 index 000000000000..e7b88449999f --- /dev/null +++ b/sysui/desktop/icons/so8-math-doc.ico diff --git a/sysui/desktop/icons/so8-open.ico b/sysui/desktop/icons/so8-open.ico Binary files differnew file mode 100755 index 000000000000..b77a741b338f --- /dev/null +++ b/sysui/desktop/icons/so8-open.ico diff --git a/sysui/desktop/icons/so8-printer.ico b/sysui/desktop/icons/so8-printer.ico Binary files differnew file mode 100755 index 000000000000..25e61f8de5d5 --- /dev/null +++ b/sysui/desktop/icons/so8-printer.ico diff --git a/sysui/desktop/icons/so8-web-doc.ico b/sysui/desktop/icons/so8-web-doc.ico Binary files differnew file mode 100755 index 000000000000..12eeb63cffb2 --- /dev/null +++ b/sysui/desktop/icons/so8-web-doc.ico diff --git a/sysui/desktop/icons/so8-writer-app.ico b/sysui/desktop/icons/so8-writer-app.ico Binary files differnew file mode 100755 index 000000000000..15f7f92d4b45 --- /dev/null +++ b/sysui/desktop/icons/so8-writer-app.ico diff --git a/sysui/desktop/icons/so8-writer-doc.ico b/sysui/desktop/icons/so8-writer-doc.ico Binary files differnew file mode 100755 index 000000000000..da774be1d3ac --- /dev/null +++ b/sysui/desktop/icons/so8-writer-doc.ico diff --git a/sysui/desktop/icons/so8-writer-tem.ico b/sysui/desktop/icons/so8-writer-tem.ico Binary files differnew file mode 100755 index 000000000000..1bdb86c8090f --- /dev/null +++ b/sysui/desktop/icons/so8-writer-tem.ico diff --git a/sysui/desktop/icons/so9_base_app.ico b/sysui/desktop/icons/so9_base_app.ico Binary files differnew file mode 100755 index 000000000000..aa7036eb90fc --- /dev/null +++ b/sysui/desktop/icons/so9_base_app.ico diff --git a/sysui/desktop/icons/so9_base_doc.ico b/sysui/desktop/icons/so9_base_doc.ico Binary files differnew file mode 100755 index 000000000000..8cc1d4433c2c --- /dev/null +++ b/sysui/desktop/icons/so9_base_doc.ico diff --git a/sysui/desktop/icons/so9_calc_app.ico b/sysui/desktop/icons/so9_calc_app.ico Binary files differnew file mode 100755 index 000000000000..d7182cad0943 --- /dev/null +++ b/sysui/desktop/icons/so9_calc_app.ico diff --git a/sysui/desktop/icons/so9_calc_doc.ico b/sysui/desktop/icons/so9_calc_doc.ico Binary files differnew file mode 100755 index 000000000000..2b9e514cb97b --- /dev/null +++ b/sysui/desktop/icons/so9_calc_doc.ico diff --git a/sysui/desktop/icons/so9_calc_tem.ico b/sysui/desktop/icons/so9_calc_tem.ico Binary files differnew file mode 100755 index 000000000000..17f4823c4374 --- /dev/null +++ b/sysui/desktop/icons/so9_calc_tem.ico diff --git a/sysui/desktop/icons/so9_chart_doc.ico b/sysui/desktop/icons/so9_chart_doc.ico Binary files differnew file mode 100755 index 000000000000..b116c81903b3 --- /dev/null +++ b/sysui/desktop/icons/so9_chart_doc.ico diff --git a/sysui/desktop/icons/so9_draw_app.ico b/sysui/desktop/icons/so9_draw_app.ico Binary files differnew file mode 100755 index 000000000000..a8b3c3270fc0 --- /dev/null +++ b/sysui/desktop/icons/so9_draw_app.ico diff --git a/sysui/desktop/icons/so9_draw_doc.ico b/sysui/desktop/icons/so9_draw_doc.ico Binary files differnew file mode 100755 index 000000000000..51f95046709a --- /dev/null +++ b/sysui/desktop/icons/so9_draw_doc.ico diff --git a/sysui/desktop/icons/so9_draw_tem.ico b/sysui/desktop/icons/so9_draw_tem.ico Binary files differnew file mode 100755 index 000000000000..e4b341175bff --- /dev/null +++ b/sysui/desktop/icons/so9_draw_tem.ico diff --git a/sysui/desktop/icons/so9_empty_doc.ico b/sysui/desktop/icons/so9_empty_doc.ico Binary files differnew file mode 100755 index 000000000000..a3970775e3ed --- /dev/null +++ b/sysui/desktop/icons/so9_empty_doc.ico diff --git a/sysui/desktop/icons/so9_empty_tem.ico b/sysui/desktop/icons/so9_empty_tem.ico Binary files differnew file mode 100755 index 000000000000..1b0088b80277 --- /dev/null +++ b/sysui/desktop/icons/so9_empty_tem.ico diff --git a/sysui/desktop/icons/so9_global_doc.ico b/sysui/desktop/icons/so9_global_doc.ico Binary files differnew file mode 100755 index 000000000000..ea4ccb383956 --- /dev/null +++ b/sysui/desktop/icons/so9_global_doc.ico diff --git a/sysui/desktop/icons/so9_html_doc.ico b/sysui/desktop/icons/so9_html_doc.ico Binary files differnew file mode 100755 index 000000000000..4e5b8bc99c07 --- /dev/null +++ b/sysui/desktop/icons/so9_html_doc.ico diff --git a/sysui/desktop/icons/so9_impress_app.ico b/sysui/desktop/icons/so9_impress_app.ico Binary files differnew file mode 100755 index 000000000000..cf10331c5ff9 --- /dev/null +++ b/sysui/desktop/icons/so9_impress_app.ico diff --git a/sysui/desktop/icons/so9_impress_doc.ico b/sysui/desktop/icons/so9_impress_doc.ico Binary files differnew file mode 100755 index 000000000000..5258a8b6aa4c --- /dev/null +++ b/sysui/desktop/icons/so9_impress_doc.ico diff --git a/sysui/desktop/icons/so9_impress_tem.ico b/sysui/desktop/icons/so9_impress_tem.ico Binary files differnew file mode 100755 index 000000000000..dcdbddb3b654 --- /dev/null +++ b/sysui/desktop/icons/so9_impress_tem.ico diff --git a/sysui/desktop/icons/so9_macro_doc.ico b/sysui/desktop/icons/so9_macro_doc.ico Binary files differnew file mode 100755 index 000000000000..cd004015e63f --- /dev/null +++ b/sysui/desktop/icons/so9_macro_doc.ico diff --git a/sysui/desktop/icons/so9_main_app.ico b/sysui/desktop/icons/so9_main_app.ico Binary files differnew file mode 100755 index 000000000000..90f193d80dd9 --- /dev/null +++ b/sysui/desktop/icons/so9_main_app.ico diff --git a/sysui/desktop/icons/so9_math_app.ico b/sysui/desktop/icons/so9_math_app.ico Binary files differnew file mode 100755 index 000000000000..11fbbf9a494a --- /dev/null +++ b/sysui/desktop/icons/so9_math_app.ico diff --git a/sysui/desktop/icons/so9_math_doc.ico b/sysui/desktop/icons/so9_math_doc.ico Binary files differnew file mode 100755 index 000000000000..622ae939d23a --- /dev/null +++ b/sysui/desktop/icons/so9_math_doc.ico diff --git a/sysui/desktop/icons/so9_open.ico b/sysui/desktop/icons/so9_open.ico Binary files differnew file mode 100755 index 000000000000..90f193d80dd9 --- /dev/null +++ b/sysui/desktop/icons/so9_open.ico diff --git a/sysui/desktop/icons/so9_writer_app.ico b/sysui/desktop/icons/so9_writer_app.ico Binary files differnew file mode 100755 index 000000000000..10c964dba966 --- /dev/null +++ b/sysui/desktop/icons/so9_writer_app.ico diff --git a/sysui/desktop/icons/so9_writer_doc.ico b/sysui/desktop/icons/so9_writer_doc.ico Binary files differnew file mode 100755 index 000000000000..b0cf11a993c9 --- /dev/null +++ b/sysui/desktop/icons/so9_writer_doc.ico diff --git a/sysui/desktop/icons/so9_writer_tem.ico b/sysui/desktop/icons/so9_writer_tem.ico Binary files differnew file mode 100755 index 000000000000..2e62a1934646 --- /dev/null +++ b/sysui/desktop/icons/so9_writer_tem.ico diff --git a/sysui/desktop/icons/spreadsheet-template.icns b/sysui/desktop/icons/spreadsheet-template.icns Binary files differnew file mode 100644 index 000000000000..d2dfa849296b --- /dev/null +++ b/sysui/desktop/icons/spreadsheet-template.icns diff --git a/sysui/desktop/icons/spreadsheet-template.ico b/sysui/desktop/icons/spreadsheet-template.ico Binary files differnew file mode 100644 index 000000000000..be267eb21bb1 --- /dev/null +++ b/sysui/desktop/icons/spreadsheet-template.ico diff --git a/sysui/desktop/icons/spreadsheet.icns b/sysui/desktop/icons/spreadsheet.icns Binary files differnew file mode 100644 index 000000000000..5c893541954b --- /dev/null +++ b/sysui/desktop/icons/spreadsheet.icns diff --git a/sysui/desktop/icons/spreadsheet.ico b/sysui/desktop/icons/spreadsheet.ico Binary files differnew file mode 100644 index 000000000000..a88045e9c1c3 --- /dev/null +++ b/sysui/desktop/icons/spreadsheet.ico diff --git a/sysui/desktop/icons/text-template.icns b/sysui/desktop/icons/text-template.icns Binary files differnew file mode 100644 index 000000000000..8b9694ac755a --- /dev/null +++ b/sysui/desktop/icons/text-template.icns diff --git a/sysui/desktop/icons/text-template.ico b/sysui/desktop/icons/text-template.ico Binary files differnew file mode 100644 index 000000000000..07986929a6f1 --- /dev/null +++ b/sysui/desktop/icons/text-template.ico diff --git a/sysui/desktop/icons/text.icns b/sysui/desktop/icons/text.icns Binary files differnew file mode 100644 index 000000000000..401d2b9dbf6c --- /dev/null +++ b/sysui/desktop/icons/text.icns diff --git a/sysui/desktop/icons/text.ico b/sysui/desktop/icons/text.ico Binary files differnew file mode 100644 index 000000000000..f19a7812b15a --- /dev/null +++ b/sysui/desktop/icons/text.ico diff --git a/sysui/desktop/icons/writer.icns b/sysui/desktop/icons/writer.icns Binary files differnew file mode 100644 index 000000000000..d0f44815e8fa --- /dev/null +++ b/sysui/desktop/icons/writer.icns diff --git a/sysui/desktop/macosx/Info.plist b/sysui/desktop/macosx/Info.plist new file mode 100644 index 000000000000..cf04e8086afe --- /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.openoffice.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>OOo2</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 100644 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 100644 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 100644 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 100644 index 000000000000..654ac5579df9 --- /dev/null +++ b/sysui/desktop/macosx/makefile.mk @@ -0,0 +1,91 @@ +#************************************************************************* +# +# 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) + +.IF "$(GUIBASE)"!="aqua" +CREATOR_TYPE=OOo2 +EXECUTABLE=droplet +.ELSE +CREATOR_TYPE=OOO2 +EXECUTABLE=soffice +.ENDIF + +.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/mandriva/makefile.mk b/sysui/desktop/mandriva/makefile.mk new file mode 100644 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 100644 index 000000000000..4c02c70d90c1 --- /dev/null +++ b/sysui/desktop/mandriva/mandriva-menus.spec @@ -0,0 +1,335 @@ +# 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: openoffice.org3-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-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-template otg +application/vnd.oasis.opendocument.presentation odp +application/vnd.oasis.opendocument.presentation-template otp +application/vnd.oasis.opendocument.spreadsheet ods +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-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-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-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-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 +%attr(0755,root,root) /usr/bin/soffice +%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 100644 index 000000000000..9497666691fe --- /dev/null +++ b/sysui/desktop/menus/base.desktop @@ -0,0 +1,12 @@ +[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=openoffice -base %U +MimeType=application/vnd.oasis.opendocument.database;application/vnd.sun.xml.base; +Name=%PRODUCTNAME 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 100644 index 000000000000..bc0c9ee8b618 --- /dev/null +++ b/sysui/desktop/menus/calc.desktop @@ -0,0 +1,12 @@ +[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=openoffice -calc %U +MimeType=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;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 +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 100644 index 000000000000..42db7c6f84a0 --- /dev/null +++ b/sysui/desktop/menus/draw.desktop @@ -0,0 +1,12 @@ +[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=openoffice -draw %U +MimeType=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; +Name=%PRODUCTNAME 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 100644 index 000000000000..90df11ac54f1 --- /dev/null +++ b/sysui/desktop/menus/impress.desktop @@ -0,0 +1,12 @@ +[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=openoffice -impress %U +MimeType=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;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 +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 100644 index 000000000000..9d230f954a7b --- /dev/null +++ b/sysui/desktop/menus/javafilter.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Version=1.0 +Terminal=false +Type=Application +Exec=openoffice -writer %U +MimeType=application/x-aportisdoc;application/x-pocket-word;application/x-pocket-excel; +Name=%PRODUCTNAME 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 100644 index 000000000000..f97536d6ef04 --- /dev/null +++ b/sysui/desktop/menus/math.desktop @@ -0,0 +1,12 @@ +[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=openoffice -math %U +MimeType=application/vnd.oasis.opendocument.formula;application/vnd.sun.xml.math;application/vnd.stardivision.math; +Name=%PRODUCTNAME 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 100644 index 000000000000..9ddd9bff495f --- /dev/null +++ b/sysui/desktop/menus/printeradmin.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Version=1.0 +Terminal=false +Icon=printeradmin +Type=Application +Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office; +Exec=openoffice-printeradmin +Name=%PRODUCTNAME Printer Administration diff --git a/sysui/desktop/menus/qstart.desktop b/sysui/desktop/menus/qstart.desktop new file mode 100644 index 000000000000..17e4edfff19e --- /dev/null +++ b/sysui/desktop/menus/qstart.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Version=1.0 +Terminal=false +Type=Application +Categories=Office; +Exec=openoffice -quickstart -nologo -nodefault +NoDisplay=true +Name=%PRODUCTNAME Quickstarter +Comment=Hook for quickstarter startup diff --git a/sysui/desktop/menus/startcenter.desktop b/sysui/desktop/menus/startcenter.desktop new file mode 100644 index 000000000000..6302a5b16289 --- /dev/null +++ b/sysui/desktop/menus/startcenter.desktop @@ -0,0 +1,11 @@ +[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=openoffice %U +MimeType=application/vnd.openofficeorg.extension; +Name=%PRODUCTNAME +GenericName=Office +Comment=The office productivity suite compatible to the open and standardized ODF document format. Supported by Sun Microsystems. diff --git a/sysui/desktop/menus/writer.desktop b/sysui/desktop/menus/writer.desktop new file mode 100644 index 000000000000..1509de0fb402 --- /dev/null +++ b/sysui/desktop/menus/writer.desktop @@ -0,0 +1,12 @@ +[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=openoffice -writer %U +MimeType=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;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 +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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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-template.desktop b/sysui/desktop/mimetypes/oasis-drawing-template.desktop new file mode 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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-template.desktop b/sysui/desktop/mimetypes/oasis-presentation-template.desktop new file mode 100644 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 100644 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 100644 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 100644 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-template.desktop b/sysui/desktop/mimetypes/oasis-spreadsheet-template.desktop new file mode 100644 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 100644 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 100644 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 100644 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-template.desktop b/sysui/desktop/mimetypes/oasis-text-template.desktop new file mode 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 index 000000000000..d2621020e7f4 --- /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 + supported_uri_schemes=file,http,https,smb + mime_types=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.oasis.opendocument.graphics,application/vnd.oasis.opendocument.graphics-template,application/vnd.oasis.opendocument.presentation,application/vnd.oasis.opendocument.presentation-template,application/vnd.oasis.opendocument.spreadsheet,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 100644 index 000000000000..67c56482538b --- /dev/null +++ b/sysui/desktop/mimetypes/openoffice.mime @@ -0,0 +1,83 @@ +application/vnd.oasis.opendocument.text: + ext: odt + +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-template: + ext: otg + +application/vnd.oasis.opendocument.presentation: + ext: odp + +application/vnd.oasis.opendocument.presentation-template: + ext: otp + +application/vnd.oasis.opendocument.spreadsheet: + ext: ods + +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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 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 Binary files differnew file mode 100644 index 000000000000..e55abae34476 --- /dev/null +++ b/sysui/desktop/os2/ooo-base-app.ico diff --git a/sysui/desktop/os2/ooo-base-doc.ico b/sysui/desktop/os2/ooo-base-doc.ico Binary files differnew file mode 100644 index 000000000000..e1b033ad1050 --- /dev/null +++ b/sysui/desktop/os2/ooo-base-doc.ico diff --git a/sysui/desktop/os2/ooo-calc-app.ico b/sysui/desktop/os2/ooo-calc-app.ico Binary files differnew file mode 100644 index 000000000000..66adbc663516 --- /dev/null +++ b/sysui/desktop/os2/ooo-calc-app.ico diff --git a/sysui/desktop/os2/ooo-calc-doc.ico b/sysui/desktop/os2/ooo-calc-doc.ico Binary files differnew file mode 100644 index 000000000000..0cfc09f9c9f1 --- /dev/null +++ b/sysui/desktop/os2/ooo-calc-doc.ico diff --git a/sysui/desktop/os2/ooo-calc-tem.ico b/sysui/desktop/os2/ooo-calc-tem.ico Binary files differnew file mode 100644 index 000000000000..363703e35369 --- /dev/null +++ b/sysui/desktop/os2/ooo-calc-tem.ico diff --git a/sysui/desktop/os2/ooo-chart-doc.ico b/sysui/desktop/os2/ooo-chart-doc.ico Binary files differnew file mode 100644 index 000000000000..fee582f29d49 --- /dev/null +++ b/sysui/desktop/os2/ooo-chart-doc.ico diff --git a/sysui/desktop/os2/ooo-configuration.ico b/sysui/desktop/os2/ooo-configuration.ico Binary files differnew file mode 100644 index 000000000000..2723b37fcb8e --- /dev/null +++ b/sysui/desktop/os2/ooo-configuration.ico diff --git a/sysui/desktop/os2/ooo-draw-app.ico b/sysui/desktop/os2/ooo-draw-app.ico Binary files differnew file mode 100644 index 000000000000..1524d9989566 --- /dev/null +++ b/sysui/desktop/os2/ooo-draw-app.ico diff --git a/sysui/desktop/os2/ooo-draw-doc.ico b/sysui/desktop/os2/ooo-draw-doc.ico Binary files differnew file mode 100644 index 000000000000..a63a39b787cf --- /dev/null +++ b/sysui/desktop/os2/ooo-draw-doc.ico diff --git a/sysui/desktop/os2/ooo-draw-tem.ico b/sysui/desktop/os2/ooo-draw-tem.ico Binary files differnew file mode 100644 index 000000000000..cac9513cb3c2 --- /dev/null +++ b/sysui/desktop/os2/ooo-draw-tem.ico diff --git a/sysui/desktop/os2/ooo-empty-doc.ico b/sysui/desktop/os2/ooo-empty-doc.ico Binary files differnew file mode 100644 index 000000000000..350e6ac37da3 --- /dev/null +++ b/sysui/desktop/os2/ooo-empty-doc.ico diff --git a/sysui/desktop/os2/ooo-empty-tem.ico b/sysui/desktop/os2/ooo-empty-tem.ico Binary files differnew file mode 100644 index 000000000000..3cdff3d8c73a --- /dev/null +++ b/sysui/desktop/os2/ooo-empty-tem.ico diff --git a/sysui/desktop/os2/ooo-image-doc.ico b/sysui/desktop/os2/ooo-image-doc.ico Binary files differnew file mode 100644 index 000000000000..b1fed4dca8da --- /dev/null +++ b/sysui/desktop/os2/ooo-image-doc.ico diff --git a/sysui/desktop/os2/ooo-impress-app.ico b/sysui/desktop/os2/ooo-impress-app.ico Binary files differnew file mode 100644 index 000000000000..e58eaad5cdc9 --- /dev/null +++ b/sysui/desktop/os2/ooo-impress-app.ico diff --git a/sysui/desktop/os2/ooo-impress-doc.ico b/sysui/desktop/os2/ooo-impress-doc.ico Binary files differnew file mode 100644 index 000000000000..ba1b6df74e33 --- /dev/null +++ b/sysui/desktop/os2/ooo-impress-doc.ico diff --git a/sysui/desktop/os2/ooo-impress-tem.ico b/sysui/desktop/os2/ooo-impress-tem.ico Binary files differnew file mode 100644 index 000000000000..93a3509ad5fe --- /dev/null +++ b/sysui/desktop/os2/ooo-impress-tem.ico diff --git a/sysui/desktop/os2/ooo-macro-doc.ico b/sysui/desktop/os2/ooo-macro-doc.ico Binary files differnew file mode 100644 index 000000000000..2fe6c55f581e --- /dev/null +++ b/sysui/desktop/os2/ooo-macro-doc.ico diff --git a/sysui/desktop/os2/ooo-main-app.ico b/sysui/desktop/os2/ooo-main-app.ico Binary files differnew file mode 100644 index 000000000000..f7edd4524bc1 --- /dev/null +++ b/sysui/desktop/os2/ooo-main-app.ico diff --git a/sysui/desktop/os2/ooo-master-doc.ico b/sysui/desktop/os2/ooo-master-doc.ico Binary files differnew file mode 100644 index 000000000000..2861de24d1c4 --- /dev/null +++ b/sysui/desktop/os2/ooo-master-doc.ico diff --git a/sysui/desktop/os2/ooo-math-app.ico b/sysui/desktop/os2/ooo-math-app.ico Binary files differnew file mode 100644 index 000000000000..c3c3c81c9106 --- /dev/null +++ b/sysui/desktop/os2/ooo-math-app.ico diff --git a/sysui/desktop/os2/ooo-math-doc.ico b/sysui/desktop/os2/ooo-math-doc.ico Binary files differnew file mode 100644 index 000000000000..a605e9e1ae0e --- /dev/null +++ b/sysui/desktop/os2/ooo-math-doc.ico diff --git a/sysui/desktop/os2/ooo-open.ico b/sysui/desktop/os2/ooo-open.ico Binary files differnew file mode 100644 index 000000000000..508909ea3815 --- /dev/null +++ b/sysui/desktop/os2/ooo-open.ico diff --git a/sysui/desktop/os2/ooo-printer.ico b/sysui/desktop/os2/ooo-printer.ico Binary files differnew file mode 100644 index 000000000000..30ed6cd00ccc --- /dev/null +++ b/sysui/desktop/os2/ooo-printer.ico diff --git a/sysui/desktop/os2/ooo-web-doc.ico b/sysui/desktop/os2/ooo-web-doc.ico Binary files differnew file mode 100644 index 000000000000..d8b497633528 --- /dev/null +++ b/sysui/desktop/os2/ooo-web-doc.ico diff --git a/sysui/desktop/os2/ooo-writer-app.ico b/sysui/desktop/os2/ooo-writer-app.ico Binary files differnew file mode 100644 index 000000000000..c6a5e1fdfc7f --- /dev/null +++ b/sysui/desktop/os2/ooo-writer-app.ico diff --git a/sysui/desktop/os2/ooo-writer-doc.ico b/sysui/desktop/os2/ooo-writer-doc.ico Binary files differnew file mode 100644 index 000000000000..02a95ecee479 --- /dev/null +++ b/sysui/desktop/os2/ooo-writer-doc.ico diff --git a/sysui/desktop/os2/ooo-writer-tem.ico b/sysui/desktop/os2/ooo-writer-tem.ico Binary files differnew file mode 100644 index 000000000000..b356cffbdcbf --- /dev/null +++ b/sysui/desktop/os2/ooo-writer-tem.ico diff --git a/sysui/desktop/os2/ooo11-base-doc.ico b/sysui/desktop/os2/ooo11-base-doc.ico Binary files differnew file mode 100644 index 000000000000..dda0cba1e22f --- /dev/null +++ b/sysui/desktop/os2/ooo11-base-doc.ico diff --git a/sysui/desktop/os2/ooo11-calc-doc.ico b/sysui/desktop/os2/ooo11-calc-doc.ico Binary files differnew file mode 100644 index 000000000000..d891a04c869a --- /dev/null +++ b/sysui/desktop/os2/ooo11-calc-doc.ico diff --git a/sysui/desktop/os2/ooo11-calc-tem.ico b/sysui/desktop/os2/ooo11-calc-tem.ico Binary files differnew file mode 100644 index 000000000000..d891a04c869a --- /dev/null +++ b/sysui/desktop/os2/ooo11-calc-tem.ico diff --git a/sysui/desktop/os2/ooo11-chart-doc.ico b/sysui/desktop/os2/ooo11-chart-doc.ico Binary files differnew file mode 100644 index 000000000000..dda0cba1e22f --- /dev/null +++ b/sysui/desktop/os2/ooo11-chart-doc.ico diff --git a/sysui/desktop/os2/ooo11-draw-doc.ico b/sysui/desktop/os2/ooo11-draw-doc.ico Binary files differnew file mode 100644 index 000000000000..61312fbe562e --- /dev/null +++ b/sysui/desktop/os2/ooo11-draw-doc.ico diff --git a/sysui/desktop/os2/ooo11-draw-tem.ico b/sysui/desktop/os2/ooo11-draw-tem.ico Binary files differnew file mode 100644 index 000000000000..61312fbe562e --- /dev/null +++ b/sysui/desktop/os2/ooo11-draw-tem.ico diff --git a/sysui/desktop/os2/ooo11-impress-doc.ico b/sysui/desktop/os2/ooo11-impress-doc.ico Binary files differnew file mode 100644 index 000000000000..cebf5e56bc77 --- /dev/null +++ b/sysui/desktop/os2/ooo11-impress-doc.ico diff --git a/sysui/desktop/os2/ooo11-impress-tem.ico b/sysui/desktop/os2/ooo11-impress-tem.ico Binary files differnew file mode 100644 index 000000000000..cebf5e56bc77 --- /dev/null +++ b/sysui/desktop/os2/ooo11-impress-tem.ico diff --git a/sysui/desktop/os2/ooo11-master-doc.ico b/sysui/desktop/os2/ooo11-master-doc.ico Binary files differnew file mode 100644 index 000000000000..dda0cba1e22f --- /dev/null +++ b/sysui/desktop/os2/ooo11-master-doc.ico diff --git a/sysui/desktop/os2/ooo11-math-doc.ico b/sysui/desktop/os2/ooo11-math-doc.ico Binary files differnew file mode 100644 index 000000000000..ab8c16007727 --- /dev/null +++ b/sysui/desktop/os2/ooo11-math-doc.ico diff --git a/sysui/desktop/os2/ooo11-writer-doc.ico b/sysui/desktop/os2/ooo11-writer-doc.ico Binary files differnew file mode 100644 index 000000000000..901d8ec3df33 --- /dev/null +++ b/sysui/desktop/os2/ooo11-writer-doc.ico diff --git a/sysui/desktop/os2/ooo11-writer-tem.ico b/sysui/desktop/os2/ooo11-writer-tem.ico Binary files differnew file mode 100644 index 000000000000..901d8ec3df33 --- /dev/null +++ b/sysui/desktop/os2/ooo11-writer-tem.ico diff --git a/sysui/desktop/os2/so7-base-doc.ico b/sysui/desktop/os2/so7-base-doc.ico Binary files differnew file mode 100644 index 000000000000..5ffd7549cc5b --- /dev/null +++ b/sysui/desktop/os2/so7-base-doc.ico diff --git a/sysui/desktop/os2/so7-calc-doc.ico b/sysui/desktop/os2/so7-calc-doc.ico Binary files differnew file mode 100644 index 000000000000..ead58e51ff6d --- /dev/null +++ b/sysui/desktop/os2/so7-calc-doc.ico diff --git a/sysui/desktop/os2/so7-calc-tem.ico b/sysui/desktop/os2/so7-calc-tem.ico Binary files differnew file mode 100644 index 000000000000..bdbeb0406ccd --- /dev/null +++ b/sysui/desktop/os2/so7-calc-tem.ico diff --git a/sysui/desktop/os2/so7-chart-doc.ico b/sysui/desktop/os2/so7-chart-doc.ico Binary files differnew file mode 100644 index 000000000000..5412287c37ea --- /dev/null +++ b/sysui/desktop/os2/so7-chart-doc.ico diff --git a/sysui/desktop/os2/so7-draw-doc.ico b/sysui/desktop/os2/so7-draw-doc.ico Binary files differnew file mode 100644 index 000000000000..3e4ab098070d --- /dev/null +++ b/sysui/desktop/os2/so7-draw-doc.ico diff --git a/sysui/desktop/os2/so7-draw-tem.ico b/sysui/desktop/os2/so7-draw-tem.ico Binary files differnew file mode 100644 index 000000000000..ca46a39a5f21 --- /dev/null +++ b/sysui/desktop/os2/so7-draw-tem.ico diff --git a/sysui/desktop/os2/so7-impress-doc.ico b/sysui/desktop/os2/so7-impress-doc.ico Binary files differnew file mode 100644 index 000000000000..4df2d73d3c23 --- /dev/null +++ b/sysui/desktop/os2/so7-impress-doc.ico diff --git a/sysui/desktop/os2/so7-impress-tem.ico b/sysui/desktop/os2/so7-impress-tem.ico Binary files differnew file mode 100644 index 000000000000..0c29d09ebf53 --- /dev/null +++ b/sysui/desktop/os2/so7-impress-tem.ico diff --git a/sysui/desktop/os2/so7-master-doc.ico b/sysui/desktop/os2/so7-master-doc.ico Binary files differnew file mode 100644 index 000000000000..70a7fa52afe7 --- /dev/null +++ b/sysui/desktop/os2/so7-master-doc.ico diff --git a/sysui/desktop/os2/so7-math-doc.ico b/sysui/desktop/os2/so7-math-doc.ico Binary files differnew file mode 100644 index 000000000000..9e1f3bb4dbf2 --- /dev/null +++ b/sysui/desktop/os2/so7-math-doc.ico diff --git a/sysui/desktop/os2/so7-writer-doc.ico b/sysui/desktop/os2/so7-writer-doc.ico Binary files differnew file mode 100644 index 000000000000..01e1fcc897bf --- /dev/null +++ b/sysui/desktop/os2/so7-writer-doc.ico diff --git a/sysui/desktop/os2/so7-writer-tem.ico b/sysui/desktop/os2/so7-writer-tem.ico Binary files differnew file mode 100644 index 000000000000..c6bc74e0e2e3 --- /dev/null +++ b/sysui/desktop/os2/so7-writer-tem.ico diff --git a/sysui/desktop/os2/so8-base-app.ico b/sysui/desktop/os2/so8-base-app.ico Binary files differnew file mode 100644 index 000000000000..8480d3cf506f --- /dev/null +++ b/sysui/desktop/os2/so8-base-app.ico diff --git a/sysui/desktop/os2/so8-base-doc.ico b/sysui/desktop/os2/so8-base-doc.ico Binary files differnew file mode 100644 index 000000000000..c539d1f4a773 --- /dev/null +++ b/sysui/desktop/os2/so8-base-doc.ico diff --git a/sysui/desktop/os2/so8-calc-app.ico b/sysui/desktop/os2/so8-calc-app.ico Binary files differnew file mode 100644 index 000000000000..fc129ca9771d --- /dev/null +++ b/sysui/desktop/os2/so8-calc-app.ico diff --git a/sysui/desktop/os2/so8-calc-doc.ico b/sysui/desktop/os2/so8-calc-doc.ico Binary files differnew file mode 100644 index 000000000000..b5184ff419aa --- /dev/null +++ b/sysui/desktop/os2/so8-calc-doc.ico diff --git a/sysui/desktop/os2/so8-calc-tem.ico b/sysui/desktop/os2/so8-calc-tem.ico Binary files differnew file mode 100644 index 000000000000..6c6b6dbbd44e --- /dev/null +++ b/sysui/desktop/os2/so8-calc-tem.ico diff --git a/sysui/desktop/os2/so8-chart-doc.ico b/sysui/desktop/os2/so8-chart-doc.ico Binary files differnew file mode 100644 index 000000000000..a3b8ae3c0a1a --- /dev/null +++ b/sysui/desktop/os2/so8-chart-doc.ico diff --git a/sysui/desktop/os2/so8-configuration.ico b/sysui/desktop/os2/so8-configuration.ico Binary files differnew file mode 100644 index 000000000000..eebd9d899aac --- /dev/null +++ b/sysui/desktop/os2/so8-configuration.ico diff --git a/sysui/desktop/os2/so8-draw-app.ico b/sysui/desktop/os2/so8-draw-app.ico Binary files differnew file mode 100644 index 000000000000..c491094c5faa --- /dev/null +++ b/sysui/desktop/os2/so8-draw-app.ico diff --git a/sysui/desktop/os2/so8-draw-doc.ico b/sysui/desktop/os2/so8-draw-doc.ico Binary files differnew file mode 100644 index 000000000000..28d1b32e161e --- /dev/null +++ b/sysui/desktop/os2/so8-draw-doc.ico diff --git a/sysui/desktop/os2/so8-draw-tem.ico b/sysui/desktop/os2/so8-draw-tem.ico Binary files differnew file mode 100644 index 000000000000..caf6ddc8c94d --- /dev/null +++ b/sysui/desktop/os2/so8-draw-tem.ico diff --git a/sysui/desktop/os2/so8-empty-doc.ico b/sysui/desktop/os2/so8-empty-doc.ico Binary files differnew file mode 100644 index 000000000000..23b1bfa00843 --- /dev/null +++ b/sysui/desktop/os2/so8-empty-doc.ico diff --git a/sysui/desktop/os2/so8-empty-tem.ico b/sysui/desktop/os2/so8-empty-tem.ico Binary files differnew file mode 100644 index 000000000000..08d0ff03730b --- /dev/null +++ b/sysui/desktop/os2/so8-empty-tem.ico diff --git a/sysui/desktop/os2/so8-image-doc.ico b/sysui/desktop/os2/so8-image-doc.ico Binary files differnew file mode 100644 index 000000000000..2c734453e638 --- /dev/null +++ b/sysui/desktop/os2/so8-image-doc.ico diff --git a/sysui/desktop/os2/so8-impress-app.ico b/sysui/desktop/os2/so8-impress-app.ico Binary files differnew file mode 100644 index 000000000000..f77ba1d055d0 --- /dev/null +++ b/sysui/desktop/os2/so8-impress-app.ico diff --git a/sysui/desktop/os2/so8-impress-doc.ico b/sysui/desktop/os2/so8-impress-doc.ico Binary files differnew file mode 100644 index 000000000000..9bf3ea37f130 --- /dev/null +++ b/sysui/desktop/os2/so8-impress-doc.ico diff --git a/sysui/desktop/os2/so8-impress-tem.ico b/sysui/desktop/os2/so8-impress-tem.ico Binary files differnew file mode 100644 index 000000000000..fe6a1ffbc61d --- /dev/null +++ b/sysui/desktop/os2/so8-impress-tem.ico diff --git a/sysui/desktop/os2/so8-macro-doc.ico b/sysui/desktop/os2/so8-macro-doc.ico Binary files differnew file mode 100644 index 000000000000..e828c0cd7afa --- /dev/null +++ b/sysui/desktop/os2/so8-macro-doc.ico diff --git a/sysui/desktop/os2/so8-main-app.ico b/sysui/desktop/os2/so8-main-app.ico Binary files differnew file mode 100644 index 000000000000..d158dd3bdbda --- /dev/null +++ b/sysui/desktop/os2/so8-main-app.ico diff --git a/sysui/desktop/os2/so8-master-doc.ico b/sysui/desktop/os2/so8-master-doc.ico Binary files differnew file mode 100644 index 000000000000..1b2ba16e5d45 --- /dev/null +++ b/sysui/desktop/os2/so8-master-doc.ico diff --git a/sysui/desktop/os2/so8-math-app.ico b/sysui/desktop/os2/so8-math-app.ico Binary files differnew file mode 100644 index 000000000000..0299bedde70e --- /dev/null +++ b/sysui/desktop/os2/so8-math-app.ico diff --git a/sysui/desktop/os2/so8-math-doc.ico b/sysui/desktop/os2/so8-math-doc.ico Binary files differnew file mode 100644 index 000000000000..cacbcd977732 --- /dev/null +++ b/sysui/desktop/os2/so8-math-doc.ico diff --git a/sysui/desktop/os2/so8-open.ico b/sysui/desktop/os2/so8-open.ico Binary files differnew file mode 100644 index 000000000000..6dcee498e5e6 --- /dev/null +++ b/sysui/desktop/os2/so8-open.ico diff --git a/sysui/desktop/os2/so8-printer.ico b/sysui/desktop/os2/so8-printer.ico Binary files differnew file mode 100644 index 000000000000..49780f9cc7b9 --- /dev/null +++ b/sysui/desktop/os2/so8-printer.ico diff --git a/sysui/desktop/os2/so8-web-doc.ico b/sysui/desktop/os2/so8-web-doc.ico Binary files differnew file mode 100644 index 000000000000..15a4d860c58d --- /dev/null +++ b/sysui/desktop/os2/so8-web-doc.ico diff --git a/sysui/desktop/os2/so8-writer-app.ico b/sysui/desktop/os2/so8-writer-app.ico Binary files differnew file mode 100644 index 000000000000..9b36afd75534 --- /dev/null +++ b/sysui/desktop/os2/so8-writer-app.ico diff --git a/sysui/desktop/os2/so8-writer-doc.ico b/sysui/desktop/os2/so8-writer-doc.ico Binary files differnew file mode 100644 index 000000000000..12bc54839cfc --- /dev/null +++ b/sysui/desktop/os2/so8-writer-doc.ico diff --git a/sysui/desktop/os2/so8-writer-tem.ico b/sysui/desktop/os2/so8-writer-tem.ico Binary files differnew file mode 100644 index 000000000000..ff1a9fe2e220 --- /dev/null +++ b/sysui/desktop/os2/so8-writer-tem.ico diff --git a/sysui/desktop/productversion.mk b/sysui/desktop/productversion.mk new file mode 100644 index 000000000000..09141b2276bd --- /dev/null +++ b/sysui/desktop/productversion.mk @@ -0,0 +1,78 @@ +#************************************************************************* +# +# 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" +# 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 + +PRODUCTLIST = openoffice.org broffice.org + +# default values to minimize maintainance effort +PRODUCTVERSION = 3.4 +PRODUCTVERSIONSHORT = 3 +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.openoffice.org = OpenOffice.org +PRODUCTVERSION.openoffice.org = $(PRODUCTVERSION) +PRODUCTVERSIONSHORT.openoffice.org = $(PRODUCTVERSIONSHORT) +PKGVERSION.openoffice.org = $(PKGVERSION) +UNIXFILENAME.openoffice.org = $(PRODUCTNAME.openoffice.org:l)$(PRODUCTVERSIONSHORT.openoffice.org) +ICONPREFIX.openoffice.org = $(UNIXFILENAME.openoffice.org:s/.//g) + +PRODUCTNAME.broffice.org = BrOffice.org +PRODUCTVERSION.broffice.org = $(PRODUCTVERSION) +PRODUCTVERSIONSHORT.broffice.org = $(PRODUCTVERSIONSHORT) +PKGVERSION.broffice.org = $(PKGVERSION) +UNIXFILENAME.broffice.org = $(PRODUCTNAME.broffice.org:l)$(PRODUCTVERSIONSHORT.broffice.org) +ICONPREFIX.broffice.org = $(UNIXFILENAME.broffice.org:s/.//g) + + diff --git a/sysui/desktop/redhat/makefile.mk b/sysui/desktop/redhat/makefile.mk new file mode 100644 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 100644 index 000000000000..85e0a6a5d72c --- /dev/null +++ b/sysui/desktop/redhat/redhat-menus.spec @@ -0,0 +1,303 @@ +# version and release passed by command-line +Version: %version +Release: %release +Summary: %productname desktop integration +Name: %pkgprefix-redhat-menus +Group: Office +License: LGPL +Vendor: OpenOffice.org +AutoReqProv: no +BuildArch: noarch +Requires: redhat-release +Provides: openoffice.org3-desktop-integration +%define _unpackaged_files_terminate_build 0 +%define _binary_filedigest_algorithm 1 +%define _binary_payload w9.gzdio +%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=/usr +export GNOME_MIME_THEME=hicolor + +./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 + +# 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-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-template otg +application/vnd.oasis.opendocument.presentation odp +application/vnd.oasis.opendocument.presentation-template otp +application/vnd.oasis.opendocument.spreadsheet ods +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-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-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-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-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 + +%files +%attr(0755,root,root) /usr/bin/soffice +%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 100644 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 100644 index 000000000000..ebb5df19d549 --- /dev/null +++ b/sysui/desktop/share/brand.pl @@ -0,0 +1,127 @@ +: +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 = "OpenOffice.org"; +$productfilename = "openoffice"; +$prefix = ""; +$iconprefix = ""; + +while ($_ = $ARGV[0], /^-/) { + shift; + last if /^--$/; + if (/^-p/) { + $productname = $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 occurances of openoffice in ICON line with + # $prefix + s/Icon=/Icon=$iconprefix/; + + # patch all occurances of openoffice in icon_filename + # line with $prefix + s/icon_filename=/icon_filename=$iconprefix/; + + # patch all occurances 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 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 100644 index 000000000000..c6b8e4f0b44c --- /dev/null +++ b/sysui/desktop/share/create_mime_xml.pl @@ -0,0 +1,89 @@ +#!/usr/bin/perl +use File::Basename; +$basedir = dirname($0); +$productname = 'OpenOffice.org'; +$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 100644 index 000000000000..e04825df2019 --- /dev/null +++ b/sysui/desktop/share/create_tree.sh @@ -0,0 +1,111 @@ +umask 022 + +if [ "${KDEMAINDIR}" ] +then + echo Copying icons .. + for i in `cd ${ICON_SOURCE_DIR}; find ${ICON_THEMES:-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?? -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}.* + + if [ "${GNOME_MIME_THEME}" ] + then + echo "Creating legacy mimetype symlinks for GNOME .." + # 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="${DESTDIR}/${GNOMEDIR}/share/icons/${GNOME_MIME_THEME}" + if [ ! -d "${link_target_root}" ] + then + link_target_root="${DESTDIR}/${GNOMEDIR}/share/icons/gnome" + fi + + for subdir in `cd ${link_target_root}; ls -d *` + do + link_target_dir="" + link_dir="${DESTDIR}/${GNOMEDIR}/share/icons/${GNOME_MIME_THEME}/$subdir/mimetypes" + if [ ! -d "${link_dir}" ] + then + mkdir -p "${link_dir}" + link_target_dir="../../../gnome/$subdir/mimetypes/" + fi + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}drawing.png ${link_dir}/gnome-mime-application-vnd.sun.xml.draw.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}drawing-template.png ${link_dir}/gnome-mime-application-vnd.sun.xml.draw.template.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}formula.png ${link_dir}/gnome-mime-application-vnd.sun.xml.math.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}master-document.png ${link_dir}/gnome-mime-application-vnd.sun.xml.writer.global.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}oasis-database.png ${link_dir}/gnome-mime-application-vnd.sun.xml.base.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}oasis-database.png ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.database.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}oasis-drawing.png ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.graphics.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}oasis-drawing-template.png ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.graphics-template.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}oasis-formula.png ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.formula.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}oasis-master-document.png ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text-master.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}oasis-presentation.png ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.presentation.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}oasis-presentation-template.png ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.presentation-template.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}oasis-spreadsheet.png ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.spreadsheet.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}oasis-spreadsheet-template.png ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.spreadsheet-template.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}oasis-text.png ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}oasis-text-template.png ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text-template.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}oasis-web-template.png ${link_dir}/gnome-mime-application-vnd.oasis.opendocument.text-web.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}presentation.png ${link_dir}/gnome-mime-application-vnd.sun.xml.impress.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}presentation-template.png ${link_dir}/gnome-mime-application-vnd.sun.xml.impress.template.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}spreadsheet.png ${link_dir}/gnome-mime-application-vnd.sun.xml.calc.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}spreadsheet-template.png ${link_dir}/gnome-mime-application-vnd.sun.xml.calc.template.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}text.png ${link_dir}/gnome-mime-application-vnd.sun.xml.writer.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}text-template.png ${link_dir}/gnome-mime-application-vnd.sun.xml.writer.template.png + ln -sf $link_target_dir${ICON_PREFIX:-}${ICON_PREFIX:+-}extension.png ${link_dir}/gnome-mime-application-vnd.openofficeorg.extension.png + done + fi +fi + +mkdir -p ${DESTDIR}/usr/bin + +office_root=/opt/${PREFIX} + +ln -sf ${office_root}/program/soffice ${DESTDIR}/usr/bin/soffice + +cp openoffice.sh ${DESTDIR}/usr/bin/${PREFIX} +cp printeradmin.sh ${DESTDIR}/usr/bin/${PREFIX}-printeradmin +chmod 0755 ${DESTDIR}/usr/bin/${PREFIX} ${DESTDIR}/usr/bin/${PREFIX}-printeradmin + +mkdir -p ${DESTDIR}/usr/share/mime/packages +cp openoffice.org.xml ${DESTDIR}/usr/share/mime/packages/ +chmod 0644 ${DESTDIR}/usr/share/mime/packages/openoffice.org.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 100644 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 100644 index 000000000000..6aeab6d94c36 --- /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 Oracle." + diff --git a/sysui/desktop/share/launcher_genericname.ulf b/sysui/desktop/share/launcher_genericname.ulf new file mode 100644 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 100644 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 100644 index 000000000000..e1e47648b077 --- /dev/null +++ b/sysui/desktop/share/makefile.mk @@ -0,0 +1,263 @@ +#************************************************************************* +# +# 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}}' -u $(UNIXWRAPPERNAME) --iconprefix '$${{WITHOUTDOTUNIXPRODUCTNAME}}${ICONVERSION}-' $< $(@:db).$(INPATH).$(@:f) + @$(PERL) translate.pl -p '$${{PRODUCTNAME}} $${{PRODUCTVERSION}}' -d $(@:db).$(INPATH).$(@:f) --ext "desktop" --key "Name" $(ULFDIR)$/launcher_name.ulf + @$(PERL) translate.pl -p '$${{PRODUCTNAME}} $${{PRODUCTVERSION}}' -d $(@:db).$(INPATH).$(@:f) --ext "desktop" --key "Comment" $(ULFDIR)$/launcher_comment.ulf + @$(PERL) translate.pl -p '$${{PRODUCTNAME}} $${{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.$(@:d:d:f))-" $< $(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.$(@:d:d:f))-" $< $(@: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.$(@:d:d:f))" >> $@.$(INPATH) + @echo "ICON_SOURCE_DIR=../../../desktop/icons" >> $@.$(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 100644 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 100644 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 100644 index 000000000000..0c3ee55b10ce --- /dev/null +++ b/sysui/desktop/share/translate.pl @@ -0,0 +1,145 @@ +: +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 = "OpenOffice.org"; +$workdir = "."; + +while ($_ = $ARGV[0], /^-/) { + shift; + last if /^--$/; + if (/^-p/) { + $productname = $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/$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 100644 index 000000000000..eeeb141c6397 --- /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 + @tar -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 + @tar -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 100644 index 000000000000..42d6ce8dd8bf --- /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 OpenOffice.org diff --git a/sysui/desktop/slackware/update-script b/sysui/desktop/slackware/update-script new file mode 100644 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 100644 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 100644 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 100644 index 000000000000..5c8a1d51350b --- /dev/null +++ b/sysui/desktop/solaris/mailcap @@ -0,0 +1,78 @@ +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-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-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-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-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 100644 index 000000000000..d2ffc8cdfc1e --- /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)"=="" + @tar -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 100644 index 000000000000..1b0a203f3b6f --- /dev/null +++ b/sysui/desktop/solaris/mime.types @@ -0,0 +1,59 @@ +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-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-template otg +application/vnd.oasis.opendocument.presentation odp +application/vnd.oasis.opendocument.presentation-template otp +application/vnd.oasis.opendocument.spreadsheet ods +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 100644 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 100644 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 100644 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 100644 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 100644 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 100644 index 000000000000..14dbcde0f5e2 --- /dev/null +++ b/sysui/desktop/suse/suse-menus.spec @@ -0,0 +1,307 @@ +# version and release passed by command-line +Version: %version +Release: %release +Summary: %productname desktop integration +Name: %pkgprefix-suse-menus +Group: Office +License: LGPL +Vendor: OpenOffice.org +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: openoffice.org3-desktop-integration +%define _unpackaged_files_terminate_build 0 +%define _binary_filedigest_algorithm 1 +%define _binary_payload w9.gzdio +%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=/opt/gnome +export GNOME_MIME_THEME=hicolor + +./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 + +# 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-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-template otg +application/vnd.oasis.opendocument.presentation odp +application/vnd.oasis.opendocument.presentation-template otp +application/vnd.oasis.opendocument.spreadsheet ods +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-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-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-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-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 +%attr(0755,root,root) /usr/bin/soffice +%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/gnome/share/icons/hicolor/*/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 100644 index 000000000000..6fab6e748a99 --- /dev/null +++ b/sysui/desktop/tg_rpm.mk @@ -0,0 +1,45 @@ +#************************************************************************* +# +# 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 "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 100644 index 000000000000..a8c6feaaa14a --- /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) + tar -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) + tar -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 100644 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..b5f26eb936b9 --- /dev/null +++ b/sysui/prj/build.lst @@ -0,0 +1,19 @@ +su sysui : L10N:l10n 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_win32_quickstart_so.w su_iconsw.w NULL diff --git a/sysui/prj/d.lst b/sysui/prj/d.lst new file mode 100644 index 000000000000..c6019cea9a43 --- /dev/null +++ b/sysui/prj/d.lst @@ -0,0 +1,27 @@ +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%\bin\quickstart.exe %_DEST%\bin%_EXT%\quickstart.exe +..\%__SRC%\bin\quickstart.exe %_DEST%\bin%_EXT%\install_quickstart.exe +..\%__SRC%\bin\soquickstart.exe %_DEST%\bin%_EXT%\so\quickstart.exe +..\%__SRC%\bin\soquickstart.exe %_DEST%\bin%_EXT%\so\install_quickstart.exe + +..\%__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/QuickStart/OOQuickStart.rc b/sysui/source/win32/QuickStart/OOQuickStart.rc new file mode 100644 index 000000000000..0dc4dab256b6 --- /dev/null +++ b/sysui/source/win32/QuickStart/OOQuickStart.rc @@ -0,0 +1,130 @@ +//Microsoft Developer Studio generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#define APSTUDIO_HIDDEN_SYMBOLS +#include "windows.h" +#undef APSTUDIO_HIDDEN_SYMBOLS +#include "resource.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// German (Germany) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU) +#ifdef _WIN32 +LANGUAGE LANG_GERMAN, SUBLANG_GERMAN +#pragma code_page(1252) +#endif //_WIN32 + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +ICON_ACTIVE ICON DISCARDABLE "../../desktop/icons/ooo3_main_app.ico" +IDI_QUICKSTART ICON DISCARDABLE "../../desktop/icons/ooo3_main_app.ico" +IDI_SMALL ICON DISCARDABLE "../../desktop/icons/ooo3_main_app.ico" +ICON_INACTIVE ICON DISCARDABLE "../../desktop/icons/ooo3_main_app.ico" + + +///////////////////////////////////////////////////////////////////////////// +// +// Accelerator +// + +IDC_QUICKSTART ACCELERATORS MOVEABLE PURE +BEGIN + "?", IDM_ABOUT, ASCII, ALT + "/", IDM_ABOUT, ASCII, ALT +END + + +///////////////////////////////////////////////////////////////////////////// +// +// Dialog +// + +IDD_ABOUTBOX DIALOG DISCARDABLE 22, 17, 230, 75 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +CAPTION "About" +FONT 8, "System" +BEGIN + ICON IDI_QUICKSTART,IDC_MYICON,14,9,16,16 + LTEXT "QuickStart Version 1.0",IDC_STATIC,49,10,119,8, + SS_NOPREFIX + LTEXT "Copyright (C) 2001",IDC_STATIC,49,20,119,8 + DEFPUSHBUTTON "OK",IDOK,195,6,30,11,WS_GROUP +END + + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +2 TEXTINCLUDE DISCARDABLE +BEGIN + "#define APSTUDIO_HIDDEN_SYMBOLS\r\n" + "#include ""windows.h""\r\n" + "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n" + "#include ""resource.h""\r\n" + "\0" +END + +3 TEXTINCLUDE DISCARDABLE +BEGIN + "\r\n" + "\0" +END + +1 TEXTINCLUDE DISCARDABLE +BEGIN + "resource.h\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// String Table +// + +STRINGTABLE DISCARDABLE +BEGIN + IDS_APP_TITLE "SoQuickStart" + IDC_QUICKSTART "QUICKSTART" + IDS_TOOLTIP "StarOffice 6.0 QuickStart" +END + +STRINGTABLE DISCARDABLE +BEGIN + IDS_EXIT "Exit" +END + +#endif // German (Germany) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/sysui/source/win32/QuickStart/QuickStart.cpp b/sysui/source/win32/QuickStart/QuickStart.cpp new file mode 100644 index 000000000000..3467e35524f8 --- /dev/null +++ b/sysui/source/win32/QuickStart/QuickStart.cpp @@ -0,0 +1,423 @@ +// QuickStart.cpp : Defines the entry point for the application. +// + +#include "stdafx.h" +#include "resource.h" +#include <systools/win32/uwinapi.h> +#include <stdio.h> + +#define MY_TASKBAR_NOTIFICATION WM_USER+1 + +#define MAX_LOADSTRING 100 + +// message used to communicate with soffice +#define TERMINATIONVETO_MESSAGE "SO TerminationVeto" +#define TERMINATE_MESSAGE "SO Terminate" +#define LISTENER_WINDOWCLASS "SO Listener Class" +#define KILLTRAY_MESSAGE "SO KillTray" + +static UINT aTerminationVetoMessage = 0x7FFF; +static UINT aTerminateMessage = 0x7FFF; +static HMENU popupMenu = NULL; +static bool bTerminateVeto = true; + +#define UPDATE_TIMER 1 + +// Global Variables: +HINSTANCE hInst; // current instance +TCHAR szTitle[MAX_LOADSTRING]; // The title bar text +TCHAR szWindowClass[MAX_LOADSTRING]; // The title bar text + +TCHAR szExitString[MAX_LOADSTRING]; +TCHAR szTooltipString[MAX_LOADSTRING]; + +// Foward declarations of functions included in this code module: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +LRESULT CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +bool SofficeRuns() +{ + // check for soffice by searching the communication window + return ( FindWindowEx( NULL, NULL, LISTENER_WINDOWCLASS, NULL ) == NULL ) ? false : true; +} + +bool launchSoffice( ) +{ + if ( !SofficeRuns() ) + { + // UINT ret = WinExec( "h:\\office60.630b\\program\\swriter.exe -bean", SW_SHOW ); + char filename[_MAX_PATH + 1]; + + filename[_MAX_PATH] = 0; + GetModuleFileName( NULL, filename, _MAX_PATH ); // soffice resides in the same dir + char *p = strrchr( filename, '\\' ); + if ( !p ) + return false; + + strncpy( p+1, "soffice.exe", _MAX_PATH - (p+1 - filename) ); + + char imagename[_MAX_PATH + 1]; + + imagename[_MAX_PATH] = 0; + _snprintf(imagename, _MAX_PATH, "\"%s\" -quickstart", filename ); + + UINT ret = WinExec( imagename, SW_SHOW ); + if ( ret < 32 ) + return false; +/* + // wait until we can communicate + int retry = 30; + while (retry-- && !SofficeRuns() ) + Sleep(1000); + + return SofficeRuns(); + */ + return true; + } + else + return true; +} + +void NotifyListener( HWND hWnd ) +{ + static HICON hIconActive=NULL; + //static HICON hIconInActive=NULL; + + if( !hIconActive ) + { + hIconActive = (HICON)LoadImage( GetModuleHandle( NULL ), MAKEINTRESOURCE( ICON_ACTIVE ), + IMAGE_ICON, GetSystemMetrics( SM_CXSMICON ), GetSystemMetrics( SM_CYSMICON ), + LR_DEFAULTCOLOR | LR_SHARED ); + +/* hIconInActive = (HICON)LoadImage( GetModuleHandle( NULL ), MAKEINTRESOURCE( ICON_INACTIVE ), + IMAGE_ICON, GetSystemMetrics( SM_CXSMICON ), GetSystemMetrics( SM_CYSMICON ), + LR_DEFAULTCOLOR | LR_SHARED ); + */ + } + + NOTIFYICONDATA nid; + nid.cbSize = sizeof(NOTIFYICONDATA); + nid.hWnd = hWnd; + nid.uID = IDM_QUICKSTART; + nid.szTip[elementsof(nid.szTip) - 1] = 0; +// nid.hIcon = bTerminateVeto ? hIconActive : hIconInActive; +// strncpy(nid.szTip, bTerminateVeto ? STRING_QUICKSTARTACTIVE : STRING_QUICKSTARTINACTIVE, elementsof(nid.szTip) - 1 ); + nid.hIcon = hIconActive; + strncpy(nid.szTip, szTooltipString, elementsof(nid.szTip) - 1); + nid.uFlags = NIF_TIP|NIF_ICON; + + // update systray + Shell_NotifyIcon( NIM_MODIFY, &nid ); + //CheckMenuItem( popupMenu, IDM_QUICKSTART, bTerminateVeto ? MF_CHECKED : MF_UNCHECKED ); + + // notify listener + SendMessage( HWND_BROADCAST, aTerminationVetoMessage, (WORD) bTerminateVeto, 0L ); +} + + + +int APIENTRY WinMain(HINSTANCE hInstance, + HINSTANCE /*hPrevInstance*/, + LPSTR /*lpCmdLine*/, + int nCmdShow) +{ + // Look for -killtray argument + + for ( int i = 1; i < __argc; i++ ) + { + if ( 0 == strcmp( __argv[i], "-killtray" ) ) + { + HWND hwndTray = FindWindow( LISTENER_WINDOWCLASS, NULL ); + + if ( hwndTray ) + { + UINT uMsgKillTray = RegisterWindowMessage( KILLTRAY_MESSAGE ); + SendMessage( hwndTray, uMsgKillTray, 0, 0 ); + } + + return 0; + } + } + + launchSoffice(); + return 0; + + // TODO: Place code here. + MSG msg; + HACCEL hAccelTable; + aTerminationVetoMessage = RegisterWindowMessage( TERMINATIONVETO_MESSAGE ); + aTerminateMessage = RegisterWindowMessage( TERMINATE_MESSAGE ); + + // Initialize global strings + LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadString(hInstance, IDC_QUICKSTART, szWindowClass, MAX_LOADSTRING); + + LoadString(hInstance, IDS_EXIT, szExitString, MAX_LOADSTRING); + LoadString(hInstance, IDS_TOOLTIP, szTooltipString, MAX_LOADSTRING); + + MyRegisterClass(hInstance); + + // Perform application initialization: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_QUICKSTART); + + // Main message loop: + while (GetMessage(&msg, NULL, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return msg.wParam; +} + + + +// +// FUNCTION: MyRegisterClass() +// +// PURPOSE: Registers the window class. +// +// COMMENTS: +// +// This function and its usage is only necessary if you want this code +// to be compatible with Win32 systems prior to the 'RegisterClassEx' +// function that was added to Windows 95. It is important to call this function +// so that the application will get 'well formed' small icons associated +// with it. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEX wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = (WNDPROC)WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, (LPCTSTR)IDI_QUICKSTART); + wcex.hCursor = LoadCursor(NULL, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = NULL; + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, (LPCTSTR)IDI_SMALL); + + return RegisterClassEx(&wcex); +} + +// +// FUNCTION: InitInstance(HANDLE, int) +// +// PURPOSE: Saves instance handle and creates main window +// +// COMMENTS: +// +// In this function, we save the instance handle in a global variable and +// create and display the main program window. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + HWND hWnd; + + hInst = hInstance; // Store instance handle in our global variable + + hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL); + + if (!hWnd) + { + return FALSE; + } + + nCmdShow = SW_HIDE; // hide main window, we only need the taskbar icon + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// FUNCTION: WndProc(HWND, unsigned, WORD, LONG) +// +// PURPOSE: Processes messages for the main window. +// +// WM_COMMAND - process the application menu +// WM_PAINT - Paint the main window +// WM_DESTROY - post a quit message and return +// +// +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_CREATE: + { + // make sure soffice runs + if( !launchSoffice() ) + return -1; + + // create popup menu + popupMenu = CreatePopupMenu(); + static int count=0; + + // Add my items + MENUITEMINFO mi; + mi.cbSize = sizeof(MENUITEMINFO); + mi.fMask=MIIM_TYPE|MIIM_STATE|MIIM_ID; + mi.fType=MFT_STRING; + mi.fState=MFS_ENABLED|MFS_DEFAULT; + mi.wID = IDM_QUICKSTART; + mi.hSubMenu=NULL; + mi.hbmpChecked=NULL; + mi.hbmpUnchecked=NULL; + mi.dwItemData=NULL; + mi.dwTypeData = "QuickStart"; + mi.cch = strlen(mi.dwTypeData); +// InsertMenuItem(popupMenu, count++, TRUE, &mi); + + mi.cbSize = sizeof(MENUITEMINFO); + mi.fMask=MIIM_TYPE|MIIM_STATE|MIIM_ID; + mi.fType=MFT_STRING; + mi.fState=MFS_ENABLED; + mi.wID = IDM_ABOUT; + mi.hSubMenu=NULL; + mi.hbmpChecked=NULL; + mi.hbmpUnchecked=NULL; + mi.dwItemData=NULL; + mi.dwTypeData = "Info..."; + mi.cch = strlen(mi.dwTypeData); +// InsertMenuItem(popupMenu, count++, TRUE, &mi); + + mi.cbSize = sizeof(MENUITEMINFO); + mi.fMask=MIIM_TYPE; + mi.fType=MFT_SEPARATOR; + mi.hSubMenu=NULL; + mi.hbmpChecked=NULL; + mi.hbmpUnchecked=NULL; + mi.dwItemData=NULL; +// InsertMenuItem(popupMenu, count++, TRUE, &mi); + + mi.cbSize = sizeof(MENUITEMINFO); + mi.fMask=MIIM_TYPE|MIIM_STATE|MIIM_ID; + mi.fType=MFT_STRING; + mi.fState=MFS_ENABLED; + mi.wID = IDM_EXIT; + mi.hSubMenu=NULL; + mi.hbmpChecked=NULL; + mi.hbmpUnchecked=NULL; + mi.dwItemData=NULL; + mi.dwTypeData = szExitString; + mi.cch = strlen(mi.dwTypeData); + InsertMenuItem(popupMenu, count++, TRUE, &mi); + + // add taskbar icon + NOTIFYICONDATA nid; + nid.cbSize = sizeof(NOTIFYICONDATA); + nid.hWnd = hWnd; + nid.uID = IDM_QUICKSTART; + nid.uFlags = NIF_MESSAGE; + nid.uCallbackMessage=MY_TASKBAR_NOTIFICATION; + Shell_NotifyIcon(NIM_ADD, &nid); + + // and update state + NotifyListener( hWnd ); + + // check for soffice + SetTimer(hWnd, UPDATE_TIMER, 3000, NULL); + } + break; + + case MY_TASKBAR_NOTIFICATION: // message from taskbar + switch(lParam) + { +/* + case WM_LBUTTONDBLCLK: + bTerminateVeto = bTerminateVeto ? false : true; + NotifyListener( hWnd ); + break; + */ + + case WM_LBUTTONDOWN: + case WM_RBUTTONDOWN: + { + POINT pt; + GetCursorPos(&pt); + SetForegroundWindow( hWnd ); + int m = TrackPopupMenuEx(popupMenu, TPM_RETURNCMD|TPM_LEFTALIGN|TPM_RIGHTBUTTON, + pt.x, pt.y, hWnd, NULL); + // BUGFIX: See Q135788 (PRB: Menus for Notification Icons Don't Work Correctly) + PostMessage(hWnd, NULL, 0, 0); + switch(m) + { + case IDM_QUICKSTART: + bTerminateVeto = bTerminateVeto ? false : true; + NotifyListener( hWnd ); + break; + case IDM_ABOUT: + DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + } + } + break; + } + break; + + case WM_TIMER: + if( wParam == UPDATE_TIMER ) + { + // update state + NotifyListener( hWnd ); + } + break; + + case WM_DESTROY: + // try to terminate office + SendMessage( HWND_BROADCAST, aTerminateMessage, 0, 0L ); + + // delete taskbar icon + NOTIFYICONDATA nid; + nid.cbSize=sizeof(NOTIFYICONDATA); + nid.hWnd = hWnd; + nid.uID = IDM_QUICKSTART; + Shell_NotifyIcon(NIM_DELETE, &nid); + + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Mesage handler for about box. +LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM) +{ + switch (message) + { + case WM_INITDIALOG: + return TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return TRUE; + } + break; + } + return FALSE; +} diff --git a/sysui/source/win32/QuickStart/QuickStart.h b/sysui/source/win32/QuickStart/QuickStart.h new file mode 100644 index 000000000000..d0afd98ec430 --- /dev/null +++ b/sysui/source/win32/QuickStart/QuickStart.h @@ -0,0 +1,12 @@ + +#if !defined(AFX_QUICKSTART_H__7D38EE02_7699_4CF0_AFF9_FD92E05CC009__INCLUDED_) +#define AFX_QUICKSTART_H__7D38EE02_7699_4CF0_AFF9_FD92E05CC009__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +#include "resource.h" + + +#endif // !defined(AFX_QUICKSTART_H__7D38EE02_7699_4CF0_AFF9_FD92E05CC009__INCLUDED_) diff --git a/sysui/source/win32/QuickStart/StdAfx.h b/sysui/source/win32/QuickStart/StdAfx.h new file mode 100644 index 000000000000..a4bdd66f630c --- /dev/null +++ b/sysui/source/win32/QuickStart/StdAfx.h @@ -0,0 +1,39 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) +#define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers + + +// Windows Header Files: +#if defined _MSC_VER +#pragma warning(push, 1) +#endif +#include <windows.h> +#include <shellapi.h> +#if defined _MSC_VER +#pragma warning(pop) +#endif + +// C RunTime Header Files +#include <stdlib.h> +#include <malloc.h> +#include <memory.h> +#include <tchar.h> + +// Local Header Files + +// TODO: reference additional headers your program requires here + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) diff --git a/sysui/source/win32/QuickStart/makefile.mk b/sysui/source/win32/QuickStart/makefile.mk new file mode 100644 index 000000000000..41242d849dfb --- /dev/null +++ b/sysui/source/win32/QuickStart/makefile.mk @@ -0,0 +1,74 @@ +#************************************************************************* +# +# 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=quickstart +LIBTARGET=NO +ENABLE_EXCEPTIONS=TRUE +TARGETTYPE=GUI + +# --- Settings ----------------------------------------------------- + +.INCLUDE : settings.mk + +UWINAPILIB = + +# --- Resources ---------------------------------------------------- + +RCFILES=OOQuickStart.rc + +# --- Files -------------------------------------------------------- + +OBJFILES=$(OBJ)$/QuickStart.obj + +APP1OBJS=$(OBJFILES) +APP1NOSAL=TRUE +APP1TARGET=$(TARGET) +APP1RPATH=BRAND +.IF "$(COM)"=="GCC" +APP1STDLIBS=-luuid +.ELSE +APP1STDLIBS=comsupp.lib +.ENDIF + +APP1STDLIBS+=$(SHELL32LIB)\ + $(OLE32LIB)\ + $(GDI32LIB)\ + $(OLEAUT32LIB)\ + $(COMDLG32LIB)\ + $(KERNEL32LIB)\ + $(OLEAUT32LIB) + +APP1NOSVRES=$(RES)$/$(TARGET).res + + + +# --- Targets ------------------------------------------------------ + +.INCLUDE : target.mk diff --git a/sysui/source/win32/QuickStart/resource.h b/sysui/source/win32/QuickStart/resource.h new file mode 100644 index 000000000000..d34beb00c5c9 --- /dev/null +++ b/sysui/source/win32/QuickStart/resource.h @@ -0,0 +1,32 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by QUICKSTART.RC +// +#define IDR_MAINFRAME 128 +#define IDD_QUICKSTART_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDS_APP_TITLE 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDS_HELLO 106 +#define IDI_QUICKSTART 107 +#define IDI_SMALL 108 +#define IDC_QUICKSTART 109 +#define IDM_QUICKSTART 110 +#define IDS_TOOLTIP 111 +#define IDS_EXIT 112 +#define ICON_ACTIVE 1 +#define ICON_INACTIVE 2 +#define IDC_MYICON 3 +#define IDC_STATIC -1 +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 113 +#endif +#endif diff --git a/sysui/source/win32/QuickStart/so/QuickStart.rc b/sysui/source/win32/QuickStart/so/QuickStart.rc new file mode 100644 index 000000000000..c48dc2358d0d --- /dev/null +++ b/sysui/source/win32/QuickStart/so/QuickStart.rc @@ -0,0 +1,130 @@ +//Microsoft Developer Studio generated resource script. +// +#include "../resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#define APSTUDIO_HIDDEN_SYMBOLS +#include "windows.h" +#undef APSTUDIO_HIDDEN_SYMBOLS +#include "resource.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// German (Germany) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU) +#ifdef _WIN32 +LANGUAGE LANG_GERMAN, SUBLANG_GERMAN +#pragma code_page(1252) +#endif //_WIN32 + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +ICON_ACTIVE ICON DISCARDABLE "../../../desktop/icons/so9_main_app.ico" +IDI_QUICKSTART ICON DISCARDABLE "../../../desktop/icons/so9_main_app.ico" +IDI_SMALL ICON DISCARDABLE "../../../desktop/icons/so9_main_app.ico" +ICON_INACTIVE ICON DISCARDABLE "../../../desktop/icons/so9_main_app.ico" + + +///////////////////////////////////////////////////////////////////////////// +// +// Accelerator +// + +IDC_QUICKSTART ACCELERATORS MOVEABLE PURE +BEGIN + "?", IDM_ABOUT, ASCII, ALT + "/", IDM_ABOUT, ASCII, ALT +END + + +///////////////////////////////////////////////////////////////////////////// +// +// Dialog +// + +IDD_ABOUTBOX DIALOG DISCARDABLE 22, 17, 230, 75 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +CAPTION "About" +FONT 8, "System" +BEGIN + ICON IDI_QUICKSTART,IDC_MYICON,14,9,16,16 + LTEXT "QuickStart Version 1.0",IDC_STATIC,49,10,119,8, + SS_NOPREFIX + LTEXT "Copyright (C) 2001",IDC_STATIC,49,20,119,8 + DEFPUSHBUTTON "OK",IDOK,195,6,30,11,WS_GROUP +END + + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +2 TEXTINCLUDE DISCARDABLE +BEGIN + "#define APSTUDIO_HIDDEN_SYMBOLS\r\n" + "#include ""windows.h""\r\n" + "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n" + "#include ""resource.h""\r\n" + "\0" +END + +3 TEXTINCLUDE DISCARDABLE +BEGIN + "\r\n" + "\0" +END + +1 TEXTINCLUDE DISCARDABLE +BEGIN + "resource.h\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// String Table +// + +STRINGTABLE DISCARDABLE +BEGIN + IDS_APP_TITLE "SoQuickStart" + IDC_QUICKSTART "QUICKSTART" + IDS_TOOLTIP "Oracle Open Office 3.2 QuickStart" +END + +STRINGTABLE DISCARDABLE +BEGIN + IDS_EXIT "Exit" +END + +#endif // German (Germany) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/sysui/source/win32/QuickStart/so/makefile.mk b/sysui/source/win32/QuickStart/so/makefile.mk new file mode 100644 index 000000000000..6c7897232576 --- /dev/null +++ b/sysui/source/win32/QuickStart/so/makefile.mk @@ -0,0 +1,73 @@ +#************************************************************************* +# +# 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=soquickstart +LIBTARGET=NO +ENABLE_EXCEPTIONS=TRUE +TARGETTYPE=GUI + +# --- Settings ----------------------------------------------------- + +.INCLUDE : settings.mk + +UWINAPILIB = + +# --- Resources ---------------------------------------------------- + +RCFILES=QuickStart.rc +INCPRE=.. + +# --- Files -------------------------------------------------------- + +OBJFILES=$(OBJ)$/QuickStart.obj + +APP1OBJS=$(OBJFILES) +APP1NOSAL=TRUE +APP1TARGET=$(TARGET) +APP1RPATH=BRAND +.IF "$(COM)"=="GCC" +APP1STDLIBS=-luuid +.ELSE +APP1STDLIBS=comsupp.lib +.ENDIF + +APP1STDLIBS+=$(SHELL32LIB)\ + $(OLE32LIB)\ + $(GDI32LIB)\ + $(OLEAUT32LIB)\ + $(COMDLG32LIB)\ + $(KERNEL32LIB)\ + $(OLEAUT32LIB) + +APP1NOSVRES=$(RES)$/$(TARGET).res + +# --- Targets ------------------------------------------------------ + +.INCLUDE : target.mk diff --git a/sysui/source/win32/misc/AutoBuffer.cxx b/sysui/source/win32/misc/AutoBuffer.cxx new file mode 100644 index 000000000000..980b274e8872 --- /dev/null +++ b/sysui/source/win32/misc/AutoBuffer.cxx @@ -0,0 +1,163 @@ +/************************************************************************* + * + * 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( ); +} diff --git a/sysui/source/win32/misc/AutoBuffer.hxx b/sysui/source/win32/misc/AutoBuffer.hxx new file mode 100644 index 000000000000..920ed38a589b --- /dev/null +++ b/sysui/source/win32/misc/AutoBuffer.hxx @@ -0,0 +1,85 @@ +/************************************************************************* + * + * 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> + +#ifndef _RTL_USTRING_HXX_ +#include <rtl/ustring> +#endif + +//------------------------------------------------------------- +// 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 diff --git a/sysui/source/win32/misc/WinImplHelper.cxx b/sysui/source/win32/misc/WinImplHelper.cxx new file mode 100644 index 000000000000..a9a71e59c06e --- /dev/null +++ b/sysui/source/win32/misc/WinImplHelper.cxx @@ -0,0 +1,358 @@ +/************************************************************************* + * + * 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::createFromAscii( "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::createFromAscii( "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::createFromAscii( "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::createFromAscii( "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::createFromAscii( "invalid value type or any has no value" ), + rXInterface, + aArgPos ); + + sal_Int32 nPos; + aPosition >>= nPos; + + if ( nPos < -1 ) + throw IllegalArgumentException( + OUString::createFromAscii("invalid index"), + rXInterface, + aArgPos ); + + LRESULT lRet = SendMessageW( hwnd, CB_SETCURSEL, nPos, 0 ); + + if ( (CB_ERR == lRet) && (-1 != nPos) ) + throw IllegalArgumentException( + OUString::createFromAscii("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::createFromAscii( "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; +} diff --git a/sysui/source/win32/misc/WinImplHelper.hxx b/sysui/source/win32/misc/WinImplHelper.hxx new file mode 100644 index 000000000000..05527c6e6ed2 --- /dev/null +++ b/sysui/source/win32/misc/WinImplHelper.hxx @@ -0,0 +1,90 @@ +/************************************************************************* + * + * 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> + +#ifndef _RTL_USTRING_HXX_ +#include <rtl/ustring> +#endif + +#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 diff --git a/sysui/source/win32/misc/makefile.mk b/sysui/source/win32/misc/makefile.mk new file mode 100644 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..38fa79ecdf22 --- /dev/null +++ b/sysui/source/win32/misc/resourceprovider.cxx @@ -0,0 +1,229 @@ +/************************************************************************* + * + * 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::createFromAscii( "~" ); +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 ); +} diff --git a/sysui/source/win32/misc/resourceprovider.hxx b/sysui/source/win32/misc/resourceprovider.hxx new file mode 100644 index 000000000000..e1a0fbea30b8 --- /dev/null +++ b/sysui/source/win32/misc/resourceprovider.hxx @@ -0,0 +1,60 @@ +/************************************************************************* + * + * 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> + +#ifndef _RTL_USTRING_HXX_ +#include <rtl/ustring> +#endif + +//------------------------------------------------------------------------ +// deklarations +//------------------------------------------------------------------------ + +class CResourceProvider_Impl; + +class CResourceProvider +{ +public: + CResourceProvider( ); + ~CResourceProvider( ); + + rtl::OUString getResString( sal_Int32 aId ); + +private: + CResourceProvider_Impl* m_pImpl; +}; + +#endif diff --git a/sysui/util/checksize.pl b/sysui/util/checksize.pl new file mode 100644 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 100644 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 100644 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 + |