| 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 | /* |
| 3 | * This file is a part of the libzmf project. |
| 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 | |
| 10 | #include "ZBRParser.h" |
| 11 | |
| 12 | namespace libzmf |
| 13 | { |
| 14 | |
| 15 | ZBRParser::ZBRParser(const RVNGInputStreamPtr &input, librevenge::RVNGDrawingInterface *painter) |
| 16 | : m_input(input) |
| 17 | , m_collector(painter) |
| 18 | , m_header() |
| 19 | { |
| 20 | } |
| 21 | |
| 22 | bool ZBRParser::parse() |
| 23 | { |
| 24 | if (!m_header.load(m_input) || !m_header.isSupported()) |
| 25 | return false; |
| 26 | |
| 27 | m_collector.startDocument(); |
| 28 | m_collector.endDocument(); |
| 29 | |
| 30 | return true; |
| 31 | } |
| 32 | |
| 33 | } |
| 34 | |
| 35 | /* vim:set shiftwidth=2 softtabstop=2 expandtab: */ |