1*8660f102SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*8660f102SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*8660f102SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*8660f102SAndrew Rist * distributed with this work for additional information 6*8660f102SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*8660f102SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*8660f102SAndrew Rist * "License"); you may not use this file except in compliance 9*8660f102SAndrew Rist * with the License. You may obtain a copy of the License at 10*8660f102SAndrew Rist * 11*8660f102SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*8660f102SAndrew Rist * 13*8660f102SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*8660f102SAndrew Rist * software distributed under the License is distributed on an 15*8660f102SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*8660f102SAndrew Rist * KIND, either express or implied. See the License for the 17*8660f102SAndrew Rist * specific language governing permissions and limitations 18*8660f102SAndrew Rist * under the License. 19*8660f102SAndrew Rist * 20*8660f102SAndrew Rist *************************************************************/ 21*8660f102SAndrew Rist 22*8660f102SAndrew Rist 23cdf0e10cSrcweir // #pragma ****************************************************************** 24cdf0e10cSrcweir 25cdf0e10cSrcweir // #include ***************************************************************** 26cdf0e10cSrcweir#include "labfmt.hrc" 27cdf0e10cSrcweir#include "helpid.h" 28cdf0e10cSrcweir // TP_LAB_FMT --------------------------------------------------------------- 29cdf0e10cSrcweirTabPage TP_LAB_FMT 30cdf0e10cSrcweir{ 31cdf0e10cSrcweir HelpID = HID_LAB_FMT ; 32cdf0e10cSrcweir Size = MAP_APPFONT ( 260 , 185 ) ; 33cdf0e10cSrcweir Hide = TRUE ; 34cdf0e10cSrcweir FixedText FI_MAKE 35cdf0e10cSrcweir { 36cdf0e10cSrcweir Pos = MAP_APPFONT ( 108 , 6 ) ; 37cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 8 ) ; 38cdf0e10cSrcweir }; 39cdf0e10cSrcweir FixedText FI_TYPE 40cdf0e10cSrcweir { 41cdf0e10cSrcweir Pos = MAP_APPFONT ( 162 , 6 ) ; 42cdf0e10cSrcweir Size = MAP_APPFONT ( 92 , 8 ) ; 43cdf0e10cSrcweir }; 44cdf0e10cSrcweir Window WIN_PREVIEW 45cdf0e10cSrcweir { 46cdf0e10cSrcweir Border = TRUE ; 47cdf0e10cSrcweir Pos = MAP_APPFONT ( 108 , 17 ) ; 48cdf0e10cSrcweir Size = MAP_APPFONT ( 146 , 161 ) ; 49cdf0e10cSrcweir }; 50cdf0e10cSrcweir FixedText TXT_HDIST 51cdf0e10cSrcweir { 52cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 19 ) ; 53cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 8 ) ; 54cdf0e10cSrcweir Text [ en-US ] = "Hori~zontal pitch" ; 55cdf0e10cSrcweir Group = TRUE ; 56cdf0e10cSrcweir Left = TRUE ; 57cdf0e10cSrcweir }; 58cdf0e10cSrcweir MetricField FLD_HDIST 59cdf0e10cSrcweir { 60cdf0e10cSrcweir HelpID = "sw:MetricField:TP_LAB_FMT:FLD_HDIST"; 61cdf0e10cSrcweir Border = TRUE ; 62cdf0e10cSrcweir Pos = MAP_APPFONT ( 60 , 17 ) ; 63cdf0e10cSrcweir Size = MAP_APPFONT ( 40 , 12 ) ; 64cdf0e10cSrcweir TabStop = TRUE ; 65cdf0e10cSrcweir Left = TRUE ; 66cdf0e10cSrcweir Spin = TRUE ; 67cdf0e10cSrcweir DecimalDigits = 2 ; 68cdf0e10cSrcweir Unit = FUNIT_CM ; 69cdf0e10cSrcweir Repeat = TRUE ; 70cdf0e10cSrcweir SpinSize = 10 ; 71cdf0e10cSrcweir }; 72cdf0e10cSrcweir FixedText TXT_VDIST 73cdf0e10cSrcweir { 74cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 35 ) ; 75cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 8 ) ; 76cdf0e10cSrcweir Text [ en-US ] = "~Vertical pitch" ; 77cdf0e10cSrcweir Left = TRUE ; 78cdf0e10cSrcweir }; 79cdf0e10cSrcweir MetricField FLD_VDIST 80cdf0e10cSrcweir { 81cdf0e10cSrcweir HelpID = "sw:MetricField:TP_LAB_FMT:FLD_VDIST"; 82cdf0e10cSrcweir Border = TRUE ; 83cdf0e10cSrcweir Pos = MAP_APPFONT ( 60 , 33 ) ; 84cdf0e10cSrcweir Size = MAP_APPFONT ( 40 , 12 ) ; 85cdf0e10cSrcweir TabStop = TRUE ; 86cdf0e10cSrcweir Left = TRUE ; 87cdf0e10cSrcweir Spin = TRUE ; 88cdf0e10cSrcweir DecimalDigits = 2 ; 89cdf0e10cSrcweir Unit = FUNIT_CM ; 90cdf0e10cSrcweir Repeat = TRUE ; 91cdf0e10cSrcweir SpinSize = 10 ; 92cdf0e10cSrcweir }; 93cdf0e10cSrcweir FixedText TXT_WIDTH 94cdf0e10cSrcweir { 95cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 51 ) ; 96cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 8 ) ; 97cdf0e10cSrcweir Text [ en-US ] = "~Width" ; 98cdf0e10cSrcweir Left = TRUE ; 99cdf0e10cSrcweir }; 100cdf0e10cSrcweir MetricField FLD_WIDTH 101cdf0e10cSrcweir { 102cdf0e10cSrcweir HelpID = "sw:MetricField:TP_LAB_FMT:FLD_WIDTH"; 103cdf0e10cSrcweir Border = TRUE ; 104cdf0e10cSrcweir Pos = MAP_APPFONT ( 60 , 49 ) ; 105cdf0e10cSrcweir Size = MAP_APPFONT ( 40 , 12 ) ; 106cdf0e10cSrcweir TabStop = TRUE ; 107cdf0e10cSrcweir Left = TRUE ; 108cdf0e10cSrcweir Spin = TRUE ; 109cdf0e10cSrcweir DecimalDigits = 2 ; 110cdf0e10cSrcweir Unit = FUNIT_CM ; 111cdf0e10cSrcweir Repeat = TRUE ; 112cdf0e10cSrcweir SpinSize = 10 ; 113cdf0e10cSrcweir }; 114cdf0e10cSrcweir FixedText TXT_HEIGHT 115cdf0e10cSrcweir { 116cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 67 ) ; 117cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 8 ) ; 118cdf0e10cSrcweir Text [ en-US ] = "~Height" ; 119cdf0e10cSrcweir Left = TRUE ; 120cdf0e10cSrcweir }; 121cdf0e10cSrcweir MetricField FLD_HEIGHT 122cdf0e10cSrcweir { 123cdf0e10cSrcweir HelpID = "sw:MetricField:TP_LAB_FMT:FLD_HEIGHT"; 124cdf0e10cSrcweir Border = TRUE ; 125cdf0e10cSrcweir Pos = MAP_APPFONT ( 60 , 65 ) ; 126cdf0e10cSrcweir Size = MAP_APPFONT ( 40 , 12 ) ; 127cdf0e10cSrcweir TabStop = TRUE ; 128cdf0e10cSrcweir Left = TRUE ; 129cdf0e10cSrcweir Spin = TRUE ; 130cdf0e10cSrcweir DecimalDigits = 2 ; 131cdf0e10cSrcweir Unit = FUNIT_CM ; 132cdf0e10cSrcweir Repeat = TRUE ; 133cdf0e10cSrcweir SpinSize = 10 ; 134cdf0e10cSrcweir }; 135cdf0e10cSrcweir FixedText TXT_LEFT 136cdf0e10cSrcweir { 137cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 83 ) ; 138cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 8 ) ; 139cdf0e10cSrcweir Text [ en-US ] = "~Left margin" ; 140cdf0e10cSrcweir Left = TRUE ; 141cdf0e10cSrcweir }; 142cdf0e10cSrcweir MetricField FLD_LEFT 143cdf0e10cSrcweir { 144cdf0e10cSrcweir HelpID = "sw:MetricField:TP_LAB_FMT:FLD_LEFT"; 145cdf0e10cSrcweir Border = TRUE ; 146cdf0e10cSrcweir Pos = MAP_APPFONT ( 60 , 81 ) ; 147cdf0e10cSrcweir Size = MAP_APPFONT ( 40 , 12 ) ; 148cdf0e10cSrcweir TabStop = TRUE ; 149cdf0e10cSrcweir Left = TRUE ; 150cdf0e10cSrcweir Spin = TRUE ; 151cdf0e10cSrcweir DecimalDigits = 2 ; 152cdf0e10cSrcweir Unit = FUNIT_CM ; 153cdf0e10cSrcweir Repeat = TRUE ; 154cdf0e10cSrcweir Minimum = 0 ; 155cdf0e10cSrcweir First = 0 ; 156cdf0e10cSrcweir SpinSize = 10 ; 157cdf0e10cSrcweir }; 158cdf0e10cSrcweir FixedText TXT_UPPER 159cdf0e10cSrcweir { 160cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 99 ) ; 161cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 8 ) ; 162cdf0e10cSrcweir Text [ en-US ] = "~Top margin" ; 163cdf0e10cSrcweir Left = TRUE ; 164cdf0e10cSrcweir }; 165cdf0e10cSrcweir MetricField FLD_UPPER 166cdf0e10cSrcweir { 167cdf0e10cSrcweir HelpID = "sw:MetricField:TP_LAB_FMT:FLD_UPPER"; 168cdf0e10cSrcweir Border = TRUE ; 169cdf0e10cSrcweir Pos = MAP_APPFONT ( 60 , 97 ) ; 170cdf0e10cSrcweir Size = MAP_APPFONT ( 40 , 12 ) ; 171cdf0e10cSrcweir TabStop = TRUE ; 172cdf0e10cSrcweir Left = TRUE ; 173cdf0e10cSrcweir Spin = TRUE ; 174cdf0e10cSrcweir DecimalDigits = 2 ; 175cdf0e10cSrcweir Unit = FUNIT_CM ; 176cdf0e10cSrcweir Repeat = TRUE ; 177cdf0e10cSrcweir Minimum = 0 ; 178cdf0e10cSrcweir First = 0 ; 179cdf0e10cSrcweir SpinSize = 10 ; 180cdf0e10cSrcweir }; 181cdf0e10cSrcweir FixedText TXT_COLUMNS 182cdf0e10cSrcweir { 183cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 115 ) ; 184cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 8 ) ; 185cdf0e10cSrcweir Text [ en-US ] = "~Columns" ; 186cdf0e10cSrcweir Left = TRUE ; 187cdf0e10cSrcweir }; 188cdf0e10cSrcweir NumericField FLD_COLUMNS 189cdf0e10cSrcweir { 190cdf0e10cSrcweir HelpID = "sw:NumericField:TP_LAB_FMT:FLD_COLUMNS"; 191cdf0e10cSrcweir Border = TRUE ; 192cdf0e10cSrcweir Pos = MAP_APPFONT ( 60 , 113 ) ; 193cdf0e10cSrcweir Size = MAP_APPFONT ( 40 , 12 ) ; 194cdf0e10cSrcweir TabStop = TRUE ; 195cdf0e10cSrcweir Left = TRUE ; 196cdf0e10cSrcweir Repeat = TRUE ; 197cdf0e10cSrcweir Spin = TRUE ; 198cdf0e10cSrcweir Minimum = 1 ; 199cdf0e10cSrcweir First = 1 ; 200cdf0e10cSrcweir }; 201cdf0e10cSrcweir FixedText TXT_ROWS 202cdf0e10cSrcweir { 203cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 131 ) ; 204cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 8 ) ; 205cdf0e10cSrcweir Text [ en-US ] = "R~ows" ; 206cdf0e10cSrcweir Left = TRUE ; 207cdf0e10cSrcweir }; 208cdf0e10cSrcweir NumericField FLD_ROWS 209cdf0e10cSrcweir { 210cdf0e10cSrcweir HelpID = "sw:NumericField:TP_LAB_FMT:FLD_ROWS"; 211cdf0e10cSrcweir Border = TRUE ; 212cdf0e10cSrcweir Pos = MAP_APPFONT ( 60 , 129 ) ; 213cdf0e10cSrcweir Size = MAP_APPFONT ( 40 , 12 ) ; 214cdf0e10cSrcweir TabStop = TRUE ; 215cdf0e10cSrcweir Left = TRUE ; 216cdf0e10cSrcweir Repeat = TRUE ; 217cdf0e10cSrcweir Spin = TRUE ; 218cdf0e10cSrcweir Minimum = 1 ; 219cdf0e10cSrcweir First = 1 ; 220cdf0e10cSrcweir }; 221cdf0e10cSrcweir PushButton PB_SAVE 222cdf0e10cSrcweir { 223cdf0e10cSrcweir HelpID = "sw:PushButton:TP_LAB_FMT:PB_SAVE"; 224cdf0e10cSrcweir Pos = MAP_APPFONT ( 50 , 148 ) ; 225cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 226cdf0e10cSrcweir Text [ en-US ] = "~Save..."; 227cdf0e10cSrcweir }; 228cdf0e10cSrcweir}; 229cdf0e10cSrcweir // String ******************************************************************* 230cdf0e10cSrcweirString STR_HDIST 231cdf0e10cSrcweir{ 232cdf0e10cSrcweir Text [ en-US ] = "H. Pitch" ; 233cdf0e10cSrcweir}; 234cdf0e10cSrcweirString STR_VDIST 235cdf0e10cSrcweir{ 236cdf0e10cSrcweir Text [ en-US ] = "V. Pitch" ; 237cdf0e10cSrcweir}; 238cdf0e10cSrcweirString STR_WIDTH 239cdf0e10cSrcweir{ 240cdf0e10cSrcweir Text [ en-US ] = "Width" ; 241cdf0e10cSrcweir}; 242cdf0e10cSrcweirString STR_HEIGHT 243cdf0e10cSrcweir{ 244cdf0e10cSrcweir Text [ en-US ] = "Height" ; 245cdf0e10cSrcweir}; 246cdf0e10cSrcweirString STR_LEFT 247cdf0e10cSrcweir{ 248cdf0e10cSrcweir Text [ en-US ] = "Left margin" ; 249cdf0e10cSrcweir}; 250cdf0e10cSrcweirString STR_UPPER 251cdf0e10cSrcweir{ 252cdf0e10cSrcweir Text [ en-US ] = "Top margin" ; 253cdf0e10cSrcweir}; 254cdf0e10cSrcweirString STR_COLS 255cdf0e10cSrcweir{ 256cdf0e10cSrcweir Text [ en-US ] = "Columns" ; 257cdf0e10cSrcweir}; 258cdf0e10cSrcweirString STR_ROWS 259cdf0e10cSrcweir{ 260cdf0e10cSrcweir Text [ en-US ] = "Rows" ; 261cdf0e10cSrcweir}; 262cdf0e10cSrcweirModalDialog DLG_SAVE_LABEL 263cdf0e10cSrcweir{ 264cdf0e10cSrcweir HelpID = HID_SAVE_LABEL_DLG ; 265cdf0e10cSrcweir OutputSize = TRUE ; 266cdf0e10cSrcweir SVLook = TRUE ; 267cdf0e10cSrcweir Size = MAP_APPFONT ( 230 , 60 ) ; 268cdf0e10cSrcweir Moveable = TRUE ; 269cdf0e10cSrcweir FixedText FT_MAKE 270cdf0e10cSrcweir { 271cdf0e10cSrcweir Pos = MAP_APPFONT ( 12 , 16 ) ; 272cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 10 ) ; 273cdf0e10cSrcweir Text [ en-US ] = "Brand" ; 274cdf0e10cSrcweir Left = TRUE ; 275cdf0e10cSrcweir }; 276cdf0e10cSrcweir ComboBox CB_MAKE 277cdf0e10cSrcweir { 278cdf0e10cSrcweir HelpID = "sw:ComboBox:DLG_SAVE_LABEL:CB_MAKE"; 279cdf0e10cSrcweir Pos = MAP_APPFONT ( 65 , 15 ) ; 280cdf0e10cSrcweir Size = MAP_APPFONT ( 100 , 50 ) ; 281cdf0e10cSrcweir Border = TRUE; 282cdf0e10cSrcweir DropDown = TRUE; 283cdf0e10cSrcweir }; 284cdf0e10cSrcweir FixedText FT_TYPE 285cdf0e10cSrcweir { 286cdf0e10cSrcweir Pos = MAP_APPFONT ( 12 , 31 ) ; 287cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 10 ) ; 288cdf0e10cSrcweir Text [ en-US ] = "T~ype" ; 289cdf0e10cSrcweir Left = TRUE ; 290cdf0e10cSrcweir }; 291cdf0e10cSrcweir Edit ED_TYPE 292cdf0e10cSrcweir { 293cdf0e10cSrcweir HelpID = "sw:Edit:DLG_SAVE_LABEL:ED_TYPE"; 294cdf0e10cSrcweir Pos = MAP_APPFONT ( 65 , 30 ) ; 295cdf0e10cSrcweir Size = MAP_APPFONT ( 100 , 12 ) ; 296cdf0e10cSrcweir Border = TRUE; 297cdf0e10cSrcweir }; 298cdf0e10cSrcweir FixedLine FL_OPTIONS 299cdf0e10cSrcweir { 300cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 3 ) ; 301cdf0e10cSrcweir Size = MAP_APPFONT ( 165 , 8 ) ; 302cdf0e10cSrcweir Text [ en-US ] = "Options"; 303cdf0e10cSrcweir }; 304cdf0e10cSrcweir OKButton PB_OK 305cdf0e10cSrcweir { 306cdf0e10cSrcweir Pos = MAP_APPFONT ( 174 , 6 ) ; 307cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 308cdf0e10cSrcweir TabStop = TRUE ; 309cdf0e10cSrcweir Group = TRUE ; 310cdf0e10cSrcweir DefButton = TRUE ; 311cdf0e10cSrcweir }; 312cdf0e10cSrcweir CancelButton PB_CANCEL 313cdf0e10cSrcweir { 314cdf0e10cSrcweir Pos = MAP_APPFONT ( 174 , 23 ) ; 315cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 316cdf0e10cSrcweir TabStop = TRUE ; 317cdf0e10cSrcweir Group = TRUE ; 318cdf0e10cSrcweir }; 319cdf0e10cSrcweir HelpButton PB_HELP 320cdf0e10cSrcweir { 321cdf0e10cSrcweir Pos = MAP_APPFONT ( 174 , 43 ) ; 322cdf0e10cSrcweir Size = MAP_APPFONT ( 50 , 14 ) ; 323cdf0e10cSrcweir TabStop = TRUE ; 324cdf0e10cSrcweir Group = TRUE ; 325cdf0e10cSrcweir }; 326cdf0e10cSrcweir QueryBox MB_QUERY 327cdf0e10cSrcweir { 328cdf0e10cSrcweir Buttons = WB_YES_NO ; 329cdf0e10cSrcweir DefButton = WB_DEF_CANCEL ; 330cdf0e10cSrcweir Message [ en-US ] = "The label \"%1 / %2\" already exists.\nDo you want to overwrite it?"; 331cdf0e10cSrcweir }; 332cdf0e10cSrcweir Text [ en-US ] = "Save Label Format"; 333cdf0e10cSrcweir}; 334cdf0e10cSrcweir 335cdf0e10cSrcweir 336cdf0e10cSrcweir 337cdf0e10cSrcweir 338cdf0e10cSrcweir 339cdf0e10cSrcweir 340cdf0e10cSrcweir 341cdf0e10cSrcweir 342cdf0e10cSrcweir 343cdf0e10cSrcweir 344cdf0e10cSrcweir 345cdf0e10cSrcweir 346cdf0e10cSrcweir 347cdf0e10cSrcweir 348cdf0e10cSrcweir 349cdf0e10cSrcweir 350cdf0e10cSrcweir 351cdf0e10cSrcweir 352cdf0e10cSrcweir 353cdf0e10cSrcweir 354cdf0e10cSrcweir 355cdf0e10cSrcweir 356cdf0e10cSrcweir 357cdf0e10cSrcweir 358cdf0e10cSrcweir 359cdf0e10cSrcweir 360cdf0e10cSrcweir 361cdf0e10cSrcweir 362cdf0e10cSrcweir 363cdf0e10cSrcweir 364cdf0e10cSrcweir 365cdf0e10cSrcweir 366cdf0e10cSrcweir 367