LibreOffice Module hwpfilter (master) 1
|
Class for current date and time with specified format. More...
#include <hbox.h>
Public Types | |
enum | { YEAR , MONTH , WEEK , DAY , HOUR , MIN } |
Public Member Functions | |
DateCode () | |
virtual bool | Read (HWPFile &hwpf) override |
Read properties from HIODevice object like stream, file, memory. More... | |
hchar_string | GetString () |
Public Member Functions inherited from HBox | |
HBox (hchar hch) | |
Construct a HBox object with parameter hch. More... | |
virtual | ~HBox () |
int | WSize () |
virtual bool | Read (HWPFile &hwpf) |
Read properties from HIODevice object like stream, file, memory. More... | |
Public Attributes | |
hchar | format [DATE_SIZE] |
short | date [6] |
year/month/week/day/hour/minute More... | |
hchar | dummy |
unsigned char | key |
Public Attributes inherited from HBox | |
hchar | hh |
hchar_string DateCode::GetString | ( | ) |
Definition at line 141 of file hbox.cxx.
References china_week, d, date, DATE_SIZE, DAY, defaultform, en_mon, en_week, eng_mon, eng_week, format, HOUR, i, kor_week, o3tl::make_unsigned(), MIN, MONTH, nIndex, o3tl::sprintf(), WEEK, and YEAR.
Referenced by HwpReader::makeDateCode().
|
overridevirtual |
Read properties from HIODevice object like stream, file, memory.
hwpf | HWPFile Object having all information for a hwp file. |
Reimplemented from HBox.
Definition at line 159 of file hwpread.cxx.
References HWPFile::AddDateFormat(), CH_DATE_CODE, date, DATE_SIZE, dummy, format, HBox::hh, HWP_InvalidFileFormat, HWPFile::Read2b(), and HWPFile::SetState().
short DateCode::date[6] |
year/month/week/day/hour/minute
Definition at line 152 of file hbox.h.
Referenced by GetString(), HwpReader::makeDateFormat(), and Read().
Definition at line 148 of file hbox.h.
Referenced by GetString(), HwpReader::makeDateFormat(), FieldCode::Read(), and Read().
unsigned char DateCode::key |
Definition at line 154 of file hbox.h.
Referenced by HWPFile::AddDateFormat(), HwpReader::makeDateCode(), and HwpReader::makeDateFormat().