WPSHeader.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* libwps
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) 2002 William Lachance (william.lachance@sympatico.ca)
11  * Copyright (C) 2002-2003 Marc Maurer (uwog@uwog.net)
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://libwps.sourceforge.net
21  */
22 
23 #ifndef WPSHEADER_H
24 #define WPSHEADER_H
25 
26 #include "libwps_internal.h"
27 #include <libwpd-stream/libwpd-stream.h>
28 
29 namespace libwps
30 {
31 class Storage;
32 }
33 
34 class WPSHeader
35 {
36 public:
37  WPSHeader(WPXInputStreamPtr &input, shared_ptr<libwps::Storage> &ole,
38  uint8_t majorVersion);
39  virtual ~WPSHeader();
40 
42 
44  {
45  return m_input;
46  }
47 
48  shared_ptr<libwps::Storage> &getOLEStorage()
49  {
50  return m_oleStorage;
51  }
52 
53  uint8_t getMajorVersion() const
54  {
55  return m_majorVersion;
56  }
57 
58 private:
59  WPSHeader(const WPSHeader &);
60  WPSHeader &operator=(const WPSHeader &);
62  shared_ptr<libwps::Storage> m_oleStorage;
63  uint8_t m_majorVersion;
64 };
65 
66 typedef shared_ptr<WPSHeader> WPSHeaderPtr;
67 
68 #endif /* WPSHEADER_H */
69 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */

Generated on Wed Jun 12 2013 03:12:53 for libwps by doxygen 1.8.3.1