xref: /aoo42x/main/cui/source/tabpages/transfrm.src (revision 5f0cc65f)
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 <svtools/controldims.hrc>
26#include "helpid.hrc"
27#include <cuires.hrc>
28#include "transfrm.hrc"
29#include <svx/dialogs.hrc>
30
31#define MA_TABPAGE_HEIGHT 185
32
33// RID_SVXPAGE_POSITION_SIZE ------------------------------------------------
34TabPage RID_SVXPAGE_POSITION_SIZE
35{
36	HelpId = HID_TRANS_POSITION_SIZE ;
37	Hide = TRUE ;
38	Text [ en-US ] = "Position and Size" ;
39	Size = MAP_APPFONT ( 260, MA_TABPAGE_HEIGHT ) ;
40
41	FixedLine FL_POSITION
42	{
43		Pos = MAP_APPFONT ( 6, 3 ) ;
44		Size = MAP_APPFONT ( 248, RSC_CD_FIXEDLINE_HEIGHT ) ;
45		Text [ en-US ] = "Position" ;
46	};
47	FixedText FT_POS_X
48	{
49		Pos = MAP_APPFONT ( 12, 16 + 8 ) ;
50		Size = MAP_APPFONT ( 40, 10 ) ;
51		Text [ en-US ] = "Position ~X" ;
52	};
53	FixedText FT_POS_Y
54	{
55		Pos = MAP_APPFONT ( 12, 32 + 8 ) ;
56		Size = MAP_APPFONT ( 40, 10 ) ;
57		Text [ en-US ] = "Position ~Y" ;
58	};
59	MetricField MTR_FLD_POS_X
60	{
61		HelpID = "cui:MetricField:RID_SVXPAGE_POSITION_SIZE:MTR_FLD_POS_X" ;
62		Border = TRUE ;
63		Pos = MAP_APPFONT ( 56, 14 + 8 ) ;
64		Size = MAP_APPFONT ( 54, 12 ) ;
65		TabStop = TRUE ;
66		Repeat = TRUE ;
67		Spin = TRUE ;
68		Minimum = -120000 ;
69		Maximum = 240000 ;
70		StrictFormat = TRUE ;
71		DecimalDigits = 2 ;
72		Unit = FUNIT_MM ;
73		SpinSize = 10 ;
74	};
75	MetricField MTR_FLD_POS_Y
76	{
77		HelpID = "cui:MetricField:RID_SVXPAGE_POSITION_SIZE:MTR_FLD_POS_Y" ;
78		Border = TRUE ;
79		Pos = MAP_APPFONT ( 56, 30 + 8 ) ;
80		Size = MAP_APPFONT ( 54, 12 ) ;
81		TabStop = TRUE ;
82		Repeat = TRUE ;
83		Spin = TRUE ;
84		Minimum = -120000 ;
85		Maximum = 240000 ;
86		StrictFormat = TRUE ;
87		DecimalDigits = 2 ;
88		Unit = FUNIT_MM ;
89		SpinSize = 10 ;
90	};
91	FixedText FT_POSREFERENCE
92	{
93		Pos = MAP_APPFONT ( 178, 2 + 8 ) ;
94		Size = MAP_APPFONT ( 70, 10 ) ;
95		Text [ en-US ] = "Base point" ;
96	};
97	Control CTL_POSRECT
98	{
99		HelpId = HID_TPPOSITION_CTRL ;
100		Border = TRUE ;
101		Pos = MAP_APPFONT ( 178, 12 + 8 ) ;
102		Size = MAP_APPFONT ( 48, 34 ) ;
103		TabStop = TRUE ;
104		QuickHelpText [ en-US ] = "Base point" ;
105	};
106
107	// size
108
109	FixedLine FL_SIZE
110	{
111		Pos = MAP_APPFONT ( 6, 56 ) ;
112		Size = MAP_APPFONT ( 248, RSC_CD_FIXEDLINE_HEIGHT ) ;
113		Text [ en-US ] = "Size" ;
114	};
115	FixedText FT_WIDTH
116	{
117		Pos = MAP_APPFONT ( 12, 16 + 61 ) ;
118		Size = MAP_APPFONT ( 40, 10 ) ;
119		Text [ en-US ] = "Wi~dth" ;
120	};
121	FixedText FT_HEIGHT
122	{
123		Pos = MAP_APPFONT ( 12, 32 + 61 ) ;
124		Size = MAP_APPFONT ( 40, 10 ) ;
125		Text [ en-US ] = "H~eight" ;
126	};
127	MetricField MTR_FLD_WIDTH
128	{
129		HelpID = "cui:MetricField:RID_SVXPAGE_POSITION_SIZE:MTR_FLD_WIDTH" ;
130		Border = TRUE ;
131		Pos = MAP_APPFONT ( 56, 14 + 61 ) ;
132		Size = MAP_APPFONT ( 54, 12 ) ;
133		TabStop = TRUE ;
134		Repeat = TRUE ;
135		Spin = TRUE ;
136		Minimum = 1 ;
137		Maximum = 120000 ;
138		StrictFormat = TRUE ;
139		DecimalDigits = 2 ;
140		Unit = FUNIT_MM ;
141		SpinSize = 10 ;
142	};
143	MetricField MTR_FLD_HEIGHT
144	{
145		HelpID = "cui:MetricField:RID_SVXPAGE_POSITION_SIZE:MTR_FLD_HEIGHT" ;
146		Border = TRUE ;
147		Pos = MAP_APPFONT ( 56, 30 + 61 ) ;
148		Size = MAP_APPFONT ( 54, 12 ) ;
149		TabStop = TRUE ;
150		Repeat = TRUE ;
151		Spin = TRUE ;
152		Minimum = 1 ;
153		Maximum = 120000 ;
154		StrictFormat = TRUE ;
155		DecimalDigits = 2 ;
156		Unit = FUNIT_MM ;
157		SpinSize = 10 ;
158	};
159	FixedText FT_SIZEREFERENCE
160	{
161		Pos = MAP_APPFONT ( 178, 2 + 61 ) ;
162		Size = MAP_APPFONT ( 70, 10 ) ;
163		Text [ en-US ] = "Base point" ;
164	};
165	Control CTL_SIZERECT
166	{
167		HelpId = HID_TPSIZE_CTRL ;
168		Border = TRUE ;
169		Pos = MAP_APPFONT ( 178, 12 + 61 ) ;
170		Size = MAP_APPFONT ( 48, 34 ) ;
171		TabStop = TRUE ;
172		QuickHelpText [ en-US ] = "Base point" ;
173	};
174	CheckBox CBX_SCALE
175	{
176		HelpID = "cui:CheckBox:RID_SVXPAGE_POSITION_SIZE:CBX_SCALE" ;
177		Pos = MAP_APPFONT ( 12, 47 + 61 ) ;
178		Size = MAP_APPFONT ( 162, 10 ) ;
179		TabStop = TRUE ;
180		Text [ en-US ] = "~Keep ratio" ;
181	};
182
183	// Protect
184
185	FixedLine FL_PROTECT
186	{
187		Pos = MAP_APPFONT ( 6, 120 ) ;
188		Size = MAP_APPFONT ( 119, RSC_CD_FIXEDLINE_HEIGHT ) ;
189		Text [ en-US ] = "Protect" ;
190	};
191
192	TriStateBox TSB_POSPROTECT
193	{
194		HelpID = "cui:TriStateBox:RID_SVXPAGE_POSITION_SIZE:TSB_POSPROTECT" ;
195		Pos = MAP_APPFONT ( 12, 10 + 120 ) ;
196		Size = MAP_APPFONT ( 113, 10 ) ;
197		Text [ en-US ] = "Position" ;
198		TabStop = TRUE ;
199	};
200
201	TriStateBox TSB_SIZEPROTECT
202	{
203		HelpID = "cui:TriStateBox:RID_SVXPAGE_POSITION_SIZE:TSB_SIZEPROTECT" ;
204		Pos = MAP_APPFONT ( 12, 24 + 120 ) ;
205		Size = MAP_APPFONT ( 113, 10 ) ;
206		Text [ en-US ] = "~Size" ;
207		TabStop = TRUE ;
208	};
209
210	// Adjust
211
212	FixedLine FL_ADJUST
213	{
214		Pos = MAP_APPFONT ( 6 + 123 + 6, 120 ) ;
215		Size = MAP_APPFONT ( 119, RSC_CD_FIXEDLINE_HEIGHT ) ;
216		Text [ en-US ] = "Adapt" ;
217	};
218	TriStateBox TSB_AUTOGROW_WIDTH
219	{
220		HelpID = "cui:TriStateBox:RID_SVXPAGE_POSITION_SIZE:TSB_AUTOGROW_WIDTH" ;
221		Pos = MAP_APPFONT ( 12 + 121 + 8, 10 + 120 ) ;
222		Size = MAP_APPFONT ( 113, 10 ) ;
223		Text [ en-US ] = "~Fit width to text" ;
224		TabStop = TRUE ;
225	};
226	TriStateBox TSB_AUTOGROW_HEIGHT
227	{
228		HelpID = "cui:TriStateBox:RID_SVXPAGE_POSITION_SIZE:TSB_AUTOGROW_HEIGHT" ;
229		Pos = MAP_APPFONT ( 12 + 121 + 8, 24 + 120 ) ;
230		Size = MAP_APPFONT ( 113, 10 ) ;
231		Text [ en-US ] = "Fit ~height to text" ;
232		TabStop = TRUE ;
233	};
234
235	FixedLine FL_DIVIDER
236	{
237		Pos = MAP_APPFONT ( 6 + 119 + 5, 128 ) ;
238		Size = MAP_APPFONT ( RSC_CD_FIXEDLINE_WIDTH, 26 ) ;
239		Vert = TRUE ;
240	};
241
242	// Anchor
243
244	FixedLine FL_ANCHOR
245	{
246		Pos = MAP_APPFONT ( 6 + 123 + 6, 120 ) ;
247		Size = MAP_APPFONT ( 119, RSC_CD_FIXEDLINE_HEIGHT ) ;
248		Hide = TRUE ;
249		Text [ en-US ] = "Anchor" ;
250	};
251	FixedText FT_ANCHOR
252	{
253		Pos = MAP_APPFONT ( 12 + 121 + 8, 10 + 120 ) ;
254		Size = MAP_APPFONT ( 37, 10 ) ;
255		Hide = TRUE ;
256		Text [ en-US ] = "~Anchor" ;
257	};
258	ListBox LB_ANCHOR
259	{
260		HelpID = "cui:ListBox:RID_SVXPAGE_POSITION_SIZE:LB_ANCHOR" ;
261		Pos = MAP_APPFONT ( 46 + 121 + 16, 8 + 120 ) ;
262		Size = MAP_APPFONT ( 54, 60 ) ;
263		Hide = TRUE ;
264		DropDown = TRUE ;
265		StringList [ en-US ] =
266		{
267			< "To paragraph" ;	> ;
268			< "As character" ;	> ;
269			< "To page" ;		> ;
270			< "To frame" ;		> ;
271		};
272	};
273	FixedText FT_ORIENT
274	{
275		Pos = MAP_APPFONT ( 12 + 121 + 8, 24 + 120 ) ;
276		Size = MAP_APPFONT ( 37, 10 ) ;
277		Hide = TRUE ;
278		Text [ en-US ] = "P~osition" ;
279	};
280	ListBox LB_ORIENT
281	{
282		HelpID = "cui:ListBox:RID_SVXPAGE_POSITION_SIZE:LB_ORIENT" ;
283		Pos = MAP_APPFONT ( 46 + 121 + 16, 22 + 120 ) ;
284		Size = MAP_APPFONT ( 54, 60 ) ;
285		Hide = TRUE ;
286		DropDown = TRUE ;
287		StringList [ en-US ] =
288		{
289			< "From top" ;				> ;
290			< "Above" ;					> ;
291			< "Centered" ;				> ;
292			< "Below" ;					> ;
293			< "Top of character" ;		> ;
294			< "Center of character" ;	> ;
295			< "Bottom of character" ;	> ;
296			< "Top of line" ;			> ;
297			< "Center of line" ;		> ;
298			< "Bottom of line" ;		> ;
299		};
300	};
301};
302
303 // RID_SVXPAGE_ANGLE --------------------------------------------------------
304TabPage RID_SVXPAGE_ANGLE
305{
306	HelpId = HID_TRANS_ANGLE ;
307	Hide = TRUE ;
308	Text [ en-US ] = "Angle" ;
309	Size = MAP_APPFONT ( 260, MA_TABPAGE_HEIGHT ) ;
310	FixedLine FL_POSITION
311	{
312		Pos = MAP_APPFONT ( 6, 3 ) ;
313		Size = MAP_APPFONT ( 248, RSC_CD_FIXEDLINE_HEIGHT ) ;
314		Text [ en-US ] = "Pivot point" ;
315	};
316	FixedText FT_POS_X
317	{
318		Pos = MAP_APPFONT ( 12, 16 + 11 ) ;
319		Size = MAP_APPFONT ( 40, 10 ) ;
320		Text [ en-US ] = "Position ~X" ;
321	};
322	FixedText FT_POS_Y
323	{
324		Pos = MAP_APPFONT ( 12, 32 + 11 ) ;
325		Size = MAP_APPFONT ( 40, 10 ) ;
326		Text [ en-US ] = "Position ~Y" ;
327	};
328	MetricField MTR_FLD_POS_X
329	{
330		HelpID = "cui:MetricField:RID_SVXPAGE_ANGLE:MTR_FLD_POS_X" ;
331		Border = TRUE ;
332		Pos = MAP_APPFONT ( 56, 14 + 11 ) ;
333		Size = MAP_APPFONT ( 54, 12 ) ;
334		TabStop = TRUE ;
335		Repeat = TRUE ;
336		Spin = TRUE ;
337		Minimum = -500000 ;
338		Maximum = 500000 ;
339		StrictFormat = TRUE ;
340		DecimalDigits = 2 ;
341		Unit = FUNIT_MM ;
342		SpinSize = 10 ;
343	};
344	MetricField MTR_FLD_POS_Y
345	{
346		HelpID = "cui:MetricField:RID_SVXPAGE_ANGLE:MTR_FLD_POS_Y" ;
347		Border = TRUE ;
348		Pos = MAP_APPFONT ( 56, 30 + 11 ) ;
349		Size = MAP_APPFONT ( 54, 12 ) ;
350		TabStop = TRUE ;
351		Repeat = TRUE ;
352		Spin = TRUE ;
353		Minimum = -500000 ;
354		Maximum = 500000 ;
355		StrictFormat = TRUE ;
356		DecimalDigits = 2 ;
357		Unit = FUNIT_MM ;
358		SpinSize = 10 ;
359	};
360	FixedText FT_POSPRESETS
361	{
362		Pos = MAP_APPFONT ( 178, 14 ) ;
363		Size = MAP_APPFONT ( 70, 8 ) ;
364		Text [ en-US ] = "Default settings" ;
365	};
366	Control CTL_RECT
367	{
368		HelpId = HID_TPROTATION_CTRL1 ;
369		Border = TRUE ;
370		Pos = MAP_APPFONT ( 178, 14 + 11 ) ;
371		Size = MAP_APPFONT ( 70, 48 ) ;
372		TabStop = TRUE ;
373		QuickHelpText [ en-US ] = "Rotation point" ;
374	};
375	FixedLine FL_ANGLE
376	{
377		Pos = MAP_APPFONT ( 6, 71 + 11 ) ;
378		Size = MAP_APPFONT ( 248, RSC_CD_FIXEDLINE_HEIGHT ) ;
379		Text [ en-US ] = "Rotation angle" ;
380	};
381	FixedText FT_ANGLE
382	{
383		Pos = MAP_APPFONT ( 12, 84 + 22 ) ;
384		Size = MAP_APPFONT ( 40, 10 ) ;
385		Text [ en-US ] = "~Angle" ;
386	};
387	MetricField MTR_FLD_ANGLE
388	{
389		HelpID = "cui:MetricField:RID_SVXPAGE_ANGLE:MTR_FLD_ANGLE" ;
390		Border = TRUE ;
391		Pos = MAP_APPFONT ( 56, 82 + 22 ) ;
392		Size = MAP_APPFONT ( 54, 12 ) ;
393		TabStop = TRUE ;
394		Repeat = TRUE ;
395		Spin = TRUE ;
396		Minimum = -500000 ;
397		Maximum = 500000 ;
398		StrictFormat = TRUE ;
399		DecimalDigits = 2 ;
400		Unit = FUNIT_CUSTOM ;
401		CustomUnitText [ en-US ] = " degrees" ;
402		SpinSize = 500 ;
403	};
404	FixedText FT_ANGLEPRESETS
405	{
406		Pos = MAP_APPFONT ( 178, 82 + 11 ) ;
407		Size = MAP_APPFONT ( 70, 8 ) ;
408		Text [ en-US ] = "Default settings" ;
409	};
410	Control CTL_ANGLE
411	{
412		HelpId = HID_TPROTATION_CTRL2 ;
413		Border = TRUE ;
414		Pos = MAP_APPFONT ( 178, 82 + 22 ) ;
415		Size = MAP_APPFONT ( 70, 48 ) ;
416		TabStop = TRUE ;
417		QuickHelpText [ en-US ] = "Rotation Angle" ;
418	};
419};
420 // RID_SVXPAGE_SLANT -----------------------------------------------------
421TabPage RID_SVXPAGE_SLANT
422{
423	HelpId = HID_TRANS_SLANT ;
424	Hide = TRUE ;
425	Size = MAP_APPFONT ( 260, MA_TABPAGE_HEIGHT ) ;
426	Text [ en-US ] = "Slant & Corner Radius" ;
427	FixedLine FL_RADIUS
428	{
429		Pos = MAP_APPFONT ( 6, 3 ) ;
430		Size = MAP_APPFONT ( 248, RSC_CD_FIXEDLINE_HEIGHT ) ;
431		Text [ en-US ] = "Corner radius" ;
432	};
433	FixedText FT_RADIUS
434	{
435		Pos = MAP_APPFONT ( 12, 16 ) ;
436		Size = MAP_APPFONT ( 40, 10 ) ;
437		Text [ en-US ] = "~Radius" ;
438	};
439	MetricField MTR_FLD_RADIUS
440	{
441		HelpID = "cui:MetricField:RID_SVXPAGE_SLANT:MTR_FLD_RADIUS" ;
442		Border = TRUE ;
443		Pos = MAP_APPFONT ( 56, 14 ) ;
444		Size = MAP_APPFONT ( 54, 12 ) ;
445		TabStop = TRUE ;
446		Repeat = TRUE ;
447		Spin = TRUE ;
448		Minimum = 0 ;
449		Maximum = 500000 ;
450		StrictFormat = TRUE ;
451		DecimalDigits = 2 ;
452		Unit = FUNIT_MM ;
453		SpinSize = 10 ;
454	};
455	FixedLine FL_SLANT
456	{
457		Pos = MAP_APPFONT ( 6, 35 ) ;
458		Size = MAP_APPFONT ( 248, RSC_CD_FIXEDLINE_HEIGHT ) ;
459		Text [ en-US ] = "Slant" ;
460	};
461	FixedText FT_ANGLE
462	{
463		Pos = MAP_APPFONT ( 12, 48 ) ;
464		Size = MAP_APPFONT ( 40, 10 ) ;
465		Text [ en-US ] = "~Angle" ;
466	};
467	MetricField MTR_FLD_ANGLE
468	{
469		HelpID = "cui:MetricField:RID_SVXPAGE_SLANT:MTR_FLD_ANGLE" ;
470		Border = TRUE ;
471		Pos = MAP_APPFONT ( 56, 46 ) ;
472		Size = MAP_APPFONT ( 54, 12 ) ;
473		TabStop = TRUE ;
474		Repeat = TRUE ;
475		Spin = TRUE ;
476		Minimum = -8900 ;
477		First = -8900 ;
478		Maximum = 8900 ;
479		Last = 8900 ;
480		StrictFormat = TRUE ;
481		DecimalDigits = 2 ;
482		Unit = FUNIT_CUSTOM ;
483		SpinSize = 500 ;
484		CustomUnitText [ en-US ] = " degrees" ;
485	};
486};
487 // RID_SVXDLG_TRANSFORM -----------------------------------------------------
488
489#define _POS_SIZE_TEXT \
490	Text [ en-US ] = "Position and Size" ; \
491
492
493TabDialog RID_SVXDLG_TRANSFORM\
494{
495	OutputSize = TRUE ;
496	SvLook = TRUE ;
497	Size = MAP_APPFONT ( 289, MA_TABPAGE_HEIGHT + 41 ) ;
498	Text [ en-US ] = "Position and Size" ; \
499	Moveable = TRUE ;
500	TabControl TAB_CONTROL\
501	{
502		OutputSize = TRUE ;
503		Pos = MAP_APPFONT ( 3, 3 ) ;
504		Size = MAP_APPFONT ( 260, MA_TABPAGE_HEIGHT ) ;
505		PageList =
506		{
507			PageItem\
508			{
509				Identifier = RID_SVXPAGE_POSITION_SIZE ;
510				PageResID = RID_SVXPAGE_POSITION_SIZE ;
511				_POS_SIZE_TEXT
512			};
513			PageItem
514			{
515				Identifier = RID_SVXPAGE_SWPOSSIZE ;
516				PageResID = RID_SVXPAGE_SWPOSSIZE ;
517				_POS_SIZE_TEXT
518			};
519			PageItem
520			{
521				Identifier = RID_SVXPAGE_ANGLE ;
522				Text [ en-US ] = "Rotation" ;
523				PageResID = RID_SVXPAGE_ANGLE ;
524			};
525			PageItem
526			{
527				Identifier = RID_SVXPAGE_SLANT ;
528				PageResID = RID_SVXPAGE_SLANT ;
529				Text [ en-US ] = "Slant & Corner Radius" ;
530			};
531		};
532	};
533};
534
535// ********************************************************************** EOF
536