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 24 25#include "datefunc.hrc" 26 27 28Resource RID_DATE_FUNCTION_DESCRIPTIONS 29{ 30 Resource DATE_FUNCDESC_DiffWeeks 31 { 32 String 1 // description DiffWeeks 33 { 34 Text [ en-US ] = "Calculates the number of weeks in a specific period"; 35 }; 36 String 2 // name of parameter 1 DiffWeeks 37 { 38 Text [ en-US ] = "Start date"; 39 }; 40 String 3 // description of parameter 1 DiffWeeks 41 { 42 Text [ en-US ] = "First day of the period"; 43 }; 44 String 4 // name of parameter 2 DiffWeeks 45 { 46 Text [ en-US ] = "End date"; 47 }; 48 String 5 // description of parameter 2 DiffWeeks 49 { 50 Text [ en-US ] = "Last day of the period"; 51 }; 52 String 6 // name of parameter 3 DiffWeeks 53 { 54 Text [ en-US ] = "Type"; 55 }; 56 String 7 // description of parameter 3 DiffWeeks 57 { 58 Text [ en-US ] = "Type of calculation: Type=0 means the time interval, Type=1 means calendar weeks."; 59 }; 60 }; 61 62 Resource DATE_FUNCDESC_DiffMonths 63 { 64 String 1 // description DiffMonths 65 { 66 Text [ en-US ] = "Determines the number of months in a specific period."; 67 }; 68 String 2 // name of parameter 1 DiffMonths 69 { 70 Text [ en-US ] = "Start date"; 71 }; 72 String 3 // description of parameter 1 DiffMonths 73 { 74 Text [ en-US ] = "First day of the period."; 75 }; 76 String 4 // name of parameter 2 DiffMonths 77 { 78 Text [ en-US ] = "End date"; 79 }; 80 String 5 // description of parameter 2 DiffMonths 81 { 82 Text [ en-US ] = "Last day of the period."; 83 }; 84 String 6 // name of parameter 3 DiffMonths 85 { 86 Text [ en-US ] = "Type"; 87 }; 88 String 7 // description of parameter 3 DiffMonths 89 { 90 Text [ en-US ] = "Type of calculation: Type=0 means the time interval, Type=1 means calendar months."; 91 }; 92 }; 93 94 Resource DATE_FUNCDESC_DiffYears 95 { 96 String 1 // description DiffYears 97 { 98 Text [ en-US ] = "Calculates the number of years in a specific period."; 99 }; 100 String 2 // name of parameter 1 DiffYears 101 { 102 Text [ en-US ] = "Start date"; 103 }; 104 String 3 // description of parameter 1 DiffYears 105 { 106 Text [ en-US ] = "First day of the period"; 107 }; 108 String 4 // name of parameter 2 DiffYears 109 { 110 Text [ en-US ] = "End date"; 111 }; 112 String 5 // description of parameter 2 DiffYears 113 { 114 Text [ en-US ] = "Last day of the period"; 115 }; 116 String 6 // name of parameter 3 DiffYears 117 { 118 Text [ en-US ] = "Type"; 119 }; 120 String 7 // description of parameter 3 DiffYears 121 { 122 Text [ en-US ] = "Type of calculation: Type=0 means the time interval, Type=1 means calendar years."; 123 }; 124 }; 125 126 Resource DATE_FUNCDESC_IsLeapYear 127 { 128 String 1 // description IsLeapYear 129 { 130 Text [ en-US ] = "Returns 1 (TRUE) if the date is a day of a leap year, otherwise 0 (FALSE)."; 131 }; 132 String 2 // name of parameter 1 IsLeapYear 133 { 134 Text [ en-US ] = "Date"; 135 }; 136 String 3 // description of parameter 1 IsLeapYear 137 { 138 Text [ en-US ] = "Any day in the desired year"; 139 }; 140 }; 141 142 Resource DATE_FUNCDESC_DaysInMonth 143 { 144 String 1 // description DaysInMonth 145 { 146 Text [ en-US ] = "Returns the number of days of the month in which the date entered occurs"; 147 }; 148 String 2 // name of parameter 1 DaysInMonth 149 { 150 Text [ en-US ] = "Date"; 151 }; 152 String 3 // description of parameter 1 DaysInMonth 153 { 154 Text [ en-US ] = "Any day in the desired month"; 155 }; 156 }; 157 158 Resource DATE_FUNCDESC_DaysInYear 159 { 160 String 1 // description DaysInYear 161 { 162 Text [ en-US ] = "Returns the number of days of the year in which the date entered occurs."; 163 }; 164 String 2 // name of parameter 1 DaysInYear 165 { 166 Text [ en-US ] = "Date"; 167 }; 168 String 3 // description of parameter 1 DaysInYear 169 { 170 Text [ en-US ] = "Any day in the desired year"; 171 }; 172 }; 173 174 Resource DATE_FUNCDESC_WeeksInYear 175 { 176 String 1 // description WeeksInYear 177 { 178 Text [ en-US ] = "Returns the number of weeks of the year in which the date entered occurs"; 179 }; 180 String 2 // name of parameter 1 WeeksInYear 181 { 182 Text [ en-US ] = "Date"; 183 }; 184 String 3 // description of parameter 1 WeeksInYear 185 { 186 Text [ en-US ] = "Any day in the desired year"; 187 }; 188 }; 189 190 Resource DATE_FUNCDESC_Rot13 191 { 192 String 1 // description Rot13 193 { 194 Text [ en-US ] = "Encrypts or decrypts a text using the ROT13 algorithm"; 195 }; 196 String 2 // name of parameter 1 Rot13 197 { 198 Text [ en-US ] = "Text"; 199 }; 200 String 3 // description of parameter 1 Rot13 201 { 202 Text [ en-US ] = "Text to be encrypted or text already encrypted"; 203 }; 204 }; 205}; 206 207 208Resource RID_DATE_FUNCTION_NAMES 209{ 210 String DATE_FUNCNAME_DiffWeeks 211 { 212 Text [ en-US ] = "WEEKS"; 213 }; 214 String DATE_FUNCNAME_DiffMonths 215 { 216 Text [ en-US ] = "MONTHS"; 217 }; 218 String DATE_FUNCNAME_DiffYears 219 { 220 Text [ en-US ] = "YEARS"; 221 }; 222 String DATE_FUNCNAME_IsLeapYear 223 { 224 Text [ en-US ] = "ISLEAPYEAR"; 225 }; 226 String DATE_FUNCNAME_DaysInMonth 227 { 228 Text [ en-US ] = "DAYSINMONTH"; 229 }; 230 String DATE_FUNCNAME_DaysInYear 231 { 232 Text [ en-US ] = "DAYSINYEAR"; 233 }; 234 String DATE_FUNCNAME_WeeksInYear 235 { 236 Text [ en-US ] = "WEEKSINYEAR"; 237 }; 238 String DATE_FUNCNAME_Rot13 239 { 240 Text [ en-US ] = "ROT13"; 241 }; 242}; 243 244 245Resource RID_DATE_DEFFUNCTION_NAMES 246{ 247 248 StringArray DATE_DEFFUNCNAME_DiffWeeks 249 { 250 ItemList = 251 { 252 < "WOCHEN"; >; 253 < "WEEKS"; >; 254 }; 255 }; 256 StringArray DATE_DEFFUNCNAME_DiffMonths 257 { 258 ItemList = 259 { 260 < "MONATE"; >; 261 < "MONTHS"; >; 262 }; 263 }; 264 StringArray DATE_DEFFUNCNAME_DiffYears 265 { 266 ItemList = 267 { 268 < "JAHRE"; >; 269 < "YEARS"; >; 270 }; 271 }; 272 StringArray DATE_DEFFUNCNAME_IsLeapYear 273 { 274 ItemList = 275 { 276 < "ISTSCHALTJAHR"; >; 277 < "ISLEAPYEAR"; >; 278 }; 279 }; 280 StringArray DATE_DEFFUNCNAME_DaysInMonth 281 { 282 ItemList = 283 { 284 < "TAGEIMMONAT"; >; 285 < "DAYSINMONTH"; >; 286 }; 287 }; 288 StringArray DATE_DEFFUNCNAME_DaysInYear 289 { 290 ItemList = 291 { 292 < "TAGEIMJAHR"; >; 293 < "DAYSINYEAR"; >; 294 }; 295 }; 296 StringArray DATE_DEFFUNCNAME_WeeksInYear 297 { 298 ItemList = 299 { 300 < "WOCHENIMJAHR"; >; 301 < "WEEKSINYEAR"; >; 302 }; 303 }; 304 StringArray DATE_DEFFUNCNAME_Rot13 305 { 306 ItemList = 307 { 308 < "ROT13"; >; 309 < "ROT13"; >; 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