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 "PosSizePropertyPanel.hrc" 23#include <sfx2/sidebar/ResourceDefinitions.hrc> 24#include <svx/dialogs.hrc> 25#include "helpid.hrc" 26 27#define TOOLBOX_HEIGHT 14 28 29Control RID_SIDEBAR_POSSIZE_PANEL 30{ 31 OutputSize = TRUE; 32 DialogControl = TRUE; 33 Border = FALSE; 34 35 Size = MAP_APPFONT( 36 PROPERTYPAGE_WIDTH, 37 BTN_FLIP_HORI_Y + TOOLBOX_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT); 38 HelpID = HID_PROPERTYPANEL_POSIZE_SECTION ; 39 Text = "Position and Size"; 40 41 FixedText FT_WIDTH 42 { 43 Pos = MAP_APPFONT ( FT_WIDTH_X, FT_WIDTH_Y ); 44 Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT) ; 45 Text [ en-US ] = "~Width:"; 46 }; 47 MetricField MTR_FLD_WIDTH 48 { 49 Border = TRUE ; 50 Pos = MAP_APPFONT ( FLD_WIDTH_X, FLD_WIDTH_Y ); 51 Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ; 52 QuickHelpText [ en-US ] = "Enter a width for the selected object."; 53 Repeat = TRUE ; 54 Spin = TRUE ; 55 Maximum = 9999 ; 56 StrictFormat = TRUE ; 57 Unit = FUNIT_INCH; 58 Last = 9999 ; 59 SpinSize = 2 ; 60 HelpID = HID_PROPERTY_PANEL_POSIZE_MTR_FLD_WIDTH; 61 }; 62 FixedText FT_HEIGHT 63 { 64 Pos = MAP_APPFONT ( FT_HEIGHT_X, FT_HEIGHT_Y ); 65 Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT) ; 66 Text [ en-US ] = "H~eight:"; 67 }; 68 MetricField MTR_FLD_HEIGHT 69 { 70 Border = TRUE ; 71 Pos = MAP_APPFONT ( FLD_HEIGHT_X, FLD_HEIGHT_Y ); 72 Size = MAP_APPFONT ( MBOX_WIDTH + 1, MBOX_HEIGHT ) ; 73 QuickHelpText [ en-US ] = "Enter a height for the selected object."; 74 Repeat = TRUE ; 75 Spin = TRUE ; 76 Maximum = 9999 ; 77 StrictFormat = TRUE ; 78 Unit = FUNIT_INCH; 79 Last = 9999 ; 80 SpinSize = 2 ; 81 HelpID = HID_PROPERTY_PANEL_POSIZE_MTR_FLD_HEIGHT; 82 }; 83 CheckBox CBX_SCALE 84 { 85 Pos = MAP_APPFONT ( CBX_X , CBX_Y ) ; 86 Size = MAP_APPFONT ( MBOX_WIDTH + 30 , CBOX_HEIGHT ) ; 87 TabStop = TRUE ; 88 Text [ en-US ] = "~Keep ratio" ; 89 QuickHelpText [ en-US ] = "Maintain proportions when you resize the selected object."; 90 HelpID = HID_PROPERTY_PANEL_POSIZE_CBX_SCALE; 91 }; 92 //------------ Position ------------ 93 FixedText FT_SBSHAPE_HORIZONTAL 94 { 95 Pos = MAP_APPFONT ( FT_POSITION_X_X, FT_POSITION_X_Y ); 96 Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT) ; 97 Text [ en-US ] = "~Horizontal:"; 98 }; 99 MetricField MF_SBSHAPE_HORIZONTAL 100 { 101 Border = TRUE; 102 Pos = MAP_APPFONT ( MF_POSITION_X_X , MF_POSITION_X_Y ); 103 Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ; 104 QuickHelpText [ en-US ] = "Enter the value for the horizontal position."; 105 TabStop = TRUE; 106 Repeat = TRUE; 107 Spin = TRUE; 108 Minimum = -120000; 109 Maximum = 240000; 110 StrictFormat = TRUE; 111 DecimalDigits = 2; 112 Unit = FUNIT_MM; 113 SpinSize = 10; 114 HelpID = HID_PROPERTY_PANEL_POSIZE_MF_HORIZONTAL; 115 }; 116 FixedText FT_SBSHAPE_VERTICAL 117 { 118 Pos = MAP_APPFONT ( FT_POSITION_Y_X , FT_POSITION_Y_Y ); 119 Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT) ; 120 Text [ en-US ] = "~Vertical:"; 121 }; 122 MetricField MF_SBSHAPE_VERTICAL 123 { 124 Border = TRUE; 125 Pos = MAP_APPFONT ( MF_POSITION_Y_X , MF_POSITION_Y_Y ); 126 Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ; 127 QuickHelpText [ en-US ] = "Enter the value for the vertical position."; 128 TabStop = TRUE; 129 Repeat = TRUE; 130 Spin = TRUE; 131 Minimum = -120000; 132 Maximum = 240000; 133 StrictFormat = TRUE; 134 DecimalDigits = 2; 135 Unit = FUNIT_MM; 136 SpinSize = 10; 137 HelpID = HID_PROPERTY_PANEL_POSIZE_MF_VERTICAL; 138 }; 139 FixedText FT_ANGLE 140 { 141 Pos = MAP_APPFONT ( FT_ROTATION_X , FT_ROTATION_Y ); 142 Size = MAP_APPFONT ( TEXT_WIDTH + 50, TEXT_HEIGHT) ; 143 Text [ en-US ] = "~Rotation:"; 144 }; 145 146 MetricBox MTR_FLD_ANGLE 147 { 148 Border = TRUE ; 149 Pos = MAP_APPFONT ( MF_ROTATION_X , MF_ROTATION_Y ); 150 Size = MAP_APPFONT ( MBOX_WIDTH + 10, MBOX_HEIGHT ) ; 151 QuickHelpText [ en-US ] = "Select the angle for rotation."; 152 Unit = FUNIT_CUSTOM ; 153 CustomUnitText [ en-US ] = " degrees"; 154 DecimalDigits = 2; 155 Minimum = -18000; // set minmun value or it will be 0 as default 156 TabStop = TRUE ; 157 DropDown = TRUE ; 158 HelpID = HID_PROPERTY_PANEL_POSIZE_MTR_FLD_ANGLE; 159 }; 160 161 FixedText FT_FLIP 162 { 163 Pos = MAP_APPFONT ( FT_FLIP_X , FT_FLIP_Y ); 164 Size = MAP_APPFONT ( PROPERTYPAGE_WIDTH - SECTIONPAGE_MARGIN_HORIZONTAL*2 - 40 - CONTROL_SPACING_HORIZONTAL - TOOLBOX_ITEM_WIDTH * 2 , TEXT_HEIGHT) ;//20 wj 165 Text [ en-US ] = "~Flip:"; 166 }; 167 168 ToolBox TBX_FLIP 169 { 170 Pos = MAP_APPFONT ( BTN_FLIP_HORI_X , BTN_FLIP_HORI_Y ); 171 Size = MAP_APPFONT ( TOOLBOX_ITEM_WIDTH * 2, TOOLBOX_HEIGHT); 172 SVLook = TRUE ; 173 Border = FALSE ; 174 HelpID = HID_PROPERTY_PANEL_POSIZE_TBX_FLIP; 175 Text = "Flip"; 176 ItemList = 177 { 178 ToolBoxItem 179 { 180 Identifier = FLIP_VERTICAL ; 181 Text [ en-US ] = "Flip Vertically" ; 182 HelpID = HID_PROPERTY_PANEL_POSIZE_FLIP_VERTICAL; 183 }; 184 ToolBoxItem 185 { 186 Identifier = FLIP_HORIZONTAL ; 187 Text [ en-US ] = "Flip Horizontally" ; 188 HelpID = HID_PROPERTY_PANEL_POSIZE_FLIP_HORIZONTAL; 189 }; 190 }; 191 }; 192 193 String STR_QH_HORI_FLIP 194 { 195 Text [ en-US ] = "Flip the selected object horizontally."; 196 }; 197 String STR_QH_VERT_FLIP 198 { 199 Text [ en-US ] = "Flip the selected object vertically."; 200 }; 201 202 Control DIAL_CONTROL 203 { 204 Pos = MAP_APPFONT ( ROTATE_CONTROL_X , ROTATE_CONTROL_Y ); 205 Size = MAP_PIXEL( 50, 50 ); 206 HelpID = HID_PROPERTY_PANEL_POSIZE_DIAL_CONTROL; 207 }; 208}; 209 210// eof 211