KEY1ContentElement.h Source File documentation

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
23namespace libetonyek
24{
25class IWORKText;
26class KEY1ParserState;
27
28 class KEY1ContentElement : public KEY1XMLElementContextBase
29{
30public:
31 explicit KEY1ContentElement(KEY1ParserState &state);
32
33protected:
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
39private:
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: */
IWORKEnum.h
IWORKStyle.h
KEY1DivElement.h
KEY1SpanElement.h
KEY1XMLContextBase.h
libetonyek::KEY1ContentElement
Definition KEY1ContentElement.h:29
libetonyek::KEY1ContentElement::CDATA
void CDATA(const char *value) override
Definition KEY1ContentElement.cpp:61
libetonyek::KEY1ContentElement::m_divStyle
KEY1DivStyle m_divStyle
Definition KEY1ContentElement.h:40
libetonyek::KEY1ContentElement::m_delayedLineBreak
bool m_delayedLineBreak
Definition KEY1ContentElement.h:42
libetonyek::KEY1ContentElement::KEY1ContentElement
KEY1ContentElement(KEY1ParserState &state)
Definition KEY1ContentElement.cpp:24
libetonyek::KEY1ContentElement::attribute
void attribute(int name, const char *value) override
Definition KEY1ContentElement.cpp:32
libetonyek::KEY1ContentElement::m_spanStyle
KEY1SpanStyle m_spanStyle
Definition KEY1ContentElement.h:41
libetonyek::KEY1DivStyle
Definition KEY1DivElement.h:24
libetonyek::KEY1ParserState
Definition KEY1ParserState.h:45
libetonyek::KEY1SpanStyle
Definition KEY1SpanElement.h:24
libetonyek::KEY1XMLContextBase
Definition KEY1XMLContextBase.h:23
libetonyek::IWORKToken::value
@ value
Definition IWORKToken.h:631
libetonyek::IWORKToken::text
@ text
Definition IWORKToken.h:472
libetonyek::IWORKToken::element
@ element
Definition IWORKToken.h:192
libetonyek::IWORKToken::name
@ name
Definition IWORKToken.h:585
libetonyek
Definition IWORKBezierElement.cpp:21
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition IWORKXMLContext.h:20