1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: hinfo.h,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 /* $Id: hinfo.h,v 1.5 2008-06-04 09:59:14 vg Exp $ */
38 #define CHAIN_MAX_PATH 40
39 #define ANNOTATION_LEN 24
46 * Information of page (phisical)
50 unsigned char paper_kind
;
51 unsigned char paper_direction
;
63 /* ?????? ??????, ???????? ???? */
66 char type
; // 0- background color, 1 - external image, 2- embeded image
68 int luminance
; /* ???? ( -100 ~ 100 ) */
69 int contrast
; /* ???? ( -100 ~ 100 ) */
70 char effect
; /* 0-????????, 1-????????????, 2-???? */
72 char filename
[260 + 1]; // filename
73 unsigned char color
[3]; //0 - red, 1 - green, 2 - blue
74 unsigned short flag
; /* 0 - ????????, 1 - ????????, 2 - ??????, 3 - ???????? */
75 int range
; /* 0-????, 1-????????, 3-??????, 4-?????? */
78 char *data
; // image data
84 * Information of printing for chained page
88 unsigned char chain_page_no
;
89 unsigned char chain_footnote_no
;
90 unsigned char chain_filename
[CHAIN_MAX_PATH
];
99 unsigned short title
[56];
100 unsigned short subject
[56];
101 unsigned short author
[56];
102 unsigned short date
[56];
103 unsigned short keyword
[2][56];
104 unsigned short etc
[3][56];
106 bool Read(HWPFile
&);
110 HWPInfo class?? HWPFile?? ???? ?????? ???? ???? ??????????.
111 ?????? ???? ???? ????????(layout) ?????? ????????????
112 ????????, ???? ???? ?????? ???????? ????. \\
114 HWPInfo ???????? HWPFile?? #GetHWPInfo()# ?????? ???? ???? ?? ????.
119 * Contains the basic information of the hwp document:
120 * margin, layout, paper and internal data.
122 class DLLEXPORT HWPInfo
126 * The column index of a document that is saved at last
130 * The row index of a document that is saved at last
138 PaperBackInfo back_info
;
140 * Sets the attribute of read-only or read/write.
143 unsigned char reserved1
[4];
145 * Information about document chain
147 DocChainInfo chain_info
;
148 unsigned char annotation
[ANNOTATION_LEN
];
150 // unsigned char reserved2[6];
151 short beginpagenum
; /* ?????????? ???? */
153 * Information about footnote
155 short beginfnnum
; /* ???????????? */
156 short countfn
; /* ???? ???? */
157 hunit splinetext
, splinefn
;
159 unsigned char fnchar
;
160 unsigned char fnlinetype
;
163 * Information about page layout
165 hunit bordermargin
[4];
168 unsigned char empty_line_hide
;
169 unsigned char table_move
;
170 unsigned char compressed
;
171 unsigned char reserved3
;
172 short info_block_len
;
173 /* ?????????? 128 ?????????? */
175 * Summary of document
178 unsigned char *info_block
;
183 bool Read(HWPFile
&hwpf
);
184 bool Write(CTextOut
&txtf
);
185 bool Write(CHTMLOut
&html
);
189 /* ???? ???? ?????? */
191 * @short Style of character
196 * Index of character style
198 int index
; /* ???????? ???????? ????. */
203 unsigned char font
[NLanguage
];
204 unsigned char ratio
[NLanguage
];
205 signed char space
[NLanguage
]; /* ???? */
206 unsigned char color
[2];
209 unsigned char reserved
[4];
211 bool Read(HWPFile
&);
214 /* ?? ?????? ???? ?????? */
218 * @short Tab properties
223 unsigned char dot_continue
;
228 * @short Column properties
233 unsigned char separator
;
235 hunit columnlen
, columnlen0
;
239 * @short Style of paragraph
244 * Index of paragraph style
246 int index
; /* ???????? ???????? ???? */
253 unsigned char condense
;
254 unsigned char arrange_type
;
255 TabSet tabs
[MAXTABS
];
258 unsigned char outline
;
259 unsigned char outline_continue
;
260 unsigned char reserved
[2];
262 unsigned char pagebreak
;
264 bool Read(HWPFile
&);
265 // virtual ~ParaShape();
267 #endif /* _HWPINFO_H_ */