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