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 24#include "table.hrc" 25#include "colwd.hrc" 26#include "cmdid.h" 27#include "helpid.h" 28 // #define DLG_COL_WIDTH 256 29ModalDialog DLG_COL_WIDTH 30{ 31 HelpID = CMD_FN_TABLE_SET_COL_WIDTH ; 32 OutputSize = TRUE ; 33 SVLook = TRUE ; 34 Size = MAP_APPFONT ( 159 , 60 ) ; 35 Text [ en-US ] = "Column Width" ; 36 Moveable = TRUE ; 37 OKButton BT_OK 38 { 39 Pos = MAP_APPFONT ( 104 , 6 ) ; 40 Size = MAP_APPFONT ( 50 , 14 ) ; 41 TabStop = TRUE ; 42 DefButton = TRUE ; 43 }; 44 CancelButton BT_CANCEL 45 { 46 Pos = MAP_APPFONT ( 104 , 23 ) ; 47 Size = MAP_APPFONT ( 50 , 14 ) ; 48 TabStop = TRUE ; 49 }; 50 HelpButton BT_HELP 51 { 52 Pos = MAP_APPFONT ( 104 , 43 ) ; 53 Size = MAP_APPFONT ( 50 , 14 ) ; 54 TabStop = TRUE ; 55 }; 56 FixedText FT_WIDTH 57 { 58 Pos = MAP_APPFONT ( 12 , 31 ) ; 59 Size = MAP_APPFONT ( 35 , 8 ) ; 60 Text [ en-US ] = "~Width" ; 61 Left = TRUE ; 62 }; 63 MetricField ED_WIDTH 64 { 65 HelpID = "sw:MetricField:DLG_COL_WIDTH:ED_WIDTH"; 66 Border = TRUE ; 67 Pos = MAP_APPFONT ( 51 , 30 ) ; 68 Size = MAP_APPFONT ( 38 , 12 ) ; 69 TabStop = TRUE ; 70 Left = TRUE ; 71 Repeat = TRUE ; 72 Spin = TRUE ; 73 Minimum = 50 ; 74 Maximum = 9999 ; 75 DecimalDigits = 2 ; 76 SpinSize = 10 ; 77 Value = 10 ; 78 Unit = FUNIT_CM ; 79 First = 100 ; 80 Last = 9999 ; 81 }; 82 FixedLine FL_WIDTH 83 { 84 Pos = MAP_APPFONT ( 6 , 3 ) ; 85 Size = MAP_APPFONT ( 91 , 8 ) ; 86 Text [ en-US ] = "Width" ; 87 }; 88 FixedText FT_COL 89 { 90 Pos = MAP_APPFONT ( 12 , 16 ) ; 91 Size = MAP_APPFONT ( 35 , 8 ) ; 92 Text [ en-US ] = "~Column" ; 93 Left = TRUE ; 94 }; 95 NumericField ED_COL 96 { 97 HelpID = "sw:NumericField:DLG_COL_WIDTH:ED_COL"; 98 Border = TRUE ; 99 Pos = MAP_APPFONT ( 51 , 14 ) ; 100 Size = MAP_APPFONT ( 38 , 12 ) ; 101 TabStop = TRUE ; 102 Left = TRUE ; 103 Spin = TRUE ; 104 Minimum = 1 ; 105 Maximum = 99 ; 106 Repeat = TRUE ; 107 }; 108}; 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143