1 /*************************************************************************
3 * The Contents of this file are made available subject to the terms of
4 * either of the following licenses
6 * - GNU Lesser General Public License Version 2.1
7 * - Sun Industry Standards Source License Version 1.1
9 * Sun Microsystems Inc., October, 2000
11 * GNU Lesser General Public License Version 2.1
12 * =============================================
13 * Copyright 2000 by Sun Microsystems, Inc.
14 * 901 San Antonio Road, Palo Alto, CA 94303, USA
16 * This library is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU Lesser General Public
18 * License version 2.1, as published by the Free Software Foundation.
20 * This library is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Lesser General Public License for more details.
25 * You should have received a copy of the GNU Lesser General Public
26 * License along with this library; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
31 * Sun Industry Standards Source License Version 1.1
32 * =================================================
33 * The contents of this file are subject to the Sun Industry Standards
34 * Source License Version 1.1 (the "License"); You may not use this file
35 * except in compliance with the License. You may obtain a copy of the
36 * License at http://www.openoffice.org/license.html.
38 * Software provided under this License is provided on an "AS IS" basis,
39 * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
40 * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
41 * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
42 * See the License for the specific provisions governing your rights and
43 * obligations concerning the Software.
45 * The Initial Developer of the Original Code is: IBM Corporation
47 * Copyright: 2008 by IBM Corporation
49 * All Rights Reserved.
51 * Contributor(s): _______________________________________
54 ************************************************************************/
56 #ifndef _LWPSTYLEDEF_H_
57 #define _LWPSTYLEDEF_H_
59 #define INVALID_ATTR_ID 0
60 #define EXTERNAL_ID 0x8000
61 #define EXTERNAL_MASK 0x7FFF
62 #define MAX_DESIGNERBORDERS 18
64 #define BORDER_SOLID 1
65 #define BORDER_SDASH 2
66 #define BORDER_LDASH 3
68 #define BORDER_THKWAVY 5
69 #define BORDER_LSDASH 6
70 #define BORDER_LSSDASH 7
72 #define BORDER_CIRCLE 9
73 #define BORDER_DBLWAVY 10
74 #define BORDER_DBLTHKWAVY 11
75 #define BORDER_STAR 12
76 #define BORDER_ROPE 13
77 #define BORDER_DECO1 14
78 #define BORDER_DECO2 15
79 #define BORDER_RAIN 16
81 #define BORDER_ROSE 18
82 #define BORDER_SUNF 19
83 #define BORDER_DECO3 20
84 #define BORDER_WARNING 21
86 #define BORDER_GIRDER 23
88 // User defined bitmap borders (200 - 400)
89 //========================================
93 #define BGRP_DOUBLE_ONE 21
94 #define BGRP_DOUBLE_TWO 22
99 #define BGRP_DBLWAVY 27
100 #define BGRP_THICK_WAVY 28
101 #define BGRP_THICK_DBLWAVY 29
102 #define BGRP_SDASH 30
103 #define BGRP_LDASH 31
104 #define BGRP_LDASH_SDASH 32
105 #define BGRP_LDASH_SDASH_SDASH 33
106 #define BGRP_BUTTONUP 34
107 #define BGRP_BUTTONDOWN 35
108 #define BGRP_13SPACE 36
109 #define BGRP_31SPACE 37
110 #define BGRP_DIAGONAL 38
113 #define BGRP_CIRCLE 41
116 #define BGRP_DECO1 44
117 #define BGRP_DECO2 45
122 #define BGRP_DECO3 50
123 #define BGRP_WARNING 51
125 #define BGRP_GIRDER 53
127 #define UNIT_4_96 ((UNIT)196608L) //INCHES(4/96)
128 #define UNIT_13_96 ((UNIT)638976L) //INCHES(13/96)
129 #define UNIT_14_96 ((UNIT)688128L) //INCHES(14/96)
130 #define UNIT_15_96 ((UNIT)737280L) //INCHES(15/96)
131 #define UNIT_17_96 ((UNIT)835584L) //INCHES(17/96)
132 #define UNIT_18_96 ((UNIT)884736L) //INCHES(18/96)
133 #define UNIT_19_96 ((UNIT)933888L) //INCHES(19/96)
134 #define UNIT_20_96 ((UNIT)983040L) //INCHES(20/96)
135 #define UNIT_21_96 ((UNIT)1032192L) //INCHES(21/96)
136 #define UNIT_22_96 ((UNIT)1081344L) //INCHES(22/96)
137 #define UNIT_25_96 ((UNIT)1228800L) //INCHES(25/96)
138 #define UNIT_28_96 ((UNIT)1376256L) //INCHES(28/96)
139 #define UNIT_34_96 ((UNIT)1671108L) //INCHES(34/96)
140 #define UNIT_42_96 ((UNIT)2064384L) //INCHES(42/96)
141 #define UNIT_44_96 ((UNIT)2162688L) //INCHES(44/96)
142 #define UNIT_48_96 ((UNIT)2359296L) //INCHES(48/96)
143 #define UNIT_56_96 ((UNIT)2752512L) //INCHES(56/96)
144 #define UNIT_64_96 ((UNIT)3145728L) //INCHES(64/96)
146 #define ROPE_AMPLITUDE UNIT_18_96
147 #define ROPE_PERIOD UNIT_20_96
148 #define DECO1_AMPLITUDE UNIT_17_96
149 #define DECO1_PERIOD UNIT_4_96
150 #define DECO2_AMPLITUDE UNIT_18_96
151 #define DECO2_PERIOD UNIT_64_96
152 #define RAIN_AMPLITUDE UNIT_22_96
153 #define RAIN_PERIOD UNIT_28_96
154 #define PIN_AMPLITUDE UNIT_15_96
155 #define PIN_PERIOD UNIT_4_96
156 #define ROSE_AMPLITUDE UNIT_34_96
157 #define ROSE_PERIOD UNIT_64_96
158 #define SUNF_AMPLITUDE UNIT_25_96
159 #define SUNF_PERIOD UNIT_48_96
160 #define DECO3_AMPLITUDE UNIT_14_96
161 #define DECO3_PERIOD UNIT_20_96
163 #define ROPE_JOIN_W UNIT_18_96
164 #define ROPE_JOIN_H UNIT_18_96
165 #define DECO1_JOIN_W UNIT_56_96
166 #define DECO1_JOIN_H UNIT_44_96
167 #define DECO2_JOIN_W UNIT_64_96
168 #define DECO2_JOIN_H UNIT_64_96
169 #define RAIN_JOIN_W UNIT_48_96
170 #define RAIN_JOIN_H UNIT_48_96
171 #define PIN_JOIN_W UNIT_42_96
172 #define PIN_JOIN_H UNIT_42_96
173 #define ROSE_JOIN_W UNIT_48_96
174 #define ROSE_JOIN_H UNIT_48_96
175 #define SUNF_JOIN_W UNIT_48_96
176 #define SUNF_JOIN_H UNIT_48_96
177 #define DECO3_JOIN_W UNIT_56_96
178 #define DECO3_JOIN_H UNIT_56_96
180 // User defined bitmap border groups 200 - 400
181 //============================================
183 /* background patterns */
184 #define BACK_TRANSPARENT 0
186 #define BACK_PATTERN 2
187 #define BACK_10PCTDOTS 3
188 #define BACK_30PCTDOTS 4
189 #define BACK_50PCTDOTS 5
190 #define BACK_75PCTDOTS 6
191 #define BACK_90PCTDOTS 7
192 #define BACK_90PCTINVDOTS 8
193 #define BACK_75PCTINVDOTS 9
194 #define BACK_50PCTINVDOTS 10
195 #define BACK_30PCTINVDOTS 11
196 #define BACK_10PCTINVDOTS 12
197 #define BACK_MARBLES 13
198 #define BACK_STARRYNIGHT 14
199 #define BACK_DIAGTHICK 15
200 #define BACK_DIAGTHIN 16
201 #define BACK_DIAGDOUBLE 17
202 #define BACK_DIAGDOUBLENARROW 18
203 #define BACK_DIAGTRIPLE 19
204 #define BACK_DIAGSINGLEWIDE 20
205 #define BACK_DIAGTHICKINV 21
206 #define BACK_DIAGTHININV 22
207 #define BACK_DIAGDOUBLEINV 23
208 #define BACK_DIAGDOUBLENARROWINV 24
209 #define BACK_DIAGTRIPLEINV 25
210 #define BACK_DIAGSINGLEWIDEINV 26
211 #define BACK_CHAINLINKSMALLINV 27
212 #define BACK_CHAINLINKSMALL 28
213 #define BACK_CHAINLINKMEDIUM 29
214 #define BACK_CHAINLINKLARGE 30
215 #define BACK_HORZSTRIPE1 31
216 #define BACK_HORZSTRIPE2 32
217 #define BACK_HORZSTRIPE3 33
218 #define BACK_HORZSTRIPE4 34
219 #define BACK_VERTSTRIPE1 35
220 #define BACK_VERTSTRIPE2 36
221 #define BACK_VERTSTRIPE3 37
222 #define BACK_VERTSTRIPE4 38
223 #define BACK_GRIDSMALL 39
224 #define BACK_GRIDMEDIUM 40
225 #define BACK_GRIDLARGE 41
226 #define BACK_BOXDOT 42
227 #define BACK_GOLFGREEN 43
229 #define BACK_HORZWEAVE 45
230 #define BACK_APPLEPIE 46
231 #define BACK_BRICK 47
232 #define BACK_DIAGBRICK 48
233 #define BACK_CHECKER1 49
234 #define BACK_CHECKER2 50
235 #define BACK_CHECKER3 51
236 #define BACK_CHECKER4 52
237 #define BACK_CHECKER5 53
238 #define BACK_SNOWFLAKE 54
239 #define BACK_MARGARITA 55
240 #define BACK_SIDEHARP 56
241 #define BACK_SCALES 57
242 #define BACK_TAYLOR 58
243 #define BACK_BUBBLES 59
244 #define BACK_ARGYLE 60
245 #define BACK_INDIAN1 61
246 #define BACK_INDIAN3 62
247 #define BACK_PEACHPIE 63
248 #define BACK_GRADIENT1 64
249 #define BACK_GRADIENT2 65
250 #define BACK_GRADIENT3 66
251 #define BACK_GRADIENT4 67
252 #define BACK_GRADIENT5 68
253 #define BACK_GRADIENT6 69
254 #define BACK_GRADIENT7 70
255 #define BACK_GRADIENT8 71