LibreOffice Module hwpfilter (master) 1
drawdef.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#ifndef INCLUDED_HWPFILTER_SOURCE_DRAWDEF_H
21#define INCLUDED_HWPFILTER_SOURCE_DRAWDEF_H
22
23#include "hwplib.h"
24#include <memory>
25
26class HWPPara;
27
32{
45};
46
47#define HWPDO_PAT_TYPE_BITS 0xFF000000
48
49#define HWPDO_PAT_SOLID 0x00000000
50
51#define HWPDO_COLOR_NONE 0x10000000
52
53#define HWPDO_FLAG_DRAW_PIE 0x00000002
54
55
56#define HWPDO_FLAG_GRADATION 0x00010000
57#define HWPDO_FLAG_ROTATION 0x00020000
58#define HWPDO_FLAG_BITMAP 0x00040000
59#define HWPDO_FLAG_AS_TEXTBOX 0x00080000
60#define HWPDO_FLAG_WATERMARK 0x00100000
61
69{
73 unsigned int line_color;
75 unsigned int fill_color;
77 unsigned int pattern_color;
81};
82
87{
90 int gstyle;
91 int angle;
94 int nstep;
95};
96
101{
104 char szPatternFile[260 + 1];
106};
107
112{
116};
117
122{
123 int line_pstyle; /* Style of the middle of line */
124 int line_hstyle; /* Style of the end of line */
125 int line_tstyle; /* Style of the start of line */
126 unsigned int line_color;
128 unsigned int fill_color;
130 unsigned int pattern_color;
134
135 /* Rotation properties */
139
140 /* Gradation properties */
141
145 int angle;
148 int nstep;
149
150 /* Watermark */
154
155 /* As TextBox */
157
158
161 char szPatternFile[260 + 1];
163};
164
169{
171};
172
177{
178 int npt;
180};
181
186{
188};
189
194{
196};
197
202{
206 int type;
221 union
222 {
230 }
232 std::unique_ptr<struct HWPDrawingObject> next;
236 std::unique_ptr<struct HWPDrawingObject> child;
237 int index;
240};
241#endif // INCLUDED_HWPFILTER_SOURCE_DRAWDEF_H
242
243/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
unsigned int uint
It represents the paragraph.
Definition: hpara.h:69
objtype
Constant for drawing objects.
Definition: drawdef.h:32
@ HWPDO_ARC
Definition: drawdef.h:37
@ HWPDO_CLOSED_FREEFORM
Definition: drawdef.h:43
@ HWPDO_ELLIPSE
Definition: drawdef.h:36
@ HWPDO_ADVANCED_ELLIPSE
Definition: drawdef.h:41
@ HWPDO_CURVE
Definition: drawdef.h:40
@ HWPDO_FREEFORM
Definition: drawdef.h:38
@ HWPDO_LINE
Definition: drawdef.h:34
@ HWPDO_CONTAINER
Definition: drawdef.h:33
@ HWPDO_ADVANCED_ARC
Definition: drawdef.h:42
@ HWPDO_TEXTBOX
Definition: drawdef.h:39
@ HWPDO_RECT
Definition: drawdef.h:35
@ HWPDO_NITEMS
Definition: drawdef.h:44
int hunit
Definition: hwplib.h:37
Basic properties for drawing objects.
Definition: drawdef.h:69
unsigned int pattern_color
Definition: drawdef.h:77
unsigned int fill_color
Definition: drawdef.h:75
hunit line_width
Definition: drawdef.h:74
uint pattern_type
Definition: drawdef.h:76
unsigned int line_color
Definition: drawdef.h:73
Bitmap properties for drawing object.
Definition: drawdef.h:101
ZZPoint offset2
Definition: drawdef.h:103
char szPatternFile[260+1]
Definition: drawdef.h:104
ZZPoint offset1
Definition: drawdef.h:102
char pictype
Definition: drawdef.h:105
Gradation properties for drawing object.
Definition: drawdef.h:87
Arc Object.
Definition: drawdef.h:194
ZZPoint radial[2]
Definition: drawdef.h:195
Polygon or Polyline Object.
Definition: drawdef.h:177
ZZPoint * pt
Definition: drawdef.h:179
Line Object.
Definition: drawdef.h:169
uint flip
Definition: drawdef.h:170
All properties for drawing object.
Definition: drawdef.h:122
int center_y
Definition: drawdef.h:147
unsigned int fill_color
Definition: drawdef.h:128
int fromcolor
Definition: drawdef.h:142
uint pattern_type
Definition: drawdef.h:129
hunit line_width
Definition: drawdef.h:127
int line_pstyle
Definition: drawdef.h:123
unsigned int pattern_color
Definition: drawdef.h:130
int contrast
Definition: drawdef.h:152
int luminance
Definition: drawdef.h:151
HWPPara * pPara
Definition: drawdef.h:156
int greyscale
Definition: drawdef.h:153
ZZPoint offset1
Definition: drawdef.h:159
char pictype
Definition: drawdef.h:162
unsigned int line_color
Definition: drawdef.h:126
ZZPoint offset2
Definition: drawdef.h:160
hunit hmargin
Definition: drawdef.h:131
int rot_originy
Definition: drawdef.h:137
int center_x
Definition: drawdef.h:146
int line_tstyle
Definition: drawdef.h:125
int rot_originx
Definition: drawdef.h:136
hunit vmargin
Definition: drawdef.h:132
char szPatternFile[260+1]
Definition: drawdef.h:161
int line_hstyle
Definition: drawdef.h:124
ZZParall parall
Definition: drawdef.h:138
Textbox Object.
Definition: drawdef.h:186
HWPPara * h
Definition: drawdef.h:187
Common header for drawing object.
Definition: drawdef.h:202
ZZPoint offset2
offset from origin of drawing object
Definition: drawdef.h:214
std::unique_ptr< struct HWPDrawingObject > next
Definition: drawdef.h:232
HWPDOProperty property
Definition: drawdef.h:220
HWPDOFreeForm freeform
Definition: drawdef.h:224
int type
type of drawing object
Definition: drawdef.h:206
std::unique_ptr< struct HWPDrawingObject > child
This exists for container object.
Definition: drawdef.h:236
HWPDOLine line_arc
Definition: drawdef.h:223
HWPDOArc arc
extended from hwpw96
Definition: drawdef.h:229
ZZRect vrect
rectangle with consideration of line width
Definition: drawdef.h:219
ZZSize extent
Definition: drawdef.h:215
union HWPDrawingObject::@0 u
ZZPoint offset
offset from origin of current group
Definition: drawdef.h:210
HWPDOTextBox textbox
Definition: drawdef.h:225
Rotation properties for drawing object.
Definition: drawdef.h:112
ZZParall parall
Definition: drawdef.h:115
Parall.
Definition: hwplib.h:82
Point.
Definition: hwplib.h:57
Rectangle.
Definition: hwplib.h:73
Size.
Definition: hwplib.h:65