Debian Codegraph @

src/lib/WPSTextSubDocument.cpp

raw symbols SCIP
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) 2005 Fridrich Strba ([email protected])
12 * Copyright (C) 2003-2005 William Lachance ([email protected])
13 * Copyright (C) 2003 Marc Maurer ([email protected])
14 *
15 * For minor contributions see the git repository.
16 *
17 * Alternatively, the contents of this file may be used under the terms
18 * of the GNU Lesser General Public License Version 2.1 or later
19 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
20 * applicable instead of those above.
21 *
22 * For further information visit http://libwps.sourceforge.net
23 */
24
25 #include "WPSTextSubDocument.h"
26
27 WPSTextSubDocument::WPSTextSubDocument(RVNGInputStreamPtr const &input, WPSParser *p, int i)
28 : WPSSubDocument(input, i)
29 , m_parser(p)
30 {
31 }
32
33 WPSTextSubDocument::~WPSTextSubDocument()
34 {
35 }
36
37 bool WPSTextSubDocument::operator==(std::shared_ptr<WPSSubDocument> const &doc) const
38 {
39 if (!WPSSubDocument::operator==(doc)) return false;
40 WPSTextSubDocument const *docu=dynamic_cast<WPSTextSubDocument *>(doc.get());
41 if (!docu) return false;
42 if (m_parser != docu->m_parser) return false;
43 return true;
44 }
45
46 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
47