xref: /trunk/main/cui/source/dialogs/grfflt.src (revision ae2dc0fa)
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_CUSTOM ;
182        CustomUnitText = "%" ;
183        Last = 100 ;
184        SpinSize = 1 ;
185    };
186#define MA_Y7	MA_Y6 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
187	CheckBox DLG_FILTERSOLARIZE_CBX_INVERT
188	{
189	    HelpID = "cui:CheckBox:RID_SVX_GRFFILTER_DLG_SOLARIZE:DLG_FILTERSOLARIZE_CBX_INVERT";
190        Pos = MAP_APPFONT ( 12, 46 ) ;
191        Size = MAP_APPFONT ( 77, 12 ) ;
192        TabStop = TRUE ;
193        Text [ en-US ] = "~Invert" ;
194	};
195	OKButton BTN_OK
196    {
197        Pos = MAP_APPFONT ( 194, 6 ) ;
198        Size = MAP_APPFONT ( 50, 14 ) ;
199        TabStop = TRUE ;
200        DefButton = TRUE ;
201    };
202    CancelButton BTN_CANCEL
203    {
204        Pos = MAP_APPFONT ( 194, 23 ) ;
205        Size = MAP_APPFONT ( 50, 14 ) ;
206        TabStop = TRUE ;
207    };
208    HelpButton BTN_HELP
209    {
210        Pos = MAP_APPFONT ( 194, 43 ) ;
211        Size = MAP_APPFONT ( 50, 14 ) ;
212        TabStop = TRUE ;
213    };
214};
215
216// ----------------------
217// - DLG_FILTERSOLARIZE -
218// ----------------------
219
220ModalDialog RID_SVX_GRFFILTER_DLG_SEPIA
221{
222    HelpID = CMD_SID_GRFFILTER_SEPIA;
223    OutputSize = TRUE ;
224    Moveable = TRUE ;
225    SVLook = TRUE ;
226    Size = MAP_APPFONT ( 250, 100 ) ;
227
228    Text [ en-US ] = "Aging" ;
229
230    FixedLine FL_PARAMETER
231    {
232        Pos = MAP_APPFONT ( 6 , 3 ) ;
233        Size = MAP_APPFONT ( 182, RSC_CD_FIXEDLINE_HEIGHT ) ;
234		Text [ en-US ] = "Parameters";
235	};
236	Control CTL_PREVIEW
237	{
238        Pos = MAP_APPFONT ( 104 , 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP ) ;
239        Size = MAP_APPFONT ( 81, 73 ) ;
240	};
241#define MA_Y8	3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
242    FixedText DLG_FILTERSEPIA_FT_SEPIA
243    {
244        Pos = MAP_APPFONT ( 12 , MA_Y8 ) ;
245        Size = MAP_APPFONT ( 77 , 10 ) ;
246        Text [ en-US ] = "Aging degree" ;
247	};
248#define MA_Y9	MA_Y8 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y
249    MetricField DLG_FILTERSEPIA_MTR_SEPIA
250    {
251        HelpID = "cui:MetricField:RID_SVX_GRFFILTER_DLG_SEPIA:DLG_FILTERSEPIA_MTR_SEPIA";
252        Border = TRUE ;
253        Pos = MAP_APPFONT ( 12 , MA_Y9 ) ;
254        Size = MAP_APPFONT ( 35 , 12 ) ;
255        TabStop = TRUE ;
256        Right = TRUE ;
257        Repeat = TRUE ;
258        Spin = TRUE ;
259        Minimum = 1 ;
260        Maximum = 100 ;
261        StrictFormat = TRUE ;
262        Unit = FUNIT_CUSTOM ;
263        CustomUnitText = "%" ;
264        First = 1 ;
265        Last = 100 ;
266        SpinSize = 1 ;
267    };
268	OKButton BTN_OK
269    {
270        Pos = MAP_APPFONT ( 194, 6 ) ;
271        Size = MAP_APPFONT ( 50, 14 ) ;
272        TabStop = TRUE ;
273        DefButton = TRUE ;
274    };
275    CancelButton BTN_CANCEL
276    {
277        Pos = MAP_APPFONT ( 194, 23 ) ;
278        Size = MAP_APPFONT ( 50, 14 ) ;
279        TabStop = TRUE ;
280    };
281    HelpButton BTN_HELP
282    {
283        Pos = MAP_APPFONT ( 194, 43 ) ;
284        Size = MAP_APPFONT ( 50, 14 ) ;
285        TabStop = TRUE ;
286    };
287};
288
289// --------------------
290// - DLG_FILTERPOSTER -
291// --------------------
292
293ModalDialog RID_SVX_GRFFILTER_DLG_POSTER
294{
295    HelpID = CMD_SID_GRFFILTER_POSTER;
296    OutputSize = TRUE ;
297    Moveable = TRUE ;
298    SVLook = TRUE ;
299    Size = MAP_APPFONT ( 250, 100 ) ;
300
301    Text [ en-US ] = "Posterize" ;
302
303    FixedLine FL_PARAMETER
304    {
305        Pos = MAP_APPFONT ( 6 , 3 ) ;
306        Size = MAP_APPFONT ( 182, RSC_CD_FIXEDLINE_HEIGHT ) ;
307		Text [ en-US ] = "Parameters";
308	};
309	Control CTL_PREVIEW
310	{
311        Pos = MAP_APPFONT ( 104 , 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP ) ;
312        Size = MAP_APPFONT ( 81, 73 ) ;
313	};
314#define MA_Y10	3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
315    FixedText DLG_FILTERPOSTER_FT_POSTER
316    {
317        Pos = MAP_APPFONT ( 12 , MA_Y10 ) ;
318        Size = MAP_APPFONT ( 77 , 10 ) ;
319        Text [ en-US ] = "Poster colors" ;
320	};
321#define MA_Y11	MA_Y10 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y
322    NumericField DLG_FILTERPOSTER_NUM_POSTER
323    {
324        HelpID = "cui:NumericField:RID_SVX_GRFFILTER_DLG_POSTER:DLG_FILTERPOSTER_NUM_POSTER";
325        Border = TRUE ;
326        Pos = MAP_APPFONT ( 12 , MA_Y11 ) ;
327        Size = MAP_APPFONT ( 35 , 12 ) ;
328        TabStop = TRUE ;
329        Repeat = TRUE ;
330        Spin = TRUE ;
331        Minimum = 2 ;
332        Maximum = 64 ;
333        StrictFormat = TRUE ;
334        First = 2 ;
335        Last = 64 ;
336        SpinSize = 1 ;
337    };
338	OKButton BTN_OK
339    {
340        Pos = MAP_APPFONT ( 194, 6 ) ;
341        Size = MAP_APPFONT ( 50, 14 ) ;
342        TabStop = TRUE ;
343        DefButton = TRUE ;
344    };
345    CancelButton BTN_CANCEL
346    {
347        Pos = MAP_APPFONT ( 194, 23 ) ;
348        Size = MAP_APPFONT ( 50, 14 ) ;
349        TabStop = TRUE ;
350    };
351    HelpButton BTN_HELP
352    {
353        Pos = MAP_APPFONT ( 194, 43 ) ;
354        Size = MAP_APPFONT ( 50, 14 ) ;
355        TabStop = TRUE ;
356    };
357};
358
359// --------------------
360// - DLG_FILTEREMBOSS -
361// --------------------
362
363TabPage RID_SVX_GRFFILTER_DLG_EMBOSS_TAB
364{
365    HelpID = "cui:TabPage:RID_SVX_GRFFILTER_DLG_EMBOSS_TAB";
366    Pos = MAP_APPFONT ( 0, 0 ) ;
367    Size = MAP_APPFONT ( 0, 0 ) ;
368};
369
370ModalDialog RID_SVX_GRFFILTER_DLG_EMBOSS
371{
372    HelpID = CMD_SID_GRFFILTER_EMBOSS;
373    OutputSize = TRUE ;
374    Moveable = TRUE ;
375    SVLook = TRUE ;
376    Size = MAP_APPFONT ( 250, 100 ) ;
377
378    Text [ en-US ] = "Relief" ;
379
380    FixedLine FL_PARAMETER
381    {
382        Pos = MAP_APPFONT ( 6 , 3 ) ;
383        Size = MAP_APPFONT ( 182, RSC_CD_FIXEDLINE_HEIGHT ) ;
384		Text [ en-US ] = "Parameters";
385	};
386	Control CTL_PREVIEW
387	{
388        Pos = MAP_APPFONT ( 104 , 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP ) ;
389        Size = MAP_APPFONT ( 81, 73 ) ;
390	};
391#define MA_Y12	3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
392    FixedText DLG_FILTEREMBOSS_FT_LIGHT
393    {
394        Pos = MAP_APPFONT ( 12 , MA_Y12 ) ;
395        Size = MAP_APPFONT ( 77 , 10 ) ;
396        Text [ en-US ] = "Light source" ;
397	};
398#define MA_Y13	MA_Y12 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y
399    Control DLG_FILTEREMBOSS_CTL_LIGHT
400    {
401		HelpID = HID_GRFFILTER_EMBOSS_LIGHT ;
402        Border = TRUE ;
403        Pos = MAP_APPFONT ( 12 , MA_Y13 ) ;
404        Size = MAP_APPFONT ( 77 , 60 ) ;
405        TabStop = TRUE ;
406    };
407	OKButton BTN_OK
408    {
409        Pos = MAP_APPFONT ( 194, 6 ) ;
410        Size = MAP_APPFONT ( 50, 14 ) ;
411        TabStop = TRUE ;
412        DefButton = TRUE ;
413    };
414    CancelButton BTN_CANCEL
415    {
416        Pos = MAP_APPFONT ( 194, 23 ) ;
417        Size = MAP_APPFONT ( 50, 14 ) ;
418        TabStop = TRUE ;
419    };
420    HelpButton BTN_HELP
421    {
422        Pos = MAP_APPFONT ( 194, 43 ) ;
423        Size = MAP_APPFONT ( 50, 14 ) ;
424        TabStop = TRUE ;
425    };
426};
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459