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