WPSDocument.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
00002 /* libwps
00003  * Copyright (C) 2003-2005 William Lachance (william.lachance@sympatico.ca)
00004  * Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
00019  *
00020  * For further information visit http://libwps.sourceforge.net
00021  */
00022 
00023 
00024 #ifndef WPSDOCUMENT_H
00025 #define WPSDOCUMENT_H
00026 
00027 #ifdef _WINDLL
00028 #ifdef BUILD_WPS
00029 #define WPSLIB _declspec(dllexport)
00030 #else
00031 #define WPSLIB _declspec(dllimport)
00032 #endif
00033 #else
00034 #define WPSLIB
00035 #endif
00036 
00037 #include <libwpd-stream/WPXStream.h>
00038 
00039 enum WPSConfidence { WPS_CONFIDENCE_NONE=0, WPS_CONFIDENCE_POOR, WPS_CONFIDENCE_LIKELY, WPS_CONFIDENCE_GOOD, WPS_CONFIDENCE_EXCELLENT };
00040 enum WPSResult { WPS_OK, WPS_FILE_ACCESS_ERROR, WPS_PARSE_ERROR, WPS_OLE_ERROR, WPS_UNKNOWN_ERROR };
00041 
00042 class WPXDocumentInterface;
00043 
00049 class WPSDocument
00050 {
00051 public:
00052         static WPSLIB WPSConfidence isFileFormatSupported(WPXInputStream *input);
00053         static WPSLIB WPSResult parse(WPXInputStream *input, WPXDocumentInterface *documentInterface);
00054 };
00055 
00056 #endif /* WPSDOCUMENT_H */
00057 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */