KEY2Parser.h Source File documentation

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

KEY2Parser.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 KEY2PARSER_H_INCLUDED
11 #define KEY2PARSER_H_INCLUDED
12
13 #include "KEY2ParserUtils.h"
14 #include "KEYParser.h"
15 #include "KEYTypes.h"
16
17 namespace libetonyek
18 {
19
20 class KEYStyle;
21
22 class KEY2Parser : public KEYParser, private KEY2ParserUtils
23 {
24 public:
25 KEY2Parser(const RVNGInputStreamPtr_t &input, const RVNGInputStreamPtr_t &package, KEYCollector *collector, const KEYDefaults &defaults);
26 virtual ~KEY2Parser();
27
28 // NOTE: KEY2TableParser uses these to avoid code duplication
29 void parseGeometry(const KEYXMLReader &reader);
30 void parseTextBody(const KEYXMLReader &reader);
31
32 private:
33 virtual void processXmlNode(const KEYXMLReader &reader);
34 virtual KEYXMLReader::TokenizerFunction_t getTokenizer() const;
35
36 void parseDrawables(const KEYXMLReader &reader);
37 void parseLayer(const KEYXMLReader &reader);
38 void parseLayers(const KEYXMLReader &reader);
39 void parseMasterSlide(const KEYXMLReader &reader);
40 void parseMasterSlides(const KEYXMLReader &reader);
41 void parseMetadata(const KEYXMLReader &reader);
42 void parseNotes(const KEYXMLReader &reader);
43 void parsePage(const KEYXMLReader &reader);
44 void parseProxyMasterLayer(const KEYXMLReader &reader);
45 void parseSlide(const KEYXMLReader &reader);
46 void parseSlideList(const KEYXMLReader &reader);
47 void parseStickyNotes(const KEYXMLReader &reader);
48 void parseStyles(const KEYXMLReader &reader, bool anonymous);
49 void parseStylesheet(const KEYXMLReader &reader);
50 void parseTheme(const KEYXMLReader &reader);
51 void parseThemeList(const KEYXMLReader &reader);
52
53 void parseBezier(const KEYXMLReader &reader);
54 void parseConnectionLine(const KEYXMLReader &reader);
55 void parseGroup(const KEYXMLReader &reader);
56 void parseImage(const KEYXMLReader &reader);
57 void parseLine(const KEYXMLReader &reader);
58 void parseMedia(const KEYXMLReader &reader);
59 void parsePath(const KEYXMLReader &reader);
60 void parseShape(const KEYXMLReader &reader);
61 void parseStickyNote(const KEYXMLReader &reader);
62 void parsePlaceholder(const KEYXMLReader &reader, bool title = false);
63
64 void parseBezierPath(const KEYXMLReader &reader);
65 void parseCallout2Path(const KEYXMLReader &reader);
66 void parseConnectionPath(const KEYXMLReader &reader);
67 void parsePointPath(const KEYXMLReader &reader);
68 void parseScalarPath(const KEYXMLReader &reader);
69
70 void parseContent(const KEYXMLReader &reader);
71 void parseData(const KEYXMLReader &reader);
72 void parseFiltered(const KEYXMLReader &reader);
73 void parseFilteredImage(const KEYXMLReader &reader);
74 void parseImageMedia(const KEYXMLReader &reader);
75 void parseLeveled(const KEYXMLReader &reader);
76 void parseUnfiltered(const KEYXMLReader &reader);
77 void parseMovieMedia(const KEYXMLReader &reader);
78 void parseSelfContainedMovie(const KEYXMLReader &reader);
79 void parseOtherDatas(const KEYXMLReader &reader);
80
81 void parseBr(const KEYXMLReader &reader);
82 void parseLayout(const KEYXMLReader &reader);
83 void parseLink(const KEYXMLReader &reader);
84 void parseP(const KEYXMLReader &reader);
85 void parseSpan(const KEYXMLReader &reader);
86 void parseTab(const KEYXMLReader &reader);
87 void parseText(const KEYXMLReader &reader);
88 void parseTextStorage(const KEYXMLReader &reader);
89
90 void emitLayoutStyle(const ID_t &id);
91
92 private:
93 RVNGInputStreamPtr_t m_package;
94 unsigned m_version;
95 };
96
97 }
98
99 #endif // KEY2PARSER_H_INCLUDED
100
101 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::KEY2Parser::parseLayout
void parseLayout(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1698
libetonyek
Definition: EtonyekDocument.cpp:40
libetonyek::KEY2Parser::parseLayers
void parseLayers(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:243
libetonyek::KEY2Parser::parseStyles
void parseStyles(const KEYXMLReader &reader, bool anonymous)
Definition: KEY2Parser.cpp:502
libetonyek::KEY2Parser::parseContent
void parseContent(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1401
KEY2ParserUtils.h
libetonyek::KEY2Parser::m_package
RVNGInputStreamPtr_t m_package
Definition: KEY2Parser.h:93
libetonyek::KEY2Parser::parseLink
void parseLink(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1719
KEYTypes.h
libetonyek::KEY2Parser::parseImageMedia
void parseImageMedia(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1539
libetonyek::KEY2Parser::parseThemeList
void parseThemeList(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:653
libetonyek::KEY1Token::title
Definition: KEY1Token.h:85
libetonyek::KEY2Parser::parseImage
void parseImage(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:866
libetonyek::KEY2Parser::parseBr
void parseBr(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1685
libetonyek::KEY2Parser::parsePage
void parsePage(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:362
libetonyek::KEY2Parser::parseSlide
void parseSlide(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:424
libetonyek::KEY2Parser::parseTheme
void parseTheme(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:619
libetonyek::KEY2Parser::getTokenizer
virtual KEYXMLReader::TokenizerFunction_t getTokenizer() const
Definition: KEY2Parser.cpp:143
libetonyek::KEY2Parser::parseStickyNotes
void parseStickyNotes(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:488
libetonyek::KEY2Parser::parseP
void parseP(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1753
libetonyek::KEY2Parser::parseFilteredImage
void parseFilteredImage(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1500
libetonyek::KEY2Parser::parseProxyMasterLayer
void parseProxyMasterLayer(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:393
libetonyek::KEY2Parser::parseText
void parseText(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1876
libetonyek::KEY2Parser::parseOtherDatas
void parseOtherDatas(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1659
libetonyek::KEY2Parser::parseDrawables
void parseDrawables(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:148
libetonyek::KEY2Parser::parseLeveled
void parseLeveled(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1562
libetonyek::KEY2Parser::parseMasterSlides
void parseMasterSlides(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:320
libetonyek::KEY2Parser::parsePlaceholder
void parsePlaceholder(const KEYXMLReader &reader, bool title=false)
Definition: KEY2Parser.cpp:1092
libetonyek::KEY2Parser::parseUnfiltered
void parseUnfiltered(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1593
KEYParser.h
libetonyek::KEY2Parser::parseConnectionLine
void parseConnectionLine(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:702
libetonyek::KEY2Parser::parseTextBody
void parseTextBody(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1911
libetonyek::KEY2Parser::parseFiltered
void parseFiltered(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1469
libetonyek::KEY2Parser::parsePointPath
void parsePointPath(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1275
libetonyek::KEY2Parser::KEY2Parser
KEY2Parser(const RVNGInputStreamPtr_t &input, const RVNGInputStreamPtr_t &package, KEYCollector *collector, const KEYDefaults &defaults)
Definition: KEY2Parser.cpp:61
libetonyek::KEY2Parser::parseShape
void parseShape(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1019
libetonyek::KEY2Parser::parseSpan
void parseSpan(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1820
libetonyek::KEY2Parser::parsePath
void parsePath(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:982
libetonyek::KEY2Parser::parseTab
void parseTab(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1866
package
RVNGInputStreamPtr_t package
Definition: EtonyekDocument.cpp:60
libetonyek::KEY2Parser::parseMetadata
void parseMetadata(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:334
libetonyek::KEY2Parser::parseMovieMedia
void parseMovieMedia(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1627
libetonyek::KEY2Parser::parseMedia
void parseMedia(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:948
libetonyek::KEY2ParserUtils
A "mixin" containing a set of helper functions used in parser classes.
Definition: KEY2ParserUtils.h:28
libetonyek::KEY2Parser::parseBezierPath
void parseBezierPath(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1149
libetonyek::KEY2Parser::parseScalarPath
void parseScalarPath(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1341
libetonyek::KEY2Parser::parseStickyNote
void parseStickyNote(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1056
libetonyek::KEY2Parser::parseStylesheet
void parseStylesheet(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:583
libetonyek::KEY2Parser::m_version
unsigned m_version
Definition: KEY2Parser.h:94
libetonyek::KEY2Parser::parseCallout2Path
void parseCallout2Path(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1184
libetonyek::KEYParser
Definition: KEYParser.h:22
libetonyek::KEYXMLReader
Definition: KEYXMLReader.h:20
libetonyek::KEY2Parser::parseSelfContainedMovie
void parseSelfContainedMovie(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1643
libetonyek::RVNGInputStreamPtr_t
boost::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:88
libetonyek::ID_t
std::string ID_t
Definition: KEYTypes_fwd.h:20
libetonyek::KEY2Parser::parseMasterSlide
void parseMasterSlide(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:270
libetonyek::KEYCollector
Definition: KEYCollector.h:29
libetonyek::KEY2Parser::parseBezier
void parseBezier(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:671
libetonyek::KEY2Parser::parseLayer
void parseLayer(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:212
libetonyek::KEY2Parser::parseConnectionPath
void parseConnectionPath(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1241
input
RVNGInputStreamPtr_t input
Definition: EtonyekDocument.cpp:59
libetonyek::KEY2Parser::parseData
void parseData(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1429
libetonyek::KEY2Parser::parseSlideList
void parseSlideList(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:470
libetonyek::KEY2Parser::parseLine
void parseLine(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:904
libetonyek::KEYDefaults
A representation of default values for various parts of the format.
Definition: KEYDefaults.h:30
libetonyek::KEY2Parser::emitLayoutStyle
void emitLayoutStyle(const ID_t &id)
Definition: KEY2Parser.cpp:1992
libetonyek::KEY2Parser::parseTextStorage
void parseTextStorage(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:1966
libetonyek::KEY2Parser::processXmlNode
virtual void processXmlNode(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:73
libetonyek::KEY2Parser::parseGroup
void parseGroup(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:815
libetonyek::KEY2Parser::~KEY2Parser
virtual ~KEY2Parser()
Definition: KEY2Parser.cpp:69
libetonyek::KEY2Parser::parseNotes
void parseNotes(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:341
libetonyek::KEY2Parser::parseGeometry
void parseGeometry(const KEYXMLReader &reader)
Definition: KEY2Parser.cpp:733
libetonyek::KEY2Parser
Definition: KEY2Parser.h:22
libetonyek::KEYXMLReader::TokenizerFunction_t
boost::function< int(const char *)> TokenizerFunction_t
Definition: KEYXMLReader.h:126