NUM3Parser.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/*
3 * This file is part of the libetonyek 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#ifndef NUM3PARSER_H_INCLUDED
11#define NUM3PARSER_H_INCLUDED
12
13#include "IWAParser.h"
14
15 namespace libetonyek
16{
17
18 class NUMCollector;
19
20 class NUM3Parser : public IWAParser
21{
22 public:
23 NUM3Parser(const RVNGInputStreamPtr_t &fragments, const RVNGInputStreamPtr_t &package, NUMCollector &collector);
24
25 private:
26 bool parseDocument() override;
27 bool parseShapePlacement(const IWAMessage &msg, IWORKGeometryPtr_t &geometry, boost::optional<unsigned> &flags) override;
28 bool parseStickyNote(const IWAMessage &msg) override;
29
30 bool parseSheet(unsigned id);
31
32 private:
33 NUMCollector &m_collector;
34};
35
36}
37
38#endif
39
40/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
IWAParser.h
libetonyek::IWAMessage
Definition IWAMessage.h:22
libetonyek::IWAParser::IWAParser
IWAParser(const IWAParser &)
libetonyek::NUM3Parser::m_collector
NUMCollector & m_collector
Definition NUM3Parser.h:33
libetonyek::NUM3Parser::parseStickyNote
bool parseStickyNote(const IWAMessage &msg) override
Definition NUM3Parser.cpp:67
libetonyek::NUM3Parser::parseDocument
bool parseDocument() override
Definition NUM3Parser.cpp:84
libetonyek::NUM3Parser::parseSheet
bool parseSheet(unsigned id)
Definition NUM3Parser.cpp:30
libetonyek::NUM3Parser::NUM3Parser
NUM3Parser(const RVNGInputStreamPtr_t &fragments, const RVNGInputStreamPtr_t &package, NUMCollector &collector)
Definition NUM3Parser.cpp:24
libetonyek::NUM3Parser::parseShapePlacement
bool parseShapePlacement(const IWAMessage &msg, IWORKGeometryPtr_t &geometry, boost::optional< unsigned > &flags) override
Definition NUM3Parser.cpp:46
libetonyek::NUMCollector
Definition NUMCollector.h:21
libetonyek::IWORKToken::flags
@ flags
Definition IWORKToken.h:534
libetonyek::IWORKToken::geometry
@ geometry
Definition IWORKToken.h:236
libetonyek
Definition IWORKBezierElement.cpp:21
libetonyek::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition libetonyek_utils.h:82
libetonyek::IWORKGeometryPtr_t
std::shared_ptr< IWORKGeometry > IWORKGeometryPtr_t
Definition IWORKTypes_fwd.h:45