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