Main Page
Namespaces
Classes
Files
File List
File Members
WPSParser.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) 2002 William Lachance (william.lachance@sympatico.ca)
4
* Copyright (C) 2002 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
* This file is in sync with CVS
25
* /libwpd2/src/lib/WPXParser.h 1.22
26
*/
27
28
29
#ifndef WPSPARSER_H
30
#define WPSPARSER_H
31
32
#include "
libwps_internal.h
"
33
34
class
WPSHeader
;
35
typedef
shared_ptr<WPSHeader>
WPSHeaderPtr
;
36
37
class
WPXDocumentInterface;
38
39
class
WPSParser
40
{
41
public
:
42
WPSParser
(
WPXInputStreamPtr
&input,
WPSHeaderPtr
&header);
43
virtual
~WPSParser
();
44
45
virtual
void
parse
(WPXDocumentInterface *documentInterface) = 0;
46
47
protected
:
48
WPSHeaderPtr
&
getHeader
()
49
{
50
return
m_header
;
51
}
52
WPXInputStreamPtr
&
getInput
()
53
{
54
return
m_input
;
55
}
56
57
private
:
58
WPSParser
(
const
WPSParser
&);
59
WPSParser
&
operator=
(
const
WPSParser
&);
60
WPXInputStreamPtr
m_input
;
61
62
WPSHeaderPtr
m_header
;
63
};
64
65
#endif
/* WPSPARSER_H */
66
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
Generated on Wed Aug 8 2012 16:07:57 for libwps by
doxygen
1.8.1.2