PAG1Token.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 PAG1TOKEN_H_INCLUDED
11 #define PAG1TOKEN_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 PAG1Token
23 {
24
25 enum
26 {
27 INVALID_TOKEN = 0,
28 FIRST_TOKEN = IWORKTokenInfo<PAG1Parser>::first,
29
30 // namespace prefixes
31 sl,
32
33 // elements
34 SLCreationDateProperty,
35 date,
36 document,
37 drawables,
38 header,
39 kSFWPFootnoteGapProperty,
40 kSFWPFootnoteKindProperty,
41 layout,
42 number,
43 order,
44 page_group,
45 print_info,
46 prototype,
47 publication_info,
48 section,
49 section_prototypes,
50 slprint_info,
51 stylesheet,
52
53 // attributes
54 page,
55 page_height,
56 page_scale,
57 page_width,
58 rpage,
59 version,
60
61 // attribute values
62 VERSION_STR_4,
63 body,
64 cell,
65 footer,
66 footnote,
67 note,
68 textbox,
69
70 LAST_TOKEN
71 };
72
73 BOOST_STATIC_ASSERT(IWORKTokenInfo<PAG1Parser>::last >= LAST_TOKEN);
74
75 enum Namespace
76 {
77 NS_URI_SL = sl << 16
78 };
79
80 const IWORKTokenizer &getTokenizer();
81
82 }
83
84 }
85
86 #endif // PAG1TOKEN_H_INCLUDED
87
88 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::PAG1Token::layout
Definition: PAG1Token.h:41
libetonyek::PAG1Token::FIRST_TOKEN
Definition: PAG1Token.h:28
libetonyek::PAG1Token::page_height
Definition: PAG1Token.h:55
libetonyek::PAG1Token::version
Definition: PAG1Token.h:59
libetonyek::PAG1Token::LAST_TOKEN
Definition: PAG1Token.h:70
libetonyek::PAG1Token::NS_URI_SL
Definition: PAG1Token.h:77
libetonyek::IWORKTokenInfo
Definition: IWORKTokenInfo.h:17
libetonyek::PAG1Token::document
Definition: PAG1Token.h:36
libetonyek::PAG1Token::order
Definition: PAG1Token.h:43
libetonyek::PAG1Token::getTokenizer
const IWORKTokenizer & getTokenizer()
Definition: PAG1Token.cpp:57
libetonyek::PAG1Token::cell
Definition: PAG1Token.h:64
libetonyek::PAG1Token::page_scale
Definition: PAG1Token.h:56
libetonyek::PAG1Token::body
Definition: PAG1Token.h:63
libetonyek::PAG1Token::page_width
Definition: PAG1Token.h:57
libetonyek::PAG1Token::date
Definition: PAG1Token.h:35
libetonyek::PAG1Token::sl
Definition: PAG1Token.h:31
libetonyek::PAG1Token::print_info
Definition: PAG1Token.h:45
libetonyek::PAG1Token::footnote
Definition: PAG1Token.h:66
libetonyek::PAG1Token::INVALID_TOKEN
Definition: PAG1Token.h:27
libetonyek::PAG1Token::textbox
Definition: PAG1Token.h:68
libetonyek::PAG1Token::SLCreationDateProperty
Definition: PAG1Token.h:34
libetonyek::PAG1Token::stylesheet
Definition: PAG1Token.h:51
libetonyek::PAG1Token::footer
Definition: PAG1Token.h:65
libetonyek::PAG1Token::drawables
Definition: PAG1Token.h:37
libetonyek::PAG1Token::prototype
Definition: PAG1Token.h:46
libetonyek::PAG1Token::header
Definition: PAG1Token.h:38
libetonyek::PAG1Token::slprint_info
Definition: PAG1Token.h:50
libetonyek::IWORKTokenizer
Definition: IWORKTokenizer.h:16
libetonyek::PAG1Token::page_group
Definition: PAG1Token.h:44
libetonyek::PAG1Token::VERSION_STR_4
Definition: PAG1Token.h:62
libetonyek::PAG1Token::publication_info
Definition: PAG1Token.h:47
IWORKTokenInfo.h
libetonyek::PAG1Token::note
Definition: PAG1Token.h:67
libetonyek::PAG1Token::page
Definition: PAG1Token.h:54
libetonyek::PAG1Token::BOOST_STATIC_ASSERT
BOOST_STATIC_ASSERT(IWORKTokenInfo< PAG1Parser >::last >=LAST_TOKEN)
libetonyek::PAG1Token::kSFWPFootnoteKindProperty
Definition: PAG1Token.h:40
libetonyek::PAG1Token::Namespace
Namespace
Definition: PAG1Token.h:75
libetonyek::PAG1Token::number
Definition: PAG1Token.h:42
libetonyek::PAG1Token::rpage
Definition: PAG1Token.h:58
libetonyek::PAG1Token::kSFWPFootnoteGapProperty
Definition: PAG1Token.h:39
libetonyek::PAG1Token::section
Definition: PAG1Token.h:48
libetonyek::PAG1Token::section_prototypes
Definition: PAG1Token.h:49