Scribus
Open source desktop publishing at your fingertips
WPGBinaryData.h
1 /* libwpd
2  * Copyright (C) 2007 Fridrich Strba (fridrich.strba@bluewin.ch)
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
17  *
18  * For further information visit http://libwpd.sourceforge.net
19  */
20 
21 /* "This product is not manufactured, approved, or supported by
22  * Corel Corporation or Corel Corporation Limited."
23  */
24 
25 #ifndef WPGBINARYDATA_H
26 #define WPGBINARYDATA_H
27 
28 #include "WPGString.h"
29 #include "WPGRect.h"
30 #include <stdio.h>
31 
32 class WPXInputStream;
33 
34 namespace libwpg
35 {
36 
37 class WPGBinaryDataImpl;
38 
40 {
41 public:
42  WPGBinaryData();
44  WPGBinaryData(const char *buffer, const size_t bufferSize);
45  ~WPGBinaryData();
46 
47  void append(const WPGBinaryData &data);
48  void append(const char *buffer, const size_t bufferSize);
49  void append(const char c);
50  void clear();
51 
52  size_t size() const;
53  const char *getDataBuffer() const;
54  const WPGString getBase64Data() const;
55 
56  WPGBinaryData& operator=(const WPGBinaryData &);
57 
58  WPGRect rect;
59  WPGString mimeType;
60 
61 private:
62  WPGBinaryDataImpl *m_binaryDataImpl;
63 };
64 
65 } // namespace libwpg
66 #endif
Definition: WPXStream.h:36
Definition: WPGBinaryData.h:39
Definition: WPGBinaryData.cpp:33
Definition: WPGString.h:32
Definition: WPGRect.h:34
Binary buffer.
Definition: pdbim.h:93
Definition: WPGBinaryData.h:34