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