KEY6Parser.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 KEY6PARSER_H_INCLUDED
11#define KEY6PARSER_H_INCLUDED
12
13#include "IWAParser.h"
14
15#include "KEYTypes_fwd.h"
16
17 namespace libetonyek
18{
19
20 class KEYCollector;
21
22 class KEY6Parser : public IWAParser
23{
24 public:
25 KEY6Parser(const RVNGInputStreamPtr_t &fragments, const RVNGInputStreamPtr_t &package, KEYCollector &collector);
26
27 private:
28 bool parseDocument() override;
29
30 bool parsePresentation(unsigned id);
31 bool parseSlideList(unsigned id);
32 KEYSlidePtr_t parseSlide(unsigned id, bool master);
33 bool parsePlaceholder(unsigned id);
34 void parseNotes(unsigned id);
35
36 bool parseStickyNote(const IWAMessage &msg) override;
37
38 const IWORKStylePtr_t querySlideStyle(unsigned id) const;
39
40 void parseSlideStyle(unsigned id, IWORKStylePtr_t &style);
41
42 private:
43 KEYCollector &m_collector;
44
45 mutable std::unordered_map<unsigned, KEYSlidePtr_t> m_masterSlides;
46 mutable std::deque<KEYSlidePtr_t> m_slides;
47 mutable StyleMap_t m_slideStyles;
48};
49
50}
51
52#endif
53
54/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
IWAParser.h
KEYTypes_fwd.h
libetonyek::IWAMessage
Definition IWAMessage.h:22
libetonyek::IWAParser::StyleMap_t
std::map< unsigned, IWORKStylePtr_t > StyleMap_t
Definition IWAParser.h:89
libetonyek::IWAParser::IWAParser
IWAParser(const IWAParser &)
libetonyek::KEY6Parser::parseSlideList
bool parseSlideList(unsigned id)
Definition KEY6Parser.cpp:91
libetonyek::KEY6Parser::m_slides
std::deque< KEYSlidePtr_t > m_slides
Definition KEY6Parser.h:46
libetonyek::KEY6Parser::parseNotes
void parseNotes(unsigned id)
Definition KEY6Parser.cpp:218
libetonyek::KEY6Parser::parsePlaceholder
bool parsePlaceholder(unsigned id)
Definition KEY6Parser.cpp:162
libetonyek::KEY6Parser::m_masterSlides
std::unordered_map< unsigned, KEYSlidePtr_t > m_masterSlides
Definition KEY6Parser.h:45
libetonyek::KEY6Parser::m_collector
KEYCollector & m_collector
Definition KEY6Parser.h:43
libetonyek::KEY6Parser::querySlideStyle
const IWORKStylePtr_t querySlideStyle(unsigned id) const
Definition KEY6Parser.cpp:271
libetonyek::KEY6Parser::parseDocument
bool parseDocument() override
Definition KEY6Parser.cpp:46
libetonyek::KEY6Parser::m_slideStyles
StyleMap_t m_slideStyles
Definition KEY6Parser.h:47
libetonyek::KEY6Parser::KEY6Parser
KEY6Parser(const RVNGInputStreamPtr_t &fragments, const RVNGInputStreamPtr_t &package, KEYCollector &collector)
Definition KEY6Parser.cpp:37
libetonyek::KEY6Parser::parseSlideStyle
void parseSlideStyle(unsigned id, IWORKStylePtr_t &style)
Definition KEY6Parser.cpp:276
libetonyek::KEY6Parser::parseStickyNote
bool parseStickyNote(const IWAMessage &msg) override
Definition KEY6Parser.cpp:236
libetonyek::KEY6Parser::parsePresentation
bool parsePresentation(unsigned id)
Definition KEY6Parser.cpp:58
libetonyek::KEY6Parser::parseSlide
KEYSlidePtr_t parseSlide(unsigned id, bool master)
Definition KEY6Parser.cpp:104
libetonyek::KEYCollector
Definition KEYCollector.h:25
libetonyek::IWORKToken::style
@ style
Definition IWORKToken.h:421
libetonyek
Definition IWORKBezierElement.cpp:21
libetonyek::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition libetonyek_utils.h:82
libetonyek::KEYSlidePtr_t
std::shared_ptr< KEYSlide > KEYSlidePtr_t
Definition KEYTypes_fwd.h:33
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition IWORKStyle_fwd.h:23