xref: /trunk/main/cui/source/dialogs/grfflt.src (revision 2a325322)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#include <svtools/controldims.hrc>
25#include <cuires.hrc>
26#include "helpid.hrc"
27#include "grfflt.hrc"
28#include <svx/dialogs.hrc>
29
30// --------------------
31// - DLG_FILTERMOSAIC -
32// --------------------
33
34ModalDialog RID_SVX_GRFFILTER_DLG_MOSAIC
35{
36	HelpID = CMD_SID_GRFFILTER_MOSAIC ;
37	OutputSize = TRUE ;
38	Moveable = TRUE ;
39	SVLook = TRUE ;
40	Size = MAP_APPFONT ( 250, 100 ) ;
41
42	Text [ en-US ] = "Mosaic" ;
43
44	FixedLine FL_PARAMETER
45	{
46		Pos = MAP_APPFONT ( 6, 3 ) ;
47		Size = MAP_APPFONT ( 182, RSC_CD_FIXEDLINE_HEIGHT ) ;
48		Text [ en-US ] = "Parameters" ;
49	};
50	Control CTL_PREVIEW
51	{
52		Pos = MAP_APPFONT ( 104, 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP ) ;
53		Size = MAP_APPFONT ( 81, 73 ) ;
54	};
55#define MA_Y0	3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
56	FixedText DLG_FILTERMOSAIC_FT_WIDTH
57	{
58		Pos = MAP_APPFONT ( 12, MA_Y0 ) ;
59		Size = MAP_APPFONT ( 77, 10 ) ;
60		Text [ en-US ] = "~Width" ;
61	};
62#define MA_Y1	MA_Y0 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y
63	MetricField DLG_FILTERMOSAIC_MTR_WIDTH
64	{
65		HelpID = "cui:MetricField:RID_SVX_GRFFILTER_DLG_MOSAIC:DLG_FILTERMOSAIC_MTR_WIDTH" ;
66		Border = TRUE ;
67		Pos = MAP_APPFONT ( 12, MA_Y1 ) ;
68		Size = MAP_APPFONT ( 35, 12 ) ;
69		TabStop = TRUE ;
70		Repeat = TRUE ;
71		Spin = TRUE ;
72		Minimum = 1 ;
73		Maximum = 999 ;
74		StrictFormat = TRUE ;
75		Unit = FUNIT_CUSTOM ;
76		CustomUnitText = " Pixel" ;
77		First = 1 ;
78		Last = 999 ;
79		SpinSize = 1 ;
80	};
81#define MA_Y2	MA_Y1 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
82	FixedText DLG_FILTERMOSAIC_FT_HEIGHT
83	{
84		Pos = MAP_APPFONT ( 12, MA_Y2 ) ;
85		Size = MAP_APPFONT ( 77, 10 ) ;
86		Text [ en-US ] = "H~eight" ;
87	};
88#define MA_Y3	MA_Y2 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y
89	MetricField DLG_FILTERMOSAIC_MTR_HEIGHT
90	{
91		HelpID = "cui:MetricField:RID_SVX_GRFFILTER_DLG_MOSAIC:DLG_FILTERMOSAIC_MTR_HEIGHT" ;
92		Border = TRUE ;
93		Pos = MAP_APPFONT ( 12, MA_Y3 ) ;
94		Size = MAP_APPFONT ( 35, 12 ) ;
95		TabStop = TRUE ;
96		Repeat = TRUE ;
97		Spin = TRUE ;
98		Minimum = 1 ;
99		Maximum = 999 ;
100		StrictFormat = TRUE ;
101		Unit = FUNIT_CUSTOM ;
102		CustomUnitText = " Pixel" ;
103		First = 1 ;
104		Last = 999 ;
105		SpinSize = 1 ;
106	};
107#define MA_Y4	MA_Y3 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_Y
108	CheckBox DLG_FILTERMOSAIC_CBX_EDGES
109	{
110		HelpID = "cui:CheckBox:RID_SVX_GRFFILTER_DLG_MOSAIC:DLG_FILTERMOSAIC_CBX_EDGES" ;
111		Pos = MAP_APPFONT ( 12, MA_Y4 ) ;
112		Size = MAP_APPFONT ( 91, 12 ) ;
113		TabStop = TRUE ;
114		Text [ en-US ] = "E~nhance edges" ;
115	};
116	OKButton BTN_OK
117	{
118		Pos = MAP_APPFONT ( 194, 6 ) ;
119		Size = MAP_APPFONT ( 50, 14 ) ;
120		TabStop = TRUE ;
121		DefButton = TRUE ;
122	};
123	CancelButton BTN_CANCEL
124	{
125		Pos = MAP_APPFONT ( 194, 23 ) ;
126		Size = MAP_APPFONT ( 50, 14 ) ;
127		TabStop = TRUE ;
128	};
129	HelpButton BTN_HELP
130	{
131		Pos = MAP_APPFONT ( 194, 43 ) ;
132		Size = MAP_APPFONT ( 50, 14 ) ;
133		TabStop = TRUE ;
134	};
135};
136
137// ----------------------
138// - DLG_FILTERSOLARIZE -
139// ----------------------
140
141ModalDialog RID_SVX_GRFFILTER_DLG_SOLARIZE
142{
143	HelpID = CMD_SID_GRFFILTER_SOLARIZE ;
144	OutputSize = TRUE ;
145	Moveable = TRUE ;
146	SVLook = TRUE ;
147	Size = MAP_APPFONT ( 250, 100 ) ;
148
149	Text [ en-US ] = "Solarization" ;
150
151	FixedLine FL_PARAMETER
152	{
153		Pos = MAP_APPFONT ( 6, 3 ) ;
154		Size = MAP_APPFONT ( 182, RSC_CD_FIXEDLINE_HEIGHT ) ;
155		Text [ en-US ] = "Parameters" ;
156	};
157	Control CTL_PREVIEW
158	{
159		Pos = MAP_APPFONT ( 104, 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP ) ;
160		Size = MAP_APPFONT ( 81, 73 ) ;
161	};
162#define MA_Y5	3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
163	FixedText DLG_FILTERSOLARIZE_FT_THRESHOLD
164	{
165		Pos = MAP_APPFONT ( 12, MA_Y5 ) ;
166		Size = MAP_APPFONT ( 77, 10 ) ;
167		Text [ en-US ] = "Threshold ~value" ;
168	};
169#define MA_Y6	MA_Y5 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y
170	MetricField DLG_FILTERSOLARIZE_MTR_THRESHOLD
171	{
172		HelpID = "cui:MetricField:RID_SVX_GRFFILTER_DLG_SOLARIZE:DLG_FILTERSOLARIZE_MTR_THRESHOLD" ;
173		Border = TRUE ;
174		Pos = MAP_APPFONT ( 12, MA_Y6 ) ;
175		Size = MAP_APPFONT ( 35, 12 ) ;
176		TabStop = TRUE ;
177		Repeat = TRUE ;
178		Spin = TRUE ;
179		Maximum = 100 ;
180		StrictFormat = TRUE ;
181		Unit = FUNIT_PERCENT ;
182		Last = 100 ;
183		SpinSize = 1 ;
184	};
185#define MA_Y7	MA_Y6 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
186	CheckBox DLG_FILTERSOLARIZE_CBX_INVERT
187	{
188		HelpID = "cui:CheckBox:RID_SVX_GRFFILTER_DLG_SOLARIZE:DLG_FILTERSOLARIZE_CBX_INVERT" ;
189		Pos = MAP_APPFONT ( 12, 46 ) ;
190		Size = MAP_APPFONT ( 77, 12 ) ;
191		TabStop = TRUE ;
192		Text [ en-US ] = "~Invert" ;
193	};
194	OKButton BTN_OK
195	{
196		Pos = MAP_APPFONT ( 194, 6 ) ;
197		Size = MAP_APPFONT ( 50, 14 ) ;
198		TabStop = TRUE ;
199		DefButton = TRUE ;
200	};
201	CancelButton BTN_CANCEL
202	{
203		Pos = MAP_APPFONT ( 194, 23 ) ;
204		Size = MAP_APPFONT ( 50, 14 ) ;
205		TabStop = TRUE ;
206	};
207	HelpButton BTN_HELP
208	{
209		Pos = MAP_APPFONT ( 194, 43 ) ;
210		Size = MAP_APPFONT ( 50, 14 ) ;
211		TabStop = TRUE ;
212	};
213};
214
215// ----------------------
216// - DLG_FILTERSOLARIZE -
217// ----------------------
218
219ModalDialog RID_SVX_GRFFILTER_DLG_SEPIA
220{
221	HelpID = CMD_SID_GRFFILTER_SEPIA ;
222	OutputSize = TRUE ;
223	Moveable = TRUE ;
224	SVLook = TRUE ;
225	Size = MAP_APPFONT ( 250, 100 ) ;
226
227	Text [ en-US ] = "Aging" ;
228
229	FixedLine FL_PARAMETER
230	{
231		Pos = MAP_APPFONT ( 6, 3 ) ;
232		Size = MAP_APPFONT ( 182, RSC_CD_FIXEDLINE_HEIGHT ) ;
233		Text [ en-US ] = "Parameters" ;
234	};
235	Control CTL_PREVIEW
236	{
237		Pos = MAP_APPFONT ( 104, 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP ) ;
238		Size = MAP_APPFONT ( 81, 73 ) ;
239	};
240#define MA_Y8	3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
241	FixedText DLG_FILTERSEPIA_FT_SEPIA
242	{
243		Pos = MAP_APPFONT ( 12, MA_Y8 ) ;
244		Size = MAP_APPFONT ( 77, 10 ) ;
245		Text [ en-US ] = "Aging degree" ;
246	};
247#define MA_Y9	MA_Y8 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y
248	MetricField DLG_FILTERSEPIA_MTR_SEPIA
249	{
250		HelpID = "cui:MetricField:RID_SVX_GRFFILTER_DLG_SEPIA:DLG_FILTERSEPIA_MTR_SEPIA" ;
251		Border = TRUE ;
252		Pos = MAP_APPFONT ( 12, MA_Y9 ) ;
253		Size = MAP_APPFONT ( 35, 12 ) ;
254		TabStop = TRUE ;
255		Right = TRUE ;
256		Repeat = TRUE ;
257		Spin = TRUE ;
258		Minimum = 1 ;
259		Maximum = 100 ;
260		StrictFormat = TRUE ;
261		Unit = FUNIT_PERCENT ;
262		First = 1 ;
263		Last = 100 ;
264		SpinSize = 1 ;
265	};
266	OKButton BTN_OK
267	{
268		Pos = MAP_APPFONT ( 194, 6 ) ;
269		Size = MAP_APPFONT ( 50, 14 ) ;
270		TabStop = TRUE ;
271		DefButton = TRUE ;
272	};
273	CancelButton BTN_CANCEL
274	{
275		Pos = MAP_APPFONT ( 194, 23 ) ;
276		Size = MAP_APPFONT ( 50, 14 ) ;
277		TabStop = TRUE ;
278	};
279	HelpButton BTN_HELP
280	{
281		Pos = MAP_APPFONT ( 194, 43 ) ;
282		Size = MAP_APPFONT ( 50, 14 ) ;
283		TabStop = TRUE ;
284	};
285};
286
287// --------------------
288// - DLG_FILTERPOSTER -
289// --------------------
290
291ModalDialog RID_SVX_GRFFILTER_DLG_POSTER
292{
293	HelpID = CMD_SID_GRFFILTER_POSTER ;
294	OutputSize = TRUE ;
295	Moveable = TRUE ;
296	SVLook = TRUE ;
297	Size = MAP_APPFONT ( 250, 100 ) ;
298
299	Text [ en-US ] = "Posterize" ;
300
301	FixedLine FL_PARAMETER
302	{
303		Pos = MAP_APPFONT ( 6, 3 ) ;
304		Size = MAP_APPFONT ( 182, RSC_CD_FIXEDLINE_HEIGHT ) ;
305		Text [ en-US ] = "Parameters" ;
306	};
307	Control CTL_PREVIEW
308	{
309		Pos = MAP_APPFONT ( 104, 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP ) ;
310		Size = MAP_APPFONT ( 81, 73 ) ;
311	};
312#define MA_Y10	3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
313	FixedText DLG_FILTERPOSTER_FT_POSTER
314	{
315		Pos = MAP_APPFONT ( 12, MA_Y10 ) ;
316		Size = MAP_APPFONT ( 77, 10 ) ;
317		Text [ en-US ] = "Poster colors" ;
318	};
319#define MA_Y11	MA_Y10 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y
320	NumericField DLG_FILTERPOSTER_NUM_POSTER
321	{
322		HelpID = "cui:NumericField:RID_SVX_GRFFILTER_DLG_POSTER:DLG_FILTERPOSTER_NUM_POSTER" ;
323		Border = TRUE ;
324		Pos = MAP_APPFONT ( 12, MA_Y11 ) ;
325		Size = MAP_APPFONT ( 35, 12 ) ;
326		TabStop = TRUE ;
327		Repeat = TRUE ;
328		Spin = TRUE ;
329		Minimum = 2 ;
330		Maximum = 64 ;
331		StrictFormat = TRUE ;
332		First = 2 ;
333		Last = 64 ;
334		SpinSize = 1 ;
335	};
336	OKButton BTN_OK
337	{
338		Pos = MAP_APPFONT ( 194, 6 ) ;
339		Size = MAP_APPFONT ( 50, 14 ) ;
340		TabStop = TRUE ;
341		DefButton = TRUE ;
342	};
343	CancelButton BTN_CANCEL
344	{
345		Pos = MAP_APPFONT ( 194, 23 ) ;
346		Size = MAP_APPFONT ( 50, 14 ) ;
347		TabStop = TRUE ;
348	};
349	HelpButton BTN_HELP
350	{
351		Pos = MAP_APPFONT ( 194, 43 ) ;
352		Size = MAP_APPFONT ( 50, 14 ) ;
353		TabStop = TRUE ;
354	};
355};
356
357// --------------------
358// - DLG_FILTEREMBOSS -
359// --------------------
360
361TabPage RID_SVX_GRFFILTER_DLG_EMBOSS_TAB
362{
363	HelpID = "cui:TabPage:RID_SVX_GRFFILTER_DLG_EMBOSS_TAB" ;
364	Pos = MAP_APPFONT ( 0, 0 ) ;
365	Size = MAP_APPFONT ( 0, 0 ) ;
366};
367
368ModalDialog RID_SVX_GRFFILTER_DLG_EMBOSS
369{
370	HelpID = CMD_SID_GRFFILTER_EMBOSS ;
371	OutputSize = TRUE ;
372	Moveable = TRUE ;
373	SVLook = TRUE ;
374	Size = MAP_APPFONT ( 250, 100 ) ;
375
376	Text [ en-US ] = "Relief" ;
377
378	FixedLine FL_PARAMETER
379	{
380		Pos = MAP_APPFONT ( 6, 3 ) ;
381		Size = MAP_APPFONT ( 182, RSC_CD_FIXEDLINE_HEIGHT ) ;
382		Text [ en-US ] = "Parameters" ;
383	};
384	Control CTL_PREVIEW
385	{
386		Pos = MAP_APPFONT ( 104, 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP ) ;
387		Size = MAP_APPFONT ( 81, 73 ) ;
388	};
389#define MA_Y12	3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
390	FixedText DLG_FILTEREMBOSS_FT_LIGHT
391	{
392		Pos = MAP_APPFONT ( 12, MA_Y12 ) ;
393		Size = MAP_APPFONT ( 77, 10 ) ;
394		Text [ en-US ] = "Light source" ;
395	};
396#define MA_Y13	MA_Y12 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y
397	Control DLG_FILTEREMBOSS_CTL_LIGHT
398	{
399		HelpID = HID_GRFFILTER_EMBOSS_LIGHT ;
400		Border = TRUE ;
401		Pos = MAP_APPFONT ( 12, MA_Y13 ) ;
402		Size = MAP_APPFONT ( 77, 60 ) ;
403		TabStop = TRUE ;
404	};
405	OKButton BTN_OK
406	{
407		Pos = MAP_APPFONT ( 194, 6 ) ;
408		Size = MAP_APPFONT ( 50, 14 ) ;
409		TabStop = TRUE ;
410		DefButton = TRUE ;
411	};
412	CancelButton BTN_CANCEL
413	{
414		Pos = MAP_APPFONT ( 194, 23 ) ;
415		Size = MAP_APPFONT ( 50, 14 ) ;
416		TabStop = TRUE ;
417	};
418	HelpButton BTN_HELP
419	{
420		Pos = MAP_APPFONT ( 194, 43 ) ;
421		Size = MAP_APPFONT ( 50, 14 ) ;
422		TabStop = TRUE ;
423	};
424};
425
426// ********************************************************************** EOF
427