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  * Copyright (C) 2002 William Lachance (william.lachance@sympatico.ca)
4  * Copyright (C) 2002-2003 Marc Maurer (uwog@uwog.net)
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19  *
20  * For further information visit http://libwps.sourceforge.net
21  */
22 
23 /*
24  * This file is in sync with CVS
25  * /libwpd2/src/lib/WPXHeader.cpp 1.17
26  */
27 
28 #ifndef WPSHEADER_H
29 #define WPSHEADER_H
30 
31 #include "libwps_internal.h"
32 #include <libwpd-stream/libwpd-stream.h>
33 
34 namespace libwps
35 {
36 class Storage;
37 }
38 
39 class WPSHeader
40 {
41 public:
42  WPSHeader(WPXInputStreamPtr &input, shared_ptr<libwps::Storage> &ole,
43  uint8_t majorVersion);
44  virtual ~WPSHeader();
45 
47 
49  {
50  return m_input;
51  }
52 
53  shared_ptr<libwps::Storage> &getOLEStorage()
54  {
55  return m_oleStorage;
56  }
57 
58  uint8_t getMajorVersion() const
59  {
60  return m_majorVersion;
61  }
62 
63 private:
64  WPSHeader(const WPSHeader &);
65  WPSHeader &operator=(const WPSHeader &);
67  shared_ptr<libwps::Storage> m_oleStorage;
68  uint8_t m_majorVersion;
69 };
70 
71 typedef shared_ptr<WPSHeader> WPSHeaderPtr;
72 
73 #endif /* WPSHEADER_H */
74 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */

Generated on Wed Aug 8 2012 16:07:57 for libwps by doxygen 1.8.1.2