Main Page
Namespaces
Classes
Files
File List
File Members
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
41
static
WPSHeader
*
constructHeader
(
WPXInputStreamPtr
&input);
42
43
WPXInputStreamPtr
&
getInput
()
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
&);
61
WPXInputStreamPtr
m_input
;
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: */
WPSHeader::m_majorVersion
uint8_t m_majorVersion
Definition:
WPSHeader.h:63
WPXInputStreamPtr
shared_ptr< WPXInputStream > WPXInputStreamPtr
Definition:
libwps_internal.h:74
WPSHeader::constructHeader
static WPSHeader * constructHeader(WPXInputStreamPtr &input)
So far, we have identified three categories of Works documents.
Definition:
WPSHeader.cpp:49
libwps_internal.h
WPSHeader::m_input
WPXInputStreamPtr m_input
Definition:
WPSHeader.h:61
WPSHeader::m_oleStorage
shared_ptr< libwps::Storage > m_oleStorage
Definition:
WPSHeader.h:62
WPSHeader
Definition:
WPSHeader.h:34
WPSHeader::~WPSHeader
virtual ~WPSHeader()
Definition:
WPSHeader.cpp:36
WPSHeader::operator=
WPSHeader & operator=(const WPSHeader &)
WPSHeader::getOLEStorage
shared_ptr< libwps::Storage > & getOLEStorage()
Definition:
WPSHeader.h:48
WPSHeaderPtr
shared_ptr< WPSHeader > WPSHeaderPtr
Definition:
WPSHeader.h:66
WPSHeader::WPSHeader
WPSHeader(WPXInputStreamPtr &input, shared_ptr< libwps::Storage > &ole, uint8_t majorVersion)
Definition:
WPSHeader.cpp:30
WPSHeader::getInput
WPXInputStreamPtr & getInput()
Definition:
WPSHeader.h:43
WPSHeader::getMajorVersion
uint8_t getMajorVersion() const
Definition:
WPSHeader.h:53
Generated on Wed Jun 11 2014 02:26:01 for libwps by
doxygen
1.8.5