/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* * This file is part of the libpict 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 __PICTXPARSER_H__ #define __PICTXPARSER_H__ #include #include #include "PictColor.h" #include class PictXParser { public: PictXParser(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter); PictXParser(const PictXParser &parser); virtual ~PictXParser() {}; virtual bool parse() = 0; unsigned char readU8(); unsigned short readU16(); unsigned readU32(); short readS16(); int readS32(); unsigned readVariableLengthInteger(); PictXParser &operator=(const PictXParser &parser); protected: librevenge::RVNGInputStream *m_input; librevenge::RVNGDrawingInterface *m_painter; std::map m_colorPalette; }; #endif // __PICTXPARSER_H__ /* vim:set shiftwidth=2 softtabstop=2 expandtab: */