Main Page
Namespaces
Classes
Files
File List
File Members
WPSSubDocument.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) 2006, 2007 Andrew Ziem
4
* Copyright (C) 2003-2005 William Lachance (william.lachance@sympatico.ca)
5
* Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
6
*
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Library General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
11
*
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Library General Public License for more details.
16
*
17
* You should have received a copy of the GNU Library General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
20
*
21
* For further information visit http://libwpd.sourceforge.net
22
*/
23
24
/* "This product is not manufactured, approved, or supported by
25
* Corel Corporation or Corel Corporation Limited."
26
*/
27
28
#ifndef WPSSUBDOCUMENT_H
29
#define WPSSUBDOCUMENT_H
30
31
#include "
libwps_internal.h
"
32
33
class
WPSContentListener
;
34
class
WPSParser
;
35
37
class
WPSSubDocument
38
{
39
public
:
41
WPSSubDocument
(
WPXInputStreamPtr
&input,
WPSParser
*
parser
,
int
id
=0);
43
virtual
~WPSSubDocument
();
44
46
WPXInputStreamPtr
&
getInput
()
47
{
48
return
m_input
;
49
}
51
WPSParser
*
parser
()
const
52
{
53
return
m_parser
;
54
}
56
int
id
()
const
57
{
58
return
m_id
;
59
}
61
void
setId
(
int
i)
62
{
63
m_id
= i;
64
}
65
67
virtual
bool
operator==
(shared_ptr<WPSSubDocument>
const
&doc)
const
;
68
bool
operator!=
(shared_ptr<WPSSubDocument>
const
&doc)
const
69
{
70
return
!
operator==
(doc);
71
}
72
76
virtual
void
parse
(shared_ptr<WPSContentListener> &listener,
libwps::SubDocumentType
subDocumentType) = 0;
77
78
protected
:
79
WPXInputStreamPtr
m_input
;
80
WPSParser
*
m_parser
;
81
int
m_id
;
82
private
:
83
WPSSubDocument
(
const
WPSSubDocument
&);
84
WPSSubDocument
&
operator=
(
const
WPSSubDocument
&);
85
86
};
87
88
typedef
shared_ptr<WPSSubDocument>
WPSSubDocumentPtr
;
89
#endif
90
91
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
92
Generated on Wed Aug 8 2012 16:07:57 for libwps by
doxygen
1.8.1.2