Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __LISTINFO_H__
00011 #define __LISTINFO_H__
00012
00013 #include <boost/optional.hpp>
00014
00015 #include "NumberingType.h"
00016 #include "NumberingDelimiter.h"
00017
00018 namespace libmspub
00019 {
00020 enum ListType
00021 {
00022 ORDERED,
00023 UNORDERED
00024 };
00025 struct ListInfo
00026 {
00027 ListType m_listType;
00028
00029
00030 boost::optional<unsigned> m_bulletChar;
00031 ListInfo(unsigned bulletChar) : m_listType(UNORDERED),
00032 m_bulletChar(bulletChar), m_numberIfRestarted(),
00033 m_numberingType(), m_numberingDelimiter()
00034 {
00035 }
00036
00037
00038 boost::optional<unsigned> m_numberIfRestarted;
00039 boost::optional<NumberingType> m_numberingType;
00040 boost::optional<NumberingDelimiter> m_numberingDelimiter;
00041 ListInfo(boost::optional<unsigned> numberIfRestarted, NumberingType numberingType,
00042 NumberingDelimiter numberingDelimiter)
00043 : m_listType(ORDERED), m_bulletChar(),
00044 m_numberIfRestarted(numberIfRestarted), m_numberingType(numberingType),
00045 m_numberingDelimiter(numberingDelimiter)
00046 {
00047 }
00048 };
00049 }
00050
00051 #endif
00052