KEY2Token.h Source File documentation

KEY2Token.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 KEY2TOKEN_H_INCLUDED
11#define KEY2TOKEN_H_INCLUDED
12
13#include <boost/static_assert.hpp>
14
15#include "IWORKTokenInfo.h"
16
17namespace libetonyek
18{
19
20class IWORKTokenizer;
21
22namespace KEY2Token
23{
24
25enum
26{
27 INVALID_TOKEN = 0,
28 FIRST_TOKEN = IWORKTokenInfo<KEY2Parser>::first,
29
30 // namespace prefixes
31 key,
32
33 // elements
34 BGBuildDurationProperty,
35 animationAuto,
36 animationAutoPlay,
37 animationDelay,
38 animationDelayAutomaticAfter,
39 animationDelayAutomaticWith,
40 animationDuration,
41 animationEndOffset,
42 animationInterchunkAuto,
43 animationInterchunkDelay,
44 animationStartOffset,
45 animationTimingReferent,
46 animationType,
47 authors,
48 body_placeholder,
49 body_placeholder_ref,
50 build,
51 build_chunk,
52 build_chunks,
53 bullets,
54 c,
55 comment,
56 direction,
57 events,
58 headline,
59 headlineParagraphStyle,
60 info_ref,
61 keywords,
62 master_slide,
63 master_slides,
64 master_ref,
65 metadata,
66 notes,
67 number,
68 object_placeholder,
69 page,
70 parent_build_ref,
71 presentation,
72 size,
73 slide,
74 slide_list,
75 slide_style,
76 slide_number_placeholder,
77 sticky_note,
78 sticky_notes,
79 string,
80 style_ref,
81 stylesheet,
82 text,
83 theme,
84 theme_list,
85 title,
86 title_placeholder,
87 title_placeholder_ref,
88
89 // attributes
90 depth,
91 name,
92 type,
93 version,
94
95 // attribute values
96 COMPATIBLE_VERSION_STR_3,
97 VERSION_STR_2,
98 VERSION_STR_3,
99 VERSION_STR_4,
100 VERSION_STR_5,
101 i,
102
103 LAST_TOKEN
104};
105
106BOOST_STATIC_ASSERT(IWORKTokenInfo<KEY2Parser>::last >= LAST_TOKEN);
107
108 enum Namespace
109{
110 NS_URI_KEY = key << 16
111};
112
113const IWORKTokenizer &getTokenizer();
114
115}
116
117}
118
119#endif // KEY2TOKEN_H_INCLUDED
120
121/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
IWORKTokenInfo.h
libetonyek::IWORKTokenizer
Definition IWORKTokenizer.h:17
libetonyek::KEY2Token
Definition KEY2Token.cpp:55
libetonyek::KEY2Token::BOOST_STATIC_ASSERT
BOOST_STATIC_ASSERT(IWORKTokenInfo< KEY2Parser >::last >=LAST_TOKEN)
libetonyek::KEY2Token::Namespace
Namespace
Definition KEY2Token.h:109
libetonyek::KEY2Token::NS_URI_KEY
@ NS_URI_KEY
Definition KEY2Token.h:110
libetonyek::KEY2Token::animationType
@ animationType
Definition KEY2Token.h:46
libetonyek::KEY2Token::metadata
@ metadata
Definition KEY2Token.h:65
libetonyek::KEY2Token::string
@ string
Definition KEY2Token.h:79
libetonyek::KEY2Token::c
@ c
Definition KEY2Token.h:54
libetonyek::KEY2Token::animationInterchunkDelay
@ animationInterchunkDelay
Definition KEY2Token.h:43
libetonyek::KEY2Token::depth
@ depth
Definition KEY2Token.h:90
libetonyek::KEY2Token::slide
@ slide
Definition KEY2Token.h:73
libetonyek::KEY2Token::presentation
@ presentation
Definition KEY2Token.h:71
libetonyek::KEY2Token::authors
@ authors
Definition KEY2Token.h:47
libetonyek::KEY2Token::stylesheet
@ stylesheet
Definition KEY2Token.h:81
libetonyek::KEY2Token::animationEndOffset
@ animationEndOffset
Definition KEY2Token.h:41
libetonyek::KEY2Token::animationDelay
@ animationDelay
Definition KEY2Token.h:37
libetonyek::KEY2Token::VERSION_STR_5
@ VERSION_STR_5
Definition KEY2Token.h:100
libetonyek::KEY2Token::master_ref
@ master_ref
Definition KEY2Token.h:64
libetonyek::KEY2Token::build_chunk
@ build_chunk
Definition KEY2Token.h:51
libetonyek::KEY2Token::key
@ key
Definition KEY2Token.h:31
libetonyek::KEY2Token::VERSION_STR_3
@ VERSION_STR_3
Definition KEY2Token.h:98
libetonyek::KEY2Token::title_placeholder_ref
@ title_placeholder_ref
Definition KEY2Token.h:87
libetonyek::KEY2Token::theme_list
@ theme_list
Definition KEY2Token.h:84
libetonyek::KEY2Token::build
@ build
Definition KEY2Token.h:50
libetonyek::KEY2Token::sticky_notes
@ sticky_notes
Definition KEY2Token.h:78
libetonyek::KEY2Token::i
@ i
Definition KEY2Token.h:101
libetonyek::KEY2Token::INVALID_TOKEN
@ INVALID_TOKEN
Definition KEY2Token.h:27
libetonyek::KEY2Token::theme
@ theme
Definition KEY2Token.h:83
libetonyek::KEY2Token::sticky_note
@ sticky_note
Definition KEY2Token.h:77
libetonyek::KEY2Token::BGBuildDurationProperty
@ BGBuildDurationProperty
Definition KEY2Token.h:34
libetonyek::KEY2Token::title_placeholder
@ title_placeholder
Definition KEY2Token.h:86
libetonyek::KEY2Token::headlineParagraphStyle
@ headlineParagraphStyle
Definition KEY2Token.h:59
libetonyek::KEY2Token::bullets
@ bullets
Definition KEY2Token.h:53
libetonyek::KEY2Token::object_placeholder
@ object_placeholder
Definition KEY2Token.h:68
libetonyek::KEY2Token::slide_style
@ slide_style
Definition KEY2Token.h:75
libetonyek::KEY2Token::style_ref
@ style_ref
Definition KEY2Token.h:80
libetonyek::KEY2Token::animationDuration
@ animationDuration
Definition KEY2Token.h:40
libetonyek::KEY2Token::VERSION_STR_2
@ VERSION_STR_2
Definition KEY2Token.h:97
libetonyek::KEY2Token::animationAutoPlay
@ animationAutoPlay
Definition KEY2Token.h:36
libetonyek::KEY2Token::animationAuto
@ animationAuto
Definition KEY2Token.h:35
libetonyek::KEY2Token::text
@ text
Definition KEY2Token.h:82
libetonyek::KEY2Token::VERSION_STR_4
@ VERSION_STR_4
Definition KEY2Token.h:99
libetonyek::KEY2Token::LAST_TOKEN
@ LAST_TOKEN
Definition KEY2Token.h:103
libetonyek::KEY2Token::number
@ number
Definition KEY2Token.h:67
libetonyek::KEY2Token::body_placeholder
@ body_placeholder
Definition KEY2Token.h:48
libetonyek::KEY2Token::animationInterchunkAuto
@ animationInterchunkAuto
Definition KEY2Token.h:42
libetonyek::KEY2Token::body_placeholder_ref
@ body_placeholder_ref
Definition KEY2Token.h:49
libetonyek::KEY2Token::animationDelayAutomaticWith
@ animationDelayAutomaticWith
Definition KEY2Token.h:39
libetonyek::KEY2Token::slide_list
@ slide_list
Definition KEY2Token.h:74
libetonyek::KEY2Token::name
@ name
Definition KEY2Token.h:91
libetonyek::KEY2Token::title
@ title
Definition KEY2Token.h:85
libetonyek::KEY2Token::master_slides
@ master_slides
Definition KEY2Token.h:63
libetonyek::KEY2Token::parent_build_ref
@ parent_build_ref
Definition KEY2Token.h:70
libetonyek::KEY2Token::FIRST_TOKEN
@ FIRST_TOKEN
Definition KEY2Token.h:28
libetonyek::KEY2Token::slide_number_placeholder
@ slide_number_placeholder
Definition KEY2Token.h:76
libetonyek::KEY2Token::info_ref
@ info_ref
Definition KEY2Token.h:60
libetonyek::KEY2Token::animationStartOffset
@ animationStartOffset
Definition KEY2Token.h:44
libetonyek::KEY2Token::animationTimingReferent
@ animationTimingReferent
Definition KEY2Token.h:45
libetonyek::KEY2Token::direction
@ direction
Definition KEY2Token.h:56
libetonyek::KEY2Token::master_slide
@ master_slide
Definition KEY2Token.h:62
libetonyek::KEY2Token::COMPATIBLE_VERSION_STR_3
@ COMPATIBLE_VERSION_STR_3
Definition KEY2Token.h:96
libetonyek::KEY2Token::build_chunks
@ build_chunks
Definition KEY2Token.h:52
libetonyek::KEY2Token::animationDelayAutomaticAfter
@ animationDelayAutomaticAfter
Definition KEY2Token.h:38
libetonyek::KEY2Token::size
@ size
Definition KEY2Token.h:72
libetonyek::KEY2Token::version
@ version
Definition KEY2Token.h:93
libetonyek::KEY2Token::keywords
@ keywords
Definition KEY2Token.h:61
libetonyek::KEY2Token::comment
@ comment
Definition KEY2Token.h:55
libetonyek::KEY2Token::type
@ type
Definition KEY2Token.h:92
libetonyek::KEY2Token::page
@ page
Definition KEY2Token.h:69
libetonyek::KEY2Token::events
@ events
Definition KEY2Token.h:57
libetonyek::KEY2Token::notes
@ notes
Definition KEY2Token.h:66
libetonyek::KEY2Token::headline
@ headline
Definition KEY2Token.h:58
libetonyek::KEY2Token::getTokenizer
const IWORKTokenizer & getTokenizer()
Definition KEY2Token.cpp:57
libetonyek
Definition IWORKBezierElement.cpp:21
libetonyek::IWORKTokenInfo
Definition IWORKTokenInfo.h:18