WPSDocument.h

Go to the documentation of this file.
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 #ifdef _WINDLL
00027 #ifdef BUILD_WPS
00028 #define WPSLIB _declspec(dllexport)
00029 #else
00030 #define WPSLIB _declspec(dllimport)
00031 #endif
00032 #else
00033 #define WPSLIB
00034 #endif
00035 
00036 #include <libwpd-stream/WPXStream.h>
00037 
00038 enum WPSConfidence { WPS_CONFIDENCE_NONE=0, WPS_CONFIDENCE_POOR, WPS_CONFIDENCE_LIKELY, WPS_CONFIDENCE_GOOD, WPS_CONFIDENCE_EXCELLENT };
00039 enum WPSResult { WPS_OK, WPS_FILE_ACCESS_ERROR, WPS_PARSE_ERROR, WPS_OLE_ERROR, WPS_UNKNOWN_ERROR };
00040 
00041 class WPXDocumentInterface;
00042 
00048 class WPSDocument
00049 {
00050 public:
00051         static WPSLIB WPSConfidence isFileFormatSupported(WPXInputStream *input);
00052         static WPSLIB WPSResult parse(WPXInputStream *input, WPXDocumentInterface *documentInterface);
00053 };
00054 
00055 #endif /* WPSDOCUMENT_H */