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_PERCENT ; 103 }; 104 ListBox LB_1 105 { 106 HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_1"; 107 Border = TRUE ; 108 Pos = MAP_APPFONT ( 93 , 48 ) ; 109 Size = MAP_APPFONT ( 64 , 75 ) ; 110 TabStop = TRUE ; 111 DropDown = TRUE ; 112 DDExtraWidth = TRUE ; 113 }; 114 115 // line 2 116 117 CheckBox CBX_2 118 { 119 HelpID = "svx:CheckBox:RID_SVXDLG_BMPMASK:CBX_2"; 120 Pos = MAP_APPFONT ( 12 , 65 ) ; 121 Size = MAP_APPFONT ( 10 , 10 ) ; 122 TabStop = TRUE ; 123 }; 124 Control QCOL_2 125 { 126 HelpId = HID_BMPMASK_CTL_QCOL_1 ; 127 Pos = MAP_APPFONT ( 24 , 63 ) ; 128 Size = MAP_APPFONT ( 24 , 12 ) ; 129 Border = TRUE ; 130 TabStop = TRUE ; 131 }; 132 MetricField SP_2 133 { 134 HelpID = "svx:MetricField:RID_SVXDLG_BMPMASK:SP_2"; 135 Border = TRUE ; 136 Pos = MAP_APPFONT ( 58 , 63 ) ; 137 Size = MAP_APPFONT ( 29 , 12 ) ; 138 TabStop = TRUE ; 139 Repeat = TRUE ; 140 Spin = TRUE ; 141 Maximum = 99 ; 142 Last = 99 ; 143 SpinSize = 1 ; 144 Unit = FUNIT_PERCENT ; 145 }; 146 ListBox LB_2 147 { 148 HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_2"; 149 Border = TRUE ; 150 Pos = MAP_APPFONT ( 93 , 63 ) ; 151 Size = MAP_APPFONT ( 64 , 75 ) ; 152 TabStop = TRUE ; 153 DropDown = TRUE ; 154 DDExtraWidth = TRUE ; 155 }; 156 157 // line 3 158 159 CheckBox CBX_3 160 { 161 HelpID = "svx:CheckBox:RID_SVXDLG_BMPMASK:CBX_3"; 162 Pos = MAP_APPFONT ( 12 , 80 ) ; 163 Size = MAP_APPFONT ( 10 , 10 ) ; 164 TabStop = TRUE ; 165 }; 166 Control QCOL_3 167 { 168 HelpId = HID_BMPMASK_CTL_QCOL_1 ; 169 Pos = MAP_APPFONT ( 24 , 78 ) ; 170 Size = MAP_APPFONT ( 24 , 12 ) ; 171 Border = TRUE ; 172 TabStop = TRUE ; 173 }; 174 MetricField SP_3 175 { 176 HelpID = "svx:MetricField:RID_SVXDLG_BMPMASK:SP_3"; 177 Border = TRUE ; 178 Pos = MAP_APPFONT ( 58, 78 ) ; 179 Size = MAP_APPFONT ( 29 , 12 ) ; 180 TabStop = TRUE ; 181 Repeat = TRUE ; 182 Spin = TRUE ; 183 Maximum = 99 ; 184 Last = 99 ; 185 SpinSize = 1 ; 186 Unit = FUNIT_PERCENT ; 187 }; 188 ListBox LB_3 189 { 190 HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_3"; 191 Border = TRUE ; 192 Pos = MAP_APPFONT ( 93 , 78 ) ; 193 Size = MAP_APPFONT ( 64 , 75 ) ; 194 TabStop = TRUE ; 195 DropDown = TRUE ; 196 DDExtraWidth = TRUE ; 197 }; 198 199 // Line 4 200 201 CheckBox CBX_4 202 { 203 HelpID = "svx:CheckBox:RID_SVXDLG_BMPMASK:CBX_4"; 204 Pos = MAP_APPFONT ( 12 , 95 ) ; 205 Size = MAP_APPFONT ( 10 , 10 ) ; 206 TabStop = TRUE ; 207 }; 208 Control QCOL_4 209 { 210 HelpId = HID_BMPMASK_CTL_QCOL_1 ; 211 Pos = MAP_APPFONT ( 24 , 93 ) ; 212 Size = MAP_APPFONT ( 24 , 12 ) ; 213 Border = TRUE ; 214 TabStop = TRUE ; 215 }; 216 MetricField SP_4 217 { 218 HelpID = "svx:MetricField:RID_SVXDLG_BMPMASK:SP_4"; 219 Border = TRUE ; 220 Pos = MAP_APPFONT ( 58 , 93 ) ; 221 Size = MAP_APPFONT ( 29 , 12 ) ; 222 TabStop = TRUE ; 223 Repeat = TRUE ; 224 Spin = TRUE ; 225 Maximum = 99 ; 226 Last = 99 ; 227 SpinSize = 1 ; 228 Unit = FUNIT_PERCENT ; 229 }; 230 ListBox LB_4 231 { 232 HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_4"; 233 Border = TRUE ; 234 Pos = MAP_APPFONT ( 93 , 93 ) ; 235 Size = MAP_APPFONT ( 64 , 75 ) ; 236 TabStop = TRUE ; 237 DropDown = TRUE ; 238 DDExtraWidth = TRUE ; 239 }; 240 241 CheckBox CBX_TRANS 242 { 243 HelpID = "svx:CheckBox:RID_SVXDLG_BMPMASK:CBX_TRANS"; 244 Pos = MAP_APPFONT ( 12 , 110 ) ; 245 Size = MAP_APPFONT ( 71 , 10 ) ; 246 TabStop = TRUE ; 247 Text [ en-US ] = "Tr~ansparency" ; 248 }; 249 250 PushButton BTN_EXEC 251 { 252 HelpID = "svx:PushButton:RID_SVXDLG_BMPMASK:BTN_EXEC"; 253 Pos = MAP_APPFONT ( 93 , 6 ) ; 254 Size = MAP_APPFONT ( 64 , 14 ) ; 255 Text [ en-US ] = "~Replace" ; 256 }; 257 258 ListBox LB_TRANS 259 { 260 HelpID = "svx:ListBox:RID_SVXDLG_BMPMASK:LB_TRANS"; 261 Border = TRUE ; 262 Pos = MAP_APPFONT ( 93 , 108 ) ; 263 Size = MAP_APPFONT ( 64 , 75 ) ; 264 TabStop = TRUE ; 265 DropDown = TRUE ; 266 DDExtraWidth = TRUE ; 267 }; 268 ToolBox TBX_PIPETTE 269 { 270 SVLook = TRUE ; 271 Pos = MAP_APPFONT ( 6 , 7 ) ; 272 ItemList = 273 { 274 ToolBoxItem 275 { 276 AutoCheck = TRUE ; 277 Identifier = TBI_PIPETTE ; 278 HelpId = HID_BMPMASK_TBI_PIPETTE ; 279 ItemImage = Image 280 { 281 ImageBitmap = Bitmap { File = "sc10350.bmp" ; }; 282 MASKCOLOR 283 }; 284 Text [ en-US ] = "Pipette" ; 285 }; 286 }; 287 }; 288 Control WND_PIPETTE 289 { 290 HelpId = HID_BMPMASK_CTL_PIPETTE ; 291 Border = TRUE ; 292 Pos = MAP_APPFONT ( 22 , 6 ) ; 293 Size = MAP_APPFONT ( 43 , 14 ) ; 294 }; 295 Text [ en-US ] = "Color Replacer" ; 296 297 Image IMG_PIPETTE 298 { 299 ImageBitmap = Bitmap { File = "sc10350.bmp" ; }; 300 MASKCOLOR 301 }; 302 303 Image IMG_PIPETTE_H 304 { 305 ImageBitmap = Bitmap { File = "sc10350_h.bmp" ; }; 306 MASKCOLOR 307 }; 308}; 309 310String RID_SVXDLG_BMPMASK_STR_TRANSP 311{ 312 Text [ en-US ] = "Transparent"; 313}; 314 315String RID_SVXDLG_BMPMASK_STR_SOURCECOLOR 316{ 317 // This string is used by the eyedropper dialog to denote a color in an image 318 // that will be replaced by another color. 319 Text [ en-US ] = "Source Color"; 320}; 321 322String RID_SVXDLG_BMPMASK_STR_PALETTE 323{ 324 Text [ en-US ] = "Color Palette"; 325}; 326String RID_SVXDLG_BMPMASK_STR_TOLERANCE 327{ 328 Text [ en-US ] = "Tolerance"; 329}; 330String RID_SVXDLG_BMPMASK_STR_REPLACEWITH 331{ 332 Text [ en-US ] = "Replace with"; 333}; 334 335