20#ifndef INCLUDED_HWPFILTER_SOURCE_HBOX_H
21#define INCLUDED_HWPFILTER_SOURCE_HBOX_H
28#include <rtl/ustring.hxx>
87 std::unique_ptr<hchar[]>
str1;
88 std::unique_ptr<hchar[]>
str2;
89 std::unique_ptr<hchar[]>
str3;
107#define BMK_COMMENT_LEN 15
319 virtual ~FBox()
override;
364 typedef std::vector<std::unique_ptr<HWPPara>>
plist_t;
371 std::vector<std::unique_ptr<HWPPara>>
caption;
397 throw ::std::bad_alloc();
417 for (
size_t j =
nCount ; j >
i ; j--)
456 throw ::std::bad_alloc();
476 for (
size_t j =
nCount ; j >
i ; j--)
516 std::vector<std::unique_ptr<TCell>>
cells;
626 std::vector<std::unique_ptr<HWPPara>>
caption;
669 std::vector<std::unique_ptr<HWPPara>>
plist;
698 std::vector<std::unique_ptr<HWPPara>>
plist;
731 std::vector<std::unique_ptr<HWPPara>>
plist;
907#define MAX_OUTLINE_LEVEL 7
The HWPFile class is the main class of hwp for reading file information from stream.
Number and format of title.
hchar user_shape[MAX_OUTLINE_LEVEL]
shape of level
OUString GetUnicode() const
unsigned short kind
kind of numbering format
unsigned char level
level of number, Ex) The level of 1.3.2.4 is four
unsigned short number[MAX_OUTLINE_LEVEL]
value of level
hchar deco[MAX_OUTLINE_LEVEL][2]
decoration character for the level type
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
#define MAX_OUTLINE_LEVEL
::std::basic_string< hchar > hchar_string
char16_t hchar
size of hunit is 4 since hwp96 version
Input current index of page,comment,table and picture.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
virtual ~Bookmark() override
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
A cell has four properties to specify the position for itself in hwp.
unsigned char linetype[4]
std::unique_ptr< int[]> data
The compose struct displays characters at position.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
Class for current date and time with specified format.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
short date[6]
year/month/week/day/hour/minute
Style for floating object.
short ypos
Vertical alignment.
unsigned char boxtype
Type of floating object : line, txtbox, image, table, equalizer and button.
short margin[3][4]
Every margin of border [0-2][] : out/in/cell margin [][0-3] : left/right/top/bottom.
unsigned char txtflow
Kind of wrap.
short boxnum
Index of floating object.
short xpos
Horizontal alignment.
unsigned char anchor_type
Anchor type : paragraph , page, char.
This object is for floating object like table, image, line and so on.
short pgx
Physical x,y position.
unsigned char smart_linesp
unsigned short location_info
std::unique_ptr< hchar[]> str2
std::unique_ptr< hchar[]> str1
std::unique_ptr< hchar[]> str3
std::array< char, 22 > reserved2
virtual ~FieldCode() override
std::array< char, 4 > reserved1
std::unique_ptr< DateCode > m_pDate
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
Space with always same width not relation with fonts.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
The HBox class is the base class for all date classes in hwp document.
HBox(hchar hch)
Construct a HBox object with parameter hch.
virtual bool Read(HWPFile &hwpf)
Read properties from HIODevice object like stream, file, memory.
Common header for drawing object.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
std::vector< std::unique_ptr< HWPPara > > plist
virtual ~Hidden() override
hchar width
Width of hyphen.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
IndexMark marks the table of search.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
The Special space to be treated non-space when a string is cut at the end of line.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
Generates the mailing list automatically using address book and mail body format.
unsigned char field_name[20]
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
static hchar_string GetString()
Input new number as current index of page,comment,table and picture.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
Controls the display of page number, header, footer and border.
unsigned short kind
object type
unsigned short what
control command.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
There are four kinds of image.
uchar pictype
Type of this object It is one of external/ole/embedded/drawing picture.
std::vector< unsigned char > follow
It's for the Drawing object.
std::vector< std::unique_ptr< HWPPara > > caption
short num
Index of current Picture object.
short cap_pos
Position of caption.
hunit scale[2]
Ratio of magnification or reduction.
uint follow_block_size
follow_block_size is the size information of the Drawing object of hwp.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
virtual ~Picture() override
std::unique_ptr< int[]> data
Input page index in footer or header.
unsigned int m_nPageNumber
unsigned short where
Location of page number to be inserted.
unsigned short shape
Shape of page number to be inserted.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
virtual ~SkipData() override
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
std::vector< std::unique_ptr< TCell > > cells
The TocMark class is for making the content of a table.
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.
The TxtBox class saves object properties about table, textbox, equalizer or button.
short nCell
nCell is greater than one only for table, otherwise it is 1.
std::vector< std::unique_ptr< HWPPara > > caption
Caption.
short protect
If value of protect is 1, size of cell can't change.
std::vector< plist_t > plists_t
std::unique_ptr< Cell[]> cell
std::vector< std::unique_ptr< HWPPara > > plist_t
Paragraph list.
virtual ~TxtBox() override
short cap_pos
caption position
short type
The value of type indicates as the below: zero is table, one is textbox, two is equalizer and three i...
virtual bool Read(HWPFile &hwpf) override
Read properties from HIODevice object like stream, file, memory.