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
19 namespace libetonyek
20 {
21
22 class PAG1TextStorageElement : public PAG1XMLContextBase<IWORKTextStorageElement>
23 {
24 public:
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
28 private:
29 IWORKXMLContextPtr_t element(int name) override;
30 void endOfElement() override;
31
32 private:
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: */
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::PAG1TextStorageElement::PAG1TextStorageElement
PAG1TextStorageElement(PAG1ParserState &state, const PAGTextStorageKind kind=PAG_TEXTSTORAGE_KIND_BASIC)
Definition: PAG1TextStorageElement.cpp:820
libetonyek::PAG1TextStorageElement::m_textOpened
bool m_textOpened
Definition: PAG1TextStorageElement.h:34
libetonyek::PAG1TextStorageElement
Definition: PAG1TextStorageElement.h:22
libetonyek::PAG1TextStorageElement::m_kind
PAGTextStorageKind m_kind
Definition: PAG1TextStorageElement.h:33
libetonyek::PAG1XMLContextBase
Definition: PAG1XMLContextBase.h:22
libetonyek::PAG1TextStorageElement::endOfElement
void endOfElement() override
Definition: PAG1TextStorageElement.cpp:876
name
const char * name
Definition: IWORKToken.cpp:43
PAG1XMLContextBase.h
libetonyek::PAG1ParserState
Definition: PAG1ParserState.h:23
PAGEnum.h
libetonyek::IWORKToken::kind
Definition: IWORKToken.h:567
libetonyek::PAG_TEXTSTORAGE_KIND_BASIC
Definition: PAGEnum.h:25
libetonyek::PAG1TextStorageElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: PAG1TextStorageElement.cpp:851
libetonyek::PAGTextStorageKind
PAGTextStorageKind
Definition: PAGEnum.h:23
IWORKTextStorageElement.h
libetonyek::IWORKStylesheetPtr_t
std::shared_ptr< IWORKStylesheet > IWORKStylesheetPtr_t
Definition: IWORKStylesheet.h:19