VSD6Parser.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 libvisio 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 __VSD6PARSER_H__
11 #define __VSD6PARSER_H__
12
13 #include <stdio.h>
14 #include <iostream>
15 #include <librevenge/librevenge.h>
16 #include "VSDParser.h"
17 #include "VSDInternalStream.h"
18
19 namespace libvisio
20 {
21
22 class VSD6Parser : public VSDParser
23 {
24 public:
25 explicit VSD6Parser(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter);
26 ~VSD6Parser() override;
27 protected:
28 bool getChunkHeader(librevenge::RVNGInputStream *input) override;
29 private:
30 void readText(librevenge::RVNGInputStream *input) override;
31 void readCharIX(librevenge::RVNGInputStream *input) override;
32 void readParaIX(librevenge::RVNGInputStream *input) override;
33 void readFillAndShadow(librevenge::RVNGInputStream *input) override;
34 void readName(librevenge::RVNGInputStream *input) override;
35 void readName2(librevenge::RVNGInputStream *input) override;
36 void readTextField(librevenge::RVNGInputStream *input) override;
37 void readLayerMem(librevenge::RVNGInputStream *input) override;
38 void readMisc(librevenge::RVNGInputStream *input) override;
39
40
41 VSD6Parser();
42 VSD6Parser(const VSDParser &);
43 VSD6Parser &operator=(const VSDParser &);
44 };
45
46 } // namespace libvisio
47
48 #endif // __VSD6PARSER_H__
49 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libvisio::VSD6Parser::readName2
void readName2(librevenge::RVNGInputStream *input) override
Definition: VSD6Parser.cpp:324
libvisio::VSD6Parser
Definition: VSD6Parser.h:22
libvisio::VSD6Parser::getChunkHeader
bool getChunkHeader(librevenge::RVNGInputStream *input) override
Definition: VSD6Parser.cpp:29
VSD_FIELD_FORMAT_MsoDateShort
#define VSD_FIELD_FORMAT_MsoDateShort
Definition: VSDDocumentStructure.h:260
libvisio::VSDParser
Definition: VSDParser.h:47
libvisio::Colour::b
unsigned char b
Definition: VSDTypes.h:89
VSDStylesCollector.h
CELL_TYPE_Date
#define CELL_TYPE_Date
Definition: VSDDocumentStructure.h:134
libvisio::VSD_TEXT_ANSI
Definition: VSDTypes.h:151
VSDContentCollector.h
VSD_DEBUG_MSG
#define VSD_DEBUG_MSG(M)
Definition: libvisio_utils.h:42
libvisio::VSD6Parser::readFillAndShadow
void readFillAndShadow(librevenge::RVNGInputStream *input) override
Definition: VSD6Parser.cpp:245
libvisio::Colour::r
unsigned char r
Definition: VSDTypes.h:87
libvisio::VSD6Parser::readMisc
void readMisc(librevenge::RVNGInputStream *input) override
Definition: VSD6Parser.cpp:404
libvisio::VSD6Parser::readParaIX
void readParaIX(librevenge::RVNGInputStream *input) override
Definition: VSD6Parser.cpp:172
libvisio::VSD6Parser::~VSD6Parser
~VSD6Parser() override
Definition: VSD6Parser.cpp:26
VSDDocumentStructure.h
libvisio::readU32
uint32_t readU32(librevenge::RVNGInputStream *input)
Definition: libvisio_utils.cpp:53
VSDInternalStream.h
libvisio::VSDOptionalParaStyle
Definition: VSDStyles.h:322
libvisio::Colour
Definition: VSDTypes.h:70
VSD6Parser.h
libvisio::readU8
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libvisio_utils.cpp:16
libvisio::VSD6Parser::operator=
VSD6Parser & operator=(const VSDParser &)
libvisio::readU16
uint16_t readU16(librevenge::RVNGInputStream *input)
Definition: libvisio_utils.cpp:32
libvisio::VSDOptionalCharStyle
Definition: VSDStyles.h:208
libvisio::VSD6Parser::readTextField
void readTextField(librevenge::RVNGInputStream *input) override
Definition: VSD6Parser.cpp:335
libvisio::Colour::g
unsigned char g
Definition: VSDTypes.h:88
CELL_TYPE_StringWithoutUnit
#define CELL_TYPE_StringWithoutUnit
Definition: VSDDocumentStructure.h:174
libvisio::VSD6Parser::readCharIX
void readCharIX(librevenge::RVNGInputStream *input) override
Definition: VSD6Parser.cpp:105
libvisio::VSD6Parser::readLayerMem
void readLayerMem(librevenge::RVNGInputStream *input) override
Definition: VSD6Parser.cpp:88
libvisio::VSD6Parser::readText
void readText(librevenge::RVNGInputStream *input) override
Definition: VSD6Parser.cpp:67
libvisio::readS32
int32_t readS32(librevenge::RVNGInputStream *input)
Definition: libvisio_utils.cpp:69
libvisio::Colour::a
unsigned char a
Definition: VSDTypes.h:90
libvisio::VSDName
Definition: VSDTypes.h:170
libvisio::VSD6Parser::readName
void readName(librevenge::RVNGInputStream *input) override
Definition: VSD6Parser.cpp:313
VSD_FIELD_FORMAT_Unknown
#define VSD_FIELD_FORMAT_Unknown
Definition: VSDDocumentStructure.h:283
MINUS_ONE
#define MINUS_ONE
Definition: VSDTypes.h:18
libvisio::VSDOptionalFillStyle
Definition: VSDStyles.h:103
libvisio_utils.h
libvisio::readDouble
double readDouble(librevenge::RVNGInputStream *input)
Definition: libvisio_utils.cpp:90
libvisio
Definition: libvisio_utils.h:48
libvisio::VSD6Parser::VSD6Parser
VSD6Parser()
VSDParser.h