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 --------------------------------------------------------------- 29 30#include <sfx2/sfx.hrc> 31#include "printopt.hrc" 32#include "dialog.hrc" 33#include "helpid.hrc" 34 35//**************************************************************************** 36// 37// TabPage 38// 39//**************************************************************************** 40 41TabPage TP_COMMONPRINTOPTIONS 42{ 43 HelpID = HID_TP_COMMONPRINTOPTIONS; 44 SVLook = TRUE ; 45 Size = MAP_APPFONT ( 260 , 185 ) ; 46 Hide = TRUE ; 47 48 FixedLine GB_REDUCE 49 { 50 Pos = MAP_APPFONT ( 6, 3 ) ; 51 Size = MAP_APPFONT ( 248 , 8 ) ; 52 Text [ en-US ] = "Reduce print data"; 53 }; 54 FixedText FT_OUTPUTTYPE 55 { 56 TabStop = TRUE; 57 Pos = MAP_APPFONT ( 12, 14 ) ; 58 Size = MAP_APPFONT ( 60, 10 ) ; 59 Text [ en-US ] = "Settings for"; 60 }; 61 RadioButton RB_PRINTEROUTPUT 62 { 63 HelpID = "sfx2:RadioButton:TP_COMMONPRINTOPTIONS:RB_PRINTEROUTPUT"; 64 TabStop = TRUE; 65 Pos = MAP_APPFONT ( 81, 14 ) ; 66 Size = MAP_APPFONT ( 60, 10 ) ; 67 Text [ en-US ] = "~Printer"; 68 }; 69 RadioButton RB_PRINTFILEOUTPUT 70 { 71 HelpID = "sfx2:RadioButton:TP_COMMONPRINTOPTIONS:RB_PRINTFILEOUTPUT"; 72 TabStop = TRUE; 73 Pos = MAP_APPFONT ( 142, 14 ) ; 74 Size = MAP_APPFONT ( 100, 10 ) ; 75 Text [ en-US ] = "Print to ~file"; 76 }; 77 78 // ----------- 79 80 FixedLine GB_OUTPUT 81 { 82 Pos = MAP_APPFONT ( 12, 27 ) ; 83 Size = MAP_APPFONT ( 242 , 8 ) ; 84 }; 85 86 CheckBox CB_REDUCETRANSPARENCY 87 { 88 HelpID = "sfx2:CheckBox:TP_COMMONPRINTOPTIONS:CB_REDUCETRANSPARENCY"; 89 TabStop = TRUE; 90 Pos = MAP_APPFONT ( 18, 38 ) ; 91 Size = MAP_APPFONT ( 115, 10 ) ; 92 Text [ en-US ] = "~Reduce transparency"; 93 }; 94 RadioButton RB_REDUCETRANSPARENCY_AUTO 95 { 96 HelpID = "sfx2:RadioButton:TP_COMMONPRINTOPTIONS:RB_REDUCETRANSPARENCY_AUTO"; 97 TabStop = TRUE; 98 Pos = MAP_APPFONT ( 28, 51 ) ; 99 Size = MAP_APPFONT ( 105, 10 ) ; 100 Text [ en-US ] = "Auto~matically"; 101 }; 102 RadioButton RB_REDUCETRANSPARENCY_NONE 103 { 104 HelpID = "sfx2:RadioButton:TP_COMMONPRINTOPTIONS:RB_REDUCETRANSPARENCY_NONE"; 105 TabStop = TRUE; 106 Pos = MAP_APPFONT ( 28, 64 ) ; 107 Size = MAP_APPFONT ( 105, 10 ) ; 108 Text [ en-US ] = "~No transparency"; 109 }; 110 111 // ----------- 112 113 CheckBox CB_REDUCEGRADIENTS 114 { 115 HelpID = "sfx2:CheckBox:TP_COMMONPRINTOPTIONS:CB_REDUCEGRADIENTS"; 116 TabStop = TRUE; 117 Pos = MAP_APPFONT ( 136, 38 ) ; 118 Size = MAP_APPFONT ( 121, 10 ) ; 119 Text [ en-US ] = "Reduce ~gradients"; 120 }; 121 RadioButton RB_REDUCEGRADIENTS_STRIPES 122 { 123 HelpID = "sfx2:RadioButton:TP_COMMONPRINTOPTIONS:RB_REDUCEGRADIENTS_STRIPES"; 124 TabStop = TRUE; 125 Pos = MAP_APPFONT ( 146, 51 ) ; 126 Size = MAP_APPFONT ( 77, 10 ) ; 127 Text [ en-US ] = "Gradient ~stripes"; 128 }; 129 NumericField NF_REDUCEGRADIENTS_STEPCOUNT 130 { 131 HelpID = "sfx2:NumericField:TP_COMMONPRINTOPTIONS:NF_REDUCEGRADIENTS_STEPCOUNT"; 132 TabStop = TRUE; 133 Border = TRUE ; 134 Pos = MAP_APPFONT ( 224, 49 ) ; 135 Size = MAP_APPFONT ( 24, 12 ) ; 136 Minimum = 2; 137 Maximum = 256; 138 Spin = TRUE ; 139 Repeat = TRUE ; 140 }; 141 RadioButton RB_REDUCEGRADIENTS_COLOR 142 { 143 HelpID = "sfx2:RadioButton:TP_COMMONPRINTOPTIONS:RB_REDUCEGRADIENTS_COLOR"; 144 TabStop = TRUE; 145 Pos = MAP_APPFONT ( 146, 64 ) ; 146 Size = MAP_APPFONT ( 108, 10 ) ; 147 Text [ en-US ] = "Intermediate ~color"; 148 }; 149 150 // ----------- 151 152 CheckBox CB_REDUCEBITMAPS 153 { 154 HelpID = "sfx2:CheckBox:TP_COMMONPRINTOPTIONS:CB_REDUCEBITMAPS"; 155 TabStop = TRUE; 156 Pos = MAP_APPFONT ( 18, 80 ) ; 157 Size = MAP_APPFONT ( 115, 10 ) ; 158 Text [ en-US ] = "Reduce ~bitmaps"; 159 }; 160 RadioButton RB_REDUCEBITMAPS_OPTIMAL 161 { 162 HelpID = "sfx2:RadioButton:TP_COMMONPRINTOPTIONS:RB_REDUCEBITMAPS_OPTIMAL"; 163 TabStop = TRUE; 164 Pos = MAP_APPFONT ( 28, 93 ) ; 165 Size = MAP_APPFONT ( 226, 10 ) ; 166 Text [ en-US ] = "~High print quality"; 167 }; 168 RadioButton RB_REDUCEBITMAPS_NORMAL 169 { 170 HelpID = "sfx2:RadioButton:TP_COMMONPRINTOPTIONS:RB_REDUCEBITMAPS_NORMAL"; 171 TabStop = TRUE; 172 Pos = MAP_APPFONT ( 28, 106 ) ; 173 Size = MAP_APPFONT ( 226, 10 ) ; 174 Text [ en-US ] = "N~ormal print quality"; 175 }; 176 RadioButton RB_REDUCEBITMAPS_RESOLUTION 177 { 178 HelpID = "sfx2:RadioButton:TP_COMMONPRINTOPTIONS:RB_REDUCEBITMAPS_RESOLUTION"; 179 TabStop = TRUE; 180 Pos = MAP_APPFONT ( 28, 119 ) ; 181 Size = MAP_APPFONT ( 52, 10 ) ; 182 Text [ en-US ] = "Reso~lution"; 183 }; 184 ListBox LB_REDUCEBITMAPS_RESOLUTION 185 { 186 HelpID = "sfx2:ListBox:TP_COMMONPRINTOPTIONS:LB_REDUCEBITMAPS_RESOLUTION"; 187 TabStop = TRUE; 188 Border = TRUE ; 189 Pos = MAP_APPFONT ( 81, 117 ) ; 190 Size = MAP_APPFONT ( 60, 100 ) ; 191 DropDown = TRUE; 192 193 StringList [ en-US ] = 194 { 195 < "72 DPI"; 0; > ; 196 < "96 DPI"; 0; > ; 197 < "150 DPI (Fax)"; 0; > ; 198 < "200 DPI (default)"; 0; > ; 199 < "300 DPI"; 0; > ; 200 < "600 DPI"; 0; > ; 201 }; 202 }; 203 CheckBox CB_REDUCEBITMAPS_TRANSPARENCY 204 { 205 HelpID = "sfx2:CheckBox:TP_COMMONPRINTOPTIONS:CB_REDUCEBITMAPS_TRANSPARENCY"; 206 TabStop = TRUE; 207 Pos = MAP_APPFONT ( 28, 132 ) ; 208 Size = MAP_APPFONT ( 226, 10 ) ; 209 Text [ en-US ] = "Include transparent ob~jects"; 210 }; 211 212 // ----------- 213 214 CheckBox CB_CONVERTTOGREYSCALES 215 { 216 HelpID = "sfx2:CheckBox:TP_COMMONPRINTOPTIONS:CB_CONVERTTOGREYSCALES"; 217 TabStop = TRUE; 218 Pos = MAP_APPFONT ( 136, 80 ) ; 219 Size = MAP_APPFONT ( 123, 10 ) ; 220 Text [ en-US ] = "Con~vert colors to grayscale"; 221 }; 222 223 // ----------- 224 225 FixedLine GB_PRINT_WARN 226 { 227 Pos = MAP_APPFONT ( 6, 148 ) ; 228 Size = MAP_APPFONT ( 248 , 8 ) ; 229 Text [ en-US ] = "Printer warnings" ; 230 }; 231 CheckBox CB_PAPERSIZE 232 { 233 HelpID = "sfx2:CheckBox:TP_COMMONPRINTOPTIONS:CB_PAPERSIZE"; 234 TabStop = TRUE; 235 Pos = MAP_APPFONT ( 12, 159 ) ; 236 Size = MAP_APPFONT ( 123, 10 ) ; 237 Text [ en-US ] = "P~aper size" ; 238 }; 239 CheckBox CB_PAPERORIENTATION 240 { 241 HelpID = "sfx2:CheckBox:TP_COMMONPRINTOPTIONS:CB_PAPERORIENTATION"; 242 TabStop = TRUE; 243 Pos = MAP_APPFONT ( 12, 172 ) ; 244 Size = MAP_APPFONT ( 123 , 10 ) ; 245 Text [ en-US ] = "Pap~er orientation" ; 246 }; 247 CheckBox CB_TRANSPARENCY 248 { 249 HelpID = "sfx2:CheckBox:TP_COMMONPRINTOPTIONS:CB_TRANSPARENCY"; 250 TabStop = TRUE; 251 Pos = MAP_APPFONT ( 136, 159 ) ; 252 Size = MAP_APPFONT ( 123, 10 ) ; 253 Text [ en-US ] = "~Transparency"; 254 }; 255}; 256 257// -------------- 258// - WarningBox - 259// -------------- 260 261ModalDialog RID_WARN_PRINTTRANSPARENCY 262{ 263 HelpID = "sfx2:ModalDialog:RID_WARN_PRINTTRANSPARENCY"; 264 OutputSize = TRUE ; 265 Size = MAP_APPFONT ( 195 , 85 ) ; 266 Text [ en-US ] = "Warning" ; 267 Moveable = TRUE ; 268 FixedImage FI_PRINTTRANSWARN 269 { 270 Pos = MAP_APPFONT ( 6 , 6 ) ; 271 Size = MAP_APPFONT ( 20 , 20 ) ; 272 }; 273 FixedText FT_PRINTTRANSWARN 274 { 275 Pos = MAP_APPFONT ( 29 , 6 ) ; 276 Size = MAP_APPFONT ( 163 , 36 ) ; 277 WordBreak = TRUE ; 278 Text [ en-US ] = "Your document contains transparent objects.\nThis may lead to longer printing time on certain\nprinters. Should the aspect of transparency\nbe reduced?"; 279 }; 280 OKButton BTN_PRINTTRANS_YES 281 { 282 Pos = MAP_APPFONT ( 12 , 48 ) ; 283 Size = MAP_APPFONT ( 50 , 14 ) ; 284 DefButton = TRUE; 285 Text [ en-US ] = "~Yes" ; 286 }; 287 PushButton BTN_PRINTTRANS_NO 288 { 289 HelpID = "sfx2:PushButton:RID_WARN_PRINTTRANSPARENCY:BTN_PRINTTRANS_NO"; 290 Pos = MAP_APPFONT ( 68 , 48 ) ; 291 Size = MAP_APPFONT ( 50 , 14 ) ; 292 Text [ en-US ] = "~No" ; 293 }; 294 CancelButton BTN_PRINTTRANS_CANCEL 295 { 296 Pos = MAP_APPFONT ( 124 , 48 ) ; 297 Size = MAP_APPFONT ( 50 , 14 ) ; 298 Text [ en-US ] = "~Cancel" ; 299 }; 300 CheckBox CBX_NOPRINTTRANSWARN 301 { 302 HelpID = "sfx2:CheckBox:RID_WARN_PRINTTRANSPARENCY:CBX_NOPRINTTRANSWARN"; 303 Pos = MAP_APPFONT ( 6 , 68 ) ; 304 Size = MAP_APPFONT ( 183 , 10 ) ; 305 Text [ en-US ] = "~Do not show warning again" ; 306 }; 307}; 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378