/src/libzmf/src/lib/ZBRParser.cpp
Line | Count | Source |
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 | 3 | : m_input(input) |
17 | 3 | , m_collector(painter) |
18 | 3 | , m_header() |
19 | 3 | { |
20 | 3 | } |
21 | | |
22 | | bool ZBRParser::parse() |
23 | 3 | { |
24 | 3 | if (!m_header.load(m_input) || !m_header.isSupported()) |
25 | 0 | return false; |
26 | | |
27 | 3 | m_collector.startDocument(); |
28 | 3 | m_collector.endDocument(); |
29 | | |
30 | 3 | return true; |
31 | 3 | } |
32 | | |
33 | | } |
34 | | |
35 | | /* vim:set shiftwidth=2 softtabstop=2 expandtab: */ |