KEY1ContentElement.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 KEY1CONTENTELEMENT_H_INCLUDED
11 #define KEY1CONTENTELEMENT_H_INCLUDED
12
13 #include <boost/shared_ptr.hpp>
14
15 #include "KEY1XMLContextBase.h"
16
17 #include "IWORKEnum.h"
18 #include "IWORKStyle.h"
19
20 #include "KEY1SpanElement.h"
21 #include "KEY1DivElement.h"
22
23 namespace libetonyek
24 {
25 class IWORKText;
26 class KEY1ParserState;
27
28 class KEY1ContentElement : public KEY1XMLElementContextBase
29 {
30 public:
31 explicit KEY1ContentElement(KEY1ParserState &state);
32
33 protected:
34 void attribute(int name, const char *value) override;
35 IWORKXMLContextPtr_t element(int name) override;
36 void CDATA(const char *value) override;
37 void text(const char *value) override;
38
39 private:
40 KEY1DivStyle m_divStyle;
41 KEY1SpanStyle m_spanStyle;
42 bool m_delayedLineBreak;
43 };
44
45 }
46
47 #endif // KEY1CONTENTELEMENT_H_INCLUDED
48
49 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek
Definition: IWORKBezierElement.cpp:20
KEY1XMLContextBase.h
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::KEY1ParserState
Definition: KEY1ParserState.h:44
KEY1SpanElement.h
libetonyek::KEY1DivStyle
Definition: KEY1DivElement.h:23
libetonyek::IWORKToken::value
Definition: IWORKToken.h:624
libetonyek::KEY1SpanStyle
Definition: KEY1SpanElement.h:23
libetonyek::KEY1ContentElement::m_delayedLineBreak
bool m_delayedLineBreak
Definition: KEY1ContentElement.h:42
libetonyek::KEY1ContentElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: KEY1ContentElement.cpp:47
libetonyek::KEY1ContentElement::text
void text(const char *value) override
Definition: KEY1ContentElement.cpp:70
libetonyek::KEY1ContentElement::KEY1ContentElement
KEY1ContentElement(KEY1ParserState &state)
Definition: KEY1ContentElement.cpp:24
IWORKStyle.h
libetonyek::KEY1ContentElement::attribute
void attribute(int name, const char *value) override
Definition: KEY1ContentElement.cpp:32
libetonyek::KEY1ContentElement::CDATA
void CDATA(const char *value) override
Definition: KEY1ContentElement.cpp:61
name
const char * name
Definition: IWORKToken.cpp:43
KEY1DivElement.h
IWORKEnum.h
libetonyek::KEY1XMLContextBase
Definition: KEY1XMLContextBase.h:22
libetonyek::KEY1ContentElement
Definition: KEY1ContentElement.h:28
libetonyek::KEY1ContentElement::m_divStyle
KEY1DivStyle m_divStyle
Definition: KEY1ContentElement.h:40
libetonyek::KEY1ContentElement::m_spanStyle
KEY1SpanStyle m_spanStyle
Definition: KEY1ContentElement.h:41