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
17namespace libetonyek
18{
19
20class KEYCollector;
21
22class KEY6Parser : public IWAParser
23{
24public:
25 KEY6Parser(const RVNGInputStreamPtr_t &fragments, const RVNGInputStreamPtr_t &package, KEYCollector &collector);
26
27private:
28 bool parseDocument() override;
29
30 bool dispatchShape(unsigned id);
31
32 bool parsePresentation(unsigned id);
33 bool parseSlideList(unsigned id);
34 KEYSlidePtr_t parseSlide(unsigned id, bool master);
35 bool parsePlaceholder(unsigned id);
36 void parseNotes(unsigned id);
37
38 bool parseStickyNote(const IWAMessage &msg);
39
40 const IWORKStylePtr_t querySlideStyle(unsigned id) const;
41
42 void parseSlideStyle(unsigned id, IWORKStylePtr_t &style);
43
44private:
46
47 mutable std::unordered_map<unsigned, KEYSlidePtr_t> m_masterSlides;
48 mutable std::deque<KEYSlidePtr_t> m_slides;
50};
51
52}
53
54#endif
55
56/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition: IWAMessage.h:22
Definition: IWAParser.h:49
std::map< unsigned, IWORKStylePtr_t > StyleMap_t
Definition: IWAParser.h:86
Definition: KEY6Parser.h:23
bool parseSlideList(unsigned id)
Definition: KEY6Parser.cpp:90
std::deque< KEYSlidePtr_t > m_slides
Definition: KEY6Parser.h:48
bool parseStickyNote(const IWAMessage &msg)
Definition: KEY6Parser.cpp:248
void parseNotes(unsigned id)
Definition: KEY6Parser.cpp:214
bool parsePlaceholder(unsigned id)
Definition: KEY6Parser.cpp:162
std::unordered_map< unsigned, KEYSlidePtr_t > m_masterSlides
Definition: KEY6Parser.h:47
KEYCollector & m_collector
Definition: KEY6Parser.h:45
const IWORKStylePtr_t querySlideStyle(unsigned id) const
Definition: KEY6Parser.cpp:283
bool parseDocument() override
Definition: KEY6Parser.cpp:45
bool dispatchShape(unsigned id)
Definition: KEY6Parser.cpp:232
StyleMap_t m_slideStyles
Definition: KEY6Parser.h:49
KEY6Parser(const RVNGInputStreamPtr_t &fragments, const RVNGInputStreamPtr_t &package, KEYCollector &collector)
Definition: KEY6Parser.cpp:36
void parseSlideStyle(unsigned id, IWORKStylePtr_t &style)
Definition: KEY6Parser.cpp:288
bool parsePresentation(unsigned id)
Definition: KEY6Parser.cpp:57
KEYSlidePtr_t parseSlide(unsigned id, bool master)
Definition: KEY6Parser.cpp:103
Definition: KEYCollector.h:25
@ style
Definition: IWORKToken.h:414
Definition: IWORKBezierElement.cpp:21
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:82
std::shared_ptr< KEYSlide > KEYSlidePtr_t
Definition: KEYTypes_fwd.h:31
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21

Generated for libetonyek by doxygen 1.9.3