Lines Matching refs:of
231 void LocaleNode :: generateCode (const OFileWriter &of) const in generateCode()
240 children[i]->generateCode (of); in generateCode()
245 ::rtl::OUString LocaleNode::writeParameterCheckLen( const OFileWriter &of, in writeParameterCheckLen() argument
259 of.writeParameter( pParameterName, aVal); in writeParameterCheckLen()
281 ::rtl::OUString LocaleNode::writeParameterCheckLen( const OFileWriter &of, in writeParameterCheckLen() argument
288 aVal = writeParameterCheckLen( of, pParameterName, pNode, nMinLen, nMaxLen); in writeParameterCheckLen()
294 of.writeParameter( pParameterName, aVal); in writeParameterCheckLen()
336 void LCInfoNode::generateCode (const OFileWriter &of) const in generateCode()
345 writeParameterCheckLen( of, "langID", languageNode->getChildAt(0), 2, -1); in generateCode()
346 of.writeParameter("langDefaultName", languageNode->getChildAt(1)->getValue()); in generateCode()
352 of.writeParameter("countryID", countryNode->getChildAt(0)->getValue()); in generateCode()
353 of.writeParameter("countryDefaultName", countryNode->getChildAt(1)->getValue()); in generateCode()
359 of.writeParameter("Variant", variantNode->getValue()); in generateCode()
364 of.writeParameter("Variant", ::rtl::OUString()); in generateCode()
365 of.writeAsciiString("\nstatic const sal_Unicode* LCInfoArray[] = {\n"); in generateCode()
366 of.writeAsciiString("\tlangID,\n"); in generateCode()
367 of.writeAsciiString("\tlangDefaultName,\n"); in generateCode()
368 of.writeAsciiString("\tcountryID,\n"); in generateCode()
369 of.writeAsciiString("\tcountryDefaultName,\n"); in generateCode()
370 of.writeAsciiString("\tVariant\n"); in generateCode()
371 of.writeAsciiString("};\n\n"); in generateCode()
372 of.writeFunction("getLCInfo_", "0", "LCInfoArray"); in generateCode()
375 void LCCTYPENode::generateCode (const OFileWriter &of) const in generateCode()
380 of.writeRefFunction("getLocaleItem_", useLocale); in generateCode()
384 of.writeAsciiString("\n\n"); in generateCode()
385 of.writeParameter("LC_CTYPE_Unoid", str);; in generateCode()
388 writeParameterCheckLen( of, "DateSeparator", "dateSeparator", 1, 1); in generateCode()
390 writeParameterCheckLen( of, "ThousandSeparator", "thousandSeparator", 1, 1); in generateCode()
392 writeParameterCheckLen( of, "DecimalSeparator", "decimalSeparator", 1, 1); in generateCode()
394 writeParameterCheckLen( of, "TimeSeparator", "timeSeparator", 1, 1); in generateCode()
396 writeParameterCheckLen( of, "Time100SecSeparator", "time100SecSeparator", 1, 1); in generateCode()
398 writeParameterCheckLen( of, "ListSeparator", "listSeparator", 1, 1); in generateCode()
404 of.writeParameter("LongDateDayOfWeekSeparator", aLDS); in generateCode()
411 of.writeParameter("LongDateDaySeparator", aLDS); in generateCode()
418 of.writeParameter("LongDateMonthSeparator", aLDS); in generateCode()
425 of.writeParameter("LongDateYearSeparator", aLDS); in generateCode()
461 writeParameterCheckLen( of, "QuotationStart", "quotationStart", 1, 1); in generateCode()
463 writeParameterCheckLen( of, "QuotationEnd", "quotationEnd", 1, 1); in generateCode()
465 writeParameterCheckLen( of, "DoubleQuotationStart", "doubleQuotationStart", 1, 1); in generateCode()
467 writeParameterCheckLen( of, "DoubleQuotationEnd", "doubleQuotationEnd", 1, 1); in generateCode()
560 writeParameterCheckLen( of, "TimeAM", "timeAM", 1, -1); in generateCode()
561 writeParameterCheckLen( of, "TimePM", "timePM", 1, -1); in generateCode()
563 of.writeParameter("measurementSystem", sepNode->getValue()); in generateCode()
565 of.writeAsciiString("\nstatic const sal_Unicode* LCType[] = {\n"); in generateCode()
566 of.writeAsciiString("\tLC_CTYPE_Unoid,\n"); in generateCode()
567 of.writeAsciiString("\tdateSeparator,\n"); in generateCode()
568 of.writeAsciiString("\tthousandSeparator,\n"); in generateCode()
569 of.writeAsciiString("\tdecimalSeparator,\n"); in generateCode()
570 of.writeAsciiString("\ttimeSeparator,\n"); in generateCode()
571 of.writeAsciiString("\ttime100SecSeparator,\n"); in generateCode()
572 of.writeAsciiString("\tlistSeparator,\n"); in generateCode()
573 of.writeAsciiString("\tquotationStart,\n"); in generateCode()
574 of.writeAsciiString("\tquotationEnd,\n"); in generateCode()
575 of.writeAsciiString("\tdoubleQuotationStart,\n"); in generateCode()
576 of.writeAsciiString("\tdoubleQuotationEnd,\n"); in generateCode()
577 of.writeAsciiString("\ttimeAM,\n"); in generateCode()
578 of.writeAsciiString("\ttimePM,\n"); in generateCode()
579 of.writeAsciiString("\tmeasurementSystem,\n"); in generateCode()
580 of.writeAsciiString("\tLongDateDayOfWeekSeparator,\n"); in generateCode()
581 of.writeAsciiString("\tLongDateDaySeparator,\n"); in generateCode()
582 of.writeAsciiString("\tLongDateMonthSeparator,\n"); in generateCode()
583 of.writeAsciiString("\tLongDateYearSeparator\n"); in generateCode()
584 of.writeAsciiString("};\n\n"); in generateCode()
585 of.writeFunction("getLocaleItem_", "0", "LCType"); in generateCode()
592 void LCFormatNode::generateCode (const OFileWriter &of) const in generateCode()
597 of.writeParameter("replaceFrom", getAttr() -> getValueByName("replaceFrom"), mnSection); in generateCode()
602 of.writeParameter("replaceTo", str, mnSection); in generateCode()
608 of.writeRefFunction("getAllFormats0_", useLocale, "replaceTo0"); in generateCode()
611 of.writeRefFunction("getAllFormats1_", useLocale, "replaceTo1"); in generateCode()
634 of.writeParameter("FormatKey", str, formatCount); in generateCode()
638 of.writeDefaultParameter("FormatElement", str, formatCount); in generateCode()
641 of.writeParameter("FormatType", aType, formatCount); in generateCode()
644 of.writeParameter("FormatUsage", aUsage, formatCount); in generateCode()
650 of.writeIntParameter("Formatindex", formatCount, formatindex); in generateCode()
672 of.writeParameter("FormatCode", n->getValue(), formatCount); in generateCode()
714 if (strcmp( of.getLocale(), "en_US") != 0) in generateCode()
807 of.writeParameter("FormatDefaultName", n->getValue(), formatCount); in generateCode()
809 of.writeParameter("FormatDefaultName", ::rtl::OUString(), formatCount); in generateCode()
854 of.writeAsciiString("\nstatic const sal_Int16 "); in generateCode()
855 of.writeAsciiString("FormatElementsCount"); in generateCode()
856 of.writeInt(mnSection); in generateCode()
857 of.writeAsciiString(" = "); in generateCode()
858 of.writeInt( formatCount - mnFormats); in generateCode()
859 of.writeAsciiString(";\n"); in generateCode()
860 of.writeAsciiString("static const sal_Unicode* "); in generateCode()
861 of.writeAsciiString("FormatElementsArray"); in generateCode()
862 of.writeInt(mnSection); in generateCode()
863 of.writeAsciiString("[] = {\n"); in generateCode()
866 of.writeAsciiString("\t"); in generateCode()
867 of.writeAsciiString("FormatCode"); in generateCode()
868 of.writeInt(i); in generateCode()
869 of.writeAsciiString(",\n"); in generateCode()
871 of.writeAsciiString("\t"); in generateCode()
872 of.writeAsciiString("FormatDefaultName"); in generateCode()
873 of.writeInt(i); in generateCode()
874 of.writeAsciiString(",\n"); in generateCode()
876 of.writeAsciiString("\t"); in generateCode()
877 of.writeAsciiString("FormatKey"); in generateCode()
878 of.writeInt(i); in generateCode()
879 of.writeAsciiString(",\n"); in generateCode()
881 of.writeAsciiString("\t"); in generateCode()
882 of.writeAsciiString("FormatType"); in generateCode()
883 of.writeInt(i); in generateCode()
884 of.writeAsciiString(",\n"); in generateCode()
886 of.writeAsciiString("\t"); in generateCode()
887 of.writeAsciiString("FormatUsage"); in generateCode()
888 of.writeInt(i); in generateCode()
889 of.writeAsciiString(",\n"); in generateCode()
891 of.writeAsciiString("\t"); in generateCode()
892 of.writeAsciiString("Formatindex"); in generateCode()
893 of.writeInt(i); in generateCode()
894 of.writeAsciiString(",\n"); in generateCode()
897 of.writeAsciiString("\tdefaultFormatElement"); in generateCode()
898 of.writeInt(i); in generateCode()
899 of.writeAsciiString(",\n"); in generateCode()
901 of.writeAsciiString("};\n\n"); in generateCode()
906 …of.writeFunction("getAllFormats0_", "FormatElementsCount0", "FormatElementsArray0", "replaceFrom0"… in generateCode()
909 …of.writeFunction("getAllFormats1_", "FormatElementsCount1", "FormatElementsArray1", "replaceFrom1"… in generateCode()
917 void LCCollationNode::generateCode (const OFileWriter &of) const in generateCode()
921 of.writeRefFunction("getCollatorImplementation_", useLocale); in generateCode()
922 of.writeRefFunction("getCollationOptions_", useLocale); in generateCode()
935 of.writeParameter("CollatorID", str, j); in generateCode()
937 of.writeParameter("CollatorRule", str, j); in generateCode()
939 of.writeDefaultParameter("Collator", str, j); in generateCode()
940 of.writeAsciiString("\n"); in generateCode()
950 of.writeParameter("collationOption", pCollationOptions->getChildAt( i )->getValue(), i ); in generateCode()
953 of.writeAsciiString("static const sal_Int16 nbOfCollationOptions = "); in generateCode()
954 of.writeInt( nbOfCollationOptions ); in generateCode()
955 of.writeAsciiString(";\n\n"); in generateCode()
958 of.writeAsciiString("static const sal_Int16 nbOfCollations = "); in generateCode()
959 of.writeInt(nbOfCollations); in generateCode()
960 of.writeAsciiString(";\n\n"); in generateCode()
962 of.writeAsciiString("\nstatic const sal_Unicode* LCCollatorArray[] = {\n"); in generateCode()
964 of.writeAsciiString("\tCollatorID"); in generateCode()
965 of.writeInt(j); in generateCode()
966 of.writeAsciiString(",\n"); in generateCode()
968 of.writeAsciiString("\tdefaultCollator"); in generateCode()
969 of.writeInt(j); in generateCode()
970 of.writeAsciiString(",\n"); in generateCode()
972 of.writeAsciiString("\tCollatorRule"); in generateCode()
973 of.writeInt(j); in generateCode()
974 of.writeAsciiString(",\n"); in generateCode()
976 of.writeAsciiString("};\n\n"); in generateCode()
978 of.writeAsciiString("static const sal_Unicode* collationOptions[] = {"); in generateCode()
981 of.writeAsciiString( "collationOption" ); in generateCode()
982 of.writeInt( j ); in generateCode()
983 of.writeAsciiString( ", " ); in generateCode()
985 of.writeAsciiString("NULL };\n"); in generateCode()
986 of.writeFunction("getCollatorImplementation_", "nbOfCollations", "LCCollatorArray"); in generateCode()
987 of.writeFunction("getCollationOptions_", "nbOfCollationOptions", "collationOptions"); in generateCode()
990 void LCSearchNode::generateCode (const OFileWriter &of) const in generateCode()
994 of.writeRefFunction("getSearchOptions_", useLocale); in generateCode()
1010 …of.writeParameter("searchOption", pSearchOptions->getChildAt( i )->getValue(), sal::static_int_cas… in generateCode()
1013 of.writeAsciiString("static const sal_Int16 nbOfSearchOptions = "); in generateCode()
1014 of.writeInt( sal::static_int_cast<sal_Int16>( nSearchOptions ) ); in generateCode()
1015 of.writeAsciiString(";\n\n"); in generateCode()
1017 of.writeAsciiString("static const sal_Unicode* searchOptions[] = {"); in generateCode()
1020 of.writeAsciiString( "searchOption" ); in generateCode()
1021 of.writeInt( sal::static_int_cast<sal_Int16>(i) ); in generateCode()
1022 of.writeAsciiString( ", " ); in generateCode()
1024 of.writeAsciiString("NULL };\n"); in generateCode()
1025 of.writeFunction("getSearchOptions_", "nbOfSearchOptions", "searchOptions"); in generateCode()
1028 void LCIndexNode::generateCode (const OFileWriter &of) const in generateCode()
1032 of.writeRefFunction("getIndexAlgorithm_", useLocale); in generateCode()
1033 of.writeRefFunction("getUnicodeScripts_", useLocale); in generateCode()
1034 of.writeRefFunction("getFollowPageWords_", useLocale); in generateCode()
1047 of.writeParameter("IndexID", str, nbOfIndexs); in generateCode()
1049 of.writeParameter("IndexModule", str, nbOfIndexs); in generateCode()
1051 of.writeParameter("IndexKey", str, nbOfIndexs); in generateCode()
1053 of.writeDefaultParameter("Index", str, nbOfIndexs); in generateCode()
1055 of.writeDefaultParameter("Phonetic", str, nbOfIndexs); in generateCode()
1056 of.writeAsciiString("\n"); in generateCode()
1062 of.writeParameter("unicodeScript", currNode->getValue(), nbOfUnicodeScripts ); in generateCode()
1068 of.writeParameter("followPageWord", currNode->getValue(), nbOfPageWords); in generateCode()
1072 of.writeAsciiString("static const sal_Int16 nbOfIndexs = "); in generateCode()
1073 of.writeInt(nbOfIndexs); in generateCode()
1074 of.writeAsciiString(";\n\n"); in generateCode()
1076 of.writeAsciiString("\nstatic const sal_Unicode* IndexArray[] = {\n"); in generateCode()
1078 of.writeAsciiString("\tIndexID"); in generateCode()
1079 of.writeInt(i); in generateCode()
1080 of.writeAsciiString(",\n"); in generateCode()
1082 of.writeAsciiString("\tIndexModule"); in generateCode()
1083 of.writeInt(i); in generateCode()
1084 of.writeAsciiString(",\n"); in generateCode()
1086 of.writeAsciiString("\tIndexKey"); in generateCode()
1087 of.writeInt(i); in generateCode()
1088 of.writeAsciiString(",\n"); in generateCode()
1090 of.writeAsciiString("\tdefaultIndex"); in generateCode()
1091 of.writeInt(i); in generateCode()
1092 of.writeAsciiString(",\n"); in generateCode()
1094 of.writeAsciiString("\tdefaultPhonetic"); in generateCode()
1095 of.writeInt(i); in generateCode()
1096 of.writeAsciiString(",\n"); in generateCode()
1098 of.writeAsciiString("};\n\n"); in generateCode()
1100 of.writeAsciiString("static const sal_Int16 nbOfUnicodeScripts = "); in generateCode()
1101 of.writeInt( nbOfUnicodeScripts ); in generateCode()
1102 of.writeAsciiString(";\n\n"); in generateCode()
1104 of.writeAsciiString("static const sal_Unicode* UnicodeScriptArray[] = {"); in generateCode()
1107 of.writeAsciiString( "unicodeScript" ); in generateCode()
1108 of.writeInt( i ); in generateCode()
1109 of.writeAsciiString( ", " ); in generateCode()
1111 of.writeAsciiString("NULL };\n\n"); in generateCode()
1113 of.writeAsciiString("static const sal_Int16 nbOfPageWords = "); in generateCode()
1114 of.writeInt(nbOfPageWords); in generateCode()
1115 of.writeAsciiString(";\n\n"); in generateCode()
1117 of.writeAsciiString("static const sal_Unicode* FollowPageWordArray[] = {\n"); in generateCode()
1119 of.writeAsciiString("\tfollowPageWord"); in generateCode()
1120 of.writeInt(i); in generateCode()
1121 of.writeAsciiString(",\n"); in generateCode()
1123 of.writeAsciiString("\tNULL\n};\n\n"); in generateCode()
1125 of.writeFunction("getIndexAlgorithm_", "nbOfIndexs", "IndexArray"); in generateCode()
1126 of.writeFunction("getUnicodeScripts_", "nbOfUnicodeScripts", "UnicodeScriptArray"); in generateCode()
1127 of.writeFunction("getFollowPageWords_", "nbOfPageWords", "FollowPageWordArray"); in generateCode()
1130 void LCCalendarNode::generateCode (const OFileWriter &of) const in generateCode()
1134 of.writeRefFunction("getAllCalendars_", useLocale); in generateCode()
1150 of.writeParameter( "calendarID", calendarID, i); in generateCode()
1155 of.writeDefaultParameter("Calendar", str, i); in generateCode()
1169 of.writeParameter("dayRef", OUString::createFromAscii("ref"), i); in generateCode()
1170 of.writeParameter("dayRefName", ref_name, i); in generateCode()
1182 of.writeParameter("dayID", dayID, i, j); in generateCode()
1185 … of.writeParameter(elementTag, "DefaultAbbrvName",currNode->getChildAt(1)->getValue() ,i, j); in generateCode()
1186 … of.writeParameter(elementTag, "DefaultFullName",currNode->getChildAt(2)->getValue() , i, j); in generateCode()
1201 of.writeParameter("monthRef", OUString::createFromAscii("ref"), i); in generateCode()
1202 of.writeParameter("monthRefName", ref_name, i); in generateCode()
1214 of.writeParameter("monthID", monthID, i, j); in generateCode()
1217 … of.writeParameter(elementTag, "DefaultAbbrvName",currNode->getChildAt(1)->getValue() ,i, j); in generateCode()
1218 … of.writeParameter(elementTag, "DefaultFullName",currNode->getChildAt(2)->getValue() , i, j); in generateCode()
1233 of.writeParameter("eraRef", OUString::createFromAscii("ref"), i); in generateCode()
1234 of.writeParameter("eraRefName", ref_name, i); in generateCode()
1246 of.writeParameter("eraID", eraID, i, j); in generateCode()
1251 of.writeAsciiString("\n"); in generateCode()
1252 … of.writeParameter(elementTag, "DefaultAbbrvName",currNode->getChildAt(1)->getValue() ,i, j); in generateCode()
1253 … of.writeParameter(elementTag, "DefaultFullName",currNode->getChildAt(2)->getValue() , i, j); in generateCode()
1269 of.writeParameter("startDayOfWeek", str, i); in generateCode()
1274 of.writeIntParameter("minimalDaysInFirstWeek", i, nDays); in generateCode()
1279 of.writeAsciiString("static const sal_Int16 calendarsCount = "); in generateCode()
1280 of.writeInt(nbOfCalendars); in generateCode()
1281 of.writeAsciiString(";\n\n"); in generateCode()
1283 of.writeAsciiString("static const sal_Unicode nbOfDays[] = {"); in generateCode()
1285 of.writeInt(nbOfDays[i]); in generateCode()
1286 of.writeAsciiString(", "); in generateCode()
1288 of.writeInt(nbOfDays[i]); in generateCode()
1289 of.writeAsciiString("};\n"); in generateCode()
1291 of.writeAsciiString("static const sal_Unicode nbOfMonths[] = {"); in generateCode()
1293 of.writeInt(nbOfMonths[i]); in generateCode()
1294 of.writeAsciiString(", "); in generateCode()
1296 of.writeInt(nbOfMonths[i]); in generateCode()
1297 of.writeAsciiString("};\n"); in generateCode()
1299 of.writeAsciiString("static const sal_Unicode nbOfEras[] = {"); in generateCode()
1301 of.writeInt(nbOfEras[i]); in generateCode()
1302 of.writeAsciiString(", "); in generateCode()
1304 of.writeInt(nbOfEras[i]); in generateCode()
1305 of.writeAsciiString("};\n"); in generateCode()
1308 of.writeAsciiString("static const sal_Unicode* calendars[] = {\n"); in generateCode()
1309 of.writeAsciiString("\tnbOfDays,\n"); in generateCode()
1310 of.writeAsciiString("\tnbOfMonths,\n"); in generateCode()
1311 of.writeAsciiString("\tnbOfEras,\n"); in generateCode()
1313 of.writeAsciiString("\tcalendarID"); in generateCode()
1314 of.writeInt(i); in generateCode()
1315 of.writeAsciiString(",\n"); in generateCode()
1316 of.writeAsciiString("\tdefaultCalendar"); in generateCode()
1317 of.writeInt(i); in generateCode()
1318 of.writeAsciiString(",\n"); in generateCode()
1320 of.writeAsciiString("\tdayRef"); in generateCode()
1321 of.writeInt(i); of.writeAsciiString(",\n"); in generateCode()
1322 of.writeAsciiString("\tdayRefName"); in generateCode()
1323 of.writeInt(i); of.writeAsciiString(",\n"); in generateCode()
1326 of.writeAsciiString("\tdayID"); in generateCode()
1327 of.writeInt(i); of.writeInt(j); of.writeAsciiString(",\n"); in generateCode()
1328 of.writeAsciiString("\tdayDefaultAbbrvName"); in generateCode()
1329 of.writeInt(i); of.writeInt(j); of.writeAsciiString(",\n"); in generateCode()
1330 …of.writeAsciiString("\tdayDefaultFullName");of.writeInt(i); of.writeInt(j); of.writeAsciiString(",… in generateCode()
1334 of.writeAsciiString("\tmonthRef"); in generateCode()
1335 of.writeInt(i); of.writeAsciiString(",\n"); in generateCode()
1336 of.writeAsciiString("\tmonthRefName"); in generateCode()
1337 of.writeInt(i); of.writeAsciiString(",\n"); in generateCode()
1340 … of.writeAsciiString("\tmonthID");of.writeInt(i);of.writeInt(j);of.writeAsciiString(",\n"); in generateCode()
1341 …of.writeAsciiString("\tmonthDefaultAbbrvName");of.writeInt(i);of.writeInt(j);of.writeAsciiString("… in generateCode()
1342 …of.writeAsciiString("\tmonthDefaultFullName");of.writeInt(i);of.writeInt(j);of.writeAsciiString(",… in generateCode()
1346 of.writeAsciiString("\teraRef"); in generateCode()
1347 of.writeInt(i); of.writeAsciiString(",\n"); in generateCode()
1348 of.writeAsciiString("\teraRefName"); in generateCode()
1349 of.writeInt(i); of.writeAsciiString(",\n"); in generateCode()
1352 … of.writeAsciiString("\teraID"); of.writeInt(i); of.writeInt(j); of.writeAsciiString(",\n"); in generateCode()
1353 …of.writeAsciiString("\teraDefaultAbbrvName");of.writeInt(i);of.writeInt(j);of.writeAsciiString(",\… in generateCode()
1354 …of.writeAsciiString("\teraDefaultFullName");of.writeInt(i);of.writeInt(j);of.writeAsciiString(",\n… in generateCode()
1357 of.writeAsciiString("\tstartDayOfWeek");of.writeInt(i); of.writeAsciiString(",\n"); in generateCode()
1358 of.writeAsciiString("\tminimalDaysInFirstWeek");of.writeInt(i); of.writeAsciiString(",\n"); in generateCode()
1361 of.writeAsciiString("};\n\n"); in generateCode()
1362 of.writeFunction("getAllCalendars_", "calendarsCount", "calendars"); in generateCode()
1379 void LCCurrencyNode :: generateCode (const OFileWriter &of) const in generateCode()
1383 of.writeRefFunction("getAllCurrencies_", useLocale); in generateCode()
1395 bool bDefault = of.writeDefaultParameter("Currency", str, nbOfCurrencies); in generateCode()
1397 …bool bCompatible = of.writeDefaultParameter("CurrencyUsedInCompatibleFormatCodes", str, nbOfCurren… in generateCode()
1399 bool bLegacy = of.writeDefaultParameter("CurrencyLegacyOnly", str, nbOfCurrencies); in generateCode()
1415 of.writeParameter("currencyID", str, nbOfCurrencies); in generateCode()
1420 of.writeParameter("currencySymbol", str, nbOfCurrencies); in generateCode()
1422 of.writeParameter("bankSymbol", str, nbOfCurrencies); in generateCode()
1428 of.writeParameter("currencyName", str, nbOfCurrencies); in generateCode()
1431 of.writeIntParameter("currencyDecimalPlaces", nbOfCurrencies, nDecimalPlaces); in generateCode()
1432 of.writeAsciiString("\n"); in generateCode()
1440 of.writeAsciiString("static const sal_Int16 currencyCount = "); in generateCode()
1441 of.writeInt(nbOfCurrencies); in generateCode()
1442 of.writeAsciiString(";\n\n"); in generateCode()
1443 of.writeAsciiString("static const sal_Unicode* currencies[] = {\n"); in generateCode()
1445 of.writeAsciiString("\tcurrencyID"); in generateCode()
1446 of.writeInt(i); in generateCode()
1447 of.writeAsciiString(",\n"); in generateCode()
1448 of.writeAsciiString("\tcurrencySymbol"); in generateCode()
1449 of.writeInt(i); in generateCode()
1450 of.writeAsciiString(",\n"); in generateCode()
1451 of.writeAsciiString("\tbankSymbol"); in generateCode()
1452 of.writeInt(i); in generateCode()
1453 of.writeAsciiString(",\n"); in generateCode()
1454 of.writeAsciiString("\tcurrencyName"); in generateCode()
1455 of.writeInt(i); in generateCode()
1456 of.writeAsciiString(",\n"); in generateCode()
1457 of.writeAsciiString("\tdefaultCurrency"); in generateCode()
1458 of.writeInt(i); in generateCode()
1459 of.writeAsciiString(",\n"); in generateCode()
1460 of.writeAsciiString("\tdefaultCurrencyUsedInCompatibleFormatCodes"); in generateCode()
1461 of.writeInt(i); in generateCode()
1462 of.writeAsciiString(",\n"); in generateCode()
1463 of.writeAsciiString("\tcurrencyDecimalPlaces"); in generateCode()
1464 of.writeInt(i); in generateCode()
1465 of.writeAsciiString(",\n"); in generateCode()
1466 of.writeAsciiString("\tdefaultCurrencyLegacyOnly"); in generateCode()
1467 of.writeInt(i); in generateCode()
1468 of.writeAsciiString(",\n"); in generateCode()
1470 of.writeAsciiString("};\n\n"); in generateCode()
1471 of.writeFunction("getAllCurrencies_", "currencyCount", "currencies"); in generateCode()
1474 void LCTransliterationNode::generateCode (const OFileWriter &of) const in generateCode()
1478 of.writeRefFunction("getTransliterations_", useLocale); in generateCode()
1488 of.writeParameter("Transliteration", str, nbOfModules); in generateCode()
1490 of.writeAsciiString("static const sal_Int16 nbOfTransliterations = "); in generateCode()
1491 of.writeInt(nbOfModules); in generateCode()
1492 of.writeAsciiString(";\n\n"); in generateCode()
1494 of.writeAsciiString("\nstatic const sal_Unicode* LCTransliterationsArray[] = {\n"); in generateCode()
1496 of.writeAsciiString("\tTransliteration"); in generateCode()
1497 of.writeInt(i); in generateCode()
1498 of.writeAsciiString(",\n"); in generateCode()
1500 of.writeAsciiString("};\n\n"); in generateCode()
1501 of.writeFunction("getTransliterations_", "nbOfTransliterations", "LCTransliterationsArray"); in generateCode()
1523 void LCMiscNode::generateCode (const OFileWriter &of) const in generateCode()
1527 of.writeRefFunction("getForbiddenCharacters_", useLocale); in generateCode()
1528 of.writeRefFunction("getBreakIteratorRules_", useLocale); in generateCode()
1529 of.writeRefFunction("getReservedWords_", useLocale); in generateCode()
1538 bool bEnglishLocale = (strncmp( of.getLocale(), "en_", 3) == 0); in generateCode()
1557 of.writeParameter("ReservedWord", str, nbOfWords); in generateCode()
1567 of.writeAsciiString("static const sal_Int16 nbOfReservedWords = "); in generateCode()
1568 of.writeInt(nbOfWords); in generateCode()
1569 of.writeAsciiString(";\n\n"); in generateCode()
1570 of.writeAsciiString("\nstatic const sal_Unicode* LCReservedWordsArray[] = {\n"); in generateCode()
1572 of.writeAsciiString("\tReservedWord"); in generateCode()
1573 of.writeInt(i); in generateCode()
1574 of.writeAsciiString(",\n"); in generateCode()
1576 of.writeAsciiString("};\n\n"); in generateCode()
1577 of.writeFunction("getReservedWords_", "nbOfReservedWords", "LCReservedWordsArray"); in generateCode()
1580 of.writeParameter( "forbiddenBegin", forbidNode -> getChildAt(0)->getValue()); in generateCode()
1581 of.writeParameter( "forbiddenEnd", forbidNode -> getChildAt(1)->getValue()); in generateCode()
1582 of.writeParameter( "hangingChars", forbidNode -> getChildAt(2)->getValue()); in generateCode()
1584 of.writeParameter( "forbiddenBegin", ::rtl::OUString()); in generateCode()
1585 of.writeParameter( "forbiddenEnd", ::rtl::OUString()); in generateCode()
1586 of.writeParameter( "hangingChars", ::rtl::OUString()); in generateCode()
1588 of.writeAsciiString("\nstatic const sal_Unicode* LCForbiddenCharactersArray[] = {\n"); in generateCode()
1589 of.writeAsciiString("\tforbiddenBegin,\n"); in generateCode()
1590 of.writeAsciiString("\tforbiddenEnd,\n"); in generateCode()
1591 of.writeAsciiString("\thangingChars\n"); in generateCode()
1592 of.writeAsciiString("};\n\n"); in generateCode()
1593 of.writeFunction("getForbiddenCharacters_", "3", "LCForbiddenCharactersArray"); in generateCode()
1596 of.writeParameter( "EditMode", breakNode -> getChildAt(0)->getValue()); in generateCode()
1597 of.writeParameter( "DictionaryMode", breakNode -> getChildAt(1)->getValue()); in generateCode()
1598 of.writeParameter( "WordCountMode", breakNode -> getChildAt(2)->getValue()); in generateCode()
1599 of.writeParameter( "CharacterMode", breakNode -> getChildAt(3)->getValue()); in generateCode()
1600 of.writeParameter( "LineMode", breakNode -> getChildAt(4)->getValue()); in generateCode()
1602 of.writeParameter( "EditMode", ::rtl::OUString()); in generateCode()
1603 of.writeParameter( "DictionaryMode", ::rtl::OUString()); in generateCode()
1604 of.writeParameter( "WordCountMode", ::rtl::OUString()); in generateCode()
1605 of.writeParameter( "CharacterMode", ::rtl::OUString()); in generateCode()
1606 of.writeParameter( "LineMode", ::rtl::OUString()); in generateCode()
1608 of.writeAsciiString("\nstatic const sal_Unicode* LCBreakIteratorRulesArray[] = {\n"); in generateCode()
1609 of.writeAsciiString("\tEditMode,\n"); in generateCode()
1610 of.writeAsciiString("\tDictionaryMode,\n"); in generateCode()
1611 of.writeAsciiString("\tWordCountMode,\n"); in generateCode()
1612 of.writeAsciiString("\tCharacterMode,\n"); in generateCode()
1613 of.writeAsciiString("\tLineMode\n"); in generateCode()
1614 of.writeAsciiString("};\n\n"); in generateCode()
1615 of.writeFunction("getBreakIteratorRules_", "5", "LCBreakIteratorRulesArray"); in generateCode()
1619 void LCNumberingLevelNode::generateCode (const OFileWriter &of) const in generateCode()
1621 of.writeAsciiString("// ---> ContinuousNumbering\n"); in generateCode()
1624 of.writeRefFunction2("getContinuousNumberingLevels_", useLocale); in generateCode()
1644 of.writeParameter("continuous", name, value, sal::static_int_cast<sal_Int16>(i) ); in generateCode()
1649 of.writeAsciiString("static const sal_Int16 continuousNbOfStyles = "); in generateCode()
1650 of.writeInt( sal::static_int_cast<sal_Int16>( nStyles ) ); in generateCode()
1651 of.writeAsciiString(";\n\n"); in generateCode()
1652 of.writeAsciiString("static const sal_Int16 continuousNbOfAttributesPerStyle = "); in generateCode()
1653 of.writeInt( nAttributes ); in generateCode()
1654 of.writeAsciiString(";\n\n"); in generateCode()
1659 of.writeAsciiString("\nstatic const sal_Unicode* continuousStyle" ); in generateCode()
1660 of.writeInt( sal::static_int_cast<sal_Int16>(i) ); in generateCode()
1661 of.writeAsciiString("[] = {\n"); in generateCode()
1664 of.writeAsciiString("\t"); in generateCode()
1665 of.writeAsciiString( "continuous" ); in generateCode()
1666 of.writeAsciiString( attr[j] ); in generateCode()
1667 of.writeInt(sal::static_int_cast<sal_Int16>(i)); in generateCode()
1668 of.writeAsciiString(",\n"); in generateCode()
1670 of.writeAsciiString("\t0\n};\n\n"); in generateCode()
1674 of.writeAsciiString("\n"); in generateCode()
1675 of.writeAsciiString("static const sal_Unicode** LCContinuousNumberingLevelsArray[] = {\n" ); in generateCode()
1678 of.writeAsciiString( "\t" ); in generateCode()
1679 of.writeAsciiString( "continuousStyle" ); in generateCode()
1680 of.writeInt( sal::static_int_cast<sal_Int16>(i) ); in generateCode()
1681 of.writeAsciiString( ",\n"); in generateCode()
1683 of.writeAsciiString("\t0\n};\n\n"); in generateCode()
1684 of.writeFunction2("getContinuousNumberingLevels_", "continuousNbOfStyles", in generateCode()
1689 void LCOutlineNumberingLevelNode::generateCode (const OFileWriter &of) const in generateCode()
1691 of.writeAsciiString("// ---> OutlineNumbering\n"); in generateCode()
1694 of.writeRefFunction3("getOutlineNumberingLevels_", useLocale); in generateCode()
1730 of.writeParameter("outline", name, value, in generateCode()
1747 of.writeAsciiString("static const sal_Int16 outlineNbOfStyles = "); in generateCode()
1748 of.writeInt( sal::static_int_cast<sal_Int16>( nStyles ) ); in generateCode()
1749 of.writeAsciiString(";\n\n"); in generateCode()
1750 of.writeAsciiString("static const sal_Int16 outlineNbOfLevelsPerStyle = "); in generateCode()
1751 of.writeInt( sal::static_int_cast<sal_Int16>( nLevels.back() ) ); in generateCode()
1752 of.writeAsciiString(";\n\n"); in generateCode()
1753 of.writeAsciiString("static const sal_Int16 outlineNbOfAttributesPerLevel = "); in generateCode()
1754 of.writeInt( nAttributes ); in generateCode()
1755 of.writeAsciiString(";\n\n"); in generateCode()
1771 of.writeAsciiString("static const sal_Unicode* outline"); in generateCode()
1772 of.writeAsciiString("Style"); in generateCode()
1773 of.writeInt( sal::static_int_cast<sal_Int16>(i) ); in generateCode()
1774 of.writeAsciiString("Level"); in generateCode()
1775 of.writeInt( sal::static_int_cast<sal_Int16>(j) ); in generateCode()
1776 of.writeAsciiString("[] = { "); in generateCode()
1780 of.writeAsciiString( "outline" ); in generateCode()
1781 of.writeAsciiString( attr[k] ); in generateCode()
1782 of.writeInt( sal::static_int_cast<sal_Int16>(i) ); in generateCode()
1783 of.writeInt( sal::static_int_cast<sal_Int16>(j) ); in generateCode()
1784 of.writeAsciiString(", "); in generateCode()
1786 of.writeAsciiString("NULL };\n"); in generateCode()
1790 of.writeAsciiString("\n"); in generateCode()
1795 of.writeAsciiString("static const sal_Unicode** outline"); in generateCode()
1796 of.writeAsciiString( "Style" ); in generateCode()
1797 of.writeInt( sal::static_int_cast<sal_Int16>(i) ); in generateCode()
1798 of.writeAsciiString("[] = { "); in generateCode()
1802 of.writeAsciiString("outlineStyle"); in generateCode()
1803 of.writeInt( sal::static_int_cast<sal_Int16>(i) ); in generateCode()
1804 of.writeAsciiString("Level"); in generateCode()
1805 of.writeInt( sal::static_int_cast<sal_Int16>(j) ); in generateCode()
1806 of.writeAsciiString(", "); in generateCode()
1808 of.writeAsciiString("NULL };\n"); in generateCode()
1810 of.writeAsciiString("\n"); in generateCode()
1812 of.writeAsciiString("static const sal_Unicode*** LCOutlineNumberingLevelsArray[] = {\n" ); in generateCode()
1815 of.writeAsciiString( "\t" ); in generateCode()
1816 of.writeAsciiString( "outlineStyle" ); in generateCode()
1817 of.writeInt( sal::static_int_cast<sal_Int16>(i) ); in generateCode()
1818 of.writeAsciiString(",\n"); in generateCode()
1820 of.writeAsciiString("\tNULL\n};\n\n"); in generateCode()
1821 … of.writeFunction3("getOutlineNumberingLevels_", "outlineNbOfStyles", "outlineNbOfLevelsPerStyle", in generateCode()