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 #include <librevenge/librevenge.h>
28 
29 #ifdef DLL_EXPORT
30 #ifdef BUILD_WPS
31 #define WPSLIB __declspec(dllexport)
32 #else
33 #define WPSLIB __declspec(dllimport)
34 #endif
35 #else
36 #define WPSLIB
37 #endif
38 
39 
40 namespace libwps
41 {
42 
46 
53 {
54 public:
55  static WPSLIB WPSConfidence isFileFormatSupported(librevenge::RVNGInputStream *input, WPSKind &kind);
56  static WPSLIB WPSResult parse(librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *documentInterface);
57  static WPSLIB WPSResult parse(librevenge::RVNGInputStream *input, librevenge::RVNGSpreadsheetInterface *documentInterface);
58 };
59 
60 } // namespace libwps
61 
62 #endif /* WPSDOCUMENT_H */
63 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WPSResult
Definition: WPSDocument.h:45
static WPSLIB WPSConfidence isFileFormatSupported(librevenge::RVNGInputStream *input, WPSKind &kind)
Analyzes the content of an input stream to see if it can be parsed.
Definition: WPSDocument.cpp:58
Definition: libwps_internal.cpp:32
Definition: WPSDocument.h:45
Definition: WPSDocument.h:44
static WPSLIB WPSResult parse(librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *documentInterface)
Parses the input stream content.
Definition: WPSDocument.cpp:129
Definition: WPSDocument.h:44
Definition: WPSDocument.h:43
Definition: WPSDocument.h:45
WPSConfidence
Definition: WPSDocument.h:43
Definition: WPSDocument.h:44
This class provides all the functions an application would need to parse Works documents.
Definition: WPSDocument.h:52
#define WPSLIB
Definition: WPSDocument.h:36
Definition: WPSDocument.h:45
Definition: WPSDocument.h:45
WPSKind
Definition: WPSDocument.h:44
Definition: WPSDocument.h:45
Definition: WPSDocument.h:43

Generated on Thu Oct 9 2014 14:30:04 for libwps by doxygen 1.8.8