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 "LinePropertyPanel.hrc"
23#include <sfx2/sidebar/ResourceDefinitions.hrc>
24#include <svx/dialogs.hrc>
25#include "helpid.hrc"
26
27Control RID_SIDEBAR_LINE_PANEL
28{
29	OutputSize = TRUE;
30	DialogControl = TRUE;
31	Border = FALSE;
32	Text = "Line";
33
34    Size = MAP_APPFONT(
35        PROPERTYPAGE_WIDTH,
36        SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*4 + TEXT_CONTROL_SPACING_VERTICAL*4 + TOOLBOX_HEIGHT*3  + CONTROL_SPACING_VERTICAL*3 + CBOX_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT );
37	HelpID = HID_PROPERTYPANEL_LINE_SECTION ;
38
39	FixedText FT_WIDTH
40	{
41        Pos = MAP_APPFONT( SECTIONPAGE_MARGIN_HORIZONTAL , SECTIONPAGE_MARGIN_VERTICAL_TOP ) ;
42        Size = MAP_APPFONT (TOOLBOX_WIDTH  , TEXT_HEIGHT ) ;
43        Text [ en-US ] = "~Width:" ;
44	};
45	ToolBox TB_WIDTH
46	{
47		SVLook = TRUE ;
48		Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL) ;
49		Size = MAP_APPFONT (TOOLBOX_WIDTH ,TOOLBOX_HEIGHT ) ;
50		TabStop = TRUE ;
51		HelpID = HID_PPROPERTYPANEL_LINE_TBX_WIDTH ;
52		Text = "Width";
53		ItemList =
54		{
55			ToolBoxItem
56			{
57				Identifier = TBI_WIDTH ;
58				DropDown = TRUE ;
59				Text [ en-US ] = "Width" ;
60				HelpID = HID_PPROPERTYPANEL_LINE_TBI_WIDTH;
61			};
62		};
63	};
64	String STR_QH_TB_WIDTH
65	{
66		Text [ en-US ] = "Select the width of the line.";
67	};
68
69	FixedText FT_COLOR
70	{
71        Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3, SECTIONPAGE_MARGIN_VERTICAL_TOP ) ;
72        Size = MAP_APPFONT (TOOLBOX_WIDTH  , TEXT_HEIGHT ) ;
73        Text [ en-US ] = "~Color:" ;
74	};
75	ToolBox TB_COLOR
76	{
77		SVLook = TRUE ;
78		Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 4, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL) ;
79		Size = MAP_APPFONT (TOOLBOX_WIDTH ,TOOLBOX_HEIGHT ) ;
80		TabStop = TRUE ;
81		HelpID = HID_PPROPERTYPANEL_LINE_TBX_COLOR;
82		Text = "Color";
83		ItemList =
84		{
85			ToolBoxItem
86			{
87				Identifier = TBI_COLOR ;
88				DropDown = TRUE ;
89				Text [ en-US ] = "Color" ;
90				HelpID = HID_PPROPERTYPANEL_LINE_TBI_COLOR;
91			};
92		};
93	};
94	String STR_QH_TB_COLOR
95	{
96		Text [ en-US ] = "Select the color of the line.";
97	};
98
99	FixedText FT_STYLE
100	{
101        Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL , SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL + TOOLBOX_HEIGHT  + CONTROL_SPACING_VERTICAL) ;
102        Size = MAP_APPFONT (TOOLBOX_WIDTH  , TEXT_HEIGHT ) ;
103        Text [ en-US ] = "~Style:" ;
104	};
105	ListBox LB_STYLE
106	{
107		Border = TRUE ;
108		HelpID = HID_PPROPERTYPANEL_LINE_TBX_STYLE;
109		Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*2 + TEXT_CONTROL_SPACING_VERTICAL*2 + TOOLBOX_HEIGHT  + CONTROL_SPACING_VERTICAL) ;
110		Size = MAP_APPFONT (TOOLBOX_WIDTH ,LISTBOX_HEIGHT ) ;
111		TabStop = TRUE ;
112		DropDown = TRUE ;
113		DDExtraWidth = TRUE ;
114		QuickHelpText [ en-US ] = "Select the style of the line.";
115	};
116
117	FixedText FT_TRANSPARENT
118	{
119        Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3 , SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL + TOOLBOX_HEIGHT  + CONTROL_SPACING_VERTICAL) ;
120        Size = MAP_APPFONT (TOOLBOX_WIDTH  , TEXT_HEIGHT ) ;
121        Text [ en-US ] = "~Transparency:" ;
122	};
123	MetricField MF_TRANSPARENT
124	{
125		Border = TRUE ;
126		HelpID = HID_PPROPERTYPANEL_LINE_MTR_TRANCEPARENCE;
127		Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3 , SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*2 + TEXT_CONTROL_SPACING_VERTICAL*2 + TOOLBOX_HEIGHT  + CONTROL_SPACING_VERTICAL) ;
128		Size = MAP_APPFONT ( TOOLBOX_WIDTH + 1 , 12 ) ;
129		TabStop = TRUE ;
130		Repeat = TRUE ;
131		Spin = TRUE ;
132		Maximum = 100 ;
133		StrictFormat = TRUE ;
134		Unit = FUNIT_CUSTOM ;
135		CustomUnitText = "%" ;
136		Last = 100 ;
137		SpinSize = 5 ;
138		QuickHelpText [ en-US ] = "Specify the transparency of the line.";
139	};
140
141	FixedText FT_ARROW
142	{
143        Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*2 + TEXT_CONTROL_SPACING_VERTICAL*2 + TOOLBOX_HEIGHT*2  + CONTROL_SPACING_VERTICAL*2) ;
144        Size = MAP_APPFONT (TOOLBOX_WIDTH * 2 + 3 , TEXT_HEIGHT ) ;
145        Text [ en-US ] = "~Arrow:" ;
146	};
147	ListBox LB_START
148	{
149		Border = TRUE ;
150		HelpID = HID_PPROPERTYPANEL_LINE_LB_START;
151		Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL , SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*2  + CONTROL_SPACING_VERTICAL*2 ) ;
152		Size = MAP_APPFONT ( TOOLBOX_WIDTH , LISTBOX_HEIGHT ) ;
153		TabStop = TRUE ;
154		DropDown = TRUE ;
155		DDExtraWidth = TRUE ;
156		QuickHelpText [ en-US ] = "Select the style of the beginning arrowhead.";
157	};
158	ListBox LB_END
159	{
160		Border = TRUE ;
161		HelpID = HID_PPROPERTYPANEL_LINE_LB_END;
162		Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3 , SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*2  + CONTROL_SPACING_VERTICAL*2 ) ;
163		Size = MAP_APPFONT ( TOOLBOX_WIDTH + 1, LISTBOX_HEIGHT ) ;
164		TabStop = TRUE ;
165		DropDown = TRUE ;
166		DDExtraWidth = TRUE ;
167		QuickHelpText [ en-US ] = "Select the style of the ending arrowhead.";
168	};
169
170	FixedText FT_EDGESTYLE
171	{
172        Pos = MAP_APPFONT (
173            SECTIONPAGE_MARGIN_HORIZONTAL,
174            SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*3  + CONTROL_SPACING_VERTICAL*3) ;
175        Size = MAP_APPFONT (TOOLBOX_WIDTH * 2 + 3 , TEXT_HEIGHT ) ;
176		Text [ en-US ] = "~Corner style" ;
177	};
178	ListBox LB_EDGESTYLE
179	{
180		HelpID = HID_PPROPERTYPANEL_LINE_LB_EDGESTYLE;
181		Border = TRUE ;
182		Pos = MAP_APPFONT (
183            SECTIONPAGE_MARGIN_HORIZONTAL ,
184            SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*4 + TEXT_CONTROL_SPACING_VERTICAL*4 + TOOLBOX_HEIGHT*3  + CONTROL_SPACING_VERTICAL*3 ) ;
185		Size = MAP_APPFONT ( TOOLBOX_WIDTH , LISTBOX_HEIGHT ) ;
186		TabStop = TRUE ;
187		DropDown = TRUE ;
188		DDExtraWidth = TRUE ;
189		QuickHelpText [ en-US ] = "Select the style of the edge connections.";
190		StringList [ en-US ] =
191		{
192			< "Rounded" ; Default ; > ;
193			< "- none -" ; > ;
194			< "Mitered" ; > ;
195			< "Beveled" ; > ;
196		};
197	};
198    FixedText FT_CAPSTYLE
199    {
200        Pos = MAP_APPFONT (
201            SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3,
202            SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*3  + CONTROL_SPACING_VERTICAL*3) ;
203        Size = MAP_APPFONT (TOOLBOX_WIDTH * 2 + 3 , TEXT_HEIGHT ) ;
204        Text [ en-US ] = "Ca~p style" ;
205    };
206    ListBox LB_CAPSTYLE
207    {
208		HelpID = HID_PPROPERTYPANEL_LINE_LB_CAPSTYLE;
209        Border = TRUE ;
210		Pos = MAP_APPFONT (
211            SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3,
212            SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*4 + TEXT_CONTROL_SPACING_VERTICAL*4 + TOOLBOX_HEIGHT*3  + CONTROL_SPACING_VERTICAL*3 ) ;
213		Size = MAP_APPFONT ( TOOLBOX_WIDTH , LISTBOX_HEIGHT ) ;
214        TabStop = TRUE ;
215        DropDown = TRUE ;
216		DDExtraWidth = TRUE ;
217		QuickHelpText [ en-US ] = "Select the style of the line caps.";
218        StringList [ en-US ] =
219        {
220            < "Flat" ; Default ; > ; // Same string as in Excel
221            < "Round" ; > ;
222            < "Square" ; > ;
223        };
224    };
225
226	Image IMG_COLOR
227	{
228		ImageBitmap = Bitmap{File = "symphony/Line_color.png";};
229	};
230	Image IMG_COLOR_NO
231	{
232		ImageBitmap = Bitmap{File = "symphony/no color.png";};
233	};
234
235	Image IMG_NONE_ICON
236	{
237		ImageBitmap = Bitmap{File = "symphony/blank.png";};
238	};
239
240	//WIDTH ICON
241	Image IMG_WIDTH1_ICON
242	{
243		ImageBitmap = Bitmap{File = "symphony/width1.png";};
244	};
245	Image IMG_WIDTH2_ICON
246	{
247		ImageBitmap = Bitmap{File = "symphony/width2.png";};
248	};
249	Image IMG_WIDTH3_ICON
250	{
251		ImageBitmap = Bitmap{File = "symphony/width3.png";};
252	};
253	Image IMG_WIDTH4_ICON
254	{
255		ImageBitmap = Bitmap{File = "symphony/width4.png";};
256	};
257	Image IMG_WIDTH5_ICON
258	{
259		ImageBitmap = Bitmap{File = "symphony/width5.png";};
260	};
261	Image IMG_WIDTH6_ICON
262	{
263		ImageBitmap = Bitmap{File = "symphony/width6.png";};
264	};
265	Image IMG_WIDTH7_ICON
266	{
267		ImageBitmap = Bitmap{File = "symphony/width7.png";};
268	};
269	Image IMG_WIDTH8_ICON
270	{
271		ImageBitmap = Bitmap{File = "symphony/width8.png";};
272	};
273
274	//high contrast for line width
275	//WIDTH ICON
276	Image IMG_WIDTH1_ICON_H
277	{
278		ImageBitmap = Bitmap{File = "symphony/width1_h.png";};
279	};
280	Image IMG_WIDTH2_ICON_H
281	{
282		ImageBitmap = Bitmap{File = "symphony/width2_h.png";};
283	};
284	Image IMG_WIDTH3_ICON_H
285	{
286		ImageBitmap = Bitmap{File = "symphony/width3_h.png";};
287	};
288	Image IMG_WIDTH4_ICON_H
289	{
290		ImageBitmap = Bitmap{File = "symphony/width4_h.png";};
291	};
292	Image IMG_WIDTH5_ICON_H
293	{
294		ImageBitmap = Bitmap{File = "symphony/width5_h.png";};
295	};
296	Image IMG_WIDTH6_ICON_H
297	{
298		ImageBitmap = Bitmap{File = "symphony/width6_h.png";};
299	};
300	Image IMG_WIDTH7_ICON_H
301	{
302		ImageBitmap = Bitmap{File = "symphony/width7_h.png";};
303	};
304	Image IMG_WIDTH8_ICON_H
305	{
306		ImageBitmap = Bitmap{File = "symphony/width8_h.png";};
307	};
308};
309Control RID_POPUPPANEL_LINEPAGE_COLOR
310{
311	OutputSize = TRUE;
312	DialogControl = TRUE;
313	Border = FALSE;
314	Size = MAP_APPFONT(  POPUP_COLOR_PICKER_WIDTH , POPUP_COLOR_PICKER_HEIGHT  );
315
316	Control VS_COLOR
317	{
318		HelpId = HID_PPROPERTYPANEL_LINE_VS_COLOR ;
319        Hide = TRUE ;
320        Pos = MAP_APPFONT ( OFFSET_X , OFFSET_Y );
321        Size = MAP_APPFONT (  POPUP_COLOR_PICKER_WIDTH - OFFSET_X * 2, POPUP_COLOR_PICKER_HEIGHT - OFFSET_Y * 2);
322		TabStop = TRUE ;
323		Text = "Color";
324	};
325};
326Control RID_POPUPPANEL_LINEPAGE_STYLE
327{
328	OutputSize = TRUE;
329	DialogControl = TRUE;
330	Border = FALSE;
331
332	Size = MAP_APPFONT(
333        POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH ,
334        13 + POPUP_BORDER_HEIGHT + POPUPPANEL_MARGIN_SMALL * 2 + POPUPPANEL_MARGIN_LARGE);
335
336	Control VS_STYLE
337	{
338		HelpId = HID_PPROPERTYPANEL_LINE_VS_STYLE ;
339        Hide = TRUE ;
340        Pos = MAP_APPFONT(  POPUPPANEL_MARGIN_SMALL + OFFSET_X , POPUPPANEL_MARGIN_SMALL + OFFSET_Y );
341        Size = MAP_APPFONT ( 93  , 13 * 12);
342		TabStop = TRUE ;
343		Text = "Style";
344	};
345
346	PushButton PB_OPTIONS
347	{
348		HelpId = HID_PPROPERTYPANEL_LINE_BTN_STYLE;
349		Pos = MAP_APPFONT (  POPUPPANEL_MARGIN_LARGE + OFFSET_X , POPUPPANEL_MARGIN_SMALL * 2 + OFFSET_Y  );
350		Size = MAP_APPFONT ( 93 , 13 );
351		TabStop = TRUE;
352		Text [ en-US ] = "~More Options...";
353	};
354};
355Control RID_POPUPPANEL_LINEPAGE_WIDTH
356{
357	OutputSize = TRUE;
358	DialogControl = TRUE;
359	Border = FALSE;
360
361	Size = MAP_APPFONT(  POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH  + 80,    POPUPPANEL_MARGIN_SMALL + POPUPPANEL_MARGIN_LARGE + POPUP_BORDER_WIDTH + 12 * 9 + POPUPPANEL_MARGIN_SMALL * 2 + TEXT_HEIGHT + (POPUPPANEL_MARGIN_LARGE * 2 +  TEXT_HEIGHT + 12 +  TEXT_CONTROL_SPACING_VERTICAL));
362
363	Control VS_WIDTH
364	{
365		HelpId = HID_PPROPERTYPANEL_LINE_VS_WIDTH ;
366        Hide = TRUE ;
367        Pos = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL + OFFSET_X , POPUPPANEL_MARGIN_SMALL + OFFSET_Y );
368        Size = MAP_APPFONT ( 80  , 12 * 9);
369		TabStop = TRUE ;
370		Text = "Width";
371	};
372	FixedText FT_CUSTOME
373	{
374        Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_LARGE + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y + 12 * 9 + POPUPPANEL_MARGIN_SMALL ) ;
375        Size = MAP_APPFONT ( 80  , TEXT_HEIGHT ) ;
376        Text [ en-US ] = "Custom:" ;
377	};
378	FixedText FT_LINE_WIDTH
379	{
380        Pos = MAP_APPFONT ( CUSTOM_X + POPUPPANEL_MARGIN_LARGE, CUSTOM_Y + POPUPPANEL_MARGIN_LARGE) ;
381        Size = MAP_APPFONT (  74 - POPUPPANEL_MARGIN_LARGE * 2   , TEXT_HEIGHT ) ;
382        Text [ en-US ] = "Line ~width:" ;
383	};
384	MetricField MF_WIDTH
385	{
386		Border = TRUE ;
387		HelpID = HID_PPROPERTYPANEL_LINE_MTR_WIDTH ;
388		Pos = MAP_APPFONT (  CUSTOM_X + POPUPPANEL_MARGIN_LARGE  , CUSTOM_Y + POPUPPANEL_MARGIN_LARGE + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL) ;
389		Size = MAP_APPFONT ( 40 , 12 ) ;
390		TabStop = TRUE ;
391		Right = TRUE ;
392		Repeat = TRUE ;
393		Spin = TRUE ;
394		Maximum = 5000 ;
395		StrictFormat = TRUE ;
396		DecimalDigits = 2 ;
397		Value = 1 ;
398		Unit = FUNIT_MM ;
399		Last = 5000 ;
400		SpinSize = 10 ;
401		QuickHelpText [ en-US ] = "Specify the width of the line.";
402	};
403
404	Image IMG_WIDTH_CUSTOM
405	{
406		ImageBitmap = Bitmap{File = "symphony/last_custom_common.png";};
407	};
408	Image IMG_WIDTH_CUSTOM_GRAY
409	{
410		ImageBitmap = Bitmap{File = "symphony/last_custom_common_grey.png";};
411	};
412	String STR_WIDTH_LAST_CUSTOM
413	{
414		Text [ en-US ] = "Last Custom Value";
415	};
416	String STR_PT
417	{
418		Text [ en-US ] = "pt";
419	};
420};
421
422// eof
423