NUMCollector.h Source File documentation

NUMCollector.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 NUMCOLLECTOR_H_INCLUDED
11 #define NUMCOLLECTOR_H_INCLUDED
12
13 #include "IWORKCollector.h"
14
15 namespace libetonyek
16 {
17
18 class IWORKDocumentInterface;
19
20 class NUMCollector : public IWORKCollector
21 {
22 public:
23 explicit NUMCollector(IWORKDocumentInterface *document);
24
25 // collector functions
26
27 // helper functions
28 void startDocument();
29 void endDocument();
30
31 private:
32 virtual void drawTable();
33 virtual void drawMedia(double x, double y, double w, double h, const std::string &mimetype, const librevenge::RVNGBinaryData &data);
34 virtual void fillShapeProperties(librevenge::RVNGPropertyList &props);
35 virtual void drawTextBox(const IWORKTextPtr_t &text, const glm::dmat3 &trafo, const IWORKGeometryPtr_t &boundingBox);
36 };
37
38 } // namespace libetonyek
39
40 #endif // NUMCOLLECTOR_H_INCLUDED
41
42 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek
Definition: IWORKBezierElement.cpp:18
libetonyek::NUMCollector::endDocument
void endDocument()
Definition: NUMCollector.cpp:28
libetonyek::NUMCollector::startDocument
void startDocument()
Definition: NUMCollector.cpp:23
y
double y
Definition: IWORKShape.cpp:43
libetonyek::NUMCollector
Definition: NUMCollector.h:20
libetonyek::IWORKToken::h
Definition: IWORKToken.h:312
libetonyek::IWORKGeometryPtr_t
boost::shared_ptr< IWORKGeometry > IWORKGeometryPtr_t
Definition: IWORKTypes_fwd.h:40
libetonyek::IWORKToken::text
Definition: IWORKToken.h:270
libetonyek::IWORKDocumentInterface
Definition: IWORKDocumentInterface.h:18
x
double x
Definition: IWORKShape.cpp:42
libetonyek::IWORKCollector
Definition: IWORKCollector.h:41
libetonyek::NUMCollector::fillShapeProperties
virtual void fillShapeProperties(librevenge::RVNGPropertyList &props)
Definition: NUMCollector.cpp:59
libetonyek::NUMCollector::drawTable
virtual void drawTable()
Definition: NUMCollector.cpp:38
libetonyek::NUMCollector::drawMedia
virtual void drawMedia(double x, double y, double w, double h, const std::string &mimetype, const librevenge::RVNGBinaryData &data)
Definition: NUMCollector.cpp:45
libetonyek::IWORKToken::w
Definition: IWORKToken.h:354
libetonyek::NUMCollector::NUMCollector
NUMCollector(IWORKDocumentInterface *document)
Definition: NUMCollector.cpp:18
libetonyek::IWORKToken::data
Definition: IWORKToken.h:95
libetonyek::NUM1Token::document
Definition: NUM1Token.h:34
libetonyek::IWORKToken::string
Definition: IWORKToken.h:252
libetonyek::IWORKTextPtr_t
boost::shared_ptr< IWORKText > IWORKTextPtr_t
Definition: IWORKText_fwd.h:18
libetonyek::NUMCollector::drawTextBox
virtual void drawTextBox(const IWORKTextPtr_t &text, const glm::dmat3 &trafo, const IWORKGeometryPtr_t &boundingBox)
Definition: NUMCollector.cpp:65
IWORKCollector.h