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