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 --------------------------------------------------------------- 24#include <svx/svxids.hrc> 25#include <svx/dialogs.hrc> 26#include "bmpmask.hrc" 27#include "helpid.hrc" 28 29 30#define MASKCOLOR MaskColor = Color { Red = 0xFFFF ; Green = 0x0000 ; Blue = 0xFFFF ; }; 31 32 33 // RID_SVXDLG_BMPMASK ---------------------------------------------------- 34DockingWindow RID_SVXDLG_BMPMASK 35{ 36 HelpId = CMD_SID_BMPMASK ; 37 OutputSize = TRUE ; 38 Hide = TRUE ; 39 SVLook = TRUE ; 40 Pos = MAP_APPFONT ( 0 , 0 ) ; 41 Size = MAP_APPFONT ( 163 , 126 ) ; 42 Sizeable = FALSE ; 43 Moveable = TRUE ; 44 Closeable = TRUE ; 45 Zoomable = TRUE ; 46 Dockable = TRUE ; 47 EnableResizing = TRUE ; 48 FixedLine GRP_Q 49 { 50 Pos = MAP_APPFONT ( 6 , 26 ) ; 51 Size = MAP_APPFONT ( 151 , 8 ) ; 52 Text [ en-US ] = "Colors" ; 53 }; 54 FixedText FT_1 55 { 56 Pos = MAP_APPFONT ( 12 , 37 ) ; 57 Size = MAP_APPFONT ( 44 , 8 ) ; 58 Text [ en-US ] = "Source color" ; 59 }; 60 FixedText FT_2 61 { 62 Pos = MAP_APPFONT ( 58 , 37 ) ; 63 Size = MAP_APPFONT ( 34 , 8 ) ; 64 Text [ en-US ] = "Tolerance" ; 65 }; 66 FixedText FT_3 67 { 68 Pos = MAP_APPFONT ( 93 , 37 ) ; 69 Size = MAP_APPFONT ( 64 , 8 ) ; 70 Text [ en-US ] = "Replace with..." ; 71 }; 72 73 // line 1 74 75 CheckBox CBX_1 76 { 77 HelpID = "svx:CheckBox:RID_SVXDLG_BMPMASK:CBX_1"; 78 Pos = MAP_APPFONT ( 12 , 50 ) ; 79 Size = MAP_APPFONT ( 10 , 10 ) ; 80 TabStop = TRUE ; 81 }; 82 Control QCOL_1 83 { 84 HelpId = HID_BMPMASK_CTL_QCOL_1 ; 85 Pos = MAP_APPFONT ( 24 , 48 ) ; 86 Size = MAP_APPFONT ( 24 , 12 ) ; 87 Border = TRUE ; 88 TabStop = TRUE ; 89 }; 90 MetricField SP_1 91 { 92 HelpID = "svx:MetricField:RID_SVXDLG_BMPMASK:SP_1"; 93 Border = TRUE ; 94 Pos = MAP_APPFONT ( 58 , 48 ) ; 95 Size = MAP_APPFONT ( 29 , 12 ) ; 96 TabStop = TRUE ; 97 Repeat = TRUE ; 98 Spin = TRUE ; 99 Maximum = 99 ; 100 Last = 99 ; 101 SpinSize = 1 ; 102 Unit = FUNIT_CUSTOM ; 103 CustomUnitText = "%" ; 104 }; 105 ListBox LB_1 106 { 107 HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_1"; 108 Border = TRUE ; 109 Pos = MAP_APPFONT ( 93 , 48 ) ; 110 Size = MAP_APPFONT ( 64 , 75 ) ; 111 TabStop = TRUE ; 112 DropDown = TRUE ; 113 DDExtraWidth = TRUE ; 114 }; 115 116 // line 2 117 118 CheckBox CBX_2 119 { 120 HelpID = "svx:CheckBox:RID_SVXDLG_BMPMASK:CBX_2"; 121 Pos = MAP_APPFONT ( 12 , 65 ) ; 122 Size = MAP_APPFONT ( 10 , 10 ) ; 123 TabStop = TRUE ; 124 }; 125 Control QCOL_2 126 { 127 HelpId = HID_BMPMASK_CTL_QCOL_1 ; 128 Pos = MAP_APPFONT ( 24 , 63 ) ; 129 Size = MAP_APPFONT ( 24 , 12 ) ; 130 Border = TRUE ; 131 TabStop = TRUE ; 132 }; 133 MetricField SP_2 134 { 135 HelpID = "svx:MetricField:RID_SVXDLG_BMPMASK:SP_2"; 136 Border = TRUE ; 137 Pos = MAP_APPFONT ( 58 , 63 ) ; 138 Size = MAP_APPFONT ( 29 , 12 ) ; 139 TabStop = TRUE ; 140 Repeat = TRUE ; 141 Spin = TRUE ; 142 Maximum = 99 ; 143 Last = 99 ; 144 SpinSize = 1 ; 145 Unit = FUNIT_CUSTOM ; 146 CustomUnitText = "%" ; 147 }; 148 ListBox LB_2 149 { 150 HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_2"; 151 Border = TRUE ; 152 Pos = MAP_APPFONT ( 93 , 63 ) ; 153 Size = MAP_APPFONT ( 64 , 75 ) ; 154 TabStop = TRUE ; 155 DropDown = TRUE ; 156 DDExtraWidth = TRUE ; 157 }; 158 159 // line 3 160 161 CheckBox CBX_3 162 { 163 HelpID = "svx:CheckBox:RID_SVXDLG_BMPMASK:CBX_3"; 164 Pos = MAP_APPFONT ( 12 , 80 ) ; 165 Size = MAP_APPFONT ( 10 , 10 ) ; 166 TabStop = TRUE ; 167 }; 168 Control QCOL_3 169 { 170 HelpId = HID_BMPMASK_CTL_QCOL_1 ; 171 Pos = MAP_APPFONT ( 24 , 78 ) ; 172 Size = MAP_APPFONT ( 24 , 12 ) ; 173 Border = TRUE ; 174 TabStop = TRUE ; 175 }; 176 MetricField SP_3 177 { 178 HelpID = "svx:MetricField:RID_SVXDLG_BMPMASK:SP_3"; 179 Border = TRUE ; 180 Pos = MAP_APPFONT ( 58, 78 ) ; 181 Size = MAP_APPFONT ( 29 , 12 ) ; 182 TabStop = TRUE ; 183 Repeat = TRUE ; 184 Spin = TRUE ; 185 Maximum = 99 ; 186 Last = 99 ; 187 SpinSize = 1 ; 188 Unit = FUNIT_CUSTOM ; 189 CustomUnitText = "%" ; 190 }; 191 ListBox LB_3 192 { 193 HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_3"; 194 Border = TRUE ; 195 Pos = MAP_APPFONT ( 93 , 78 ) ; 196 Size = MAP_APPFONT ( 64 , 75 ) ; 197 TabStop = TRUE ; 198 DropDown = TRUE ; 199 DDExtraWidth = TRUE ; 200 }; 201 202 // Line 4 203 204 CheckBox CBX_4 205 { 206 HelpID = "svx:CheckBox:RID_SVXDLG_BMPMASK:CBX_4"; 207 Pos = MAP_APPFONT ( 12 , 95 ) ; 208 Size = MAP_APPFONT ( 10 , 10 ) ; 209 TabStop = TRUE ; 210 }; 211 Control QCOL_4 212 { 213 HelpId = HID_BMPMASK_CTL_QCOL_1 ; 214 Pos = MAP_APPFONT ( 24 , 93 ) ; 215 Size = MAP_APPFONT ( 24 , 12 ) ; 216 Border = TRUE ; 217 TabStop = TRUE ; 218 }; 219 MetricField SP_4 220 { 221 HelpID = "svx:MetricField:RID_SVXDLG_BMPMASK:SP_4"; 222 Border = TRUE ; 223 Pos = MAP_APPFONT ( 58 , 93 ) ; 224 Size = MAP_APPFONT ( 29 , 12 ) ; 225 TabStop = TRUE ; 226 Repeat = TRUE ; 227 Spin = TRUE ; 228 Maximum = 99 ; 229 Last = 99 ; 230 SpinSize = 1 ; 231 Unit = FUNIT_CUSTOM ; 232 CustomUnitText = "%" ; 233 }; 234 ListBox LB_4 235 { 236 HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_4"; 237 Border = TRUE ; 238 Pos = MAP_APPFONT ( 93 , 93 ) ; 239 Size = MAP_APPFONT ( 64 , 75 ) ; 240 TabStop = TRUE ; 241 DropDown = TRUE ; 242 DDExtraWidth = TRUE ; 243 }; 244 245 CheckBox CBX_TRANS 246 { 247 HelpID = "svx:CheckBox:RID_SVXDLG_BMPMASK:CBX_TRANS"; 248 Pos = MAP_APPFONT ( 12 , 110 ) ; 249 Size = MAP_APPFONT ( 71 , 10 ) ; 250 TabStop = TRUE ; 251 Text [ en-US ] = "Tr~ansparency" ; 252 }; 253 254 PushButton BTN_EXEC 255 { 256 HelpID = "svx:PushButton:RID_SVXDLG_BMPMASK:BTN_EXEC"; 257 Pos = MAP_APPFONT ( 93 , 6 ) ; 258 Size = MAP_APPFONT ( 64 , 14 ) ; 259 Text [ en-US ] = "~Replace" ; 260 }; 261 262 ListBox LB_TRANS 263 { 264 HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_TRANS"; 265 Border = TRUE ; 266 Pos = MAP_APPFONT ( 93 , 108 ) ; 267 Size = MAP_APPFONT ( 64 , 75 ) ; 268 TabStop = TRUE ; 269 DropDown = TRUE ; 270 DDExtraWidth = TRUE ; 271 }; 272 ToolBox TBX_PIPETTE 273 { 274 SVLook = TRUE ; 275 Pos = MAP_APPFONT ( 6 , 7 ) ; 276 ItemList = 277 { 278 ToolBoxItem 279 { 280 AutoCheck = TRUE ; 281 Identifier = TBI_PIPETTE ; 282 HelpId = HID_BMPMASK_TBI_PIPETTE ; 283 ItemImage = Image 284 { 285 ImageBitmap = Bitmap { File = "sc10350.bmp" ; }; 286 MASKCOLOR 287 }; 288 Text [ en-US ] = "Pipette" ; 289 }; 290 }; 291 }; 292 Control WND_PIPETTE 293 { 294 HelpId = HID_BMPMASK_CTL_PIPETTE ; 295 Border = TRUE ; 296 Pos = MAP_APPFONT ( 22 , 6 ) ; 297 Size = MAP_APPFONT ( 43 , 14 ) ; 298 }; 299 Text [ en-US ] = "Color Replacer" ; 300 301 Image IMG_PIPETTE 302 { 303 ImageBitmap = Bitmap { File = "sc10350.bmp" ; }; 304 MASKCOLOR 305 }; 306 307 Image IMG_PIPETTE_H 308 { 309 ImageBitmap = Bitmap { File = "sc10350_h.bmp" ; }; 310 MASKCOLOR 311 }; 312}; 313 314String RID_SVXDLG_BMPMASK_STR_TRANSP 315{ 316 Text [ en-US ] = "Transparent"; 317}; 318 319String RID_SVXDLG_BMPMASK_STR_SOURCECOLOR 320{ 321 // This string is used by the eyedropper dialog to denote a color in an image 322 // that will be replaced by another color. 323 Text [ en-US ] = "Source Color"; 324}; 325 326String RID_SVXDLG_BMPMASK_STR_PALETTE 327{ 328 Text [ en-US ] = "Color Palette"; 329}; 330String RID_SVXDLG_BMPMASK_STR_TOLERANCE 331{ 332 Text [ en-US ] = "Tolerance"; 333}; 334String RID_SVXDLG_BMPMASK_STR_REPLACEWITH 335{ 336 Text [ en-US ] = "Replace with"; 337}; 338 339