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