| 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 "WKSSubDocument.h" |
| 26 | |
| 27 | WKSSubDocument::WKSSubDocument(RVNGInputStreamPtr const &input, WKSParser *p, int i) : WPSSubDocument(input,i), m_parser(p) |
| 28 | { |
| 29 | } |
| 30 | |
| 31 | WKSSubDocument::~WKSSubDocument() |
| 32 | { |
| 33 | } |
| 34 | |
| 35 | bool WKSSubDocument::operator==(std::shared_ptr<WPSSubDocument> const &doc) const |
| 36 | { |
| 37 | if (!WPSSubDocument::operator==(doc)) return false; |
| 38 | auto const *docu=dynamic_cast<WKSSubDocument const *>(doc.get()); |
| 39 | if (docu==nullptr) return false; |
| 40 | if (m_parser != docu->m_parser) return false; |
| 41 | return true; |
| 42 | } |
| 43 | |
| 44 | /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */ |
| 45 |