xref: /trunk/main/svx/source/dialog/fontwork.src (revision bdf8903e)
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 ---------------------------------------------------------------
25#include <svx/svxids.hrc>
26#include <svx/dialogs.hrc>
27#include "fontwork.hrc"
28#include "helpid.hrc"
29
30// pragma ----------------------------------------------------------------
31#define REDUCED_WIDTH			6
32#define REMOVED_VS_FORMS_HEIGHT	(30 + 6)
33
34// RID_SVXDLG_FONTWORK ---------------------------------------------------
35DockingWindow RID_SVXDLG_FONTWORK
36{
37	HelpId = CMD_SID_FONTWORK ;
38	OutputSize = TRUE ;
39	SVLook = TRUE ;
40	Hide = TRUE ;
41	Pos = MAP_APPFONT ( 0, 0 ) ;
42	Size = MAP_APPFONT ( 89 - REDUCED_WIDTH, 193 - REMOVED_VS_FORMS_HEIGHT ) ;
43	Text [ en-US ] = "Fontwork" ;
44	Moveable = TRUE ;
45	Zoomable = TRUE ;
46	Closeable = TRUE ;
47	Dockable = TRUE ;
48	EnableResizing = TRUE ;
49	ToolBox TBX_STYLE
50	{
51		SVLook = TRUE ;
52		Pos = MAP_APPFONT ( 6, 41 - REMOVED_VS_FORMS_HEIGHT ) ;
53		ItemList =
54		{
55			ToolBoxItem
56			{
57				AutoCheck = TRUE ;
58				Identifier = TBI_STYLE_OFF ;
59				HelpId = HID_FONTWORK_TBI_STYLE_OFF ;
60				Text [ en-US ] = "Off" ;
61			};
62			ToolBoxItem
63			{
64				Type = TOOLBOXITEM_SEPARATOR ;
65			};
66			ToolBoxItem
67			{
68				AutoCheck = TRUE ;
69				RadioCheck = TRUE ;
70				Identifier = TBI_STYLE_ROTATE ;
71				HelpId = HID_FONTWORK_TBI_STYLE_ROTATE ;
72				Text [ en-US ] = "Rotate" ;
73			};
74			ToolBoxItem
75			{
76				AutoCheck = TRUE ;
77				RadioCheck = TRUE ;
78				Identifier = TBI_STYLE_UPRIGHT ;
79				HelpId = HID_FONTWORK_TBI_STYLE_UPRIGHT ;
80				Text [ en-US ] = "Upright" ;
81			};
82			ToolBoxItem
83			{
84				AutoCheck = TRUE ;
85				RadioCheck = TRUE ;
86				Identifier = TBI_STYLE_SLANTX ;
87				HelpId = HID_FONTWORK_TBI_STYLE_SLANTX ;
88				Text [ en-US ] = "Slant Horizontal" ;
89			};
90			ToolBoxItem
91			{
92				AutoCheck = TRUE ;
93				RadioCheck = TRUE ;
94				Identifier = TBI_STYLE_SLANTY ;
95				HelpId = HID_FONTWORK_TBI_STYLE_SLANTY ;
96				Text [ en-US ] = "Slant Vertical" ;
97			};
98		};
99	};
100	ToolBox TBX_ADJUST
101	{
102		SVLook = TRUE ;
103		Pos = MAP_APPFONT ( 6, 63 - REMOVED_VS_FORMS_HEIGHT ) ;
104		ItemList =
105		{
106			ToolBoxItem
107			{
108				AutoCheck = TRUE ;
109				Checkable = TRUE ;
110				Identifier = TBI_ADJUST_MIRROR ;
111				HelpId = HID_FONTWORK_TBI_ADJUST_MIRROR ;
112				Text [ en-US ] = "Orientation" ;
113			};
114			ToolBoxItem
115			{
116				Type = TOOLBOXITEM_SEPARATOR ;
117			};
118			ToolBoxItem
119			{
120				AutoCheck = TRUE ;
121				RadioCheck = TRUE ;
122				Identifier = TBI_ADJUST_LEFT ;
123				HelpId = HID_FONTWORK_TBI_ADJUST_LEFT ;
124				Text [ en-US ] = "Align Left" ;
125			};
126			ToolBoxItem
127			{
128				AutoCheck = TRUE ;
129				RadioCheck = TRUE ;
130				Identifier = TBI_ADJUST_CENTER ;
131				HelpId = HID_FONTWORK_TBI_ADJUST_CENTER ;
132				Text [ en-US ] = "Center" ;
133			};
134			ToolBoxItem
135			{
136				AutoCheck = TRUE ;
137				RadioCheck = TRUE ;
138				Identifier = TBI_ADJUST_RIGHT ;
139				HelpId = HID_FONTWORK_TBI_ADJUST_RIGHT ;
140				Text [ en-US ] = "Align Right" ;
141			};
142			ToolBoxItem
143			{
144				AutoCheck = TRUE ;
145				RadioCheck = TRUE ;
146				Identifier = TBI_ADJUST_AUTOSIZE ;
147				HelpId = HID_FONTWORK_TBI_ADJUST_AUTOSIZE ;
148				Text [ en-US ] = "AutoSize Text" ;
149			};
150		};
151	};
152	FixedImage FB_DISTANCE
153	{
154		Pos = MAP_APPFONT ( 10, 84 - REMOVED_VS_FORMS_HEIGHT ) ;
155		Size = MAP_APPFONT ( 14, 15 ) ;
156	};
157	MetricField MTR_FLD_DISTANCE
158	{
159		HelpID = "svx:MetricField:RID_SVXDLG_FONTWORK:MTR_FLD_DISTANCE" ;
160		Border = TRUE ;
161		Pos = MAP_APPFONT ( 29, 85 - REMOVED_VS_FORMS_HEIGHT ) ;
162		Size = MAP_APPFONT ( 48, 12 ) ;
163		TabStop = TRUE ;
164		Repeat = TRUE ;
165		Spin = TRUE ;
166		Minimum = -5000000 ;
167		Maximum = 5000000 ;
168		StrictFormat = TRUE ;
169		DecimalDigits = 2 ;
170		Unit = FUNIT_MM ;
171		First = -5000000 ;
172		Last = 5000000 ;
173		SpinSize = 50 ;
174		QuickHelpText [ en-US ] = "Distance" ;
175
176	};
177	FixedImage FB_TEXTSTART
178	{
179		Pos = MAP_APPFONT ( 10, 99 - REMOVED_VS_FORMS_HEIGHT ) ;
180		Size = MAP_APPFONT ( 14, 15 ) ;
181	};
182	MetricField MTR_FLD_TEXTSTART
183	{
184		HelpID = "svx:MetricField:RID_SVXDLG_FONTWORK:MTR_FLD_TEXTSTART" ;
185		Border = TRUE ;
186		Pos = MAP_APPFONT ( 29, 100 - REMOVED_VS_FORMS_HEIGHT ) ;
187		Size = MAP_APPFONT ( 48, 12 ) ;
188		TabStop = TRUE ;
189		Repeat = TRUE ;
190		Spin = TRUE ;
191		Maximum = 5000000 ;
192		StrictFormat = TRUE ;
193		DecimalDigits = 2 ;
194		Unit = FUNIT_MM ;
195		Last = 5000000 ;
196		SpinSize = 50 ;
197		QuickHelpText [ en-US ] = "Indent" ;
198	};
199	ToolBox TBX_SHADOW
200	{
201		SVLook = TRUE ;
202		Pos = MAP_APPFONT ( 6, 122 - REMOVED_VS_FORMS_HEIGHT ) ;
203		ItemList =
204		{
205			ToolBoxItem
206			{
207				AutoCheck = TRUE ;
208				Checkable = TRUE ;
209				Identifier = TBI_SHOWFORM ;
210				HelpId = HID_FONTWORK_TBI_SHOWFORM ;
211				Text [ en-US ] = "Contour" ;
212			};
213			ToolBoxItem
214			{
215				AutoCheck = TRUE ;
216				Checkable = TRUE ;
217				Identifier = TBI_OUTLINE ;
218				HelpId = HID_FONTWORK_TBI_OUTLINE ;
219				Text [ en-US ] = "Text Contour" ;
220			};
221			ToolBoxItem
222			{
223				Type = TOOLBOXITEM_SEPARATOR ;
224			};
225			ToolBoxItem
226			{
227				AutoCheck = TRUE ;
228				RadioCheck = TRUE ;
229				Identifier = TBI_SHADOW_OFF ;
230				HelpId = HID_FONTWORK_TBI_SHADOW_OFF ;
231				Text [ en-US ] = "No Shadow" ;
232			};
233			ToolBoxItem
234			{
235				AutoCheck = TRUE ;
236				RadioCheck = TRUE ;
237				Identifier = TBI_SHADOW_NORMAL ;
238				HelpId = HID_FONTWORK_TBI_SHADOW_NORMAL ;
239				Text [ en-US ] = "Vertical" ;
240			};
241			ToolBoxItem
242			{
243				AutoCheck = TRUE ;
244				RadioCheck = TRUE ;
245				Identifier = TBI_SHADOW_SLANT ;
246				HelpId = HID_FONTWORK_TBI_SHADOW_SLANT ;
247				Text [ en-US ] = "Slant" ;
248			};
249		};
250	};
251	FixedImage FB_SHADOW_X
252	{
253		Pos = MAP_APPFONT ( 10, 143 - REMOVED_VS_FORMS_HEIGHT ) ;
254		Size = MAP_APPFONT ( 14, 15 ) ;
255	};
256	MetricField MTR_FLD_SHADOW_X
257	{
258		HelpID = "svx:MetricField:RID_SVXDLG_FONTWORK:MTR_FLD_SHADOW_X" ;
259		Border = TRUE ;
260		Pos = MAP_APPFONT ( 29, 144 - REMOVED_VS_FORMS_HEIGHT ) ;
261		Size = MAP_APPFONT ( 48, 12 ) ;
262		TabStop = TRUE ;
263		Repeat = TRUE ;
264		Spin = TRUE ;
265		Minimum = -5000000 ;
266		Maximum = 5000000 ;
267		StrictFormat = TRUE ;
268		DecimalDigits = 2 ;
269		Unit = FUNIT_MM ;
270		CustomUnitText [ en-US ] = " degrees" ;
271		First = -5000000 ;
272		Last = 5000000 ;
273		SpinSize = 50 ;
274		QuickHelpText [ en-US ] = "Distance X" ;
275	};
276	FixedImage FB_SHADOW_Y
277	{
278		Pos = MAP_APPFONT ( 10, 158 - REMOVED_VS_FORMS_HEIGHT ) ;
279		Size = MAP_APPFONT ( 14, 15 ) ;
280	};
281	MetricField MTR_FLD_SHADOW_Y
282	{
283		HelpID = "svx:MetricField:RID_SVXDLG_FONTWORK:MTR_FLD_SHADOW_Y" ;
284		Border = TRUE ;
285		Pos = MAP_APPFONT ( 29, 159 - REMOVED_VS_FORMS_HEIGHT ) ;
286		Size = MAP_APPFONT ( 48, 12 ) ;
287		TabStop = TRUE ;
288		Repeat = TRUE ;
289		Spin = TRUE ;
290		Maximum = 5000000 ;
291		StrictFormat = TRUE ;
292		DecimalDigits = 2 ;
293		Unit = FUNIT_MM ;
294		Last = 5000000 ;
295		SpinSize = 50 ;
296		QuickHelpText [ en-US ] = "Distance Y" ;
297	};
298	ListBox CLB_SHADOW_COLOR
299	{
300		HelpID = "svx:ListBox:RID_SVXDLG_FONTWORK:CLB_SHADOW_COLOR" ;
301		Border = TRUE ;
302		Pos = MAP_APPFONT ( 6, 174 - REMOVED_VS_FORMS_HEIGHT ) ;
303		Size = MAP_APPFONT ( 71, 60 ) ;
304		DropDown = TRUE ;
305		QuickHelpText [ en-US ] = "Shadow Color" ;
306		Text = "-" ;
307	};
308
309#define FONTWORK_IDLIST				\
310		IdList =					\
311		{							\
312			TBI_STYLE_OFF ;			\
313			TBI_STYLE_ROTATE ;		\
314			TBI_STYLE_UPRIGHT ;		\
315			TBI_STYLE_SLANTX ;		\
316			TBI_STYLE_SLANTY ;		\
317			TBI_ADJUST_MIRROR ;		\
318			TBI_ADJUST_LEFT ;		\
319			TBI_ADJUST_CENTER ;		\
320			TBI_ADJUST_RIGHT ;		\
321			TBI_ADJUST_AUTOSIZE ;	\
322			TBI_SHOWFORM ;			\
323			TBI_OUTLINE ;			\
324			TBI_SHADOW_OFF ;		\
325			TBI_SHADOW_NORMAL ;		\
326			TBI_SHADOW_SLANT ;		\
327			TBI_SHADOW_XDIST ;		\
328			TBI_SHADOW_YDIST ;		\
329			TBI_SHADOW_ANGLE ;		\
330			TBI_SHADOW_SIZE ;		\
331			TBI_DISTANCE ;			\
332			TBI_TEXTSTART ;			\
333		};							\
334		IdCount = { 21 ; } ;
335
336	#define IMAGE_STDBTN_COLOR Color { Red = 0xff00; Green = 0x0000; Blue = 0xff00; }
337
338	ImageList IL_FONTWORK
339	{
340		Prefix = "fw" ;
341		MaskColor = IMAGE_STDBTN_COLOR ;
342		FONTWORK_IDLIST
343	};
344	ImageList ILH_FONTWORK
345	{
346		Prefix = "fwh" ;
347		MaskColor = IMAGE_STDBTN_COLOR ;
348		FONTWORK_IDLIST
349	};
350};
351
352// ********************************************************************** EOF
353