1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 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. 14 * 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). 20 * 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. 25 * 26 ************************************************************************/ 27#include "HelpIds.hrc" 28#include "tp_Scale.hrc" 29 30#define YLine1 3 31#define Y1 (YLine1+13) 32#define Y2 (Y1+16) 33#define Y3 (Y2+16) 34#define Y4 (Y3+16) 35#define Y5 (Y4+16) 36#define Y6 (Y5+16) 37#define Y7 (Y6+16) 38#define Y8 (Y7+16) 39 40#define LABELWIDTH 88 41#define AUTOCHECKWIDTH 41 42#define EDITWIDTH 50 43#define X1 6 44#define X2 11 45#define X3 (X2+LABELWIDTH+4) 46#define X4 (X3+EDITWIDTH+5) 47#define X5 (X4+AUTOCHECKWIDTH+5) 48 49#define STR_LIST_TIME_UNIT \ 50 StringList [ en-US ] = \ 51 { \ 52 "Days" ; \ 53 "Months" ; \ 54 "Years" ; \ 55 }; 56 57TabPage TP_SCALE 58{ 59 HelpID = "chart2:TabPage:TP_SCALE"; 60 Hide = TRUE ; 61 SVLook = TRUE ; 62 Size = MAP_APPFONT ( 260 , 185 ) ; 63 64 FixedLine FL_SCALE 65 { 66 Pos = MAP_APPFONT ( X1 , YLine1 ) ; 67 Size = MAP_APPFONT ( 248 , 8 ) ; 68 Text [ en-US ] = "Scale" ; 69 }; 70 //--------------------------- 71 CheckBox CBX_REVERSE 72 { 73 HelpID = "chart2:CheckBox:TP_SCALE:CBX_REVERSE:ValueAxis"; 74 Pos = MAP_APPFONT ( X2 , Y1 ) ; 75 Size = MAP_APPFONT ( 244 , 10 ) ; 76 TabStop = TRUE ; 77 Text [ en-US ] = "~Reverse direction" ; 78 }; 79 //--------------------------- 80 CheckBox CBX_LOGARITHM 81 { 82 HelpID = "chart2:CheckBox:TP_SCALE:CBX_LOGARITHM"; 83 Pos = MAP_APPFONT ( X2 , Y2 ) ; 84 Size = MAP_APPFONT ( 244 , 10 ) ; 85 TabStop = TRUE ; 86 Text [ en-US ] = "~Logarithmic scale" ; 87 }; 88 //--------------------------- 89 FixedText TXT_AXIS_TYPE 90 { 91 Pos = MAP_APPFONT ( X2 , Y2 ) ; 92 Size = MAP_APPFONT ( LABELWIDTH , 8 ) ; 93 Text [ en-US ] = "T~ype" ; 94 }; 95 ListBox LB_AXIS_TYPE 96 { 97 HelpID = "chart2:ListBox:TP_SCALE:LB_AXIS_TYPE"; 98 Border = TRUE ; 99 AutoHScroll = TRUE ; 100 Pos = MAP_APPFONT ( X3 , Y2-2 ) ; 101 Size = MAP_APPFONT ( EDITWIDTH , 12 ) ; 102 TabStop = TRUE ; 103 Group = TRUE ; 104 DropDown=TRUE; 105 DDExtraWidth = TRUE ; 106 107 StringList [ en-US ] = 108 { 109 "Automatic" ; 110 "Text" ; 111 "Date" ; 112 }; 113 }; 114 //--------------------------- 115 FixedText TXT_MIN 116 { 117 Pos = MAP_APPFONT ( X2 , Y3 ) ; 118 Size = MAP_APPFONT ( LABELWIDTH , 8 ) ; 119 Text [ en-US ] = "~Minimum" ; 120 }; 121 SpinField EDT_MIN 122 { 123 HelpID = "chart2:SpinField:TP_SCALE:EDT_MIN"; 124 Border = TRUE ; 125 SVLook = TRUE ; 126 Pos = MAP_APPFONT ( X3 , Y3-2 ) ; 127 Size = MAP_APPFONT ( EDITWIDTH , 12 ) ; 128 TabStop = TRUE ; 129 }; 130 CheckBox CBX_AUTO_MIN 131 { 132 HelpID = "chart2:CheckBox:TP_SCALE:CBX_AUTO_MIN"; 133 Pos = MAP_APPFONT ( X4 , Y3+1 ) ; 134 Size = MAP_APPFONT ( AUTOCHECKWIDTH , 10 ) ; 135 TabStop = TRUE ; 136 Text [ en-US ] = "~Automatic" ; 137 }; 138 //--------------------------- 139 FixedText TXT_MAX 140 { 141 Pos = MAP_APPFONT ( X2 , Y4 ) ; 142 Size = MAP_APPFONT ( LABELWIDTH , 8 ) ; 143 Text [ en-US ] = "Ma~ximum" ; 144 }; 145 SpinField EDT_MAX 146 { 147 HelpID = "chart2:SpinField:TP_SCALE:EDT_MAX"; 148 Border = TRUE ; 149 SVLook = TRUE ; 150 Pos = MAP_APPFONT ( X3 , Y4-2 ) ; 151 Size = MAP_APPFONT ( EDITWIDTH , 12 ) ; 152 TabStop = TRUE ; 153 }; 154 CheckBox CBX_AUTO_MAX 155 { 156 HelpID = "chart2:CheckBox:TP_SCALE:CBX_AUTO_MAX"; 157 Pos = MAP_APPFONT ( X4 , Y4+1 ) ; 158 Size = MAP_APPFONT ( AUTOCHECKWIDTH , 10 ) ; 159 TabStop = TRUE ; 160 Text [ en-US ] = "A~utomatic" ; 161 }; 162 //--------------------------- 163 FixedText TXT_TIME_RESOLUTION 164 { 165 Pos = MAP_APPFONT ( X2 , Y5 ) ; 166 Size = MAP_APPFONT ( LABELWIDTH , 8 ) ; 167 Text [ en-US ] = "R~esolution" ; 168 }; 169 ListBox LB_TIME_RESOLUTION 170 { 171 HelpID = "chart2:ListBox:TP_SCALE:LB_TIME_RESOLUTION"; 172 Border = TRUE ; 173 AutoHScroll = TRUE ; 174 Pos = MAP_APPFONT ( X3 , Y5-2 ) ; 175 Size = MAP_APPFONT ( EDITWIDTH , 12 ) ; 176 TabStop = TRUE ; 177 Group = TRUE ; 178 DropDown=TRUE; 179 DDExtraWidth = TRUE ; 180 181 STR_LIST_TIME_UNIT 182 }; 183 CheckBox CBX_AUTO_TIME_RESOLUTION 184 { 185 HelpID = "chart2:CheckBox:TP_SCALE:CBX_AUTO_TIME_RESOLUTION"; 186 Pos = MAP_APPFONT ( X4 , Y5+1 ) ; 187 Size = MAP_APPFONT ( AUTOCHECKWIDTH , 10 ) ; 188 TabStop = TRUE ; 189 Text [ en-US ] = "Automat~ic" ; 190 }; 191 //--------------------------- 192 FixedText TXT_STEP_MAIN 193 { 194 Pos = MAP_APPFONT ( X2 , Y5 ) ; 195 Size = MAP_APPFONT ( LABELWIDTH , 8 ) ; 196 Text [ en-US ] = "Ma~jor interval" ; 197 }; 198 SpinField EDT_STEP_MAIN 199 { 200 HelpID = "chart2:SpinField:TP_SCALE:EDT_STEP_MAIN"; 201 Border = TRUE ; 202 Pos = MAP_APPFONT ( X3 , Y5-2 ) ; 203 Size = MAP_APPFONT ( EDITWIDTH , 12 ) ; 204 TabStop = TRUE ; 205 }; 206 MetricField MT_MAIN_DATE_STEP 207 { 208 HelpID = "chart2:MetricField:TP_SCALE:MT_MAIN_DATE_STEP"; 209 Border = TRUE ; 210 Pos = MAP_APPFONT ( X3 , Y6-2 ) ; 211 Size = MAP_APPFONT ( EDITWIDTH , 12 ) ; 212 TabStop = TRUE ; 213 Repeat = TRUE ; 214 Spin = TRUE ; 215 Minimum = 1 ; 216 Maximum = 100000 ; 217 StrictFormat = TRUE ; 218 Unit = FUNIT_CUSTOM ; 219 First = 1 ; 220 Last = 100000 ; 221 SpinSize = 1 ; 222 }; 223 224 ListBox LB_MAIN_TIME_UNIT 225 { 226 HelpID = "chart2:ListBox:TP_SCALE:LB_MAIN_TIME_UNIT"; 227 Border = TRUE ; 228 AutoHScroll = TRUE ; 229 Pos = MAP_APPFONT ( X5 , Y6-2 ) ; 230 Size = MAP_APPFONT ( EDITWIDTH , 12 ) ; 231 TabStop = TRUE ; 232 Group = TRUE ; 233 DropDown=TRUE; 234 DDExtraWidth = TRUE ; 235 236 STR_LIST_TIME_UNIT 237 }; 238 239 CheckBox CBX_AUTO_STEP_MAIN 240 { 241 HelpID = "chart2:CheckBox:TP_SCALE:CBX_AUTO_STEP_MAIN"; 242 Pos = MAP_APPFONT ( X4 , Y5+1 ) ; 243 Size = MAP_APPFONT ( AUTOCHECKWIDTH , 10 ) ; 244 TabStop = TRUE ; 245 Text [ en-US ] = "Au~tomatic" ; 246 }; 247 //--------------------------- 248 FixedText TXT_STEP_HELP_COUNT 249 { 250 Pos = MAP_APPFONT ( X2 , Y6 ) ; 251 Size = MAP_APPFONT ( LABELWIDTH , 8 ) ; 252 Text [ en-US ] = "Minor inter~val count" ; 253 }; 254 FixedText TXT_STEP_HELP 255 { 256 Pos = MAP_APPFONT ( X2 , Y7 ) ; 257 Size = MAP_APPFONT ( LABELWIDTH , 8 ) ; 258 Text [ en-US ] = "Minor inter~val" ; 259 }; 260 MetricField MT_STEPHELP 261 { 262 HelpID = "chart2:MetricField:TP_SCALE:MT_STEPHELP"; 263 Border = TRUE ; 264 Pos = MAP_APPFONT ( X3 , Y6-2 ) ; 265 Size = MAP_APPFONT ( EDITWIDTH , 12 ) ; 266 TabStop = TRUE ; 267 Repeat = TRUE ; 268 Spin = TRUE ; 269 Minimum = 1 ; 270 Maximum = 100 ; 271 StrictFormat = TRUE ; 272 Unit = FUNIT_CUSTOM ; 273 First = 1 ; 274 Last = 100 ; 275 SpinSize = 1 ; 276 }; 277 ListBox LB_HELP_TIME_UNIT 278 { 279 HelpID = "chart2:ListBox:TP_SCALE:LB_HELP_TIME_UNIT"; 280 Border = TRUE ; 281 AutoHScroll = TRUE ; 282 Pos = MAP_APPFONT ( X5 , Y7-2 ) ; 283 Size = MAP_APPFONT ( EDITWIDTH , 12 ) ; 284 TabStop = TRUE ; 285 Group = TRUE ; 286 DropDown=TRUE; 287 DDExtraWidth = TRUE ; 288 289 STR_LIST_TIME_UNIT 290 }; 291 CheckBox CBX_AUTO_STEP_HELP 292 { 293 HelpID = "chart2:CheckBox:TP_SCALE:CBX_AUTO_STEP_HELP"; 294 Pos = MAP_APPFONT ( X4 , Y6+1 ) ; 295 Size = MAP_APPFONT ( AUTOCHECKWIDTH , 10 ) ; 296 TabStop = TRUE ; 297 Text [ en-US ] = "Aut~omatic" ; 298 }; 299 //--------------------------- 300 FixedText TXT_ORIGIN 301 { 302 Pos = MAP_APPFONT ( X2 , Y7 ) ; 303 Size = MAP_APPFONT ( LABELWIDTH , 8 ) ; 304 Text [ en-US ] = "Re~ference value" ; 305 }; 306 SpinField EDT_ORIGIN 307 { 308 HelpID = "chart2:SpinField:TP_SCALE:EDT_ORIGIN"; 309 Border = TRUE ; 310 SVLook = TRUE ; 311 Pos = MAP_APPFONT ( X3 , Y7-2 ) ; 312 Size = MAP_APPFONT ( EDITWIDTH , 12 ) ; 313 TabStop = TRUE ; 314 }; 315 CheckBox CBX_AUTO_ORIGIN 316 { 317 HelpID = "chart2:CheckBox:TP_SCALE:CBX_AUTO_ORIGIN"; 318 Pos = MAP_APPFONT ( X4 , Y7+1 ) ; 319 Size = MAP_APPFONT ( AUTOCHECKWIDTH , 10 ) ; 320 TabStop = TRUE ; 321 Text [ en-US ] = "Automat~ic" ; 322 }; 323 //--------------------------- 324}; 325