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
17 namespace libetonyek
18 {
19
20 class IWORKTokenizer;
21
22 namespace KEY2Token
23 {
24
25 enum
26 {
27 INVALID_TOKEN = 0,
28 FIRST_TOKEN = IWORKTokenInfo<KEY2Parser>::first,
29
30 // namespace prefixes
31 key,
32
33 // elements
34 authors,
35 body_placeholder,
36 c,
37 comment,
38 headlineParagraphStyle,
39 keywords,
40 master_slide,
41 master_slides,
42 metadata,
43 notes,
44 page,
45 presentation,
46 size,
47 slide,
48 slide_list,
49 slide_style,
50 sticky_note,
51 sticky_notes,
52 string,
53 style_ref,
54 stylesheet,
55 text,
56 theme,
57 theme_list,
58 title,
59 title_placeholder,
60
61 // attributes
62 version,
63
64 // attribute values
65 COMPATIBLE_VERSION_STR_3,
66 VERSION_STR_2,
67 VERSION_STR_3,
68 VERSION_STR_4,
69 VERSION_STR_5,
70 i,
71
72 LAST_TOKEN
73 };
74
75 BOOST_STATIC_ASSERT(IWORKTokenInfo<KEY2Parser>::last >= LAST_TOKEN);
76
77 enum Namespace
78 {
79 NS_URI_KEY = key << 16
80 };
81
82 const IWORKTokenizer &getTokenizer();
83
84 }
85
86 }
87
88 #endif // KEY2TOKEN_H_INCLUDED
89
90 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek
Definition: IWORKBezierElement.cpp:18
libetonyek::KEY2Token::sticky_notes
Definition: KEY2Token.h:51
libetonyek::KEY2Token::slide_style
Definition: KEY2Token.h:49
libetonyek::KEY2Token::stylesheet
Definition: KEY2Token.h:54
libetonyek::KEY2Token::metadata
Definition: KEY2Token.h:42
libetonyek::KEY2Token::VERSION_STR_5
Definition: KEY2Token.h:69
libetonyek::KEY2Token::c
Definition: KEY2Token.h:36
libetonyek::KEY2Token::FIRST_TOKEN
Definition: KEY2Token.h:28
libetonyek::IWORKTokenInfo
Definition: IWORKTokenInfo.h:17
libetonyek::KEY2Token::page
Definition: KEY2Token.h:44
libetonyek::KEY2Token::VERSION_STR_2
Definition: KEY2Token.h:66
libetonyek::KEY2Token::slide_list
Definition: KEY2Token.h:48
libetonyek::KEY2Token::presentation
Definition: KEY2Token.h:45
libetonyek::KEY2Token::version
Definition: KEY2Token.h:62
libetonyek::KEY2Token::key
Definition: KEY2Token.h:31
libetonyek::KEY2Token::comment
Definition: KEY2Token.h:37
libetonyek::KEY2Token::Namespace
Namespace
Definition: KEY2Token.h:77
libetonyek::KEY2Token::sticky_note
Definition: KEY2Token.h:50
libetonyek::KEY2Token::LAST_TOKEN
Definition: KEY2Token.h:72
libetonyek::KEY2Token::master_slide
Definition: KEY2Token.h:40
libetonyek::KEY2Token::headlineParagraphStyle
Definition: KEY2Token.h:38
libetonyek::KEY2Token::VERSION_STR_4
Definition: KEY2Token.h:68
libetonyek::KEY2Token::master_slides
Definition: KEY2Token.h:41
libetonyek::KEY2Token::i
Definition: KEY2Token.h:70
libetonyek::KEY2Token::string
Definition: KEY2Token.h:52
libetonyek::KEY2Token::style_ref
Definition: KEY2Token.h:53
libetonyek::KEY2Token::BOOST_STATIC_ASSERT
BOOST_STATIC_ASSERT(IWORKTokenInfo< KEY2Parser >::last >=LAST_TOKEN)
libetonyek::KEY2Token::slide
Definition: KEY2Token.h:47
libetonyek::KEY2Token::body_placeholder
Definition: KEY2Token.h:35
libetonyek::KEY2Token::theme_list
Definition: KEY2Token.h:57
libetonyek::KEY2Token::theme
Definition: KEY2Token.h:56
libetonyek::KEY2Token::text
Definition: KEY2Token.h:55
libetonyek::KEY2Token::keywords
Definition: KEY2Token.h:39
libetonyek::KEY2Token::notes
Definition: KEY2Token.h:43
libetonyek::IWORKTokenizer
Definition: IWORKTokenizer.h:16
libetonyek::KEY2Token::NS_URI_KEY
Definition: KEY2Token.h:79
libetonyek::KEY2Token::getTokenizer
const IWORKTokenizer & getTokenizer()
Definition: KEY2Token.cpp:57
libetonyek::KEY2Token::INVALID_TOKEN
Definition: KEY2Token.h:27
IWORKTokenInfo.h
libetonyek::KEY2Token::title_placeholder
Definition: KEY2Token.h:59
libetonyek::KEY2Token::authors
Definition: KEY2Token.h:34
libetonyek::KEY2Token::COMPATIBLE_VERSION_STR_3
Definition: KEY2Token.h:65
libetonyek::KEY2Token::size
Definition: KEY2Token.h:46
libetonyek::KEY2Token::title
Definition: KEY2Token.h:58
libetonyek::KEY2Token::VERSION_STR_3
Definition: KEY2Token.h:67