PAG1TextStorageElement.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 PAG1TEXTSTORAGEELEMENT_H_INCLUDED
11 #define PAG1TEXTSTORAGEELEMENT_H_INCLUDED
12
13 #include "PAG1XMLContextBase.h"
14
15 #include "IWORKTextStorageElement.h"
16
17 namespace libetonyek
18 {
19
20 class PAG1TextStorageElement : public PAG1XMLContextBase<IWORKTextStorageElement>
21 {
22 public:
23 explicit PAG1TextStorageElement(PAG1ParserState &state, bool footnotes = false);
24
25 private:
26 IWORKXMLContextPtr_t element(int name) override;
27 void endOfElement() override;
28
29 private:
30 bool m_footnotes;
31 bool m_textOpened;
32 };
33
34 }
35
36 #endif // PAG1TEXTSTORAGEELEMENT_H_INCLUDED
37
38 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::IWORKToken::footnotes
Definition: IWORKToken.h:133
libetonyek
Definition: IWORKBezierElement.cpp:18
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::PAG1TextStorageElement::m_textOpened
bool m_textOpened
Definition: PAG1TextStorageElement.h:31
libetonyek::PAG1TextStorageElement
Definition: PAG1TextStorageElement.h:20
libetonyek::PAG1TextStorageElement::m_footnotes
bool m_footnotes
Definition: PAG1TextStorageElement.h:30
libetonyek::PAG1XMLContextBase
Definition: PAG1XMLContextBase.h:22
libetonyek::PAG1TextStorageElement::endOfElement
void endOfElement() override
Definition: PAG1TextStorageElement.cpp:723
libetonyek::PAG1TextStorageElement::PAG1TextStorageElement
PAG1TextStorageElement(PAG1ParserState &state, bool footnotes=false)
Definition: PAG1TextStorageElement.cpp:693
name
const char * name
Definition: IWORKToken.cpp:43
PAG1XMLContextBase.h
libetonyek::PAG1ParserState
Definition: PAG1ParserState.h:23
libetonyek::PAG1TextStorageElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: PAG1TextStorageElement.cpp:700
IWORKTextStorageElement.h