001 /*
002 *
003 * $Revision: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
004 *
005 * This file is part of *** M y C o R e ***
006 * See http://www.mycore.de/ for details.
007 *
008 * This program is free software; you can use it, redistribute it
009 * and / or modify it under the terms of the GNU General Public License
010 * (GPL) as published by the Free Software Foundation; either version 2
011 * of the License or (at your option) any later version.
012 *
013 * This program is distributed in the hope that it will be useful, but
014 * WITHOUT ANY WARRANTY; without even the implied warranty of
015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
016 * GNU General Public License for more details.
017 *
018 * You should have received a copy of the GNU General Public License
019 * along with this program, in a file called gpl.txt or license.txt.
020 * If not, write to the Free Software Foundation Inc.,
021 * 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA
022 */
023
024 package org.mycore.services.plugins;
025
026
027 /**
028 * @author Thomas Scheffler (yagee)
029 *
030 * Need to insert some things here
031 *
032 */
033 public class OoTextPlugin extends OpenOfficeBasePlugin {
034 private static final int MAJOR = 0;
035
036 private static final int MINOR = 5;
037
038 public OoTextPlugin() {
039 this("sxw");
040 }
041
042 private OoTextPlugin(String contentType) {
043 super(contentType);
044 }
045
046 /*
047 * (non-Javadoc)
048 *
049 * @see org.mycore.services.plugins.TextFilterPlugin#getName()
050 */
051 public String getName() {
052 return "Yagee's amazing OpenOffice.org Text Filter";
053 }
054
055 /*
056 * (non-Javadoc)
057 *
058 * @see org.mycore.services.plugins.TextFilterPlugin#getInfo()
059 */
060 public String getInfo() {
061 return "This filter extracts the text out of a OpenOffice.org Text Document";
062 }
063
064 /**
065 * @see org.mycore.services.plugins.TextFilterPlugin#getMajorNumber()
066 */
067 public int getMajorNumber() {
068 return MAJOR;
069 }
070
071 /**
072 * @see org.mycore.services.plugins.TextFilterPlugin#getMinorNumber()
073 */
074 public int getMinorNumber() {
075 return MINOR;
076 }
077
078 String getTextNameSpace() {
079 return "http://openoffice.org/2000/text";
080 }
081
082 String getDocumentName() {
083 return "OpenOffice.org Text Document";
084 }
085 }