PAG1Token.h Source File documentation

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