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: */
89