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
* 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) 2006, 2007 Andrew Ziem
11
* Copyright (C) 2003-2005 William Lachance (william.lachance@sympatico.ca)
12
* Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
13
*
14
* For minor contributions see the git repository.
15
*
16
* Alternatively, the contents of this file may be used under the terms
17
* of the GNU Lesser General Public License Version 2.1 or later
18
* (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
19
* applicable instead of those above.
20
*
21
* For further information visit http://libwps.sourceforge.net
22
*/
23
24
#ifndef WPSSUBDOCUMENT_H
25
#define WPSSUBDOCUMENT_H
26
27
#include "
libwps_internal.h
"
28
29
class
WPSContentListener
;
30
class
WPSParser
;
31
33
class
WPSSubDocument
34
{
35
public
:
37
WPSSubDocument
(
RVNGInputStreamPtr
const
&input,
int
id
=0);
39
virtual
~WPSSubDocument
();
40
42
RVNGInputStreamPtr
&
getInput
()
43
{
44
return
m_input
;
45
}
47
int
id
()
const
48
{
49
return
m_id
;
50
}
52
void
setId
(
int
i)
53
{
54
m_id
= i;
55
}
56
58
virtual
bool
operator==
(std::shared_ptr<WPSSubDocument>
const
&doc)
const
;
59
bool
operator!=
(std::shared_ptr<WPSSubDocument>
const
&doc)
const
60
{
61
return
!
operator==
(doc);
62
}
63
64
protected
:
65
RVNGInputStreamPtr
m_input
;
66
int
m_id
;
67
private
:
68
WPSSubDocument
(
const
WPSSubDocument
&) =
delete
;
69
WPSSubDocument
&
operator=
(
const
WPSSubDocument
&) =
delete
;
70
71
};
72
#endif
73
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
74
WPSSubDocument.h
WPSSubDocument
virtual class to define a sub document
Definition:
WPSSubDocument.h:33
WPSSubDocument::WPSSubDocument
WPSSubDocument(RVNGInputStreamPtr const &input, int id=0)
constructor
Definition:
WPSSubDocument.cpp:27
WPSSubDocument::operator==
virtual bool operator==(std::shared_ptr< WPSSubDocument > const &doc) const
an operator =
Definition:
WPSSubDocument.cpp:37
WPSSubDocument::~WPSSubDocument
virtual ~WPSSubDocument()
destructor
Definition:
WPSSubDocument.cpp:33
WPSSubDocument::setId
void setId(int i)
set the identificator
Definition:
WPSSubDocument.h:52
WPSSubDocument::operator!=
bool operator!=(std::shared_ptr< WPSSubDocument > const &doc) const
Definition:
WPSSubDocument.h:59
WPSContentListener
Definition:
WPSContentListener.h:44
WPSParser
Definition:
WPSParser.h:35
WPSSubDocument::getInput
RVNGInputStreamPtr & getInput()
returns the input
Definition:
WPSSubDocument.h:42
WPSSubDocument::operator=
WPSSubDocument & operator=(const WPSSubDocument &)=delete
RVNGInputStreamPtr
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition:
libwps_internal.h:87
WPSSubDocument::m_input
RVNGInputStreamPtr m_input
Definition:
WPSSubDocument.h:65
libwps_internal.h
WPSSubDocument::m_id
int m_id
Definition:
WPSSubDocument.h:66
WPSSubDocument::id
int id() const
get the identificator
Definition:
WPSSubDocument.h:47
Generated on Sat Apr 4 2020 08:40:32 for libwps by
doxygen
1.8.17