WPXHeaderFooter.h Source File documentation

WPXHeaderFooter.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* libwpd
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 (wrlach@gmail.com)
11 * Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
12 * Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch)
13 *
14 * For minor contributions see the git repository.
15 *
16 * Alternatively, the contents of this file may be used under the terms
17 * of the GNU Lesser General Public License Version 2.1 or later
18 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
19 * applicable instead of those above.
20 *
21 * For further information visit http://libwpd.sourceforge.net
22 */
23
24 /* "This product is not manufactured, approved, or supported by
25 * Corel Corporation or Corel Corporation Limited."
26 */
27
28 #ifndef WPXHEADERFOOTER_H
29 #define WPXHEADERFOOTER_H
30
31 #include <memory>
32
33 #include "WPXSubDocument.h"
34 #include "WPXTableList.h"
35 #include "libwpd_internal.h"
36
37 class WPXHeaderFooter
38 {
39 public:
40 WPXHeaderFooter(const WPXHeaderFooterType headerFooterType, const WPXHeaderFooterOccurrence occurrence,
41 const unsigned char internalType, const std::shared_ptr<WPXSubDocument> &subDocument, WPXTableList tableList);
42 WPXHeaderFooter(const WPXHeaderFooterType headerFooterType, const WPXHeaderFooterOccurrence occurrence,
43 const unsigned char internalType, const std::shared_ptr<WPXSubDocument> &subDocument);
44 WPXHeaderFooterType getType() const
45 {
46 return m_type;
47 }
48 WPXHeaderFooterOccurrence getOccurrence() const
49 {
50 return m_occurrence;
51 }
52 unsigned char getInternalType() const
53 {
54 return m_internalType;
55 }
56 const std::shared_ptr<WPXSubDocument> &getSubDocument() const
57 {
58 return m_subDocument;
59 }
60 WPXTableList getTableList() const
61 {
62 return m_tableList;
63 }
64
65 private:
66 WPXHeaderFooterType m_type;
67 WPXHeaderFooterOccurrence m_occurrence;
68 unsigned char m_internalType; // for suppression
69 std::shared_ptr<WPXSubDocument> m_subDocument; // for the actual text
70 WPXTableList m_tableList;
71 };
72
73 #endif /* WPXHEADERFOOTER_H */
74 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WPXHeaderFooter::m_occurrence
WPXHeaderFooterOccurrence m_occurrence
Definition: WPXHeaderFooter.h:67
WPXHeaderFooter::WPXHeaderFooter
WPXHeaderFooter(const WPXHeaderFooterType headerFooterType, const WPXHeaderFooterOccurrence occurrence, const unsigned char internalType, const std::shared_ptr< WPXSubDocument > &subDocument, WPXTableList tableList)
Definition: WPXHeaderFooter.cpp:31
WPXHeaderFooter::getOccurrence
WPXHeaderFooterOccurrence getOccurrence() const
Definition: WPXHeaderFooter.h:48
WPXTableList.h
WPXSubDocument.h
WPXHeaderFooterOccurrence
WPXHeaderFooterOccurrence
Definition: libwpd_internal.h:96
WPXHeaderFooter::m_internalType
unsigned char m_internalType
Definition: WPXHeaderFooter.h:68
libwpd_internal.h
WPXHeaderFooter::getType
WPXHeaderFooterType getType() const
Definition: WPXHeaderFooter.h:44
WPXTableList
Definition: WPXTableList.h:35
WPXHeaderFooter::m_tableList
WPXTableList m_tableList
Definition: WPXHeaderFooter.h:70
WPXHeaderFooter::m_subDocument
std::shared_ptr< WPXSubDocument > m_subDocument
Definition: WPXHeaderFooter.h:69
WPXHeaderFooter::getTableList
WPXTableList getTableList() const
Definition: WPXHeaderFooter.h:60
WPXHeaderFooter::getSubDocument
const std::shared_ptr< WPXSubDocument > & getSubDocument() const
Definition: WPXHeaderFooter.h:56
WPXHeaderFooter::getInternalType
unsigned char getInternalType() const
Definition: WPXHeaderFooter.h:52
WPXHeaderFooter
Definition: WPXHeaderFooter.h:37
WPXHeaderFooterType
WPXHeaderFooterType
Definition: libwpd_internal.h:94
WPXHeaderFooter::m_type
WPXHeaderFooterType m_type
Definition: WPXHeaderFooter.h:66