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 "CondFormat.hrc" 24#include "RptResId.hrc" 25#include "helpids.hrc" 26#ifndef _GLOBLMN_HRC 27#include <svx/globlmn.hrc> 28#endif 29#include "rptui_slotid.hrc" 30 31Control WIN_CONDITION 32{ 33 Size = MAP_APPFONT ( CONDITION_WIDTH , CONDITION_HEIGHT ) ; 34 HelpId = HID_RPT_COND_DLG; 35 DialogControl = TRUE; 36 Hide = TRUE; 37 38 FixedLine FL_CONDITION_HEADER 39 { 40 Pos = MAP_APPFONT ( RELATED_CONTROLS, ROW_0_POS ) ; 41 Size = MAP_APPFONT ( CONDITION_WIDTH - 2 * RELATED_CONTROLS, ROW_0_HEIGTH ) ; 42 }; 43 44 ListBox LB_COND_TYPE 45 { 46 Pos = MAP_APPFONT ( UNRELATED_CONTROLS, ROW_1_POS ) ; 47 Size = MAP_APPFONT( COND_TYPE_WIDTH, 60 ); 48 Border = TRUE; 49 DropDown = TRUE; 50 TabStop = TRUE; 51 Sort = FALSE; 52 StringList [ en-US ] = 53 { 54 < "Field Value Is" ; Default ; > ; 55 < "Expression Is" ; Default ; > ; 56 }; 57 }; 58 59 ListBox LB_OP 60 { 61 Pos = MAP_APPFONT ( UNRELATED_CONTROLS + COND_TYPE_WIDTH + UNRELATED_CONTROLS, ROW_1_POS ) ; 62 Size = MAP_APPFONT( COND_OP_WIDTH, 60 ); 63 Border = TRUE; 64 DropDown = TRUE; 65 TabStop = TRUE; 66 Sort = FALSE; 67 StringList [ en-US ] = 68 { 69 < "between" ; 0; > ; 70 < "not between" ; 1; > ; 71 < "equal to" ; 2; > ; 72 < "not equal to" ; 3; > ; 73 < "greater than" ; 4; > ; 74 < "less than" ; 5; > ; 75 < "greater than or equal to" ; 6; > ; 76 < "less than or equal to" ; 7; > ; 77 }; 78 }; 79 80 Edit ED_CONDITION_LHS 81 { 82 Pos = MAP_APPFONT ( 3*UNRELATED_CONTROLS + COND_TYPE_WIDTH + COND_OP_WIDTH, ROW_1_POS ) ; 83 Size = MAP_APPFONT( EDIT_WIDTH, EDIT_HEIGHT ); 84 Border = TRUE; 85 TabStop = TRUE; 86 }; 87 88 FixedText FT_AND 89 { 90 Pos = MAP_APPFONT ( 4*UNRELATED_CONTROLS + COND_TYPE_WIDTH + COND_OP_WIDTH + EDIT_WIDTH, 91 ROW_1_POS + ( FIXEDTEXT_HEIGHT - EDIT_HEIGHT ) / 2 ); 92 Size = MAP_APPFONT( OPERATOR_SEP_WIDTH , FIXEDTEXT_HEIGHT ); 93 Text [ en-US ] = "and"; 94 }; 95 96 Edit ED_CONDITION_RHS 97 { 98 Pos = MAP_APPFONT ( 5*UNRELATED_CONTROLS + COND_TYPE_WIDTH + COND_OP_WIDTH + EDIT_WIDTH + OPERATOR_SEP_WIDTH, 99 ROW_1_POS ); 100 Size = MAP_APPFONT( EDIT_WIDTH, EDIT_HEIGHT ); 101 Border = TRUE; 102 TabStop = TRUE; 103 }; 104 105 ImageButton BTN_MOVE_UP 106 { 107 Pos = MAP_APPFONT ( CONDITION_WIDTH - UNRELATED_CONTROLS - IMAGE_BUTTON_WIDTH, ROW_1_POS ) ; 108 Size = MAP_APPFONT ( IMAGE_BUTTON_WIDTH, IMAGE_BUTTON_HEIGHT ) ; 109 TabStop = TRUE ; 110 Symbol = IMAGEBUTTON_ARROW_UP ; 111 }; 112 113 ImageButton BTN_MOVE_DOWN 114 { 115 Pos = MAP_APPFONT ( CONDITION_WIDTH - UNRELATED_CONTROLS - IMAGE_BUTTON_WIDTH, ROW_1_POS + IMAGE_BUTTON_HEIGHT + RELATED_CONTROLS ) ; 116 Size = MAP_APPFONT ( IMAGE_BUTTON_WIDTH, IMAGE_BUTTON_HEIGHT ) ; 117 TabStop = TRUE ; 118 Symbol = IMAGEBUTTON_ARROW_DOWN ; 119 }; 120 121 ToolBox TB_FORMAT 122 { 123 Pos = MAP_APPFONT ( UNRELATED_CONTROLS + RELATED_CONTROLS, ROW_2_POS ) ; 124 ButtonType = BUTTON_SYMBOL; 125 Align = BOXALIGN_TOP; 126 HelpId = HID_RPT_CONDFORMAT_TB; 127 Customize = FALSE; 128 ItemList = 129 { 130 ToolBoxItem 131 { 132 ITEM_FORMAT_ATTR_CHAR_WEIGHT 133 Checkable = TRUE; 134 }; 135 ToolBoxItem 136 { 137 ITEM_FORMAT_ATTR_CHAR_POSTURE 138 Checkable = TRUE; 139 }; 140 ToolBoxItem 141 { 142 ITEM_FORMAT_ATTR_CHAR_UNDERLINE 143 Checkable = TRUE; 144 }; 145 ToolBoxItem 146 { 147 Type = TOOLBOXITEM_SEPARATOR; 148 }; 149 ToolBoxItem 150 { 151 ITEM_TOOLBAR_BACKGROUND_COLOR 152 DropDown = TRUE; 153 }; 154 ToolBoxItem 155 { 156 ITEM_TOOLBAR_ATTR_CHAR_COLOR 157 Identifier = SID_ATTR_CHAR_COLOR2; 158 Command = ".uno:FontColor"; 159 }; 160 ToolBoxItem 161 { 162 ITEM_FORMAT_CHAR_DLG 163 }; 164 }; 165 }; 166 167 Window CRTL_FORMAT_PREVIEW 168 { 169 Pos = MAP_APPFONT ( 2*UNRELATED_CONTROLS, ROW_2_POS ) ; 170 Size = MAP_APPFONT ( CONDITION_WIDTH - UNRELATED_CONTROLS, ROW_2_HEIGHT ) ; 171 Border = TRUE ; 172 HelpId = HID_RPT_CRTL_FORMAT_PREVIEW; 173 Text [ en-US ] = "Example"; 174 }; 175 176 PushButton BTN_ADD_CONDITION 177 { 178 Pos = MAP_APPFONT( CONDITION_WIDTH - 2*UNRELATED_CONTROLS - 2*IMAGE_BUTTON_WIDTH - RELATED_CONTROLS, ROW_3_POS ); 179 Size = MAP_APPFONT( IMAGE_BUTTON_WIDTH, IMAGE_BUTTON_HEIGHT ); 180 Text = "+"; 181 }; 182 183 PushButton BTN_REMOVE_CONDITION 184 { 185 Pos = MAP_APPFONT( CONDITION_WIDTH - 2*UNRELATED_CONTROLS - 2*IMAGE_BUTTON_WIDTH - RELATED_CONTROLS, ROW_3_POS ); 186 Size = MAP_APPFONT( IMAGE_BUTTON_WIDTH, IMAGE_BUTTON_HEIGHT ); 187 Text = "-"; 188 }; 189 190 Image IMG_MOVE_UP_HC 191 { 192 ImageBitmap = Bitmap { File = "arrow_move_up_hc" ; }; 193 }; 194 195 Image IMG_MOVE_DOWN_HC 196 { 197 ImageBitmap = Bitmap { File = "arrow_move_down_hc" ; }; 198 }; 199}; 200 201ModalDialog RID_CONDFORMAT 202{ 203 OutputSize = TRUE ; 204 SVLook = TRUE ; 205 Size = MAP_APPFONT ( COND_DLG_WIDTH, COND_DLG_HEIGHT ) ; 206 Text [ en-US ] = "Conditional Formatting" ; 207 HelpId = HID_RPT_CONDFORMAT_DLG; 208 Moveable = TRUE ; 209 Closeable = TRUE ; 210 211 Window WND_COND_PLAYGROUND 212 { 213 Pos = MAP_APPFONT ( 0, 0 ) ; 214 Size = MAP_APPFONT ( CONDITION_WIDTH, CONDITION_HEIGHT ) ; 215 DialogControl = TRUE; 216 Hide = FALSE; 217 }; 218 219 FixedLine FL_SEPARATOR1 220 { 221 Pos = MAP_APPFONT ( RELATED_CONTROLS, CONDITION_HEIGHT + RELATED_CONTROLS ) ; 222 Size = MAP_APPFONT ( CONDITION_WIDTH - 2*RELATED_CONTROLS , 1 ) ; 223 }; 224 225 OKButton PB_OK 226 { 227 Pos = MAP_APPFONT ( CONDITION_WIDTH - 3*BUTTON_WIDTH - 2*UNRELATED_CONTROLS - RELATED_CONTROLS, CONDITION_HEIGHT + 2*RELATED_CONTROLS + 1) ; 228 Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ; 229 TabStop = TRUE ; 230 DefButton = TRUE ; 231 }; 232 233 CancelButton PB_CANCEL 234 { 235 Pos = MAP_APPFONT ( CONDITION_WIDTH - 2*BUTTON_WIDTH - 2*UNRELATED_CONTROLS , CONDITION_HEIGHT + 2*RELATED_CONTROLS + 1) ; 236 Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ; 237 TabStop = TRUE ; 238 }; 239 240 HelpButton PB_HELP 241 { 242 TabStop = TRUE ; 243 Pos = MAP_APPFONT ( CONDITION_WIDTH - BUTTON_WIDTH - UNRELATED_CONTROLS, CONDITION_HEIGHT + 2*RELATED_CONTROLS + 1) ; 244 Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ; 245 Text [ en-US ] = "~Help"; 246 }; 247 248 ScrollBar SB_ALL_CONDITIONS 249 { 250 Pos = MAP_APPFONT ( CONDITION_WIDTH, RELATED_CONTROLS ) ; 251 Size = MAP_APPFONT ( SCROLLBAR_WIDTH, CONDITION_HEIGHT + RELATED_CONTROLS ) ; 252 }; 253}; 254 255String STR_NUMBERED_CONDITION 256{ 257 Text [ en-US ] = "Condition $number$"; 258}; 259 260String STR_COLOR_WHITE 261{ 262 Text [ en-US ] = "White" ; 263}; 264String STR_CHARCOLOR 265{ 266 Text [ en-US ] = "Font color" ; 267}; 268String STR_CHARBACKGROUND 269{ 270 Text [ en-US ] = "Background"; 271}; 272String STR_TRANSPARENT 273{ 274 Text [ en-US ] = "No Fill" ; 275}; 276 277#define MASKCOLOR MaskColor = Color { Red = 0xFFFF; Green = 0x0000; Blue = 0xFFFF; } 278 279//------------------------------------------------------------------------- 280ImageList IMG_CONDFORMAT_DLG_SC 281{ 282 MASKCOLOR; 283 FileList = 284 { 285 < "res/commandimagelist/sc_bold.png" ; SID_ATTR_CHAR_WEIGHT ; > ; 286 < "res/commandimagelist/sc_italic.png" ; SID_ATTR_CHAR_POSTURE ; > ; 287 < "res/commandimagelist/sc_underline.png" ; SID_ATTR_CHAR_UNDERLINE ; > ; 288 < "res/commandimagelist/sc_backgroundcolor.png" ; SID_BACKGROUND_COLOR ; > ; 289 < "res/commandimagelist/sc_fontcolor.png" ; SID_ATTR_CHAR_COLOR2 ; > ; 290 < "res/commandimagelist/sc_fontdialog.png" ; SID_CHAR_DLG ; > ; 291 }; 292}; 293 294ImageList IMG_CONDFORMAT_DLG_SCH 295{ 296 MASKCOLOR; 297 FileList = 298 { 299 < "res/commandimagelist/sch_bold.png" ; SID_ATTR_CHAR_WEIGHT ; > ; 300 < "res/commandimagelist/sch_italic.png" ; SID_ATTR_CHAR_POSTURE ; > ; 301 < "res/commandimagelist/sch_underline.png" ; SID_ATTR_CHAR_UNDERLINE ; > ; 302 < "res/commandimagelist/sch_backgroundcolor.png" ; SID_BACKGROUND_COLOR ; > ; 303 < "res/commandimagelist/sch_fontcolor.png" ; SID_ATTR_CHAR_COLOR2 ; > ; 304 < "res/commandimagelist/sch_fontdialog.png" ; SID_CHAR_DLG ; > ; 305 }; 306}; 307ImageList IMG_CONDFORMAT_DLG_LC 308{ 309 MASKCOLOR; 310 FileList = 311 { 312 < "res/commandimagelist/lc_bold.png" ; SID_ATTR_CHAR_WEIGHT ; > ; 313 < "res/commandimagelist/lc_italic.png" ; SID_ATTR_CHAR_POSTURE ; > ; 314 < "res/commandimagelist/lc_underline.png" ; SID_ATTR_CHAR_UNDERLINE ; > ; 315 < "res/commandimagelist/lc_backgroundcolor.png" ; SID_BACKGROUND_COLOR ; > ; 316 < "res/commandimagelist/lc_fontcolor.png" ; SID_ATTR_CHAR_COLOR2 ; > ; 317 < "res/commandimagelist/lc_fontdialog.png" ; SID_CHAR_DLG ; > ; 318 }; 319}; 320ImageList IMG_CONDFORMAT_DLG_LCH 321{ 322 MASKCOLOR; 323 FileList = 324 { 325 < "res/commandimagelist/lch_bold.png" ; SID_ATTR_CHAR_WEIGHT ; > ; 326 < "res/commandimagelist/lch_italic.png" ; SID_ATTR_CHAR_POSTURE ; > ; 327 < "res/commandimagelist/lch_underline.png" ; SID_ATTR_CHAR_UNDERLINE ; > ; 328 < "res/commandimagelist/lch_backgroundcolor.png" ; SID_BACKGROUND_COLOR ; > ; 329 < "res/commandimagelist/lch_fontcolor.png" ; SID_ATTR_CHAR_COLOR2 ; > ; 330 < "res/commandimagelist/lch_fontdialog.png" ; SID_CHAR_DLG ; > ; 331 }; 332}; 333 334 335 336ImageList 31000 337{ 338 MASKCOLOR; 339 prefix = "sc"; 340 IdList = {05500;}; 341 IdCount = 1; 342 343}; 344 345ToolBox RID_TB_SORTING 346{ 347 Pos = MAP_APPFONT ( 0,0 ) ; 348 ButtonType = BUTTON_SYMBOL; 349 Align = BOXALIGN_TOP; 350 Customize = FALSE; 351 ItemList = 352 { 353 ToolBoxItem 354 { 355 Identifier = SID_FM_SORTUP; 356 Text [ en-US ] = "Sort Ascending" ; 357 Checkable = TRUE; 358 }; 359 ToolBoxItem 360 { 361 Identifier = SID_FM_SORTDOWN; 362 Text [ en-US ] = "Sort Descending" ; 363 Checkable = TRUE; 364 }; 365 ToolBoxItem 366 { 367 Identifier = SID_FM_REMOVE_FILTER_SORT; 368 Text [ en-US ] = "Remove sorting" ; 369 }; 370 ToolBoxItem 371 { 372 Type = TOOLBOXITEM_SEPARATOR; 373 }; 374 ToolBoxItem 375 { 376 Identifier = SID_ADD_CONTROL_PAIR; 377 Text [ en-US ] = "Insert" ; 378 }; 379 }; 380}; 381 382ImageList IMG_ADDFIELD_DLG_SC 383{ 384 MASKCOLOR; 385 FileList = 386 { 387 < "res/commandimagelist/sc_sortup.png" ; SID_FM_SORTUP ; > ; 388 < "res/commandimagelist/sc_sortdown.png" ; SID_FM_SORTDOWN ; > ; 389 < "res/commandimagelist/sc_removefiltersort.png" ; SID_FM_REMOVE_FILTER_SORT ; > ; 390 }; 391}; 392 393ImageList IMG_ADDFIELD_DLG_SCH 394{ 395 MASKCOLOR; 396 FileList = 397 { 398 < "res/commandimagelist/sch_sortup.png" ; SID_FM_SORTUP ; > ; 399 < "res/commandimagelist/sch_sortdown.png" ; SID_FM_SORTDOWN ; > ; 400 < "res/commandimagelist/sch_removefiltersort.png" ; SID_FM_REMOVE_FILTER_SORT ; > ; 401 }; 402}; 403 404ImageList IMG_ADDFIELD_DLG_LC 405{ 406 MASKCOLOR; 407 FileList = 408 { 409 < "res/commandimagelist/lc_sortup.png" ; SID_FM_SORTUP ; > ; 410 < "res/commandimagelist/lc_sortdown.png" ; SID_FM_SORTDOWN ; > ; 411 < "res/commandimagelist/lc_removefiltersort.png" ; SID_FM_REMOVE_FILTER_SORT ; > ; 412 }; 413}; 414 415ImageList IMG_ADDFIELD_DLG_LCH 416{ 417 MASKCOLOR; 418 FileList = 419 { 420 < "res/commandimagelist/lch_sortup.png" ; SID_FM_SORTUP ; > ; 421 < "res/commandimagelist/lch_sortdown.png" ; SID_FM_SORTDOWN ; > ; 422 < "res/commandimagelist/lch_removefiltersort.png" ; SID_FM_REMOVE_FILTER_SORT ; > ; 423 }; 424}; 425 426FixedLine ADDFIELD_FL_HELP_SEPARATOR 427{ 428 SVLook = TRUE ; 429 Pos = MAP_APPFONT ( RELATED_CONTROLS , RELATED_CONTROLS ) ; 430 Size = MAP_APPFONT ( RELATED_CONTROLS , RELATED_CONTROLS ) ; 431 Text [ en-US ] = "Help"; 432}; 433 434FixedText ADDFIELD_HELP_FIELD 435{ 436 SVLook = TRUE ; 437 Pos = MAP_APPFONT ( RELATED_CONTROLS , RELATED_CONTROLS ) ; 438 Size = MAP_APPFONT ( RELATED_CONTROLS , RELATED_CONTROLS ) ; 439 WordBreak = TRUE; 440 Text [ en-US ] = "Highlight the fields to insert into the selected section of the template, then click Insert or press Enter."; 441}; 442