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 .
20 #ifndef INCLUDED_HWPFILTER_SOURCE_DRAWDEF_H
21 #define INCLUDED_HWPFILTER_SOURCE_DRAWDEF_H
28 * Constant for drawing objects
40 HWPDO_ADVANCED_ELLIPSE
,
42 HWPDO_CLOSED_FREEFORM
,
46 #define HWPDO_PAT_TYPE_BITS 0xFF000000
48 #define HWPDO_PAT_SOLID 0x00000000
50 #define HWPDO_COLOR_NONE 0x10000000
52 #define HWPDO_FLAG_DRAW_PIE 0x00000002
55 #define HWPDO_FLAG_GRADATION 0x00010000
56 #define HWPDO_FLAG_ROTATION 0x00020000
57 #define HWPDO_FLAG_BITMAP 0x00040000
58 #define HWPDO_FLAG_AS_TEXTBOX 0x00080000
59 #define HWPDO_FLAG_WATERMARK 0x00100000
62 * @short Basic properties for drawing objects
64 * The order of pstyle, hstyle and tstyle is important.
67 struct BAREHWPDOProperty
72 unsigned int line_color
;
74 unsigned int fill_color
;
76 unsigned int pattern_color
;
83 * @short Gradation properties for drawing object
85 struct GradationProperty
97 * @short Bitmap properties for drawing object
103 char szPatternFile
[260 + 1];
108 * @short Rotation properties for drawing object
110 struct RotationProperty
118 * @short All properties for drawing object
122 int line_pstyle
; /* 선 중간 모양 */
123 int line_hstyle
; /* 끝 화살표 모양 */
124 int line_tstyle
; /* 시작 모양 */
125 unsigned int line_color
;
127 unsigned int fill_color
;
129 unsigned int pattern_color
;
134 /* Lotation properties */
139 /* Gradation properties */
160 char szPatternFile
[260 + 1];
173 * @short Polygon or Polyline Object
182 * @short Textbox Object
198 * @short Common header for drawing object
200 struct HWPDrawingObject
203 * type of drawing object
207 * offset from origin of current group
211 * offset from origin of drawing object
216 * rectangle with consideration of line width
219 HWPDOProperty property
;
223 HWPDOFreeForm freeform
;
224 HWPDOTextBox textbox
;
226 * extended from hwpw96
231 struct HWPDrawingObject
*next
;
233 * This exists for container object
235 struct HWPDrawingObject
*child
;
240 #endif // INCLUDED_HWPFILTER_SOURCE_DRAWDEF_H
242 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */