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