1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/* libvisio
* Copyright (C) 2011 Fridrich Strba <fridrich.strba@bluewin.ch>
* Copyright (C) 2011 Eilidh McAdam <tibbylickle@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02111-1301 USA
*/
#ifndef VSDXCOLLECTOR_H
#define VSDXCOLLECTOR_H
#include "VSDXParser.h"
namespace libvisio {
class VSDXCollector
{
public:
VSDXCollector();
virtual ~VSDXCollector() {}
virtual void collectEllipticalArcTo(unsigned id, unsigned level, double x3, double y3, double x2, double y2, double angle, double ecc) = 0;
virtual void collectForeignData(unsigned id, unsigned level) = 0;
virtual void collectEllipse(unsigned id, unsigned level, double cx, double cy, double aa, double bb, double cc, double dd) = 0;
virtual void collectLine(unsigned id, unsigned level, double strokeWidth, Colour c, unsigned linePattern) = 0;
virtual void collectFillAndShadow(unsigned id, unsigned level, unsigned colourIndexFG, unsigned colourIndexBG, unsigned fillPattern) = 0;
virtual void collectGeomList(unsigned id, unsigned level) = 0;
virtual void collectGeometry(unsigned id, unsigned level) = 0;
virtual void collectMoveTo(unsigned id, unsigned level) = 0;
virtual void collectLineTo(unsigned id, unsigned level) = 0;
virtual void collectArcTo(unsigned id, unsigned level) = 0;
virtual void collectXFormData(unsigned id, unsigned level) = 0;
virtual void collectShapeID(unsigned id, unsigned level) = 0;
virtual void collectForeignDataType(unsigned id, unsigned level) = 0;
virtual void collectPageProps(unsigned id, unsigned level) = 0;
virtual void collectUnhandledChunk(unsigned id, unsigned level) = 0;
private:
VSDXCollector(const VSDXCollector&);
VSDXCollector& operator=(const VSDXCollector&);
};
} // namespace libvisio
#endif /* VSDXCOLLECTOR_H */
|