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
15namespace libetonyek
16{
17
18class IWORKDocumentInterface;
19
21{
22public:
24
25 // collector functions
26
27 // helper functions
28 void startDocument();
29 void endDocument();
30
31private:
32 void drawTable() override;
33 void drawMedia(double x, double y, const librevenge::RVNGPropertyList &data) override;
34 void fillShapeProperties(librevenge::RVNGPropertyList &props) override;
35 bool createFrameStylesForTextBox() const override
36 {
37 return true;
38 }
39 void drawTextBox(const IWORKTextPtr_t &text, const glm::dmat3 &trafo, const IWORKGeometryPtr_t &boundingBox, const librevenge::RVNGPropertyList &style) override;
40};
41
42} // namespace libetonyek
43
44#endif // NUMCOLLECTOR_H_INCLUDED
45
46/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
double y
Definition: IWORKShape.cpp:46
double x
Definition: IWORKShape.cpp:45
Definition: IWORKCollector.h:42
Definition: IWORKDocumentInterface.h:19
Definition: NUMCollector.h:21
void drawMedia(double x, double y, const librevenge::RVNGPropertyList &data) override
Definition: NUMCollector.cpp:45
void endDocument()
Definition: NUMCollector.cpp:28
void drawTextBox(const IWORKTextPtr_t &text, const glm::dmat3 &trafo, const IWORKGeometryPtr_t &boundingBox, const librevenge::RVNGPropertyList &style) override
Definition: NUMCollector.cpp:61
NUMCollector(IWORKDocumentInterface *document)
Definition: NUMCollector.cpp:18
void startDocument()
Definition: NUMCollector.cpp:23
void fillShapeProperties(librevenge::RVNGPropertyList &props) override
Definition: NUMCollector.cpp:55
bool createFrameStylesForTextBox() const override
Definition: NUMCollector.h:35
void drawTable() override
Definition: NUMCollector.cpp:38
@ text
Definition: IWORKToken.h:465
@ data
Definition: IWORKToken.h:174
@ style
Definition: IWORKToken.h:414
@ document
Definition: NUM1Token.h:34
Definition: IWORKBezierElement.cpp:21
std::shared_ptr< IWORKText > IWORKTextPtr_t
Definition: IWORKText_fwd.h:18
std::shared_ptr< IWORKGeometry > IWORKGeometryPtr_t
Definition: IWORKTypes_fwd.h:41

Generated for libetonyek by doxygen 1.9.3