1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
37 * Constant for drawing objects
49 HWPDO_ADVANCED_ELLIPSE
,
51 HWPDO_CLOSED_FREEFORM
,
55 #define HWPDO_PAT_TYPE_BITS 0xFF000000
56 #define HWPDO_PAT_STYLE_BITS 0x00FFFFFF
58 #define HWPDO_PAT_SOLID 0x00000000
59 #define HWPDO_PAT_WIN_HATCHED 0x01000000
60 #define HWPDO_PAT_BITMAP 0x02000000
62 #define HWPDO_COLOR_NONE 0x10000000
64 #define HWPDO_FLAG_ROUND_CORNER 0x00000001
65 #define HWPDO_FLAG_DRAW_PIE 0x00000002
66 #define HWPDO_FLAG_SEMICIRCLE 0x00000004
67 #define HWPDO_FLAG_SCALE_BITMAP 0x00000008
69 #define HWPDO_FLAG_LOCAL_BITS 0x0000ffff
70 #define HWPDO_FLAG_PROPERTY_BITS 0x00ff0000
72 #define HWPDO_FLAG_GRADATION 0x00010000
73 #define HWPDO_FLAG_ROTATION 0x00020000
74 #define HWPDO_FLAG_BITMAP 0x00040000
75 #define HWPDO_FLAG_AS_TEXTBOX 0x00080000
76 #define HWPDO_FLAG_WATERMARK 0x00100000
79 * @short Basic properties for drawing objects
81 * The order of pstyle, hstyle and tstyle is important.
84 struct BAREHWPDOProperty
100 * @short Gradation properties for drawing object
102 struct GradationProperty
114 * @short Bitmap properties for drawing object
116 struct BitmapProperty
120 char szPatternFile
[260 + 1];
125 * @short Rotation properties for drawing object
127 struct RotationProperty
135 * @short All properties for drawing object
139 int line_pstyle
; /* ¼± Áß°£ ¸ð¾ç */
140 int line_hstyle
; /* ³¡ È»ìÇ¥ ¸ð¾ç */
141 int line_tstyle
; /* ½ÃÀÛ ¸ð¾ç */
151 /* Lotation properties */
156 /* Gradation properties */
177 char szPatternFile
[260 + 1];
190 * @short Polygon or Polyline Object
199 * @short Textbox Object
215 * @short Common header for drawing object
217 struct HWPDrawingObject
220 * type of drawing object
224 * offset from origin of current group
228 * offset from origin of drawing object
233 * rectangle with consideration of line width
236 HWPDOProperty property
;
240 HWPDOFreeForm freeform
;
241 HWPDOTextBox textbox
;
243 * extended from hwpw96
248 struct HWPDrawingObject
*next
;
250 * This exists for container object
252 struct HWPDrawingObject
*child
;
257 #endif /* _DRAWDEF_H_ */
259 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */