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
* Copyright (C) 2003-2005 William Lachance (william.lachance@sympatico.ca)
4
* Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Library General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Library General Public License for more details.
15
*
16
* You should have received a copy of the GNU Library General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
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 Wed Aug 8 2012 16:07:57 for libwps by
doxygen
1.8.1.2