KEY2StyleRefContext.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 KEY2STYLEREFCONTEXT_H_INCLUDED
11 #define KEY2STYLEREFCONTEXT_H_INCLUDED
12 
13 #include "IWORKStyleRefContext.h"
14 #include "KEY2XMLContextBase.h"
15 
16 namespace libetonyek
17 {
18 
19 struct KEYDictionary;
20 
22 {
23 public:
24  KEY2StyleRefContext(KEY2ParserState &state, int id, bool nested = false, bool anonymous = false);
25 
26 private:
27  virtual void attribute(int name, const char *value);
28  virtual void endOfElement();
29 
31 
32 private:
34  const int m_id;
35  const bool m_nested;
36  const bool m_anonymous;
37 };
38 
39 }
40 
41 #endif // KEY2STYLEREFCONTEXT_H_INCLUDED
42 
43 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition: IWORKColorElement.cpp:19
virtual void attribute(int name, const char *value)
Definition: KEY2StyleRefContext.cpp:30
KEYDictionary & getDictionary()
Definition: KEY2StyleRefContext.cpp:76
const bool m_nested
Definition: KEY2StyleRefContext.h:35
IWORKStyleRefContext m_base
Definition: KEY2StyleRefContext.h:33
KEY2StyleRefContext(KEY2ParserState &state, int id, bool nested=false, bool anonymous=false)
Definition: KEY2StyleRefContext.cpp:21
const char * name
Definition: IWORKToken.cpp:43
Definition: KEY2ParserState.h:22
Definition: IWORKStyleRefContext.h:20
Definition: KEY2XMLContextBase.h:22
A dictionary of all referenceable entities in the presentation.
Definition: KEYDictionary.h:33
Definition: KEY2StyleRefContext.h:21
const int m_id
Definition: KEY2StyleRefContext.h:34
const bool m_anonymous
Definition: KEY2StyleRefContext.h:36
virtual void endOfElement()
Definition: KEY2StyleRefContext.cpp:36

Generated for libetonyek by doxygen 1.8.8