IWORKPElement.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 IWORKPELEMENT_H_INCLUDED
11 #define IWORKPELEMENT_H_INCLUDED
12 
13 #include "IWORKTypes.h"
14 #include "IWORKXMLContextBase.h"
15 
16 namespace libetonyek
17 {
18 
20 {
21 public:
22  explicit IWORKPElement(IWORKXMLParserState &state);
23 
24 protected:
25  virtual void attribute(int name, const char *value);
26  virtual IWORKXMLContextPtr_t element(int name);
27  virtual void endOfElement();
28  virtual void text(const char *value);
29 
30  void ensureOpened();
31 
32 private:
34  bool m_opened;
35 };
36 
37 }
38 
39 #endif // IWORKPELEMENT_H_INCLUDED
40 
41 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
boost::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
IWORKPElement(IWORKXMLParserState &state)
Definition: IWORKPElement.cpp:25
bool m_opened
Definition: IWORKPElement.h:34
boost::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
IWORKStylePtr_t m_style
Definition: IWORKPElement.h:33
const char * name
Definition: IWORKToken.cpp:43
virtual IWORKXMLContextPtr_t element(int name)
Definition: IWORKPElement.cpp:46
Definition: IWORKXMLContextBase.h:27
Definition: IWORKXMLParserState.h:26
virtual void endOfElement()
Definition: IWORKPElement.cpp:74
void ensureOpened()
Definition: IWORKPElement.cpp:81
virtual void attribute(int name, const char *value)
Definition: IWORKPElement.cpp:32
Definition: IWORKPElement.h:19
virtual void text(const char *value)
Definition: IWORKPElement.cpp:67

Generated for libetonyek by doxygen 1.8.6