ListInfo.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libmspub project.
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 
10 #ifndef INCLUDED_LISTINFO_H
11 #define INCLUDED_LISTINFO_H
12 
13 #include <boost/optional.hpp>
14 
15 #include "NumberingDelimiter.h"
16 #include "NumberingType.h"
17 
18 namespace libmspub
19 {
21 {
24 };
25 struct ListInfo
26 {
28 
29  //unordered list stuff
30  boost::optional<unsigned> m_bulletChar;
31  ListInfo(unsigned bulletChar) : m_listType(UNORDERED),
32  m_bulletChar(bulletChar), m_numberIfRestarted(),
34  {
35  }
36 
37  //ordered list stuff
38  boost::optional<unsigned> m_numberIfRestarted;
39  boost::optional<NumberingType> m_numberingType;
40  boost::optional<NumberingDelimiter> m_numberingDelimiter;
41  ListInfo(boost::optional<unsigned> numberIfRestarted, NumberingType numberingType,
42  NumberingDelimiter numberingDelimiter)
44  m_numberIfRestarted(numberIfRestarted), m_numberingType(numberingType),
45  m_numberingDelimiter(numberingDelimiter)
46  {
47  }
48 };
49 } // namespace libmspub
50 
51 #endif /* INCLUDED_LISTINFO_H */
52 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libmspub::ListInfo::m_numberIfRestarted
boost::optional< unsigned > m_numberIfRestarted
Definition: ListInfo.h:38
libmspub::ListType
ListType
Definition: ListInfo.h:20
libmspub::ListInfo::m_listType
ListType m_listType
Definition: ListInfo.h:27
libmspub::ORDERED
Definition: ListInfo.h:22
libmspub
Definition: Arrow.h:13
libmspub::NumberingType
NumberingType
Definition: NumberingType.h:15
libmspub::ListInfo::m_numberingDelimiter
boost::optional< NumberingDelimiter > m_numberingDelimiter
Definition: ListInfo.h:40
libmspub::ListInfo::m_bulletChar
boost::optional< unsigned > m_bulletChar
Definition: ListInfo.h:30
libmspub::ListInfo::ListInfo
ListInfo(boost::optional< unsigned > numberIfRestarted, NumberingType numberingType, NumberingDelimiter numberingDelimiter)
Definition: ListInfo.h:41
libmspub::ListInfo::ListInfo
ListInfo(unsigned bulletChar)
Definition: ListInfo.h:31
NumberingDelimiter.h
libmspub::UNORDERED
Definition: ListInfo.h:23
NumberingType.h
libmspub::ListInfo
Definition: ListInfo.h:25
libmspub::NumberingDelimiter
NumberingDelimiter
Definition: NumberingDelimiter.h:15
libmspub::ListInfo::m_numberingType
boost::optional< NumberingType > m_numberingType
Definition: ListInfo.h:39

Generated for libmspub by doxygen 1.8.16