Main Page
Namespaces
Classes
Files
File List
File Members
WPSDocument.h
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2
/* libwps
3
* Version: MPL 2.0 / LGPLv2.1+
4
*
5
* This Source Code Form is subject to the terms of the Mozilla Public
6
* License, v. 2.0. If a copy of the MPL was not distributed with this
7
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
*
9
* Major Contributor(s):
10
* Copyright (C) 2003-2005 William Lachance (william.lachance@sympatico.ca)
11
* Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
12
*
13
* For minor contributions see the git repository.
14
*
15
* Alternatively, the contents of this file may be used under the terms
16
* of the GNU Lesser General Public License Version 2.1 or later
17
* (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18
* applicable instead of those above.
19
*
20
* For further information visit http://libwps.sourceforge.net
21
*/
22
23
24
#ifndef WPSDOCUMENT_H
25
#define WPSDOCUMENT_H
26
27
#ifdef _WINDLL
28
#ifdef BUILD_WPS
29
#define WPSLIB _declspec(dllexport)
30
#else
31
#define WPSLIB _declspec(dllimport)
32
#endif
33
#else
34
#define WPSLIB
35
#endif
36
37
#include <libwpd-stream/WPXStream.h>
38
39
enum
WPSConfidence
{
WPS_CONFIDENCE_NONE
=0,
WPS_CONFIDENCE_POOR
,
WPS_CONFIDENCE_LIKELY
,
WPS_CONFIDENCE_GOOD
,
WPS_CONFIDENCE_EXCELLENT
};
40
enum
WPSResult
{
WPS_OK
,
WPS_FILE_ACCESS_ERROR
,
WPS_PARSE_ERROR
,
WPS_OLE_ERROR
,
WPS_UNKNOWN_ERROR
};
41
42
class
WPXDocumentInterface;
43
49
class
WPSDocument
50
{
51
public
:
52
static
WPSLIB
WPSConfidence
isFileFormatSupported
(WPXInputStream *input);
53
static
WPSLIB
WPSResult
parse
(WPXInputStream *input, WPXDocumentInterface *documentInterface);
54
};
55
56
#endif
/* WPSDOCUMENT_H */
57
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
Generated on Mon Jun 3 2013 01:38:41 for libwps by
doxygen
1.8.3.1