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
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::double_cast
double double_cast(const char *value)
Definition: libetonyek_xml.cpp:79
PAG1FootnotesElement.h
libetonyek::IWORKToken::link
@ link
Definition: IWORKToken.h:303
IWORKTextStorageElement.h
libetonyek::IWORKToken::frame_x
@ frame_x
Definition: IWORKToken.h:545
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKToken::section
@ section
Definition: IWORKToken.h:389
libetonyek::IWORKToken::group
@ group
Definition: IWORKToken.h:244
m_opened
bool m_opened
Definition: PAG1TextStorageElement.cpp:666
m_savedText
std::shared_ptr< IWORKText > m_savedText
Definition: PAG1TextStorageElement.cpp:89
libetonyek::IWORKToken::container_hint
@ container_hint
Definition: IWORKToken.h:161
libetonyek::PAG1ParserState
Definition: PAG1ParserState.h:23
libetonyek::PAG1TextStorageElement::endOfElement
void endOfElement() override
Definition: PAG1TextStorageElement.cpp:876
libetonyek::IWORKToken::ID
@ ID
Definition: IWORKToken.h:499
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::IWORKToken::NS_URI_SFA
@ NS_URI_SFA
Definition: IWORKToken.h:689
libetonyek::IWORKToken::footnotes
@ footnotes
Definition: IWORKToken.h:223
libetonyek::PAG_TEXTSTORAGE_KIND_BASIC
@ PAG_TEXTSTORAGE_KIND_BASIC
Definition: PAGEnum.h:25
libetonyek::PAG1XMLEmptyContextBase
PAG1XMLContextBase< IWORKXMLContextEmpty > PAG1XMLEmptyContextBase
Definition: PAG1XMLContextBase.h:42
libetonyek::PAGTextStorageKind
PAGTextStorageKind
Definition: PAGEnum.h:23
libetonyek::PAG_FOOTNOTE_KIND_FOOTNOTE
@ PAG_FOOTNOTE_KIND_FOOTNOTE
Definition: PAGEnum.h:18
IWORKPositionElement.h
libetonyek::IWORKToken::attachment
@ attachment
Definition: IWORKToken.h:104
libetonyek::IWORKToken::frame_w
@ frame_w
Definition: IWORKToken.h:544
libetonyek::PAG1XMLContextBase
Definition: PAG1XMLContextBase.h:22
libetonyek::PAGCollector::collectTextBody
void collectTextBody()
Definition: PAGCollector.cpp:133
libetonyek::IWORKToken::p
@ p
Definition: IWORKToken.h:342
libetonyek::PAG1TextStorageElement::PAG1TextStorageElement
PAG1TextStorageElement(PAG1ParserState &state, const PAGTextStorageKind kind=PAG_TEXTSTORAGE_KIND_BASIC)
Definition: PAG1TextStorageElement.cpp:820
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
libetonyek::PAG_TEXTSTORAGE_KIND_TEXTBOX
@ PAG_TEXTSTORAGE_KIND_TEXTBOX
Definition: PAGEnum.h:27
libetonyek::PAG1TextStorageElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: PAG1TextStorageElement.cpp:851
libetonyek::IWORKToken::footnotebr
@ footnotebr
Definition: IWORKToken.h:222
libetonyek::IWORKToken::tabular_info
@ tabular_info
Definition: IWORKToken.h:458
libetonyek::IWORKToken::mark
@ mark
Definition: IWORKToken.h:574
libetonyek::IWORKStylesheetPtr_t
std::shared_ptr< IWORKStylesheet > IWORKStylesheetPtr_t
Definition: IWORKStylesheet.h:19
libetonyek::IWORKXMLContextBase< IWORKTextStorageElement, PAG1ParserState, PAGCollector >::isCollector
bool isCollector() const
Definition: IWORKXMLContextBase.h:59
PAGEnum.h
libetonyek::IWORKToken::footnote
@ footnote
Definition: IWORKToken.h:220
IWORKShapeContext.h
libetonyek::IWORKToken::kind
@ kind
Definition: IWORKToken.h:567
IWORKLayoutElement.h
libetonyek::IWORKTextStorageElement
Definition: IWORKTextStorageElement.h:24
IWORKTextBodyElement.h
libetonyek::IWORKToken::attachments
@ attachments
Definition: IWORKToken.h:106
m_known
bool m_known
Definition: PAG1TextStorageElement.cpp:85
IWORKGroupElement.h
m_ref
boost::optional< ID_t > m_ref
Definition: PAG1TextStorageElement.cpp:249
m_originalSize
optional< IWORKSize > m_originalSize
Definition: PAG1TextStorageElement.cpp:88
m_y
optional< double > m_y
Definition: PAG1TextStorageElement.cpp:57
libetonyek::IWORKTextStorageElement::sendStylesheet
void sendStylesheet()
Definition: IWORKTextStorageElement.cpp:65
libetonyek::IWORKToken::content
@ content
Definition: IWORKToken.h:163
libetonyek::IWORKToken::position
@ position
Definition: IWORKToken.h:368
libetonyek::IWORKToken::frame_h
@ frame_h
Definition: IWORKToken.h:543
libetonyek::IWORKToken::sfclass
@ sfclass
Definition: IWORKToken.h:603
m_kind
boost::optional< std::string > m_kind
Definition: PAG1TextStorageElement.cpp:250
libetonyek::IWORKXMLContextBase< IWORKTextStorageElement, PAG1ParserState, PAGCollector >::getCollector
PAGCollector & getCollector() const
Definition: IWORKXMLContextBase.h:49
libetonyek::IWORKToken::fs
@ fs
Definition: IWORKToken.h:230
m_position
optional< IWORKPosition > m_position
Definition: PAG1TextStorageElement.cpp:87
m_block
bool m_block
Definition: PAG1TextStorageElement.cpp:86
libetonyek::IWORKCollector::createText
virtual std::shared_ptr< IWORKText > createText(const IWORKLanguageManager &langManager, bool discardEmptyContent=false, bool allowListInsertion=true) const
Definition: IWORKCollector.cpp:630
libetonyek::IWORKToken::frame_y
@ frame_y
Definition: IWORKToken.h:546
libetonyek::IWORKToken::element
@ element
Definition: IWORKToken.h:188
libetonyek::PAG1XMLElementContextBase
PAG1XMLContextBase< IWORKXMLContextElement > PAG1XMLElementContextBase
Definition: PAG1XMLContextBase.h:39
m_style
optional< string > m_style
Definition: PAG1TextStorageElement.cpp:667
libetonyek::IWORKToken::string
@ string
Definition: IWORKToken.h:411
PAG1TextStorageElement.h
IWORKText.h
PAG1Dictionary.h
libetonyek::PAG1TextStorageElement::m_textOpened
bool m_textOpened
Definition: PAG1TextStorageElement.h:34
libetonyek::IWORKToken::style
@ style
Definition: IWORKToken.h:414
libetonyek::IWORKToken::layout
@ layout
Definition: IWORKToken.h:289
IWORKMediaElement.h
libetonyek::PAG1TextStorageElement
Definition: PAG1TextStorageElement.h:22
libetonyek::IWORKToken::IDREF
@ IDREF
Definition: IWORKToken.h:500
libetonyek::IWORKToken::drawable_shape
@ drawable_shape
Definition: IWORKToken.h:182
libetonyek::IWORKToken::original_size
@ original_size
Definition: IWORKToken.h:337
IWORKTabularInfoElement.h
m_state
PAG1ParserState & m_state
Definition: PAG1TextStorageElement.cpp:413
libetonyek::IWORKToken::span
@ span
Definition: IWORKToken.h:402
libetonyek::PAG1TextStorageElement::m_kind
PAGTextStorageKind m_kind
Definition: PAG1TextStorageElement.h:33
libetonyek::IWORKToken::attachment_ref
@ attachment_ref
Definition: IWORKToken.h:105
libetonyek::IWORKToken::footnote_mark
@ footnote_mark
Definition: IWORKToken.h:221
m_w
optional< double > m_w
Definition: PAG1TextStorageElement.cpp:54
libetonyek::IWORKToken::first
@ first
Definition: IWORKToken.h:524
libetonyek::IWORKToken::annotation_field_ref
@ annotation_field_ref
Definition: IWORKToken.h:99
libetonyek::IWORKToken::NS_URI_SF
@ NS_URI_SF
Definition: IWORKToken.h:688
libetonyek::IWORKToken::annotation_field
@ annotation_field
Definition: IWORKToken.h:98
m_footnoteHelper
FootnoteHelper m_footnoteHelper
Definition: PAG1TextStorageElement.cpp:463
PAG1XMLContextBase.h
libetonyek::get_optional_value_or
const ValueT & get_optional_value_or(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field, const ValueT &value)
Definition: IWAField.h:196
IWORKToken.h
m_h
optional< double > m_h
Definition: PAG1TextStorageElement.cpp:55
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
m_containerFrame
ContainerFrame & m_containerFrame
Definition: PAG1TextStorageElement.cpp:747
IWORKRefContext.h
libetonyek::IWORKXMLParserState::m_currentText
std::shared_ptr< IWORKText > m_currentText
Definition: IWORKXMLParserState.h:55
m_x
optional< double > m_x
Definition: PAG1TextStorageElement.cpp:56
IWORKLinkElement.h
IWORKSizeElement.h
PAG1ParserState.h
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:578
libetonyek::IWORKCollector::collectText
void collectText(const std::shared_ptr< IWORKText > &text)
Definition: IWORKCollector.cpp:549
libetonyek::IWORKToken::value
@ value
Definition: IWORKToken.h:624
libetonyek::IWORKToken::text_body
@ text_body
Definition: IWORKToken.h:467
IWORKPElement.h
PAG1AnnotationElement.h
PAGCollector.h
IWORKSpanElement.h
libetonyek::IWORKToken::media
@ media
Definition: IWORKToken.h:321
libetonyek_xml.h
libetonyek::IWORKToken::text
@ text
Definition: IWORKToken.h:465
libetonyek::IWORKXMLContextBase< IWORKTextStorageElement, PAG1ParserState, PAGCollector >::getState
PAG1ParserState & getState()
Definition: IWORKXMLContextBase.h:43