PAG1Parser.h Source File documentation

PAG1Parser.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 PAG1PARSER_H_INCLUDED
11 #define PAG1PARSER_H_INCLUDED
12
13 #include "IWORKParser.h"
14 #include "PAG1ParserState.h"
15
16 namespace libetonyek
17 {
18
19 class PAGCollector;
20 struct PAG1Dictionary;
21
22 class PAG1Parser: public IWORKParser
23 {
24 public:
25 PAG1Parser(const RVNGInputStreamPtr_t &input, const RVNGInputStreamPtr_t &package, PAGCollector &collector, PAG1Dictionary *dict);
26 ~PAG1Parser() override;
27
28 private:
29 IWORKXMLContextPtr_t createDocumentContext() override;
30 IWORKXMLContextPtr_t createDiscardContext() override;
31 const IWORKTokenizer &getTokenizer() const override;
32
33 private:
34 PAG1ParserState m_state;
35 };
36
37 } // namespace libetonyek
38
39 #endif // PAG1PARSER_H_INCLUDED
40
41 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::try_double_cast
boost::optional< double > try_double_cast(const char *value)
Definition: libetonyek_xml.cpp:84
IWORKChainedTokenizer.h
IWORKMetadataElement.h
libetonyek::IWORKToken::page_margins
@ page_margins
Definition: IWORKToken.h:349
IWORKNumberElement.h
libetonyek::IWORKToken::header
@ header
Definition: IWORKToken.h:252
libetonyek::IWORKToken::calc_engine
@ calc_engine
Definition: IWORKToken.h:121
m_opened
bool m_opened
Definition: PAG1Parser.cpp:644
IWORKCalcEngineContext.h
libetonyek::PAG1Token::NS_URI_SL
@ NS_URI_SL
Definition: PAG1Token.h:77
IWORKImageElement.h
m_size
optional< IWORKSize > m_size
Definition: PAG1Parser.cpp:766
libetonyek::PAGCollector::collectAnnotation
void collectAnnotation(const std::string &name)
Definition: PAGCollector.cpp:106
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKToken::none
@ none
Definition: IWORKToken.h:666
libetonyek::IWORKToken::footers
@ footers
Definition: IWORKToken.h:219
PAG1StyleContext.h
libetonyek::IWORKToken::headers
@ headers
Definition: IWORKToken.h:253
libetonyek::IWORKToken::group
@ group
Definition: IWORKToken.h:244
m_page
optional< int > m_page
Definition: PAG1Parser.cpp:642
libetonyek::PAG1Parser::createDiscardContext
IWORKXMLContextPtr_t createDiscardContext() override
Definition: PAG1Parser.cpp:921
libetonyek::IWORKChainedTokenizer
Definition: IWORKChainedTokenizer.h:18
libetonyek::IWORKCollector::collectHeader
void collectHeader(const std::string &name)
Definition: IWORKCollector.cpp:525
libetonyek::PAG1Token::print_info
@ print_info
Definition: PAG1Token.h:45
libetonyek::PAG1ParserState
Definition: PAG1ParserState.h:23
libetonyek::PAG1Token::page_scale
@ page_scale
Definition: PAG1Token.h:56
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
IWORKStylesheetBase.h
libetonyek::IWORKToken::stylesheet
@ stylesheet
Definition: IWORKToken.h:417
libetonyek::PAG1XMLEmptyContextBase
PAG1XMLContextBase< IWORKXMLContextEmpty > PAG1XMLEmptyContextBase
Definition: PAG1XMLContextBase.h:42
libetonyek::IWORKToken::facing_pages
@ facing_pages
Definition: IWORKToken.h:198
libetonyek::PAG1Token::page_group
@ page_group
Definition: PAG1Token.h:44
libetonyek::IWORKTokenizer
Definition: IWORKTokenizer.h:16
libetonyek::PAG_FOOTNOTE_KIND_FOOTNOTE
@ PAG_FOOTNOTE_KIND_FOOTNOTE
Definition: PAGEnum.h:18
IWORKNumberConverter.h
libetonyek::PAG1Token::kSFWPFootnoteKindProperty
@ kSFWPFootnoteKindProperty
Definition: PAG1Token.h:40
libetonyek::PAG_FOOTNOTE_KIND_SECTION_ENDNOTE
@ PAG_FOOTNOTE_KIND_SECTION_ENDNOTE
Definition: PAGEnum.h:20
libetonyek::PAG1Parser::m_state
PAG1ParserState m_state
Definition: PAG1Parser.h:34
PAG1ShapeContext.h
libetonyek::PAG1Token::rpage
@ rpage
Definition: PAG1Token.h:58
libetonyek::KEY2Token::VERSION_STR_4
@ VERSION_STR_4
Definition: KEY2Token.h:99
libetonyek::IWORKToken::top
@ top
Definition: IWORKToken.h:620
libetonyek::PAGCollector
Definition: PAGCollector.h:23
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
libetonyek::PAG1Token::section_prototypes
@ section_prototypes
Definition: PAG1Token.h:49
PAGTypes.h
m_rpage
optional< int > m_rpage
Definition: PAG1Parser.cpp:643
libetonyek::IWORKToken::anon_styles
@ anon_styles
Definition: IWORKToken.h:101
libetonyek::PAG1Parser::~PAG1Parser
~PAG1Parser() override
Definition: PAG1Parser.cpp:912
libetonyek::PAG1Parser
Definition: PAG1Parser.h:22
libetonyek::IWORKToken::drawables
@ drawables
Definition: IWORKToken.h:183
libetonyek::IWORKToken::footer
@ footer
Definition: IWORKToken.h:218
libetonyek::try_int_cast
boost::optional< int > try_int_cast(const char *value)
Definition: libetonyek_xml.cpp:99
m_value
optional< string > & m_value
Definition: PAG1Parser.cpp:320
libetonyek::IWORKToken::tabular_info
@ tabular_info
Definition: IWORKToken.h:458
libetonyek::PAG_FOOTNOTE_KIND_ENDNOTE
@ PAG_FOOTNOTE_KIND_ENDNOTE
Definition: PAGEnum.h:19
libetonyek::PAG1Parser::PAG1Parser
PAG1Parser(const RVNGInputStreamPtr_t &input, const RVNGInputStreamPtr_t &package, PAGCollector &collector, PAG1Dictionary *dict)
Definition: PAG1Parser.cpp:906
libetonyek::IWORKParser
Definition: IWORKParser.h:23
libetonyek::IWORKToken::bottom
@ bottom
Definition: IWORKToken.h:508
libetonyek::IWORKToken::kind
@ kind
Definition: IWORKToken.h:567
libetonyek::IWORKToken::right
@ right
Definition: IWORKToken.h:597
IWORKStylesContext.h
IWORKGroupElement.h
libetonyek::IWORKToken::annotation
@ annotation
Definition: IWORKToken.h:97
IWORKStyleRefContext.h
libetonyek::IWORKToken::sectionstyle_ref
@ sectionstyle_ref
Definition: IWORKToken.h:391
libetonyek::IWORKToken::left
@ left
Definition: IWORKToken.h:568
PAG1Token.h
IWORKHeaderFooterContext.h
libetonyek::IWORKToken::number
@ number
Definition: IWORKToken.h:331
libetonyek::PAGFootnoteKind
PAGFootnoteKind
Definition: PAGEnum.h:16
libetonyek::IWORKToken::val
@ val
Definition: IWORKToken.h:623
libetonyek::IWORKToken::image
@ image
Definition: IWORKToken.h:260
libetonyek::IWORKToken::metadata
@ metadata
Definition: IWORKToken.h:323
libetonyek::IWORKToken::element
@ element
Definition: IWORKToken.h:188
libetonyek::PAG1XMLElementContextBase
PAG1XMLContextBase< IWORKXMLContextElement > PAG1XMLElementContextBase
Definition: PAG1XMLContextBase.h:39
libetonyek::IWORKToken::annotations
@ annotations
Definition: IWORKToken.h:100
libetonyek::IWORKToken::styles
@ styles
Definition: IWORKToken.h:416
libetonyek::IWORKToken::string
@ string
Definition: IWORKToken.h:411
PAG1TextStorageElement.h
libetonyek::NUM1Token::document
@ document
Definition: NUM1Token.h:34
PAG1Dictionary.h
PAG1Parser.h
libetonyek::IWORKToken::version
@ version
Definition: IWORKToken.h:626
PAG1AnnotationContext.h
libetonyek::PAG1Token::kSFWPFootnoteGapProperty
@ kSFWPFootnoteGapProperty
Definition: PAG1Token.h:39
IWORKMediaElement.h
IWORKDiscardContext.h
libetonyek::PAG1Token::publication_info
@ publication_info
Definition: PAG1Token.h:47
libetonyek::PAG1Token::page_height
@ page_height
Definition: PAG1Token.h:55
m_pubInfo
PAGPublicationInfo m_pubInfo
Definition: PAG1Parser.cpp:444
libetonyek::IWORKToken::text_storage
@ text_storage
Definition: IWORKToken.h:471
IWORKParser.h
libetonyek::IWORKToken::drawable_shape
@ drawable_shape
Definition: IWORKToken.h:182
libetonyek::IWORKToken::_1
@ _1
Definition: IWORKToken.h:641
IWORKTabularInfoElement.h
libetonyek::PAG1Parser::getTokenizer
const IWORKTokenizer & getTokenizer() const override
Definition: PAG1Parser.cpp:926
IWORK_DECLARE_NUMBER_CONVERTER
#define IWORK_DECLARE_NUMBER_CONVERTER(type)
Definition: IWORKNumberConverter.h:20
m_state
PAG1ParserState & m_state
Definition: PAG1TextStorageElement.cpp:413
libetonyek::IWORKToken::first
@ first
Definition: IWORKToken.h:524
m_footnoteKind
optional< PAGFootnoteKind > m_footnoteKind
Definition: PAG1Parser.cpp:445
libetonyek::IWORKCollector::collectFooter
void collectFooter(const std::string &name)
Definition: IWORKCollector.cpp:530
libetonyek::PAG1Token::getTokenizer
const IWORKTokenizer & getTokenizer()
Definition: PAG1Token.cpp:57
libetonyek::KEY1Token::dict
@ dict
Definition: KEY1Token.h:51
libetonyek::IWORKToken::NS_URI_SF
@ NS_URI_SF
Definition: IWORKToken.h:688
PAG1XMLContextBase.h
m_printInfo
IWORKPrintInfo & m_printInfo
Definition: PAG1Parser.cpp:504
libetonyek::PAG1Token::page_width
@ page_width
Definition: PAG1Token.h:57
libetonyek::PAG1Token::slprint_info
@ slprint_info
Definition: PAG1Token.h:50
IWORKToken.h
libetonyek::PAG1Dictionary
Definition: PAG1Dictionary.h:19
libetonyek::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:82
libetonyek::IWORKToken::sectionstyle
@ sectionstyle
Definition: IWORKToken.h:390
libetonyek::KEY2Token::page
@ page
Definition: KEY2Token.h:69
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
libetonyek::PAG1Parser::createDocumentContext
IWORKXMLContextPtr_t createDocumentContext() override
Definition: PAG1Parser.cpp:916
libetonyek::PAG1Token::prototype
@ prototype
Definition: PAG1Token.h:46
libetonyek::IWORKToken::getTokenizer
const IWORKTokenizer & getTokenizer()
Definition: IWORKToken.cpp:57
PAG1ParserState.h
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:578
libetonyek::IWORKToken::value
@ value
Definition: IWORKToken.h:624
PAGCollector.h
libetonyek::IWORKToken::media
@ media
Definition: IWORKToken.h:321
libetonyek_xml.h
libetonyek::PAG1Token::SLCreationDateProperty
@ SLCreationDateProperty
Definition: PAG1Token.h:34