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 <mmgreetingspage.hrc> 24#include <dbui.hrc> 25#include <helpid.h> 26 27#define _LB_FEMALECOLUMN \ 28 StringList [en-US]= \ 29 { \ 30 < "< not available >" ; > ; \ 31 }; 32 33 34#define GREETINGS_BODY \ 35 CheckBox CB_PERSONALIZED \ 36 { \ 37 Pos = MAP_APPFONT ( 12 + LEFT_OFFSET , 17 + TOP_OFFSET ) ; \ 38 Size = MAP_APPFONT ( 226 , 10 ) ; \ 39 Text[ en-US ] = "Insert personalized salutation"; \ 40 }; \ 41 FixedText FT_FEMALE \ 42 { \ 43 Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 32 + TOP_OFFSET ) ; \ 44 Size = MAP_APPFONT ( 50 , 8 ) ; \ 45 Text[ en-US ] = "~Female"; \ 46 }; \ 47 ListBox LB_FEMALE \ 48 { \ 49 Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 30 + TOP_OFFSET ) ; \ 50 Size = MAP_APPFONT ( 121 , 50 ) ; \ 51 DropDown = TRUE; \ 52 Border = TRUE; \ 53 }; \ 54 PushButton PB_FEMALE \ 55 { \ 56 Pos = MAP_APPFONT ( 198 + LEFT_OFFSET , 29 + TOP_OFFSET ) ; \ 57 Size = MAP_APPFONT ( 50 , 14 ) ; \ 58 Text[ en-US ] = "~New..."; \ 59 }; \ 60 FixedText FT_MALE \ 61 { \ 62 Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 49 + TOP_OFFSET ) ; \ 63 Size = MAP_APPFONT ( 50 , 8 ) ; \ 64 Text[ en-US ] = "~Male"; \ 65 }; \ 66 ListBox LB_MALE \ 67 { \ 68 Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 47 + TOP_OFFSET ) ; \ 69 Size = MAP_APPFONT ( 121 , 50 ) ; \ 70 DropDown = TRUE; \ 71 Border = TRUE; \ 72 }; \ 73 PushButton PB_MALE \ 74 { \ 75 Pos = MAP_APPFONT ( 198 + LEFT_OFFSET , 48 + TOP_OFFSET ) ; \ 76 Size = MAP_APPFONT ( 50 , 14 ) ; \ 77 Text[ en-US ] = "N~ew..."; \ 78 }; \ 79 FixedText FI_FEMALE \ 80 { \ 81 Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 67 + TOP_OFFSET ) ; \ 82 Size = MAP_APPFONT ( 225 , 8 ) ; \ 83 Text[ en-US ] = "Address list field indicating a female recipient"; \ 84 }; \ 85 FixedText FT_FEMALECOLUMN \ 86 { \ 87 Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 80 + TOP_OFFSET ) ; \ 88 Size = MAP_APPFONT ( 50 , 8 ) ; \ 89 Text[ en-US ] = "Field name"; \ 90 }; \ 91 ListBox LB_FEMALECOLUMN \ 92 { \ 93 Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 78 + TOP_OFFSET ) ; \ 94 Size = MAP_APPFONT ( 121 , 50 ) ; \ 95 DropDown = TRUE; \ 96 Border = TRUE; \ 97 _LB_FEMALECOLUMN \ 98 }; \ 99 FixedText FT_FEMALEFIELD \ 100 { \ 101 Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 95 + TOP_OFFSET ) ; \ 102 Size = MAP_APPFONT ( 50 , 8 ) ; \ 103 Text[ en-US ] = "Field value"; \ 104 }; \ 105 ComboBox CB_FEMALEFIELD \ 106 { \ 107 Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 93 + TOP_OFFSET ) ; \ 108 Size = MAP_APPFONT ( 121 , 50 ) ; \ 109 DropDown = TRUE; \ 110 Border = TRUE; \ 111 }; \ 112 FixedText FT_NEUTRAL \ 113 { \ 114 Pos = MAP_APPFONT ( 12 + LEFT_OFFSET , 113 + TOP_OFFSET ) ; \ 115 Size = MAP_APPFONT ( 180 , 8 ) ; \ 116 Text[ en-US ] = "General salutation"; \ 117 }; \ 118 ComboBox CB_NEUTRAL \ 119 { \ 120 Pos = MAP_APPFONT ( 12 + LEFT_OFFSET , 124 + TOP_OFFSET ) ; \ 121 Size = MAP_APPFONT ( 180 , 50 ) ; \ 122 DropDown = TRUE; \ 123 Border = TRUE; \ 124 }; 125 126#define TOP_OFFSET 24 127#define LEFT_OFFSET 6 128 129TabPage DLG_MM_GREETINGS_PAGE 130{ 131 HelpID = HID_MM_GREETINGSPAGE ; 132 Size = MAP_APPFONT ( 260 , 250 ) ; 133 Hide = TRUE ; 134 135 FixedText FI_HEADER 136 { 137 Pos = MAP_APPFONT ( 6 , 8 ) ; 138 Size = MAP_APPFONT ( 248 , 8 ) ; 139 Text [ en-US ] = "Create a salutation"; 140 }; 141 CheckBox CB_GREETINGLINE 142 { 143 HelpID = "sw:CheckBox:DLG_MM_GREETINGS_PAGE:CB_GREETINGLINE"; 144 Pos = MAP_APPFONT ( 12 , 27 ); 145 Size = MAP_APPFONT ( 242 , 10 ); 146 Text[ en-US ] = "This document should contain a salutation"; 147 }; 148 GREETINGS_BODY 149 FixedText FI_PREVIEW 150 { 151 Pos = MAP_APPFONT ( 12 , 168 ) ; 152 Size = MAP_APPFONT ( 242 , 8 ) ; 153 Text[ en-US ] = "Preview"; 154 }; 155 Window WIN_PREVIEW 156 { 157 Pos = MAP_APPFONT ( 12 , 179 ); 158 Size = MAP_APPFONT ( 186 , 21 ) ; 159 Border = TRUE; 160 }; 161 PushButton PB_ASSIGN 162 { 163 HelpID = "sw:PushButton:DLG_MM_GREETINGS_PAGE:PB_ASSIGN"; 164 Pos = MAP_APPFONT ( 204 , 179 ) ; 165 Size = MAP_APPFONT ( 50 , 14 ) ; 166 Text[ en-US ] = "~Match fields..."; 167 }; 168 FixedText FI_DOCINDEX 169 { 170 Pos = MAP_APPFONT ( 121 , 206 ) ; 171 Size = MAP_APPFONT ( 50, 8 ) ; 172 Right = TRUE; 173 }; 174 ImageButton IB_PREVSET 175 { 176 HelpID = "sw:ImageButton:DLG_MM_GREETINGS_PAGE:IB_PREVSET"; 177 Pos = MAP_APPFONT ( 177 , 204 ) ; 178 Size = MAP_APPFONT ( 10 , 10 ) ; 179 SYMBOL = IMAGEBUTTON_PREV; 180 QuickHelpText[ en-US ] = "Preview Previous Salutation"; 181 }; 182 ImageButton IB_NEXTSET 183 { 184 HelpID = "sw:ImageButton:DLG_MM_GREETINGS_PAGE:IB_NEXTSET"; 185 Pos = MAP_APPFONT ( 188 , 204 ) ; 186 Size = MAP_APPFONT ( 10 , 10 ) ; 187 SYMBOL = IMAGEBUTTON_NEXT ; 188 QuickHelpText[ en-US ] = "Preview Next Salutation"; 189 }; 190 String STR_DOCUMENT 191 { 192 Text[ en-US ] = "Document: %1"; 193 }; 194}; 195 196#undef TOP_OFFSET 197#undef LEFT_OFFSET 198 199#define TOP_OFFSET 0 200#define LEFT_OFFSET 0 201ModalDialog DLG_MM_MAILBODY 202{ 203 HelpID = HID_MM_MAILBODY; 204 Size = MAP_APPFONT ( 254 , 238 ) ; 205 OutputSize = TRUE ; 206 SVLook = TRUE ; 207 Moveable = TRUE ; 208 Text [ en-US ] = "E-Mail Message"; 209 CheckBox CB_GREETINGLINE 210 { 211 HelpID = "sw:CheckBox:DLG_MM_MAILBODY:CB_GREETINGLINE"; 212 Pos = MAP_APPFONT ( 6 , 3 ) ; 213 Size = MAP_APPFONT ( 242 , 10 ) ; 214 Text[ en-US ] = "This e-mail should contain a salutation"; 215 }; 216 GREETINGS_BODY 217 FixedText FT_BODY 218 { 219 Pos = MAP_APPFONT ( 12 , 140 ) ; 220 Size = MAP_APPFONT ( 174 , 8 ) ; 221 Text[ en-US ] = "Write your message here"; 222 }; 223 MultiLineEdit MLE_BODY 224 { 225 HelpID = "sw:MultiLineEdit:DLG_MM_MAILBODY:MLE_BODY"; 226 Pos = MAP_APPFONT ( 12, 151 ) ; 227 Size = MAP_APPFONT ( 180 , 50 ) ; 228 Border = TRUE; 229 TabStop = TRUE ; 230 Left = TRUE ; 231 VScroll = TRUE ; 232 HScroll = TRUE ; 233 IgnoreTab = TRUE; 234 }; 235 FixedLine FL_SEPARATOR 236 { 237 Pos = MAP_APPFONT ( 0 , 207 ) ; 238 Size = MAP_APPFONT ( 254 , 8 ) ; 239 }; 240 OKButton PB_OK 241 { 242 Pos = MAP_APPFONT ( 89, 218 ) ; 243 Size = MAP_APPFONT ( 50 , 14 ) ; 244 }; 245 CancelButton PB_CANCEL 246 { 247 Pos = MAP_APPFONT ( 142 , 218 ) ; 248 Size = MAP_APPFONT ( 50 , 14 ) ; 249 }; 250 HelpButton PB_HELP 251 { 252 Pos = MAP_APPFONT ( 198 , 218 ) ; 253 Size = MAP_APPFONT ( 50 , 14 ) ; 254 }; 255}; 256 257 258