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: */
uint8_t m_majorVersion
Definition: WPSHeader.h:63
shared_ptr< WPXInputStream > WPXInputStreamPtr
Definition: libwps_internal.h:74
static WPSHeader * constructHeader(WPXInputStreamPtr &input)
So far, we have identified three categories of Works documents.
Definition: WPSHeader.cpp:49
WPXInputStreamPtr m_input
Definition: WPSHeader.h:61
shared_ptr< libwps::Storage > m_oleStorage
Definition: WPSHeader.h:62
Definition: WPSHeader.h:34
virtual ~WPSHeader()
Definition: WPSHeader.cpp:36
WPSHeader & operator=(const WPSHeader &)
shared_ptr< libwps::Storage > & getOLEStorage()
Definition: WPSHeader.h:48
shared_ptr< WPSHeader > WPSHeaderPtr
Definition: WPSHeader.h:66
WPSHeader(WPXInputStreamPtr &input, shared_ptr< libwps::Storage > &ole, uint8_t majorVersion)
Definition: WPSHeader.cpp:30
WPXInputStreamPtr & getInput()
Definition: WPSHeader.h:43
uint8_t getMajorVersion() const
Definition: WPSHeader.h:53

Generated on Wed Jun 11 2014 02:26:01 for libwps by doxygen 1.8.5