PAG5Parser.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 PAG5PARSER_H_INCLUDED
11 #define PAG5PARSER_H_INCLUDED
12 
13 #include "IWAParser.h"
14 
15 namespace libetonyek
16 {
17 
18 class PAGCollector;
19 
20 class PAG5Parser : public IWAParser
21 {
22 public:
23  PAG5Parser(const RVNGInputStreamPtr_t &fragments, const RVNGInputStreamPtr_t &package, PAGCollector &collector);
24 
25 private:
26  bool parseDocument() override;
27 
28  bool dispatchShape(unsigned id);
29  bool parseGroupRef(unsigned id);
30 private:
32 };
33 
34 }
35 
36 #endif
37 
38 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::IWORKCollector::endDocument
void endDocument()
Definition: IWORKCollector.cpp:566
libetonyek::IWAParser::readRef
static boost::optional< unsigned > readRef(const IWAMessage &msg, unsigned field)
Definition: IWAParser.cpp:229
libetonyek::IWAParser::parseText
bool parseText(unsigned id, const std::function< void(unsigned, IWORKStylePtr_t)> &openPageSpan=nullptr)
Definition: IWAParser.cpp:483
libetonyek
Definition: IWORKBezierElement.cpp:21
libetonyek::IWORKCollector::startDocument
void startDocument()
Definition: IWORKCollector.cpp:561
libetonyek::IWORKCollector::startLevel
void startLevel()
Definition: IWORKCollector.cpp:635
libetonyek::IWORKToken::pos
@ pos
Definition: IWORKToken.h:592
libetonyek::IWAParser
Definition: IWAParser.h:49
libetonyek::IWORKPrintInfo::m_marginBottom
boost::optional< double > m_marginBottom
Definition: IWORKTypes.h:414
IWAParser.h
libetonyek::IWORKToken::style
@ style
Definition: IWORKToken.h:414
libetonyek::PAG5Parser::PAG5Parser
PAG5Parser(const RVNGInputStreamPtr_t &fragments, const RVNGInputStreamPtr_t &package, PAGCollector &collector)
Definition: PAG5Parser.cpp:26
libetonyek::IWORKPrintInfo::m_orientation
boost::optional< int > m_orientation
Definition: IWORKTypes.h:413
libetonyek::PAGCollector
Definition: PAGCollector.h:24
libetonyek::PAGCollector::collectTextBody
void collectTextBody()
Definition: PAGCollector.cpp:133
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
PAG5ObjectType.h
libetonyek::IWORKPrintInfo::m_marginRight
boost::optional< double > m_marginRight
Definition: IWORKTypes.h:416
libetonyek::IWORKCollector::endLevel
void endLevel()
Definition: IWORKCollector.cpp:656
libetonyek::IWORKPrintInfo::m_headerHeight
boost::optional< double > m_headerHeight
Definition: IWORKTypes.h:419
libetonyek::IWORKToken::_1
@ _1
Definition: IWORKToken.h:641
libetonyek::PAGCollector::setPageDimensions
void setPageDimensions(const IWORKPrintInfo &dimensions)
Definition: PAGCollector.cpp:145
libetonyek::IWORKPrintInfo::m_marginTop
boost::optional< double > m_marginTop
Definition: IWORKTypes.h:417
libetonyek::PAGCollector::openPageGroup
void openPageGroup(const boost::optional< int > &page)
Definition: PAGCollector.cpp:199
libetonyek::PAG5Parser::dispatchShape
bool dispatchShape(unsigned id)
Definition: PAG5Parser.cpp:32
libetonyek::IWORKPrintInfo::m_width
boost::optional< double > m_width
Definition: IWORKTypes.h:412
PAG5Parser.h
libetonyek::IWORKCollector::createText
virtual std::shared_ptr< IWORKText > createText(const IWORKLanguageManager &langManager, bool discardEmptyContent=false, bool allowListInsertion=true) const
Definition: IWORKCollector.cpp:630
libetonyek::PAG5Parser::m_collector
PAGCollector & m_collector
Definition: PAG5Parser.h:31
libetonyek::IWORKPrintInfo::m_footerHeight
boost::optional< double > m_footerHeight
Definition: IWORKTypes.h:418
libetonyek::IWAParser::m_langManager
IWORKLanguageManager m_langManager
Definition: IWAParser.h:120
libetonyek::PAGCollector::openSection
void openSection(const std::string &style)
Definition: PAGCollector.cpp:150
libetonyek::PAG5Parser
Definition: PAG5Parser.h:21
libetonyek::PAG5ObjectType::PageGroup
@ PageGroup
Definition: PAG5ObjectType.h:22
libetonyek::PAG5ObjectType::Document
@ Document
Definition: PAG5ObjectType.h:21
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
libetonyek::PAG5Parser::parseDocument
bool parseDocument() override
Definition: PAG5Parser.cpp:74
libetonyek::IWORKPrintInfo::m_marginLeft
boost::optional< double > m_marginLeft
Definition: IWORKTypes.h:415
libetonyek::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:82
libetonyek::IWORKPrintInfo
Definition: IWORKTypes.h:408
libetonyek::PAGCollector::closePageGroup
void closePageGroup()
Definition: PAGCollector.cpp:208
libetonyek::PAG5Parser::parseGroupRef
bool parseGroupRef(unsigned id)
Definition: PAG5Parser.cpp:40
libetonyek::IWAParser::ObjectMessage
Definition: IWAParser.h:63
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
libetonyek::IWAParser::dispatchShape
bool dispatchShape(unsigned id)
Definition: IWAParser.cpp:453
libetonyek::IWORKCollector::collectText
void collectText(const std::shared_ptr< IWORKText > &text)
Definition: IWORKCollector.cpp:549
libetonyek::IWORKPrintInfo::m_height
boost::optional< double > m_height
Definition: IWORKTypes.h:411
libetonyek::PAGCollector::closeSection
void closeSection()
Definition: PAGCollector.cpp:175
libetonyek::IWAParser::m_currentText
std::shared_ptr< IWORKText > m_currentText
Definition: IWAParser.h:121
m_collector
IWORKCollector & m_collector
Definition: IWORKRecorder.cpp:340
PAGCollector.h

Generated for libetonyek by doxygen 1.8.20