Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef WPSDOCUMENT_H
00025 #define WPSDOCUMENT_H
00026
00027 #include <librevenge/librevenge.h>
00028
00029 #ifdef DLL_EXPORT
00030 #ifdef BUILD_WPS
00031 #define WPSLIB __declspec(dllexport)
00032 #else
00033 #define WPSLIB __declspec(dllimport)
00034 #endif
00035 #else
00036 #define WPSLIB
00037 #endif
00038
00039
00040 namespace libwps
00041 {
00042
00043 enum WPSConfidence { WPS_CONFIDENCE_NONE=0, WPS_CONFIDENCE_EXCELLENT };
00044 enum WPSKind { WPS_TEXT=0, WPS_SPREADSHEET, WPS_DATABASE };
00045 enum WPSResult { WPS_OK, WPS_FILE_ACCESS_ERROR, WPS_PARSE_ERROR, WPS_OLE_ERROR, WPS_UNKNOWN_ERROR };
00046
00052 class WPSDocument
00053 {
00054 public:
00055 static WPSLIB WPSConfidence isFileFormatSupported(librevenge::RVNGInputStream *input, WPSKind &kind);
00056 static WPSLIB WPSResult parse(librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *documentInterface);
00057 static WPSLIB WPSResult parse(librevenge::RVNGInputStream *input, librevenge::RVNGSpreadsheetInterface *documentInterface);
00058 };
00059
00060 }
00061
00062 #endif
00063