PAG1TextStorageElement.h Source File documentation

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 "PAGEnum.h"
14
15#include "PAG1XMLContextBase.h"
16
17#include "IWORKTextStorageElement.h"
18
19namespace libetonyek
20{
21
22 class PAG1TextStorageElement : public PAG1XMLContextBase<IWORKTextStorageElement>
23{
24public:
25 explicit PAG1TextStorageElement(PAG1ParserState &state, const PAGTextStorageKind kind=PAG_TEXTSTORAGE_KIND_BASIC);
26 PAG1TextStorageElement(PAG1ParserState &state, IWORKStylesheetPtr_t &mainMap, const PAGTextStorageKind kind=PAG_TEXTSTORAGE_KIND_BASIC);
27
28private:
29 IWORKXMLContextPtr_t element(int name) override;
30 void endOfElement() override;
31
32private:
33 PAGTextStorageKind m_kind;
34 bool m_textOpened;
35};
36
37}
38
39#endif // PAG1TEXTSTORAGEELEMENT_H_INCLUDED
40
41/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
IWORKTextStorageElement.h
PAG1XMLContextBase.h
PAGEnum.h
libetonyek::PAG1ParserState
Definition PAG1ParserState.h:24
libetonyek::PAG1TextStorageElement
Definition PAG1TextStorageElement.h:23
libetonyek::PAG1TextStorageElement::PAG1TextStorageElement
PAG1TextStorageElement(PAG1ParserState &state, const PAGTextStorageKind kind=PAG_TEXTSTORAGE_KIND_BASIC)
Definition PAG1TextStorageElement.cpp:820
libetonyek::PAG1TextStorageElement::m_kind
PAGTextStorageKind m_kind
Definition PAG1TextStorageElement.h:33
libetonyek::PAG1TextStorageElement::endOfElement
void endOfElement() override
Definition PAG1TextStorageElement.cpp:876
libetonyek::PAG1TextStorageElement::m_textOpened
bool m_textOpened
Definition PAG1TextStorageElement.h:34
libetonyek::PAG1XMLContextBase
Definition PAG1XMLContextBase.h:23
libetonyek::IWORKToken::element
@ element
Definition IWORKToken.h:192
libetonyek::IWORKToken::kind
@ kind
Definition IWORKToken.h:574
libetonyek::IWORKToken::name
@ name
Definition IWORKToken.h:585
libetonyek
Definition IWORKBezierElement.cpp:21
libetonyek::PAGTextStorageKind
PAGTextStorageKind
Definition PAGEnum.h:24
libetonyek::PAG_TEXTSTORAGE_KIND_BASIC
@ PAG_TEXTSTORAGE_KIND_BASIC
Definition PAGEnum.h:25
libetonyek::IWORKStylesheetPtr_t
std::shared_ptr< IWORKStylesheet > IWORKStylesheetPtr_t
Definition IWORKStylesheet.h:20
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition IWORKXMLContext.h:20