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: drawdef.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 /* NAME $Id: drawdef.h,v 1.5 2008-04-10 11:58:04 rt Exp $
34 * frog - Jan 11, 1999: Created.
45 * Constant for drawing objects
57 HWPDO_ADVANCED_ELLIPSE
,
59 HWPDO_CLOSED_FREEFORM
,
63 #define HWPDO_PAT_TYPE_BITS 0xFF000000
64 #define HWPDO_PAT_STYLE_BITS 0x00FFFFFF
66 #define HWPDO_PAT_SOLID 0x00000000
67 #define HWPDO_PAT_WIN_HATCHED 0x01000000
68 #define HWPDO_PAT_BITMAP 0x02000000
70 #define HWPDO_COLOR_NONE 0x10000000
72 #define HWPDO_FLAG_ROUND_CORNER 0x00000001
73 #define HWPDO_FLAG_DRAW_PIE 0x00000002
74 #define HWPDO_FLAG_SEMICIRCLE 0x00000004
75 #define HWPDO_FLAG_SCALE_BITMAP 0x00000008
77 #define HWPDO_FLAG_LOCAL_BITS 0x0000ffff
78 #define HWPDO_FLAG_PROPERTY_BITS 0x00ff0000
80 #define HWPDO_FLAG_GRADATION 0x00010000
81 #define HWPDO_FLAG_ROTATION 0x00020000
82 #define HWPDO_FLAG_BITMAP 0x00040000
83 #define HWPDO_FLAG_AS_TEXTBOX 0x00080000
84 #define HWPDO_FLAG_WATERMARK 0x00100000
87 * @short Basic properties for drawing objects
89 * The order of pstyle, hstyle and tstyle is important.
92 struct BAREHWPDOProperty
108 * @short Gradation properties for drawing object
110 struct GradationProperty
122 * @short Bitmap properties for drawing object
124 struct BitmapProperty
128 char szPatternFile
[260 + 1];
133 * @short Rotation properties for drawing object
135 struct RotationProperty
143 * @short All properties for drawing object
147 int line_pstyle
; /* ¼± Áß°£ ¸ð¾ç */
148 int line_hstyle
; /* ³¡ È»ìÇ¥ ¸ð¾ç */
149 int line_tstyle
; /* ½ÃÀÛ ¸ð¾ç */
159 /* Lotation properties */
164 /* Gradation properties */
185 char szPatternFile
[MAX_PATH
+ 1];
198 * @short Polygon or Polyline Object
207 * @short Textbox Object
223 * @short Common header for drawing object
225 struct HWPDrawingObject
228 * type of drawing object
232 * offset from origin of current group
236 * offset from origin of drawing object
241 * rectangle with consideration of line width
244 HWPDOProperty property
;
248 HWPDOFreeForm freeform
;
249 HWPDOTextBox textbox
;
251 * extended from hwpw96
256 struct HWPDrawingObject
*next
;
258 * This exists for container object
260 struct HWPDrawingObject
*child
;
265 #endif /* _DRAWDEF_H_ */