00001 /* libwps 00002 * Copyright (C) 2003-2005 William Lachance (william.lachance@sympatico.ca) 00003 * Copyright (C) 2003 Marc Maurer (uwog@uwog.net) 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Library General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Library General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Library General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 00018 * 00019 * For further information visit http://libwps.sourceforge.net 00020 */ 00021 00022 00023 #ifndef WPSDOCUMENT_H 00024 #define WPSDOCUMENT_H 00025 00026 #include "WPSStream.h" 00027 00028 enum WPSConfidence { WPS_CONFIDENCE_NONE=0, WPS_CONFIDENCE_POOR, WPS_CONFIDENCE_LIKELY, WPS_CONFIDENCE_GOOD, WPS_CONFIDENCE_EXCELLENT }; 00029 enum WPSResult { WPS_OK, WPS_FILE_ACCESS_ERROR, WPS_PARSE_ERROR, WPS_OLE_ERROR, WPS_UNKNOWN_ERROR }; 00030 00031 class WPXHLListenerImpl; 00032 00038 class WPSDocument 00039 { 00040 public: 00041 static WPSConfidence isFileFormatSupported(WPSInputStream *input, bool partialContent); 00042 static WPSResult parse(WPSInputStream *input, WPXHLListenerImpl *listenerImpl); 00043 }; 00044 00045 #endif /* WPSDOCUMENT_H */