1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
28 * Constant for drawing objects
40 HWPDO_ADVANCED_ELLIPSE
,
42 HWPDO_CLOSED_FREEFORM
,
46 #define HWPDO_PAT_TYPE_BITS 0xFF000000
47 #define HWPDO_PAT_STYLE_BITS 0x00FFFFFF
49 #define HWPDO_PAT_SOLID 0x00000000
50 #define HWPDO_PAT_WIN_HATCHED 0x01000000
51 #define HWPDO_PAT_BITMAP 0x02000000
53 #define HWPDO_COLOR_NONE 0x10000000
55 #define HWPDO_FLAG_ROUND_CORNER 0x00000001
56 #define HWPDO_FLAG_DRAW_PIE 0x00000002
57 #define HWPDO_FLAG_SEMICIRCLE 0x00000004
58 #define HWPDO_FLAG_SCALE_BITMAP 0x00000008
60 #define HWPDO_FLAG_LOCAL_BITS 0x0000ffff
61 #define HWPDO_FLAG_PROPERTY_BITS 0x00ff0000
63 #define HWPDO_FLAG_GRADATION 0x00010000
64 #define HWPDO_FLAG_ROTATION 0x00020000
65 #define HWPDO_FLAG_BITMAP 0x00040000
66 #define HWPDO_FLAG_AS_TEXTBOX 0x00080000
67 #define HWPDO_FLAG_WATERMARK 0x00100000
70 * @short Basic properties for drawing objects
72 * The order of pstyle, hstyle and tstyle is important.
75 struct BAREHWPDOProperty
91 * @short Gradation properties for drawing object
93 struct GradationProperty
105 * @short Bitmap properties for drawing object
107 struct BitmapProperty
111 char szPatternFile
[260 + 1];
116 * @short Rotation properties for drawing object
118 struct RotationProperty
126 * @short All properties for drawing object
130 int line_pstyle
; /* ¼± Áß°£ ¸ð¾ç */
131 int line_hstyle
; /* ³¡ È»ìÇ¥ ¸ð¾ç */
132 int line_tstyle
; /* ½ÃÀÛ ¸ð¾ç */
142 /* Lotation properties */
147 /* Gradation properties */
168 char szPatternFile
[260 + 1];
181 * @short Polygon or Polyline Object
190 * @short Textbox Object
206 * @short Common header for drawing object
208 struct HWPDrawingObject
211 * type of drawing object
215 * offset from origin of current group
219 * offset from origin of drawing object
224 * rectangle with consideration of line width
227 HWPDOProperty property
;
231 HWPDOFreeForm freeform
;
232 HWPDOTextBox textbox
;
234 * extended from hwpw96
239 struct HWPDrawingObject
*next
;
241 * This exists for container object
243 struct HWPDrawingObject
*child
;
248 #endif /* _DRAWDEF_H_ */
250 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */