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#include <sfx2/propertypanel.hrc>
23#include <svx/dialogs.hrc>
24#include "helpid.hrc"
25#include "areapropertypage.hrc"
26
27#define MASKCOLOR		MaskColor = Color{ Red = 0xffff ; Green = 0xff00 ; Blue = 0xff00 ; };
28#define TOOLBOX_WIDTH		50
29#define TOOLBOX_HEIGHT		17
30
31Control RID_SIDEBAR_AREA_PANEL
32{
33	OutputSize = TRUE;
34	DialogControl = TRUE;
35	Border = FALSE;
36	Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, SECTIONPAGE_MARGIN_VERTICAL_TOP + SECTIONPAGE_MARGIN_VERTICAL_BOT + 2*( FIXED_TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL + CBOX_HEIGHT) + CONTROL_SPACING_VERTICAL );
37	HelpID = HID_PROPERTYPANEL_AREA_SECTION ;
38	Text [ en-US ] = "Area";
39
40	FixedText FT_COLOR_LIST
41	{
42		Pos		= MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL , SECTIONPAGE_MARGIN_VERTICAL_TOP  ) ;
43        Size    = MAP_APPFONT ( FIXED_TEXT_WIDTH + 50, FIXED_TEXT_HEIGHT ) ;
44		Text [ en-US ] = "~Fill:";
45	};
46	FixedText FL_TRSP_TEXT
47	{
48		Pos  	= MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL , SECTIONPAGE_MARGIN_VERTICAL_TOP + FIXED_TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL + CBOX_HEIGHT + CONTROL_SPACING_VERTICAL ) ;
49        Size    = MAP_APPFONT ( FIXED_TEXT_WIDTH + 50, FIXED_TEXT_HEIGHT ) ;
50		Text [ en-US ] = "~Transparency:";
51	};
52	ToolBox TB_COLOR
53	{
54		HelpID = HID_PPROPERTYPANEL_AREA_TBX_COLOR;
55		SVLook = TRUE ;
56		Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + MBOX_WIDTH + CONTROL_SPACING_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + FIXED_TEXT_HEIGHT + 1) ;
57		Size = MAP_APPFONT (TOOLBOX_WIDTH ,TOOLBOX_HEIGHT ) ;
58		TabStop = TRUE ;
59		Text = "Color";
60		ItemList =
61		{
62			ToolBoxItem
63			{
64				Identifier = TBI_COLOR ;
65				HelpID = HID_PPROPERTYPANEL_AREA_TBI_COLOR;
66				DropDown = TRUE ;
67				Text = "Color" ;
68			};
69		};
70	};
71	String STR_HELP_COLOR
72	{
73		Text [ en-US ] = "Select the color to apply." ;
74	};
75	String STR_HELP_TYPE
76	{
77		Text [en-US] = "Select the fill type to apply.";
78	};
79	String STR_HELP_ATTR
80	{
81		Text [en-US] = "Select the effect to apply.";
82	};
83	Image IMG_AXIAL
84	{
85	    ImageBitmap = Bitmap{File = "axial.png";};
86	};
87	Image IMG_ELLI
88	{
89	    ImageBitmap = Bitmap{File = "ellipsoid.png";};
90	};
91	Image IMG_QUAD
92	{
93	    ImageBitmap = Bitmap{File = "Quadratic.png";};
94	};
95	Image IMG_RADIAL
96	{
97	    ImageBitmap = Bitmap{File = "radial.png";};
98	};
99	Image IMG_SQUARE
100	{
101	    ImageBitmap = Bitmap{File = "Square.png";};
102	};
103	Image IMG_LINEAR
104	{
105	    ImageBitmap = Bitmap{File = "linear.png";};
106	};
107	Image IMG_COLOR
108	{
109	    ImageBitmap = Bitmap{File = "fill_color.png";};
110	};
111
112	//high contract
113	Image IMG_AXIAL_H
114	{
115	    ImageBitmap = Bitmap{File = "axial_h.png";};
116	};
117	Image IMG_ELLI_H
118	{
119	    ImageBitmap = Bitmap{File = "ellipsoid_h.png";};
120	};
121	Image IMG_QUAD_H
122	{
123	    ImageBitmap = Bitmap{File = "Quadratic_h.png";};
124	};
125	Image IMG_RADIAL_H
126	{
127	    ImageBitmap = Bitmap{File = "radial_h.png";};
128	};
129	Image IMG_SQUARE_H
130	{
131	    ImageBitmap = Bitmap{File = "Square_h.png";};
132	};
133	Image IMG_LINEAR_H
134	{
135	    ImageBitmap = Bitmap{File = "linear_h.png";};
136	};
137	Image IMG_COLOR_H
138	{
139	    ImageBitmap = Bitmap{File = "fill_color_h.png";};
140	};
141
142	//=====================================================================================================================================
143	ListBox LB_TRGR_TYPES
144	{
145		Border = TRUE ;
146        Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL , SECTIONPAGE_MARGIN_VERTICAL_TOP + 2*(FIXED_TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL) + CBOX_HEIGHT + CONTROL_SPACING_VERTICAL ) ;
147        Size = MAP_APPFONT ( MBOX_WIDTH , LISTBOX_HEIGHT ) ;
148        QuickHelpText [ en-US ] = "Select the type of transparence to apply." ;
149		TabStop = TRUE ;
150		DropDown = TRUE ;
151		HelpID = HID_PPROPERTYPANEL_AREA_LB_TRGR_TYPES ;
152        StringList [ en-US ] =
153        {
154			< "None" ; Default ; > ;
155			< "Solid" ; Default ; > ;
156			< "Linear" ; Default ; > ;
157            < "Axial" ; Default ; > ;
158            < "Radial" ; Default ; > ;
159            < "Ellipsoid" ; Default ; > ;
160            < "Quadratic" ; Default ; > ;
161            < "Square" ; Default ; > ;
162        };
163	};
164
165	MetricField MTR_TRANSPARENT
166	{
167		Border = TRUE ;
168        Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + MBOX_WIDTH + CONTROL_SPACING_HORIZONTAL , SECTIONPAGE_MARGIN_VERTICAL_TOP + 2*(FIXED_TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL) + CBOX_HEIGHT + CONTROL_SPACING_VERTICAL ) ;
169        Size = MAP_APPFONT ( MBOX_WIDTH + 1 ,MBOX_HEIGHT ) ;
170        HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRANSPARENT ;
171        QuickHelpText [ en-US ] = "Specify 0% for fully opaque through 100% for fully transparent." ;
172		TabStop = TRUE ;
173		Repeat = TRUE ;
174		Spin = TRUE ;
175		Maximum = 100 ;
176		StrictFormat = TRUE ;
177		Unit = FUNIT_CUSTOM ;
178        CustomUnitText = "%" ;
179		Last = 100 ;
180		SpinSize = 5 ;
181	};
182
183	ToolBox BTN_GRADIENT
184	{
185		Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + MBOX_WIDTH + CONTROL_SPACING_HORIZONTAL , SECTIONPAGE_MARGIN_VERTICAL_TOP + 2*(FIXED_TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL) + CBOX_HEIGHT + CONTROL_SPACING_VERTICAL ) ;
186		HelpID = HID_PPROPERTYPANEL_AREA_TBX_GRADIENT ;
187		SVLook = TRUE ;
188		Border = FALSE ;
189		TabStop = TRUE ;
190		Text = "Gradient";
191		ItemList =
192		{
193			ToolBoxItem
194			{
195				Identifier = TBI_BTX_GRADIENT ;
196				HelpID = HID_PPROPERTYPANEL_AREA_TBI_GRADIENT ;
197				ItemBitmap = Bitmap
198				{
199					File = "linear.png" ;
200				};
201				DropDown = TRUE;
202				Text = "Gradient" ;
203			};
204		};
205	};
206	String STR_HELP_GRADIENT
207	{
208		Text [ en-US ] = "Specify the variation of gradient transparency." ;
209	};
210};
211
212Control RID_POPUPPANEL_AREAPAGE_TRGR
213{
214	OutputSize = TRUE;
215	DialogControl = TRUE;
216	Border = FALSE;
217
218//	Size = MAP_APPFONT( POP_WIDTH, POP_HEIGHT );
219
220	FixedText FT_TRGR_CENTER_X
221	{
222        Size = MAP_APPFONT ( CONTROL_WIDTH , FIXED_TEXT_HEIGHT ) ;
223		Text [ en-US ] = "Center ~X:";
224	};
225	MetricField MTR_TRGR_CENTER_X
226	{
227		Border = TRUE ;
228        Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
229        HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_CENTER_X ;
230        QuickHelpText [ en-US ] = "Specify the horizontal offset percentage from the center for the gradient shading style. 50% is the horizontal center." ;
231		TabStop = TRUE ;
232		Repeat = TRUE ;
233		Spin = TRUE ;
234		Maximum = 100 ;
235		StrictFormat = TRUE ;
236		Unit = FUNIT_CUSTOM ;
237        CustomUnitText = "%" ;
238		Last = 100 ;
239		SpinSize = 5 ;
240	};
241	FixedText FT_TRGR_CENTER_Y
242	{
243        Size = MAP_APPFONT ( CONTROL_WIDTH + POPUPPANEL_MARGIN_HORIZONTAL, FIXED_TEXT_HEIGHT ) ;//wj
244		Text [ en-US ] = "Center ~Y:";
245	};
246	MetricField MTR_TRGR_CENTER_Y
247	{
248		Border = TRUE ;
249        Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
250        HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_CENTER_Y ;
251        QuickHelpText [ en-US ] = "Specify the vertical offset percentage from the center for the gradient shading style.  50% is the vertical center." ;
252		TabStop = TRUE ;
253		Repeat = TRUE ;
254		Spin = TRUE ;
255		Maximum = 100 ;
256		StrictFormat = TRUE ;
257		Unit = FUNIT_CUSTOM ;
258        CustomUnitText = "%" ;
259		Last = 100 ;
260		SpinSize = 5 ;
261	};
262	FixedText FT_TRGR_ANGLE
263	{
264        Size = MAP_APPFONT ( CONTROL_WIDTH * 2 + POPUPPANEL_MARGIN_HORIZONTAL + CONTROL_SPACING_HORIZONTAL, FIXED_TEXT_HEIGHT ) ;//wj
265		Text [ en-US ] = "~Angle:";
266	};
267	MetricField MTR_TRGR_ANGLE
268	{
269		Border = TRUE ;
270        Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
271        HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_ANGLE ;
272        QuickHelpText [ en-US ] = "Specify the angle of rotation for the gradient shading style." ;
273		TabStop = FALSE ;
274		Repeat = TRUE ;
275		Spin = TRUE ;
276		Minimum = -9999 ;
277		Maximum = 9999 ;
278		Unit = FUNIT_CUSTOM ;
279		SpinSize = 1 ;
280		CustomUnitText [ en-US ] = " degrees";
281	};
282	FixedText FT_TRGR_START_VALUE
283	{
284        Size = MAP_APPFONT ( CONTROL_WIDTH , FIXED_TEXT_HEIGHT ) ;
285        Text [ en-US ] = "~Start value:";
286	};
287	MetricField MTR_TRGR_START_VALUE
288	{
289		Border = TRUE ;
290        Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
291        HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_SVALUE ;
292        QuickHelpText [ en-US ] = "Enter a transparency value for the beginning point of the gradient, where 0% is fully opaque and 100% is fully transparent." ;
293		TabStop = TRUE ;
294		Repeat = TRUE ;
295		Spin = TRUE ;
296		Maximum = 100 ;
297		StrictFormat = TRUE ;
298		Unit = FUNIT_CUSTOM ;
299        CustomUnitText = "%" ;
300		Last = 100 ;
301		SpinSize = 5 ;
302	};
303	FixedText FT_TRGR_END_VALUE
304	{
305        Size = MAP_APPFONT (CONTROL_WIDTH + POPUPPANEL_MARGIN_HORIZONTAL, FIXED_TEXT_HEIGHT ) ; //wj
306		Text [ en-US ] = "~End value:";
307	};
308	MetricField MTR_TRGR_END_VALUE
309	{
310		Border = TRUE ;
311        Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
312        HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_EVALUE ;
313        QuickHelpText [ en-US ] = "Enter a transparency value for the endpoint of the gradient, where 0% is fully opaque and 100% is fully transparent." ;
314		TabStop = TRUE ;
315		Repeat = TRUE ;
316		Spin = TRUE ;
317		Maximum = 100 ;
318		StrictFormat = TRUE ;
319		Unit = FUNIT_CUSTOM ;
320        CustomUnitText = "%" ;
321		Last = 100 ;
322		SpinSize = 5 ;
323	};
324	FixedText FT_TRGR_BORDER
325	{
326        Size = MAP_APPFONT (  CONTROL_WIDTH * 2 + POPUPPANEL_MARGIN_HORIZONTAL + CONTROL_SPACING_HORIZONTAL, FIXED_TEXT_HEIGHT ) ; //
327		Text [ en-US ] = "~Border:";
328	};
329	MetricField MTR_TRGR_BORDER
330	{
331		Border = TRUE ;
332        Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
333        HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_BORDER ;
334        QuickHelpText [ en-US ] = "Specify the border value of gradient transparence." ;
335		TabStop = TRUE ;
336		Repeat = TRUE ;
337		Spin = TRUE ;
338		Maximum = 100 ;
339		StrictFormat = TRUE ;
340		Unit = FUNIT_CUSTOM ;
341		CustomUnitText = "%" ;
342		Last = 100 ;
343		SpinSize = 5 ;
344	};
345	//=====================================================================================================================================
346
347	ToolBox BTN_LEFT_SECOND
348	{
349	    Border = FALSE ;
350		HelpID = HID_PPROPERTYPANEL_AREA_BTN_LEFT_SECOND ;
351		SVLook = TRUE ;
352		Border = FALSE ;
353		TabStop = TRUE ;
354		Text = "Rotate Left";
355		ItemList =
356		{
357			ToolBoxItem
358			{
359				Identifier = TBI_LEFT ;
360				Text = "Rotate Left" ;
361				ItemBitmap = Bitmap
362				{
363		//			File = "rotate_left.png" ;
364				};
365			};
366		};
367	};
368	ToolBox BTN_RIGHT_FIRST
369	{
370	    Border = FALSE ;
371		HelpID = HID_PPROPERTYPANEL_AREA_BTN_RIGHT_FIRST ;
372		SVLook = TRUE ;
373		Border = FALSE ;
374		TabStop = TRUE ;
375		Text = "Rotate Right";
376		ItemList =
377		{
378			ToolBoxItem
379			{
380				Identifier = TBI_RIGHT ;
381				Text = "Rotate Right" ;
382				ItemBitmap = Bitmap
383				{
384		//			File = "rotate_right.png" ;
385				};
386			};
387		};
388	};
389	String STR_HELP_LEFT
390	{
391		Text [ en-US ] = "Rotate counterclockwise by 45 degrees." ;
392	};
393	String STR_HELP_RIGHT
394	{
395		Text [ en-US ] = "Rotate clockwise by 45 degrees." ;
396	};
397	Image IMG_ROT_LEFT
398	{
399	    ImageBitmap = Bitmap{File = "rotate_left.png";};
400	};
401	Image IMG_ROT_RIGHT
402	{
403	    ImageBitmap = Bitmap{File = "rotate_right.png";};
404	};
405};
406Control RID_POPUPPANEL_AERAPAGE_COLOR
407{
408	OutputSize = TRUE;
409	DialogControl = TRUE;
410	Border = FALSE;
411	Size = MAP_APPFONT(  POPUP_COLOR_PICKER_WIDTH , POPUP_COLOR_PICKER_HEIGHT  );
412
413	Control VS_COLOR
414	{
415		HelpID = HID_PPROPERTYPANEL_AREA_COLOR_VS;
416        Hide = TRUE ;
417        Pos = MAP_APPFONT ( OFFSET_X , OFFSET_Y );
418        Size = MAP_APPFONT (  POPUP_COLOR_PICKER_WIDTH - OFFSET_X * 2, POPUP_COLOR_PICKER_HEIGHT - OFFSET_Y * 2);
419		TabStop = TRUE ;
420		Text = "Color";
421	};
422};
423
424// eof
425