WP6GraphicsCachedFileDataPacket.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* libwpd
3  * Version: MPL 2.0 / LGPLv2.1+
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  * Major Contributor(s):
10  * Copyright (C) 2007 Fridrich Strba (fridrich.strba@bluewin.ch)
11  * Copyright (C) 2007 Novell Inc. (http://www.novell.com)
12  *
13  * For minor contributions see the git repository.
14  *
15  * Alternatively, the contents of this file may be used under the terms
16  * of the GNU Lesser General Public License Version 2.1 or later
17  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18  * applicable instead of those above.
19  *
20  * For further information visit http://libwpd.sourceforge.net
21  */
22 
23 /* "This product is not manufactured, approved, or supported by
24  * Corel Corporation or Corel Corporation Limited."
25  */
26 
27 #ifndef WP6GRAPHICSCACHEDFILEDATAPACKET_H
28 #define WP6GRAPHICSCACHEDFILEDATAPACKET_H
29 #include "WP6PrefixDataPacket.h"
30 #include "WP6FileStructure.h"
31 #include "WP6Listener.h"
32 
34 {
35 public:
36  WP6GraphicsCachedFileDataPacket(librevenge::RVNGInputStream *input, WPXEncryption *encryption, int id, unsigned dataOffset, unsigned dataSize);
38  void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override;
39  void parse(WP6Listener * /* listener */) const override {}
40  const librevenge::RVNGBinaryData *getBinaryObject() const
41  {
42  return m_object;
43  }
44 
45 private:
48  int m_id;
49  librevenge::RVNGBinaryData *m_object;
50  unsigned char *m_data;
51 
52 };
53 #endif /* WP6GRAPHICSCACHEDFILEDATAPACKET_H */
54 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
const librevenge::RVNGBinaryData * getBinaryObject() const
Definition: WP6GraphicsCachedFileDataPacket.h:40
Definition: WP6Listener.h:40
Definition: WP6GraphicsCachedFileDataPacket.h:33
WP6GraphicsCachedFileDataPacket & operator=(const WP6GraphicsCachedFileDataPacket &)
int m_id
Definition: WP6GraphicsCachedFileDataPacket.h:48
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override
Definition: WP6GraphicsCachedFileDataPacket.cpp:52
~WP6GraphicsCachedFileDataPacket() override
Definition: WP6GraphicsCachedFileDataPacket.cpp:42
unsigned char * m_data
Definition: WP6GraphicsCachedFileDataPacket.h:50
Definition: WPXEncryption.h:35
Definition: WP6PrefixDataPacket.h:35
WP6GraphicsCachedFileDataPacket(librevenge::RVNGInputStream *input, WPXEncryption *encryption, int id, unsigned dataOffset, unsigned dataSize)
Definition: WP6GraphicsCachedFileDataPacket.cpp:33
void parse(WP6Listener *) const override
Definition: WP6GraphicsCachedFileDataPacket.h:39
librevenge::RVNGBinaryData * m_object
Definition: WP6GraphicsCachedFileDataPacket.h:49

Generated for libwpd by doxygen 1.8.14