VSDFieldList.h Source File documentation

VSDFieldList.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 libvisio 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 __VSDFIELDLIST_H__
11 #define __VSDFIELDLIST_H__
12
13 #include <memory>
14 #include <vector>
15 #include <map>
16 #include <librevenge/librevenge.h>
17 #include "VSDDocumentStructure.h"
18 #include "VSDTypes.h"
19
20 namespace libvisio
21 {
22
23 class VSDCollector;
24
25 class VSDFieldListElement
26 {
27 public:
28 VSDFieldListElement() {}
29 virtual ~VSDFieldListElement() {}
30 virtual void handle(VSDCollector *collector) const = 0;
31 virtual VSDFieldListElement *clone() = 0;
32 virtual librevenge::RVNGString getString(const std::map<unsigned, librevenge::RVNGString> &) = 0;
33 virtual void setNameId(int) = 0;
34 virtual void setFormat(unsigned short) = 0;
35 virtual void setCellType(unsigned short) = 0;
36 virtual void setValue(double) = 0;
37 };
38
39 class VSDTextField : public VSDFieldListElement
40 {
41 public:
42 VSDTextField(unsigned id, unsigned level, int nameId, int formatStringId)
43 : m_id(id),
44 m_level(level),
45 m_nameId(nameId),
46 m_formatStringId(formatStringId) {}
47 ~VSDTextField() override {}
48 void handle(VSDCollector *collector) const override;
49 VSDFieldListElement *clone() override;
50 librevenge::RVNGString getString(const std::map<unsigned, librevenge::RVNGString> &strVec) override;
51 void setNameId(int nameId) override;
52 void setFormat(unsigned short) override {}
53 void setCellType(unsigned short) override {}
54 void setValue(double) override {}
55 private:
56 unsigned m_id, m_level;
57 int m_nameId, m_formatStringId;
58 };
59
60 class VSDNumericField : public VSDFieldListElement
61 {
62 public:
63 VSDNumericField(unsigned id, unsigned level, unsigned short format, unsigned short cellType, double number, int formatStringId)
64 : m_id(id),
65 m_level(level),
66 m_format(format),
67 m_cell_type(cellType),
68 m_number(number),
69 m_formatStringId(formatStringId) {}
70 ~VSDNumericField() override {}
71 void handle(VSDCollector *collector) const override;
72 VSDFieldListElement *clone() override;
73 librevenge::RVNGString getString(const std::map<unsigned, librevenge::RVNGString> &) override;
74 void setNameId(int) override {}
75 void setFormat(unsigned short format) override;
76 void setCellType(unsigned short cellType) override;
77 void setValue(double number) override;
78 private:
79 librevenge::RVNGString datetimeToString(const char *format, double datetime);
80 unsigned m_id, m_level;
81 unsigned short m_format;
82 unsigned short m_cell_type;
83 double m_number;
84 int m_formatStringId;
85 };
86
87 class VSDFieldList
88 {
89 public:
90 VSDFieldList();
91 VSDFieldList(const VSDFieldList &fieldList);
92 ~VSDFieldList();
93 VSDFieldList &operator=(const VSDFieldList &fieldList);
94 void setElementsOrder(const std::vector<unsigned> &m_elementsOrder);
95 void addFieldList(unsigned id, unsigned level);
96 void addTextField(unsigned id, unsigned level, int nameId, int formatStringId);
97 void addNumericField(unsigned id, unsigned level, unsigned short format, unsigned short cellType, double number, int formatStringId);
98 void addClonedField(unsigned id);
99 void handle(VSDCollector *collector) const;
100 void clear();
101 unsigned long size() const
102 {
103 return (unsigned long)m_elements.size();
104 }
105 bool empty() const
106 {
107 return (m_elements.empty());
108 }
109 VSDFieldListElement *getElement(unsigned index);
110 private:
111 std::map<unsigned, std::unique_ptr<VSDFieldListElement>> m_elements;
112 std::vector<unsigned> m_elementsOrder;
113 unsigned m_id, m_level;
114 };
115
116 } // namespace libvisio
117
118 #endif // __VSDFIELDLIST_H__
119 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
VSD_FIELD_FORMAT_DateDMMMMYYYY
#define VSD_FIELD_FORMAT_DateDMMMMYYYY
Definition: VSDDocumentStructure.h:211
VSD_FIELD_FORMAT_TimeAMPMhmm_J
#define VSD_FIELD_FORMAT_TimeAMPMhmm_J
Definition: VSDDocumentStructure.h:225
VSD_FIELD_FORMAT_MsoFEExtra2
#define VSD_FIELD_FORMAT_MsoFEExtra2
Definition: VSDDocumentStructure.h:278
VSD_FIELD_FORMAT_2PlNoUnits
#define VSD_FIELD_FORMAT_2PlNoUnits
Definition: VSDDocumentStructure.h:188
CELL_TYPE_Inches
#define CELL_TYPE_Inches
Definition: VSDDocumentStructure.h:150
VSD_FIELD_FORMAT_TimeAMPM_hmm_C
#define VSD_FIELD_FORMAT_TimeAMPM_hmm_C
Definition: VSDDocumentStructure.h:247
libvisio::VSDNumericField::setNameId
void setNameId(int) override
Definition: VSDFieldList.h:74
libvisio::VSDFieldListElement::handle
virtual void handle(VSDCollector *collector) const =0
VSD_FIELD_FORMAT_Dateyyyymd
#define VSD_FIELD_FORMAT_Dateyyyymd
Definition: VSDDocumentStructure.h:223
CELL_TYPE_Meters
#define CELL_TYPE_Meters
Definition: VSDDocumentStructure.h:156
libvisio::VSDNumericField
Definition: VSDFieldList.h:60
libvisio::VSDNumericField::clone
VSDFieldListElement * clone() override
Definition: VSDFieldList.cpp:50
VSD_FIELD_FORMAT_Timehmm_C
#define VSD_FIELD_FORMAT_Timehmm_C
Definition: VSDDocumentStructure.h:248
libvisio::VSDFieldListElement::VSDFieldListElement
VSDFieldListElement()
Definition: VSDFieldList.h:28
VSD_FIELD_FORMAT_TimeAMPM_hmm_J
#define VSD_FIELD_FORMAT_TimeAMPM_hmm_J
Definition: VSDDocumentStructure.h:245
libvisio::VSDTextField::m_nameId
int m_nameId
Definition: VSDFieldList.h:57
VSD_FIELD_FORMAT_Timehmm_K
#define VSD_FIELD_FORMAT_Timehmm_K
Definition: VSDDocumentStructure.h:250
libvisio::VSDFieldListElement::getString
virtual librevenge::RVNGString getString(const std::map< unsigned, librevenge::RVNGString > &)=0
VSDFieldList.h
libvisio::VSDTextField::m_formatStringId
int m_formatStringId
Definition: VSDFieldList.h:57
CELL_TYPE_Picas
#define CELL_TYPE_Picas
Definition: VSDDocumentStructure.h:144
VSD_FIELD_FORMAT_MsoDateShort
#define VSD_FIELD_FORMAT_MsoDateShort
Definition: VSDDocumentStructure.h:260
VSD_FIELD_FORMAT_NumGenDefUnits
#define VSD_FIELD_FORMAT_NumGenDefUnits
Definition: VSDDocumentStructure.h:183
VSD_FIELD_FORMAT_MsoFEExtra3
#define VSD_FIELD_FORMAT_MsoFEExtra3
Definition: VSDDocumentStructure.h:279
libvisio::VSDFieldListElement
Definition: VSDFieldList.h:25
convertNumber
double convertNumber(const unsigned short cellType, const double number)
Definition: VSDFieldList.cpp:98
libvisio::VSDFieldListElement::setFormat
virtual void setFormat(unsigned short)=0
VSD_FIELD_FORMAT_MsoFEExtra5
#define VSD_FIELD_FORMAT_MsoFEExtra5
Definition: VSDDocumentStructure.h:281
VSD_FIELD_FORMAT_MsoDateShortMon
#define VSD_FIELD_FORMAT_MsoDateShortMon
Definition: VSDDocumentStructure.h:265
libvisio::VSDTextField::setNameId
void setNameId(int nameId) override
Definition: VSDFieldList.cpp:39
libvisio::VSDTextField::handle
void handle(VSDCollector *collector) const override
Definition: VSDFieldList.cpp:17
libvisio::VSDNumericField::m_number
double m_number
Definition: VSDFieldList.h:83
CELL_TYPE_Percent
#define CELL_TYPE_Percent
Definition: VSDDocumentStructure.h:131
libvisio::VSDCollector
Definition: VSDCollector.h:20
VSD_FIELD_FORMAT_DateLong
#define VSD_FIELD_FORMAT_DateLong
Definition: VSDDocumentStructure.h:203
libvisio::VSDFieldList::operator=
VSDFieldList & operator=(const VSDFieldList &fieldList)
Definition: VSDFieldList.cpp:471
CELL_TYPE_ElapsedSec
#define CELL_TYPE_ElapsedSec
Definition: VSDDocumentStructure.h:140
VSD_FIELD_FORMAT_DateTWNfyyyymmddww_C
#define VSD_FIELD_FORMAT_DateTWNfyyyymmddww_C
Definition: VSDDocumentStructure.h:229
VSD_FIELD_FORMAT_Dateyyyy_m_d
#define VSD_FIELD_FORMAT_Dateyyyy_m_d
Definition: VSDDocumentStructure.h:241
VSD_FIELD_FORMAT_TimeAMPM_hmm_K
#define VSD_FIELD_FORMAT_TimeAMPM_hmm_K
Definition: VSDDocumentStructure.h:249
VSD_FIELD_FORMAT_0PlNoUnits
#define VSD_FIELD_FORMAT_0PlNoUnits
Definition: VSDDocumentStructure.h:184
CELL_TYPE_Hectare
#define CELL_TYPE_Hectare
Definition: VSDDocumentStructure.h:133
VSD_FIELD_FORMAT_NumGenNoUnits
#define VSD_FIELD_FORMAT_NumGenNoUnits
Definition: VSDDocumentStructure.h:182
CELL_TYPE_ElapsedWeek
#define CELL_TYPE_ElapsedWeek
Definition: VSDDocumentStructure.h:136
VSD_DEBUG_MSG
#define VSD_DEBUG_MSG(M)
Definition: libvisio_utils.h:42
libvisio::VSDFieldList::handle
void handle(VSDCollector *collector) const
Definition: VSDFieldList.cpp:514
VSD_FIELD_FORMAT_Dateyyyymdww_J
#define VSD_FIELD_FORMAT_Dateyyyymdww_J
Definition: VSDDocumentStructure.h:232
VSD_FIELD_FORMAT_DateShort
#define VSD_FIELD_FORMAT_DateShort
Definition: VSDDocumentStructure.h:202
VSD_FIELD_FORMAT_MsoTimeSec24
#define VSD_FIELD_FORMAT_MsoTimeSec24
Definition: VSDDocumentStructure.h:276
libvisio::VSDTextField::setCellType
void setCellType(unsigned short) override
Definition: VSDFieldList.h:53
VSD_FIELD_FORMAT_Dateyy_mm_dd
#define VSD_FIELD_FORMAT_Dateyy_mm_dd
Definition: VSDDocumentStructure.h:242
libvisio::VSDFieldList::m_elements
std::map< unsigned, std::unique_ptr< VSDFieldListElement > > m_elements
Definition: VSDFieldList.h:111
VSD_FIELD_FORMAT_TimeAMPMhmm_S
#define VSD_FIELD_FORMAT_TimeAMPMhmm_S
Definition: VSDDocumentStructure.h:257
libvisio::VSDFieldList::addClonedField
void addClonedField(unsigned id)
libvisio::VSDTextField::setValue
void setValue(double) override
Definition: VSDFieldList.h:54
VSD_FIELD_FORMAT_TimeHMMAMPM_E
#define VSD_FIELD_FORMAT_TimeHMMAMPM_E
Definition: VSDDocumentStructure.h:251
libvisio::clone
std::unique_ptr< T > clone(const std::unique_ptr< T > &other)
Definition: libvisio_utils.h:65
libvisio::VSDFieldList::addNumericField
void addNumericField(unsigned id, unsigned level, unsigned short format, unsigned short cellType, double number, int formatStringId)
Definition: VSDFieldList.cpp:508
VSD_FIELD_FORMAT_MsoTimeDatePM
#define VSD_FIELD_FORMAT_MsoTimeDatePM
Definition: VSDDocumentStructure.h:271
VSD_FIELD_FORMAT_TimeHHMM
#define VSD_FIELD_FORMAT_TimeHHMM
Definition: VSDDocumentStructure.h:214
VSDDocumentStructure.h
CELL_TYPE_Millimeters
#define CELL_TYPE_Millimeters
Definition: VSDDocumentStructure.h:155
VSD_FIELD_FORMAT_TimeHMM
#define VSD_FIELD_FORMAT_TimeHMM
Definition: VSDDocumentStructure.h:213
VSD_FIELD_FORMAT_MsoDateLongDay
#define VSD_FIELD_FORMAT_MsoDateLongDay
Definition: VSDDocumentStructure.h:261
VSD_FIELD_FORMAT_TimeHMM24
#define VSD_FIELD_FORMAT_TimeHMM24
Definition: VSDDocumentStructure.h:215
libvisio::VSDNumericField::~VSDNumericField
~VSDNumericField() override
Definition: VSDFieldList.h:70
doubleToString
static librevenge::RVNGString doubleToString(const double value, const char *format, const char *postfix)
Definition: VSDFieldList.cpp:74
CELL_TYPE_Kilometers
#define CELL_TYPE_Kilometers
Definition: VSDDocumentStructure.h:157
VSD_FIELD_FORMAT_DateMMMMDYYYY
#define VSD_FIELD_FORMAT_DateMMMMDYYYY
Definition: VSDDocumentStructure.h:207
VSD_FIELD_FORMAT_MsoDateEnglish
#define VSD_FIELD_FORMAT_MsoDateEnglish
Definition: VSDDocumentStructure.h:268
libvisio::VSDFieldList::size
unsigned long size() const
Definition: VSDFieldList.h:101
VSDTypes.h
libvisio::VSDFieldList
Definition: VSDFieldList.h:87
libvisio::VSDCollector::collectNumericField
virtual void collectNumericField(unsigned id, unsigned level, unsigned short format, unsigned short cellType, double number, int formatStringId)=0
CELL_TYPE_Didots
#define CELL_TYPE_Didots
Definition: VSDDocumentStructure.h:146
VSDCollector.h
libvisio::VSDTextField
Definition: VSDFieldList.h:39
libvisio::VSDFieldList::addTextField
void addTextField(unsigned id, unsigned level, int nameId, int formatStringId)
Definition: VSDFieldList.cpp:502
VSD_FIELD_FORMAT_2PlDefUnits
#define VSD_FIELD_FORMAT_2PlDefUnits
Definition: VSDDocumentStructure.h:189
VSD_FIELD_FORMAT_Dateyyyymd_S
#define VSD_FIELD_FORMAT_Dateyyyymd_S
Definition: VSDDocumentStructure.h:253
VSD_FIELD_FORMAT_DateDMMMYYYY
#define VSD_FIELD_FORMAT_DateDMMMYYYY
Definition: VSDDocumentStructure.h:210
libvisio::VSDFieldListElement::setNameId
virtual void setNameId(int)=0
VSD_FIELD_FORMAT_MsoDateShortSlash
#define VSD_FIELD_FORMAT_MsoDateShortSlash
Definition: VSDDocumentStructure.h:266
libvisio::VSDNumericField::setFormat
void setFormat(unsigned short format) override
Definition: VSDFieldList.cpp:437
libvisio::VSDFieldList::m_elementsOrder
std::vector< unsigned > m_elementsOrder
Definition: VSDFieldList.h:112
VSD_FIELD_FORMAT_TimeAMPMhhmm_S
#define VSD_FIELD_FORMAT_TimeAMPMhhmm_S
Definition: VSDDocumentStructure.h:258
VSD_FIELD_FORMAT_TimeAMPMhmm_C
#define VSD_FIELD_FORMAT_TimeAMPMhmm_C
Definition: VSDDocumentStructure.h:243
libvisio::VSDNumericField::setValue
void setValue(double number) override
Definition: VSDFieldList.cpp:447
libvisio::VSDNumericField::VSDNumericField
VSDNumericField(unsigned id, unsigned level, unsigned short format, unsigned short cellType, double number, int formatStringId)
Definition: VSDFieldList.h:63
VSD_FIELD_FORMAT_MsoTimePM
#define VSD_FIELD_FORMAT_MsoTimePM
Definition: VSDDocumentStructure.h:273
libvisio::VSDFieldList::empty
bool empty() const
Definition: VSDFieldList.h:105
VSD_FIELD_FORMAT_Dateyymmdd
#define VSD_FIELD_FORMAT_Dateyymmdd
Definition: VSDDocumentStructure.h:224
libvisio::VSDFieldList::m_level
unsigned m_level
Definition: VSDFieldList.h:113
VSD_FIELD_FORMAT_MsoFEExtra1
#define VSD_FIELD_FORMAT_MsoFEExtra1
Definition: VSDDocumentStructure.h:277
CELL_TYPE_ElapsedDay
#define CELL_TYPE_ElapsedDay
Definition: VSDDocumentStructure.h:137
libvisio::VSDNumericField::setCellType
void setCellType(unsigned short cellType) override
Definition: VSDFieldList.cpp:442
libvisio::VSDTextField::getString
librevenge::RVNGString getString(const std::map< unsigned, librevenge::RVNGString > &strVec) override
Definition: VSDFieldList.cpp:27
libvisio::VSDFieldListElement::clone
virtual VSDFieldListElement * clone()=0
VSD_FIELD_FORMAT_Dateyyyymmdd_S
#define VSD_FIELD_FORMAT_Dateyyyymmdd_S
Definition: VSDDocumentStructure.h:254
libvisio::VSDTextField::setFormat
void setFormat(unsigned short) override
Definition: VSDFieldList.h:52
MAX_BUFFER
#define MAX_BUFFER
Definition: VSDFieldList.cpp:55
VSD_FIELD_FORMAT_DateTWNfyyyymmdd_C
#define VSD_FIELD_FORMAT_DateTWNfyyyymmdd_C
Definition: VSDDocumentStructure.h:230
CELL_TYPE_String
#define CELL_TYPE_String
Definition: VSDDocumentStructure.h:173
VSD_FIELD_FORMAT_MsoTimeSecPM
#define VSD_FIELD_FORMAT_MsoTimeSecPM
Definition: VSDDocumentStructure.h:274
CELL_TYPE_ElapsedMin
#define CELL_TYPE_ElapsedMin
Definition: VSDDocumentStructure.h:139
libvisio::VSDFieldList::~VSDFieldList
~VSDFieldList()
Definition: VSDFieldList.cpp:485
libvisio::VSDFieldList::m_id
unsigned m_id
Definition: VSDFieldList.h:113
VSD_FIELD_FORMAT_DateDMYY
#define VSD_FIELD_FORMAT_DateDMYY
Definition: VSDDocumentStructure.h:208
CELL_TYPE_Feet
#define CELL_TYPE_Feet
Definition: VSDDocumentStructure.h:151
VSD_FIELD_FORMAT_DateYYYYMMMDDD_C
#define VSD_FIELD_FORMAT_DateYYYYMMMDDD_C
Definition: VSDDocumentStructure.h:236
libvisio::VSDFieldList::addFieldList
void addFieldList(unsigned id, unsigned level)
Definition: VSDFieldList.cpp:496
libvisio::VSDTextField::m_level
unsigned m_level
Definition: VSDFieldList.h:56
CELL_TYPE_Degrees
#define CELL_TYPE_Degrees
Definition: VSDDocumentStructure.h:163
libvisio::VSDNumericField::m_cell_type
unsigned short m_cell_type
Definition: VSDFieldList.h:82
VSD_FIELD_FORMAT_MsoDateLong
#define VSD_FIELD_FORMAT_MsoDateLong
Definition: VSDDocumentStructure.h:262
VSD_FIELD_FORMAT_Dateyyyymdww_K
#define VSD_FIELD_FORMAT_Dateyyyymdww_K
Definition: VSDDocumentStructure.h:238
VSD_FIELD_FORMAT_MsoDateISO
#define VSD_FIELD_FORMAT_MsoDateISO
Definition: VSDDocumentStructure.h:264
VSD_FIELD_FORMAT_TimeHMMAMPM
#define VSD_FIELD_FORMAT_TimeHMMAMPM
Definition: VSDDocumentStructure.h:217
VSD_FIELD_FORMAT_DateMMMDYYYY
#define VSD_FIELD_FORMAT_DateMMMDYYYY
Definition: VSDDocumentStructure.h:206
CELL_TYPE_Yards
#define CELL_TYPE_Yards
Definition: VSDDocumentStructure.h:160
VSD_FIELD_FORMAT_DateTWNsYYYYMMDDD_C
#define VSD_FIELD_FORMAT_DateTWNsYYYYMMDDD_C
Definition: VSDDocumentStructure.h:228
libvisio::VSDTextField::VSDTextField
VSDTextField(unsigned id, unsigned level, int nameId, int formatStringId)
Definition: VSDFieldList.h:42
VSD_FIELD_FORMAT_DateMDYY
#define VSD_FIELD_FORMAT_DateMDYY
Definition: VSDDocumentStructure.h:204
VSD_FIELD_FORMAT_MsoDateShortAlt
#define VSD_FIELD_FORMAT_MsoDateShortAlt
Definition: VSDDocumentStructure.h:263
CELL_TYPE_Number
#define CELL_TYPE_Number
Definition: VSDDocumentStructure.h:130
libvisio::VSDFieldListElement::setValue
virtual void setValue(double)=0
libvisio::VSDFieldList::VSDFieldList
VSDFieldList()
Definition: VSDFieldList.cpp:453
libvisio::VSDNumericField::m_level
unsigned m_level
Definition: VSDFieldList.h:80
VSD_FIELD_FORMAT_TimeGen
#define VSD_FIELD_FORMAT_TimeGen
Definition: VSDDocumentStructure.h:212
CELL_TYPE_Ciceros
#define CELL_TYPE_Ciceros
Definition: VSDDocumentStructure.h:147
VSD_FIELD_FORMAT_TimeAMPMhmm_K
#define VSD_FIELD_FORMAT_TimeAMPMhmm_K
Definition: VSDDocumentStructure.h:244
libvisio::VSDTextField::clone
VSDFieldListElement * clone() override
Definition: VSDFieldList.cpp:22
libvisio::VSDNumericField::m_id
unsigned m_id
Definition: VSDFieldList.h:80
libvisio::VSDNumericField::handle
void handle(VSDCollector *collector) const override
Definition: VSDFieldList.cpp:45
VSD_FIELD_FORMAT_TimeHHMMAMPM_E
#define VSD_FIELD_FORMAT_TimeHHMMAMPM_E
Definition: VSDDocumentStructure.h:252
VSD_FIELD_FORMAT_Dategggemdww_J
#define VSD_FIELD_FORMAT_Dategggemdww_J
Definition: VSDDocumentStructure.h:231
CELL_TYPE_NauticalMiles
#define CELL_TYPE_NauticalMiles
Definition: VSDDocumentStructure.h:161
CELL_TYPE_StringWithoutUnit
#define CELL_TYPE_StringWithoutUnit
Definition: VSDDocumentStructure.h:174
libvisio::VSDNumericField::datetimeToString
librevenge::RVNGString datetimeToString(const char *format, double datetime)
Definition: VSDFieldList.cpp:57
VSD_FIELD_FORMAT_MsoDateMon_Yr
#define VSD_FIELD_FORMAT_MsoDateMon_Yr
Definition: VSDDocumentStructure.h:270
VSD_FIELD_FORMAT_3PlNoUnits
#define VSD_FIELD_FORMAT_3PlNoUnits
Definition: VSDDocumentStructure.h:190
VSD_FIELD_FORMAT_Datewwyyyymd_S
#define VSD_FIELD_FORMAT_Datewwyyyymd_S
Definition: VSDDocumentStructure.h:256
VSD_FIELD_FORMAT_MsoTimeDateSecPM
#define VSD_FIELD_FORMAT_MsoTimeDateSecPM
Definition: VSDDocumentStructure.h:272
VSD_FIELD_FORMAT_TimeHHMMAMPM
#define VSD_FIELD_FORMAT_TimeHHMMAMPM
Definition: VSDDocumentStructure.h:218
VSD_FIELD_FORMAT_DateDDMMYY
#define VSD_FIELD_FORMAT_DateDDMMYY
Definition: VSDDocumentStructure.h:209
libvisio::VSDCollector::collectFieldList
virtual void collectFieldList(unsigned id, unsigned level)=0
VSD_FIELD_FORMAT_DategeMMMMddddww_K
#define VSD_FIELD_FORMAT_DategeMMMMddddww_K
Definition: VSDDocumentStructure.h:237
VSD_FIELD_FORMAT_TimeHHMM24
#define VSD_FIELD_FORMAT_TimeHHMM24
Definition: VSDDocumentStructure.h:216
VSD_FIELD_FORMAT_DateTWNfYYYYMMDDD_C
#define VSD_FIELD_FORMAT_DateTWNfYYYYMMDDD_C
Definition: VSDDocumentStructure.h:227
VSD_FIELD_FORMAT_Datewwyyyymmdd_S
#define VSD_FIELD_FORMAT_Datewwyyyymmdd_S
Definition: VSDDocumentStructure.h:255
getUnitString
const char * getUnitString(const unsigned short cellType)
Definition: VSDFieldList.cpp:157
VSD_FIELD_FORMAT_Dateyyyymd_J
#define VSD_FIELD_FORMAT_Dateyyyymd_J
Definition: VSDDocumentStructure.h:234
VSD_FIELD_FORMAT_Dateyyyymd_K
#define VSD_FIELD_FORMAT_Dateyyyymd_K
Definition: VSDDocumentStructure.h:240
VSD_FIELD_FORMAT_DateYYYYMMMDDDWWW_C
#define VSD_FIELD_FORMAT_DateYYYYMMMDDDWWW_C
Definition: VSDDocumentStructure.h:235
VSD_FIELD_FORMAT_MsoTime24
#define VSD_FIELD_FORMAT_MsoTime24
Definition: VSDDocumentStructure.h:275
VSD_FIELD_FORMAT_1PlNoUnits
#define VSD_FIELD_FORMAT_1PlNoUnits
Definition: VSDDocumentStructure.h:186
VSD_FIELD_FORMAT_Unknown
#define VSD_FIELD_FORMAT_Unknown
Definition: VSDDocumentStructure.h:283
libvisio::VSDNumericField::m_formatStringId
int m_formatStringId
Definition: VSDFieldList.h:84
libvisio::VSDFieldList::clear
void clear()
Definition: VSDFieldList.cpp:536
CELL_TYPE_Points
#define CELL_TYPE_Points
Definition: VSDDocumentStructure.h:143
CELL_TYPE_ElapsedHour
#define CELL_TYPE_ElapsedHour
Definition: VSDDocumentStructure.h:138
libvisio::VSDCollector::collectTextField
virtual void collectTextField(unsigned id, unsigned level, int nameId, int formatStringId)=0
libvisio::VSDFieldListElement::~VSDFieldListElement
virtual ~VSDFieldListElement()
Definition: VSDFieldList.h:29
CELL_TYPE_NoCast
#define CELL_TYPE_NoCast
Definition: VSDDocumentStructure.h:177
libvisio::VSDNumericField::m_format
unsigned short m_format
Definition: VSDFieldList.h:81
libvisio::VSDTextField::m_id
unsigned m_id
Definition: VSDFieldList.h:56
CELL_TYPE_Miles
#define CELL_TYPE_Miles
Definition: VSDDocumentStructure.h:154
libvisio_utils.h
VSD_FIELD_FORMAT_Dategggemd_J
#define VSD_FIELD_FORMAT_Dategggemd_J
Definition: VSDDocumentStructure.h:233
CELL_TYPE_Acre
#define CELL_TYPE_Acre
Definition: VSDDocumentStructure.h:132
libvisio::VSDNumericField::getString
librevenge::RVNGString getString(const std::map< unsigned, librevenge::RVNGString > &) override
Definition: VSDFieldList.cpp:221
VSD_FIELD_FORMAT_0PlDefUnits
#define VSD_FIELD_FORMAT_0PlDefUnits
Definition: VSDDocumentStructure.h:185
libvisio::VSDFieldList::getElement
VSDFieldListElement * getElement(unsigned index)
Definition: VSDFieldList.cpp:542
CELL_TYPE_Centimeters
#define CELL_TYPE_Centimeters
Definition: VSDDocumentStructure.h:153
VSD_FIELD_FORMAT_DateMMDDYY
#define VSD_FIELD_FORMAT_DateMMDDYY
Definition: VSDDocumentStructure.h:205
libvisio::VSDTextField::~VSDTextField
~VSDTextField() override
Definition: VSDFieldList.h:47
libvisio::VSDFieldListElement::setCellType
virtual void setCellType(unsigned short)=0
libvisio::VSDFieldList::setElementsOrder
void setElementsOrder(const std::vector< unsigned > &m_elementsOrder)
Definition: VSDFieldList.cpp:489
CELL_TYPE_Radians
#define CELL_TYPE_Radians
Definition: VSDDocumentStructure.h:165
VSD_FIELD_FORMAT_3PlDefUnits
#define VSD_FIELD_FORMAT_3PlDefUnits
Definition: VSDDocumentStructure.h:191
libvisio
Definition: libvisio_utils.h:48
VSD_FIELD_FORMAT_Timehmm_J
#define VSD_FIELD_FORMAT_Timehmm_J
Definition: VSDDocumentStructure.h:246
CELL_TYPE_Invalid
#define CELL_TYPE_Invalid
Definition: VSDDocumentStructure.h:178
VSD_FIELD_FORMAT_1PlDefUnits
#define VSD_FIELD_FORMAT_1PlDefUnits
Definition: VSDDocumentStructure.h:187
VSD_FIELD_FORMAT_MsoFEExtra4
#define VSD_FIELD_FORMAT_MsoFEExtra4
Definition: VSDDocumentStructure.h:280
VSD_FIELD_FORMAT_MsoDateShortAbb
#define VSD_FIELD_FORMAT_MsoDateShortAbb
Definition: VSDDocumentStructure.h:267
VSD_FIELD_FORMAT_DategeMMMMddd_K
#define VSD_FIELD_FORMAT_DategeMMMMddd_K
Definition: VSDDocumentStructure.h:239
VSD_FIELD_FORMAT_MsoDateMonthYr
#define VSD_FIELD_FORMAT_MsoDateMonthYr
Definition: VSDDocumentStructure.h:269