1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 // include ------------------------------------------------------------------
28 #include <svtools/controldims.hrc>
31 #include "transfrm.hrc"
32 #include <svx/dialogs.hrc>
34 #define MA_TABPAGE_HEIGHT 185
36 // RID_SVXPAGE_POSITION_SIZE ------------------------------------------------
37 TabPage RID_SVXPAGE_POSITION_SIZE
39 HelpId = HID_TRANS_POSITION_SIZE ;
41 Text [ en-US ] = "Position and Size" ;
42 Size = MAP_APPFONT ( 260 , MA_TABPAGE_HEIGHT ) ;
46 Pos = MAP_APPFONT ( 6 , 3 ) ;
47 Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ;
48 Text [ en-US ] = "Position" ;
52 Pos = MAP_APPFONT ( 12 , 16 + 8 ) ;
53 Size = MAP_APPFONT ( 40 , 10 ) ;
54 Text [ en-US ] = "Position ~X" ;
58 Pos = MAP_APPFONT ( 12 , 32 + 8 ) ;
59 Size = MAP_APPFONT ( 40 , 10 ) ;
60 Text [ en-US ] = "Position ~Y" ;
62 MetricField MTR_FLD_POS_X
64 HelpID = "cui:MetricField:RID_SVXPAGE_POSITION_SIZE:MTR_FLD_POS_X";
66 Pos = MAP_APPFONT ( 56 , 14 + 8 ) ;
67 Size = MAP_APPFONT ( 54 , 12 ) ;
78 MetricField MTR_FLD_POS_Y
80 HelpID = "cui:MetricField:RID_SVXPAGE_POSITION_SIZE:MTR_FLD_POS_Y";
82 Pos = MAP_APPFONT ( 56 , 30 + 8 ) ;
83 Size = MAP_APPFONT ( 54 , 12 ) ;
94 FixedText FT_POSREFERENCE
96 Pos = MAP_APPFONT ( 178 , 2 + 8 ) ;
97 Size = MAP_APPFONT ( 70 , 10 ) ;
98 Text [ en-US ] = "Base point";
102 HelpId = HID_TPPOSITION_CTRL ;
104 Pos = MAP_APPFONT ( 178 , 12 + 8 ) ;
105 Size = MAP_APPFONT ( 48 , 34 ) ;
107 QuickHelpText [ en-US ] = "Base point" ;
114 Pos = MAP_APPFONT ( 6 , 56 ) ;
115 Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ;
116 Text [ en-US ] = "Size" ;
120 Pos = MAP_APPFONT ( 12 , 16 + 61 ) ;
121 Size = MAP_APPFONT ( 40 , 10 ) ;
122 Text [ en-US ] = "Wi~dth" ;
126 Pos = MAP_APPFONT ( 12 , 32 + 61 ) ;
127 Size = MAP_APPFONT ( 40 , 10 ) ;
128 Text [ en-US ] = "H~eight" ;
130 MetricField MTR_FLD_WIDTH
132 HelpID = "cui:MetricField:RID_SVXPAGE_POSITION_SIZE:MTR_FLD_WIDTH";
134 Pos = MAP_APPFONT ( 56 , 14 + 61 ) ;
135 Size = MAP_APPFONT ( 54 , 12 ) ;
141 StrictFormat = TRUE ;
146 MetricField MTR_FLD_HEIGHT
148 HelpID = "cui:MetricField:RID_SVXPAGE_POSITION_SIZE:MTR_FLD_HEIGHT";
150 Pos = MAP_APPFONT ( 56 , 30 + 61 ) ;
151 Size = MAP_APPFONT ( 54 , 12 ) ;
157 StrictFormat = TRUE ;
162 FixedText FT_SIZEREFERENCE
164 Pos = MAP_APPFONT ( 178 , 2 + 61 ) ;
165 Size = MAP_APPFONT ( 70 , 10 ) ;
166 Text [ en-US ] = "Base point";
170 HelpId = HID_TPSIZE_CTRL ;
172 Pos = MAP_APPFONT ( 178 , 12 + 61 ) ;
173 Size = MAP_APPFONT ( 48 , 34 ) ;
175 QuickHelpText [ en-US ] = "Base point" ;
179 HelpID = "cui:CheckBox:RID_SVXPAGE_POSITION_SIZE:CBX_SCALE";
180 Pos = MAP_APPFONT ( 12 , 47 + 61 ) ;
181 Size = MAP_APPFONT ( 162 , 10 ) ;
183 Text [ en-US ] = "~Keep ratio" ;
190 Pos = MAP_APPFONT ( 6 , 120 ) ;
191 Size = MAP_APPFONT ( 119 , RSC_CD_FIXEDLINE_HEIGHT ) ;
192 Text [ en-US ] = "Protect" ;
195 TriStateBox TSB_POSPROTECT
197 HelpID = "cui:TriStateBox:RID_SVXPAGE_POSITION_SIZE:TSB_POSPROTECT";
198 Pos = MAP_APPFONT ( 12 , 10 + 120 ) ;
199 Size = MAP_APPFONT ( 113 , 10 ) ;
200 Text [ en-US ] = "Position" ;
204 TriStateBox TSB_SIZEPROTECT
206 HelpID = "cui:TriStateBox:RID_SVXPAGE_POSITION_SIZE:TSB_SIZEPROTECT";
207 Pos = MAP_APPFONT ( 12 , 24 + 120 ) ;
208 Size = MAP_APPFONT ( 113 , 10 ) ;
209 Text [ en-US ] = "~Size" ;
217 Pos = MAP_APPFONT ( 6 + 123 + 6 , 120 ) ;
218 Size = MAP_APPFONT ( 119 , RSC_CD_FIXEDLINE_HEIGHT ) ;
219 Text [ en-US ] = "Adapt" ;
221 TriStateBox TSB_AUTOGROW_WIDTH
223 HelpID = "cui:TriStateBox:RID_SVXPAGE_POSITION_SIZE:TSB_AUTOGROW_WIDTH";
224 Pos = MAP_APPFONT ( 12 + 121 + 8, 10 + 120 ) ;
225 Size = MAP_APPFONT ( 113 , 10 ) ;
226 Text [ en-US ] = "~Fit width to text" ;
229 TriStateBox TSB_AUTOGROW_HEIGHT
231 HelpID = "cui:TriStateBox:RID_SVXPAGE_POSITION_SIZE:TSB_AUTOGROW_HEIGHT";
232 Pos = MAP_APPFONT ( 12 + 121 + 8, 24 + 120 ) ;
233 Size = MAP_APPFONT ( 113 , 10 ) ;
234 Text [ en-US ] = "Fit ~height to text" ;
240 Pos = MAP_APPFONT( 6 + 119 + 5, 128 );
241 Size = MAP_APPFONT( RSC_CD_FIXEDLINE_WIDTH, 26 );
249 Pos = MAP_APPFONT ( 6 + 123 + 6 , 120 ) ;
250 Size = MAP_APPFONT ( 119 , RSC_CD_FIXEDLINE_HEIGHT ) ;
252 Text [ en-US ] = "Anchor" ;
256 Pos = MAP_APPFONT ( 12 + 121 + 8, 10 + 120 ) ;
257 Size = MAP_APPFONT ( 37 , 10 ) ;
259 Text [ en-US ] = "~Anchor" ;
263 HelpID = "cui:ListBox:RID_SVXPAGE_POSITION_SIZE:LB_ANCHOR";
264 Pos = MAP_APPFONT ( 46 + 121 + 16 , 8 + 120 ) ;
265 Size = MAP_APPFONT ( 54 , 60 ) ;
268 StringList [ en-US ] =
270 < "To paragraph" ; > ;
271 < "As character" ; > ;
278 Pos = MAP_APPFONT ( 12 + 121 + 8, 24 + 120 ) ;
279 Size = MAP_APPFONT ( 37 , 10 ) ;
281 Text [ en-US ] = "P~osition";
285 HelpID = "cui:ListBox:RID_SVXPAGE_POSITION_SIZE:LB_ORIENT";
286 Pos = MAP_APPFONT ( 46 + 121 + 16 , 22 + 120 );
287 Size = MAP_APPFONT ( 54 , 60 ) ;
290 StringList [ en-US ] =
296 < "Top of character" ; > ;
297 < "Center of character" ; > ;
298 < "Bottom of character" ; > ;
299 < "Top of line" ; > ;
300 < "Center of line" ; > ;
301 < "Bottom of line" ; > ;
306 // RID_SVXPAGE_ANGLE --------------------------------------------------------
307 TabPage RID_SVXPAGE_ANGLE
309 HelpId = HID_TRANS_ANGLE ;
311 Text [ en-US ] = "Angle" ;
312 Size = MAP_APPFONT ( 260 , MA_TABPAGE_HEIGHT ) ;
313 FixedLine FL_POSITION
315 Pos = MAP_APPFONT ( 6 , 3 ) ;
316 Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ;
317 Text [ en-US ] = "Pivot point" ;
321 Pos = MAP_APPFONT ( 12 , 16 + 11 ) ;
322 Size = MAP_APPFONT ( 40 , 10 ) ;
323 Text [ en-US ] = "Position ~X" ;
327 Pos = MAP_APPFONT ( 12 , 32 + 11 ) ;
328 Size = MAP_APPFONT ( 40 , 10 ) ;
329 Text [ en-US ] = "Position ~Y" ;
331 MetricField MTR_FLD_POS_X
333 HelpID = "cui:MetricField:RID_SVXPAGE_ANGLE:MTR_FLD_POS_X";
335 Pos = MAP_APPFONT ( 56 , 14 + 11 ) ;
336 Size = MAP_APPFONT ( 54 , 12 ) ;
342 StrictFormat = TRUE ;
347 MetricField MTR_FLD_POS_Y
349 HelpID = "cui:MetricField:RID_SVXPAGE_ANGLE:MTR_FLD_POS_Y";
351 Pos = MAP_APPFONT ( 56 , 30 + 11 ) ;
352 Size = MAP_APPFONT ( 54 , 12 ) ;
358 StrictFormat = TRUE ;
363 FixedText FT_POSPRESETS
365 Pos = MAP_APPFONT ( 178 , 14 ) ;
366 Size = MAP_APPFONT ( 70 , 8 ) ;
367 Text [ en-US ] = "Default settings";
371 HelpId = HID_TPROTATION_CTRL1 ;
373 Pos = MAP_APPFONT ( 178 , 14 + 11 ) ;
374 Size = MAP_APPFONT ( 70 , 48 ) ;
376 QuickHelpText [ en-US ] = "Rotation point" ;
380 Pos = MAP_APPFONT ( 6 , 71 + 11 ) ;
381 Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ;
382 Text [ en-US ] = "Rotation angle" ;
386 Pos = MAP_APPFONT ( 12 , 84 + 22 ) ;
387 Size = MAP_APPFONT ( 40 , 10 ) ;
388 Text [ en-US ] = "~Angle" ;
390 MetricField MTR_FLD_ANGLE
392 HelpID = "cui:MetricField:RID_SVXPAGE_ANGLE:MTR_FLD_ANGLE";
394 Pos = MAP_APPFONT ( 56 , 82 + 22 ) ;
395 Size = MAP_APPFONT ( 54 , 12 ) ;
401 StrictFormat = TRUE ;
403 Unit = FUNIT_CUSTOM ;
404 CustomUnitText [ en-US ] = " degrees" ;
407 FixedText FT_ANGLEPRESETS
409 Pos = MAP_APPFONT ( 178 , 82 + 11 ) ;
410 Size = MAP_APPFONT ( 70 , 8 ) ;
411 Text [ en-US ] = "Default settings";
415 HelpId = HID_TPROTATION_CTRL2 ;
417 Pos = MAP_APPFONT ( 178 , 82 + 22 ) ;
418 Size = MAP_APPFONT ( 70 , 48 ) ;
420 QuickHelpText [ en-US ] = "Rotation Angle";
423 // RID_SVXPAGE_SLANT -----------------------------------------------------
424 TabPage RID_SVXPAGE_SLANT
426 HelpId = HID_TRANS_SLANT ;
428 Size = MAP_APPFONT ( 260 , MA_TABPAGE_HEIGHT ) ;
429 Text [ en-US ] = "Slant & Corner Radius" ;
432 Pos = MAP_APPFONT ( 6 , 3 ) ;
433 Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ;
434 Text [ en-US ] = "Corner radius" ;
438 Pos = MAP_APPFONT ( 12 , 16 ) ;
439 Size = MAP_APPFONT ( 40 , 10 ) ;
440 Text [ en-US ] = "~Radius" ;
442 MetricField MTR_FLD_RADIUS
444 HelpID = "cui:MetricField:RID_SVXPAGE_SLANT:MTR_FLD_RADIUS";
446 Pos = MAP_APPFONT ( 56 , 14 ) ;
447 Size = MAP_APPFONT ( 54 , 12 ) ;
453 StrictFormat = TRUE ;
460 Pos = MAP_APPFONT ( 6 , 35 ) ;
461 Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ;
462 Text [ en-US ] = "Slant" ;
466 Pos = MAP_APPFONT ( 12 , 48 ) ;
467 Size = MAP_APPFONT ( 40 , 10 ) ;
468 Text [ en-US ] = "~Angle" ;
470 MetricField MTR_FLD_ANGLE
472 HelpID = "cui:MetricField:RID_SVXPAGE_SLANT:MTR_FLD_ANGLE";
474 Pos = MAP_APPFONT ( 56 , 46 ) ;
475 Size = MAP_APPFONT ( 54 , 12 ) ;
483 StrictFormat = TRUE ;
485 Unit = FUNIT_CUSTOM ;
487 CustomUnitText [ en-US ] = " degrees" ;
490 // RID_SVXDLG_TRANSFORM -----------------------------------------------------
492 #define _POS_SIZE_TEXT \
493 Text [ en-US ] = "Position and Size" ; \
496 TabDialog RID_SVXDLG_TRANSFORM\
500 Size = MAP_APPFONT ( 289 , MA_TABPAGE_HEIGHT + 41 ) ;
501 Text [ en-US ] = "Position and Size" ;\
503 TabControl TAB_CONTROL\
506 Pos = MAP_APPFONT ( 3 , 3 ) ;
507 Size = MAP_APPFONT ( 260 , MA_TABPAGE_HEIGHT ) ;
512 Identifier = RID_SVXPAGE_POSITION_SIZE ;
513 PageResID = RID_SVXPAGE_POSITION_SIZE ;
518 Identifier = RID_SVXPAGE_SWPOSSIZE;
519 PageResID = RID_SVXPAGE_SWPOSSIZE;
524 Identifier = RID_SVXPAGE_ANGLE ;
525 Text [ en-US ] = "Rotation" ;
526 PageResID = RID_SVXPAGE_ANGLE ;
530 Identifier = RID_SVXPAGE_SLANT ;
531 PageResID = RID_SVXPAGE_SLANT ;
532 Text [ en-US ] = "Slant & Corner Radius" ;
537 // ********************************************************************** EOF