PAG1Token.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /*
00003  * This file is part of the libetonyek project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  */
00009 
00010 #ifndef PAG1TOKEN_H_INCLUDED
00011 #define PAG1TOKEN_H_INCLUDED
00012 
00013 #include <boost/static_assert.hpp>
00014 
00015 #include "IWORKTokenInfo.h"
00016 
00017 namespace libetonyek
00018 {
00019 
00020 class IWORKTokenizer;
00021 
00022 namespace PAG1Token
00023 {
00024 
00025 enum
00026 {
00027   INVALID_TOKEN = 0,
00028   FIRST_TOKEN = IWORKTokenInfo<PAG1Parser>::first,
00029 
00030   // namespace prefixes
00031   sl,
00032 
00033   // elements
00034   SLCreationDateProperty,
00035   date,
00036   document,
00037   drawables,
00038   header,
00039   kSFWPFootnoteGapProperty,
00040   kSFWPFootnoteKindProperty,
00041   layout,
00042   number,
00043   page_group,
00044   prototype,
00045   publication_info,
00046   section,
00047   section_prototypes,
00048   stylesheet,
00049 
00050   // attributes
00051   page,
00052   rpage,
00053   version,
00054 
00055   // attribute values
00056   VERSION_STR_4,
00057   body,
00058   cell,
00059   footer,
00060   footnote,
00061   note,
00062   textbox,
00063 
00064   LAST_TOKEN
00065 };
00066 
00067 BOOST_STATIC_ASSERT(IWORKTokenInfo<PAG1Parser>::last >= LAST_TOKEN);
00068 
00069 enum Namespace
00070 {
00071   NS_URI_SL = sl << 16
00072 };
00073 
00074 const IWORKTokenizer &getTokenizer();
00075 
00076 }
00077 
00078 }
00079 
00080 #endif // PAG1TOKEN_H_INCLUDED
00081 
00082 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */