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 28#include <svtools/controldims.hrc> 29#include <cuires.hrc> 30#include "helpid.hrc" 31#include "grfflt.hrc" 32#include <svx/dialogs.hrc> 33 34// -------------------- 35// - DLG_FILTERMOSAIC - 36// -------------------- 37 38ModalDialog RID_SVX_GRFFILTER_DLG_MOSAIC 39{ 40 HelpID = CMD_SID_GRFFILTER_MOSAIC; 41 OutputSize = TRUE ; 42 Moveable = TRUE ; 43 SVLook = TRUE ; 44 Size = MAP_APPFONT ( 250, 100 ) ; 45 46 Text [ en-US ] = "Mosaic" ; 47 48 FixedLine FL_PARAMETER 49 { 50 Pos = MAP_APPFONT ( 6 , 3 ) ; 51 Size = MAP_APPFONT ( 182, RSC_CD_FIXEDLINE_HEIGHT ) ; 52 Text [ en-US ] = "Parameters"; 53 }; 54 Control CTL_PREVIEW 55 { 56 Pos = MAP_APPFONT ( 104 , 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP ) ; 57 Size = MAP_APPFONT ( 81, 73 ) ; 58 }; 59#define MA_Y0 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP 60 FixedText DLG_FILTERMOSAIC_FT_WIDTH 61 { 62 Pos = MAP_APPFONT ( 12, MA_Y0 ) ; 63 Size = MAP_APPFONT ( 77, 10 ) ; 64 Text [ en-US ] = "~Width" ; 65 }; 66#define MA_Y1 MA_Y0 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y 67 MetricField DLG_FILTERMOSAIC_MTR_WIDTH 68 { 69 HelpID = "cui:MetricField:RID_SVX_GRFFILTER_DLG_MOSAIC:DLG_FILTERMOSAIC_MTR_WIDTH"; 70 Border = TRUE ; 71 Pos = MAP_APPFONT ( 12 , MA_Y1 ) ; 72 Size = MAP_APPFONT ( 35 , 12 ) ; 73 TabStop = TRUE ; 74 Repeat = TRUE ; 75 Spin = TRUE ; 76 Minimum = 1 ; 77 Maximum = 999 ; 78 StrictFormat = TRUE ; 79 Unit = FUNIT_CUSTOM ; 80 CustomUnitText = " Pixel" ; 81 First = 1 ; 82 Last = 999 ; 83 SpinSize = 1 ; 84 }; 85#define MA_Y2 MA_Y1 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y 86 FixedText DLG_FILTERMOSAIC_FT_HEIGHT 87 { 88 Pos = MAP_APPFONT ( 12, MA_Y2 ) ; 89 Size = MAP_APPFONT ( 77, 10 ) ; 90 Text [ en-US ] = "H~eight" ; 91 }; 92#define MA_Y3 MA_Y2 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y 93 MetricField DLG_FILTERMOSAIC_MTR_HEIGHT 94 { 95 HelpID = "cui:MetricField:RID_SVX_GRFFILTER_DLG_MOSAIC:DLG_FILTERMOSAIC_MTR_HEIGHT"; 96 Border = TRUE ; 97 Pos = MAP_APPFONT ( 12, MA_Y3 ) ; 98 Size = MAP_APPFONT ( 35, 12 ) ; 99 TabStop = TRUE ; 100 Repeat = TRUE ; 101 Spin = TRUE ; 102 Minimum = 1 ; 103 Maximum = 999 ; 104 StrictFormat = TRUE ; 105 Unit = FUNIT_CUSTOM ; 106 CustomUnitText = " Pixel" ; 107 First = 1 ; 108 Last = 999 ; 109 SpinSize = 1 ; 110 }; 111#define MA_Y4 MA_Y3 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_Y 112 CheckBox DLG_FILTERMOSAIC_CBX_EDGES 113 { 114 HelpID = "cui:CheckBox:RID_SVX_GRFFILTER_DLG_MOSAIC:DLG_FILTERMOSAIC_CBX_EDGES"; 115 Pos = MAP_APPFONT ( 12, MA_Y4 ) ; 116 Size = MAP_APPFONT ( 91, 12 ) ; 117 TabStop = TRUE ; 118 Text [ en-US ] = "E~nhance edges" ; 119 }; 120 OKButton BTN_OK 121 { 122 Pos = MAP_APPFONT ( 194, 6 ) ; 123 Size = MAP_APPFONT ( 50, 14 ) ; 124 TabStop = TRUE ; 125 DefButton = TRUE ; 126 }; 127 CancelButton BTN_CANCEL 128 { 129 Pos = MAP_APPFONT ( 194, 23 ) ; 130 Size = MAP_APPFONT ( 50, 14 ) ; 131 TabStop = TRUE ; 132 }; 133 HelpButton BTN_HELP 134 { 135 Pos = MAP_APPFONT ( 194, 43 ) ; 136 Size = MAP_APPFONT ( 50, 14 ) ; 137 TabStop = TRUE ; 138 }; 139}; 140 141// ---------------------- 142// - DLG_FILTERSOLARIZE - 143// ---------------------- 144 145ModalDialog RID_SVX_GRFFILTER_DLG_SOLARIZE 146{ 147 HelpID = CMD_SID_GRFFILTER_SOLARIZE; 148 OutputSize = TRUE ; 149 Moveable = TRUE ; 150 SVLook = TRUE ; 151 Size = MAP_APPFONT ( 250, 100 ) ; 152 153 Text [ en-US ] = "Solarization" ; 154 155 FixedLine FL_PARAMETER 156 { 157 Pos = MAP_APPFONT ( 6 , 3 ) ; 158 Size = MAP_APPFONT ( 182, RSC_CD_FIXEDLINE_HEIGHT ) ; 159 Text [ en-US ] = "Parameters"; 160 }; 161 Control CTL_PREVIEW 162 { 163 Pos = MAP_APPFONT ( 104 , 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP ) ; 164 Size = MAP_APPFONT ( 81, 73 ) ; 165 }; 166#define MA_Y5 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP 167 FixedText DLG_FILTERSOLARIZE_FT_THRESHOLD 168 { 169 Pos = MAP_APPFONT ( 12, MA_Y5 ) ; 170 Size = MAP_APPFONT ( 77 , 10 ) ; 171 Text [ en-US ] = "Threshold ~value" ; 172 }; 173#define MA_Y6 MA_Y5 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y 174 MetricField DLG_FILTERSOLARIZE_MTR_THRESHOLD 175 { 176 HelpID = "cui:MetricField:RID_SVX_GRFFILTER_DLG_SOLARIZE:DLG_FILTERSOLARIZE_MTR_THRESHOLD"; 177 Border = TRUE ; 178 Pos = MAP_APPFONT ( 12 , MA_Y6 ) ; 179 Size = MAP_APPFONT ( 35 , 12 ) ; 180 TabStop = TRUE ; 181 Repeat = TRUE ; 182 Spin = TRUE ; 183 Maximum = 100 ; 184 StrictFormat = TRUE ; 185 Unit = FUNIT_CUSTOM ; 186 CustomUnitText = " %" ; 187 Last = 100 ; 188 SpinSize = 1 ; 189 }; 190#define MA_Y7 MA_Y6 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y 191 CheckBox DLG_FILTERSOLARIZE_CBX_INVERT 192 { 193 HelpID = "cui:CheckBox:RID_SVX_GRFFILTER_DLG_SOLARIZE:DLG_FILTERSOLARIZE_CBX_INVERT"; 194 Pos = MAP_APPFONT ( 12, 46 ) ; 195 Size = MAP_APPFONT ( 77, 12 ) ; 196 TabStop = TRUE ; 197 Text [ en-US ] = "~Invert" ; 198 }; 199 OKButton BTN_OK 200 { 201 Pos = MAP_APPFONT ( 194, 6 ) ; 202 Size = MAP_APPFONT ( 50, 14 ) ; 203 TabStop = TRUE ; 204 DefButton = TRUE ; 205 }; 206 CancelButton BTN_CANCEL 207 { 208 Pos = MAP_APPFONT ( 194, 23 ) ; 209 Size = MAP_APPFONT ( 50, 14 ) ; 210 TabStop = TRUE ; 211 }; 212 HelpButton BTN_HELP 213 { 214 Pos = MAP_APPFONT ( 194, 43 ) ; 215 Size = MAP_APPFONT ( 50, 14 ) ; 216 TabStop = TRUE ; 217 }; 218}; 219 220// ---------------------- 221// - DLG_FILTERSOLARIZE - 222// ---------------------- 223 224ModalDialog RID_SVX_GRFFILTER_DLG_SEPIA 225{ 226 HelpID = CMD_SID_GRFFILTER_SEPIA; 227 OutputSize = TRUE ; 228 Moveable = TRUE ; 229 SVLook = TRUE ; 230 Size = MAP_APPFONT ( 250, 100 ) ; 231 232 Text [ en-US ] = "Aging" ; 233 234 FixedLine FL_PARAMETER 235 { 236 Pos = MAP_APPFONT ( 6 , 3 ) ; 237 Size = MAP_APPFONT ( 182, RSC_CD_FIXEDLINE_HEIGHT ) ; 238 Text [ en-US ] = "Parameters"; 239 }; 240 Control CTL_PREVIEW 241 { 242 Pos = MAP_APPFONT ( 104 , 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP ) ; 243 Size = MAP_APPFONT ( 81, 73 ) ; 244 }; 245#define MA_Y8 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP 246 FixedText DLG_FILTERSEPIA_FT_SEPIA 247 { 248 Pos = MAP_APPFONT ( 12 , MA_Y8 ) ; 249 Size = MAP_APPFONT ( 77 , 10 ) ; 250 Text [ en-US ] = "Aging degree" ; 251 }; 252#define MA_Y9 MA_Y8 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y 253 MetricField DLG_FILTERSEPIA_MTR_SEPIA 254 { 255 HelpID = "cui:MetricField:RID_SVX_GRFFILTER_DLG_SEPIA:DLG_FILTERSEPIA_MTR_SEPIA"; 256 Border = TRUE ; 257 Pos = MAP_APPFONT ( 12 , MA_Y9 ) ; 258 Size = MAP_APPFONT ( 35 , 12 ) ; 259 TabStop = TRUE ; 260 Right = TRUE ; 261 Repeat = TRUE ; 262 Spin = TRUE ; 263 Minimum = 1 ; 264 Maximum = 100 ; 265 StrictFormat = TRUE ; 266 Unit = FUNIT_CUSTOM ; 267 CustomUnitText = " %" ; 268 First = 1 ; 269 Last = 100 ; 270 SpinSize = 1 ; 271 }; 272 OKButton BTN_OK 273 { 274 Pos = MAP_APPFONT ( 194, 6 ) ; 275 Size = MAP_APPFONT ( 50, 14 ) ; 276 TabStop = TRUE ; 277 DefButton = TRUE ; 278 }; 279 CancelButton BTN_CANCEL 280 { 281 Pos = MAP_APPFONT ( 194, 23 ) ; 282 Size = MAP_APPFONT ( 50, 14 ) ; 283 TabStop = TRUE ; 284 }; 285 HelpButton BTN_HELP 286 { 287 Pos = MAP_APPFONT ( 194, 43 ) ; 288 Size = MAP_APPFONT ( 50, 14 ) ; 289 TabStop = TRUE ; 290 }; 291}; 292 293// -------------------- 294// - DLG_FILTERPOSTER - 295// -------------------- 296 297ModalDialog RID_SVX_GRFFILTER_DLG_POSTER 298{ 299 HelpID = CMD_SID_GRFFILTER_POSTER; 300 OutputSize = TRUE ; 301 Moveable = TRUE ; 302 SVLook = TRUE ; 303 Size = MAP_APPFONT ( 250, 100 ) ; 304 305 Text [ en-US ] = "Posterize" ; 306 307 FixedLine FL_PARAMETER 308 { 309 Pos = MAP_APPFONT ( 6 , 3 ) ; 310 Size = MAP_APPFONT ( 182, RSC_CD_FIXEDLINE_HEIGHT ) ; 311 Text [ en-US ] = "Parameters"; 312 }; 313 Control CTL_PREVIEW 314 { 315 Pos = MAP_APPFONT ( 104 , 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP ) ; 316 Size = MAP_APPFONT ( 81, 73 ) ; 317 }; 318#define MA_Y10 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP 319 FixedText DLG_FILTERPOSTER_FT_POSTER 320 { 321 Pos = MAP_APPFONT ( 12 , MA_Y10 ) ; 322 Size = MAP_APPFONT ( 77 , 10 ) ; 323 Text [ en-US ] = "Poster colors" ; 324 }; 325#define MA_Y11 MA_Y10 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y 326 NumericField DLG_FILTERPOSTER_NUM_POSTER 327 { 328 HelpID = "cui:NumericField:RID_SVX_GRFFILTER_DLG_POSTER:DLG_FILTERPOSTER_NUM_POSTER"; 329 Border = TRUE ; 330 Pos = MAP_APPFONT ( 12 , MA_Y11 ) ; 331 Size = MAP_APPFONT ( 35 , 12 ) ; 332 TabStop = TRUE ; 333 Repeat = TRUE ; 334 Spin = TRUE ; 335 Minimum = 2 ; 336 Maximum = 64 ; 337 StrictFormat = TRUE ; 338 First = 2 ; 339 Last = 64 ; 340 SpinSize = 1 ; 341 }; 342 OKButton BTN_OK 343 { 344 Pos = MAP_APPFONT ( 194, 6 ) ; 345 Size = MAP_APPFONT ( 50, 14 ) ; 346 TabStop = TRUE ; 347 DefButton = TRUE ; 348 }; 349 CancelButton BTN_CANCEL 350 { 351 Pos = MAP_APPFONT ( 194, 23 ) ; 352 Size = MAP_APPFONT ( 50, 14 ) ; 353 TabStop = TRUE ; 354 }; 355 HelpButton BTN_HELP 356 { 357 Pos = MAP_APPFONT ( 194, 43 ) ; 358 Size = MAP_APPFONT ( 50, 14 ) ; 359 TabStop = TRUE ; 360 }; 361}; 362 363// -------------------- 364// - DLG_FILTEREMBOSS - 365// -------------------- 366 367TabPage RID_SVX_GRFFILTER_DLG_EMBOSS_TAB 368{ 369 HelpID = "cui:TabPage:RID_SVX_GRFFILTER_DLG_EMBOSS_TAB"; 370 Pos = MAP_APPFONT ( 0, 0 ) ; 371 Size = MAP_APPFONT ( 0, 0 ) ; 372}; 373 374ModalDialog RID_SVX_GRFFILTER_DLG_EMBOSS 375{ 376 HelpID = CMD_SID_GRFFILTER_EMBOSS; 377 OutputSize = TRUE ; 378 Moveable = TRUE ; 379 SVLook = TRUE ; 380 Size = MAP_APPFONT ( 250, 100 ) ; 381 382 Text [ en-US ] = "Relief" ; 383 384 FixedLine FL_PARAMETER 385 { 386 Pos = MAP_APPFONT ( 6 , 3 ) ; 387 Size = MAP_APPFONT ( 182, RSC_CD_FIXEDLINE_HEIGHT ) ; 388 Text [ en-US ] = "Parameters"; 389 }; 390 Control CTL_PREVIEW 391 { 392 Pos = MAP_APPFONT ( 104 , 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP ) ; 393 Size = MAP_APPFONT ( 81, 73 ) ; 394 }; 395#define MA_Y12 3 + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP 396 FixedText DLG_FILTEREMBOSS_FT_LIGHT 397 { 398 Pos = MAP_APPFONT ( 12 , MA_Y12 ) ; 399 Size = MAP_APPFONT ( 77 , 10 ) ; 400 Text [ en-US ] = "Light source" ; 401 }; 402#define MA_Y13 MA_Y12 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y 403 Control DLG_FILTEREMBOSS_CTL_LIGHT 404 { 405 HelpID = HID_GRFFILTER_EMBOSS_LIGHT ; 406 Border = TRUE ; 407 Pos = MAP_APPFONT ( 12 , MA_Y13 ) ; 408 Size = MAP_APPFONT ( 77 , 60 ) ; 409 TabStop = TRUE ; 410 }; 411 OKButton BTN_OK 412 { 413 Pos = MAP_APPFONT ( 194, 6 ) ; 414 Size = MAP_APPFONT ( 50, 14 ) ; 415 TabStop = TRUE ; 416 DefButton = TRUE ; 417 }; 418 CancelButton BTN_CANCEL 419 { 420 Pos = MAP_APPFONT ( 194, 23 ) ; 421 Size = MAP_APPFONT ( 50, 14 ) ; 422 TabStop = TRUE ; 423 }; 424 HelpButton BTN_HELP 425 { 426 Pos = MAP_APPFONT ( 194, 43 ) ; 427 Size = MAP_APPFONT ( 50, 14 ) ; 428 TabStop = TRUE ; 429 }; 430}; 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463