blob: 914f93dd01652d71e4a0350f56fa2728e82ca660 (
plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libvisio project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef __VSD5PARSER_H__
#define __VSD5PARSER_H__
#include <stdio.h>
#include <iostream>
#include <librevenge/librevenge.h>
#include "VSD6Parser.h"
#include "VSDInternalStream.h"
namespace libvisio
{
class VSD5Parser : public VSD6Parser
{
public:
explicit VSD5Parser(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter);
~VSD5Parser();
protected:
virtual void readPointer(librevenge::RVNGInputStream *input, Pointer &ptr);
virtual bool getChunkHeader(librevenge::RVNGInputStream *input);
virtual void readPointerInfo(librevenge::RVNGInputStream *input, unsigned ptrType, unsigned shift, unsigned &listSize, int &pointerCount);
virtual void readGeomList(librevenge::RVNGInputStream *input);
virtual void readCharList(librevenge::RVNGInputStream *input);
virtual void readParaList(librevenge::RVNGInputStream *input);
virtual void readShapeList(librevenge::RVNGInputStream *input);
virtual void readPropList(librevenge::RVNGInputStream *input);
virtual void readFieldList(librevenge::RVNGInputStream *input);
virtual void readNameList2(librevenge::RVNGInputStream *input);
virtual void readTabsDataList(librevenge::RVNGInputStream *input);
virtual void readLine(librevenge::RVNGInputStream *input);
virtual void readFillAndShadow(librevenge::RVNGInputStream *input);
virtual void readTextBlock(librevenge::RVNGInputStream *input);
virtual void readCharIX(librevenge::RVNGInputStream *input);
virtual void readParaIX(librevenge::RVNGInputStream *input);
virtual void readTextField(librevenge::RVNGInputStream *input);
virtual void readShape(librevenge::RVNGInputStream *input);
virtual void readPage(librevenge::RVNGInputStream *input);
virtual void handleChunkRecords(librevenge::RVNGInputStream *input);
virtual void readStyleSheet(librevenge::RVNGInputStream *input);
virtual void readNameIDX(librevenge::RVNGInputStream *input);
virtual unsigned getUInt(librevenge::RVNGInputStream *input);
virtual int getInt(librevenge::RVNGInputStream *input);
private:
VSD5Parser();
VSD5Parser(const VSDParser &);
VSD5Parser &operator=(const VSDParser &);
void readList(librevenge::RVNGInputStream *input);
};
} // namespace libvisio
#endif // __VSD5PARSER_H__
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
|