Kaydet (Commit) ee536e48 tarafından Luc Castermans Kaydeden (comit) Miklos Vajna

### Translated German comments

```Reviewed on:
https://gerrit.libreoffice.org/7303

üst 561775d5
 ... ... @@ -45,11 +45,11 @@ static const short SinTab[16]= |* |* ImpMultBig2() |* |* Beschreibung Multiplikation fuer FixPoint-Berechnungen |* Description Multiplier for FixPoint-calculations |* **************************************************************************/ // first parameter should be the bigger one // first parameter should be the larger one Fix ImpMultBig2( const Fix& a, const Fix& b ) { ... ... @@ -62,7 +62,7 @@ Fix ImpMultBig2( const Fix& a, const Fix& b ) |* |* ImpSqrt() |* |* Beschreibung Wurzelfunktion fuer FixPoint-Berechnungen |* Description SquareRoot function for FixPoint-calculations |* **************************************************************************/ ... ... @@ -80,9 +80,9 @@ sal_uInt16 ImpSqrt( sal_uLong nRadi ) sup >>= 1; inf <<= 1; } sqr = (sup+inf) >> 1; // Anfangswert der Iteration sqr = (sup+inf) >> 1; // startvalue for iteration sqr = (nRadi/sqr + sqr) >> 1; // 2 Newton-Iterationen reichen fuer sqr = (nRadi/sqr + sqr) >> 1; // 2 Newton-Iterations suffice for sqr = (nRadi/sqr + sqr) >> 1; // +- 1 Digit return sal::static_int_cast< sal_uInt16 >(sqr); ... ... @@ -92,11 +92,11 @@ sal_uInt16 ImpSqrt( sal_uLong nRadi ) |* |* ImpExPI() |* |* Beschreibung EXPI-Funktion fuer FixPoint-Berechnungen |* Description EXPI funktion or FixPoint-calculations |* **************************************************************************/ // e**(i*nPhi), Einheit nPhi: 2**16 == 360 Grad // e**(i*nPhi), unit nPhi: 2**16 == 360 degrees FixCpx ImpExPI( sal_uInt16 nPhi ) { ... ...
 ... ... @@ -559,7 +559,7 @@ SvStream& HTMLOutFuncs::Out_Hex( SvStream& rStream, sal_uLong nHex, sal_uInt8 nL if( nLen>=sizeof(aNToABuf) ) nLen = (sizeof(aNToABuf)-1); // Pointer an das Bufferende setzen // set pointer to end of buffer sal_Char *pStr = aNToABuf + (sizeof(aNToABuf)-1); for( sal_uInt8 n = 0; n < nLen; ++n ) { ... ... @@ -788,7 +788,7 @@ SvStream& HTMLOutFuncs::OutScript( SvStream& rStrm, if( RTL_TEXTENCODING_DONTKNOW == eDestEnc ) eDestEnc = osl_getThreadTextEncoding(); // Script wird komplett nicht eingerueckt! // script is not indented! OStringBuffer sOut; sOut.append('<') .append(OOO_STRING_SVTOOLS_HTML_script); ... ... @@ -866,8 +866,8 @@ SvStream& HTMLOutFuncs::OutScript( SvStream& rStrm, if( !rSource.isEmpty() ) { // Wir schreiben das Modul mm ANSI-Zeichensatz, aber mit // System-Zeilenumbruechen raus. // we write the module in ANSI-charset, but with // the system new line. const OString sSource(OUStringToOString(rSource, eDestEnc)); rStrm << sSource.getStr() << SAL_NEWLINE_STRING; } ... ... @@ -875,9 +875,8 @@ SvStream& HTMLOutFuncs::OutScript( SvStream& rStrm, if( JAVASCRIPT != eScriptType ) { // MIB/MM: Wenn es kein StarBasic ist, kann ein // natuerlich // falsch sein. Da der Kommentar aber beim Einlesen wider // entfernt wird, schickt uns das nicht weiter ... // MIB/MM: if it is not StarBasic, a // could be wrong. // As the comment is removed during reading, it is not helping us.... rStrm << (STARBASIC == eScriptType ? "' -->" : "// -->") << SAL_NEWLINE_STRING; } ... ... @@ -933,7 +932,7 @@ OString HTMLOutFuncs::CreateTableDataOptionsValNum( if ( bValue ) { // printf / scanf ist zu ungenau // printf / scanf is not precise enough OUString aValStr; rFormatter.GetInputLineString( fVal, 0, aValStr ); OString sTmp(OUStringToOString(aValStr, eDestEnc)); ... ... @@ -949,7 +948,7 @@ OString HTMLOutFuncs::CreateTableDataOptionsValNum( append("=\""). append(static_cast( Application::GetSettings().GetLanguageTag().getLanguageType())). append(';'); // Language fuer Format 0 append(';'); // Language for Format 0 if ( nFormat ) { OString aNumStr; ... ...
 ... ... @@ -740,7 +740,7 @@ int HTMLParser::ScanText( const sal_Unicode cBreak ) case '\t': if( '\t'==nNextCh && bReadPRE && '>'!=cBreak ) { // In
: Tabs nach oben durchreichen
// Pass Tabs up in
bContinue = false;
break;
}
...  ...
 ... ... @@ -59,13 +59,13 @@ int SvRTFParser::_GetNextToken() { case '\\': { // Steuerzeichen // control charaters switch( nNextCh = GetNextChar() ) { case '{': case '}': case '\\': case '+': // habe ich in einem RTF-File gefunden case '+': // I found it in a RTF-file case '~': // nonbreaking space case '-': // optional hyphen case '_': // nonbreaking hyphen ... ... @@ -83,7 +83,7 @@ int SvRTFParser::_GetNextToken() case ':': // subentry in an index entry nRet = RTF_SUBENTRYINDEX; break; case '|': // formula-charakter case '|': // formula-character nRet = RTF_FORMULA; break; ... ... @@ -115,7 +115,7 @@ int SvRTFParser::_GetNextToken() } } // Minus fuer numerischen Parameter // minus before numeric parameters int bNegValue = false; if( '-' == nNextCh ) { ... ... @@ -123,7 +123,7 @@ int SvRTFParser::_GetNextToken() nNextCh = GetNextChar(); } // evt. Numerischer Parameter // possible numeric parameter if( RTF_ISDIGIT( nNextCh ) ) { nTokenValue = 0; ... ... @@ -136,15 +136,15 @@ int SvRTFParser::_GetNextToken() nTokenValue = -nTokenValue; bTokenHasValue=true; } else if( bNegValue ) // das Minus wieder zurueck else if( bNegValue ) // restore minus { nNextCh = '-'; rInput.SeekRel( -1 ); } if( ' ' == nNextCh ) // Blank gehoert zum Token! if( ' ' == nNextCh ) // blank is part of token! nNextCh = GetNextChar(); // suche das Token in der Tabelle: // search for the token in the table: if( 0 == (nRet = GetRTFToken( aToken )) ) // Unknown Control nRet = RTF_UNKNOWNCONTROL; ... ... @@ -196,7 +196,7 @@ int SvRTFParser::_GetNextToken() if( '\\' == cAnsi && '\'' == ( cAnsi = GetNextChar() )) // HexValue ueberlesen // read on HexValue cAnsi = GetHexValue(); nNextCh = GetNextChar(); } ... ... @@ -208,7 +208,7 @@ int SvRTFParser::_GetNextToken() } else if( SVPAR_PENDING != eState ) { // Bug 34631 - "\ " ueberlesen - Blank als Zeichen // Bug 34631 - "\ " read on - Blank as character // eState = SVPAR_ERROR; bNextCh = false; } ... ... @@ -266,7 +266,7 @@ int SvRTFParser::_GetNextToken() break; default: // es folgt normaler Text // now normal text follows ScanText(); nRet = RTF_TEXTTOKEN; bNextCh = 0 == nNextCh; ... ... @@ -283,7 +283,7 @@ int SvRTFParser::_GetNextToken() sal_Unicode SvRTFParser::GetHexValue() { // Hex-Wert sammeln // collect Hex values int n; sal_Unicode nHexVal = 0; ... ... @@ -377,7 +377,7 @@ void SvRTFParser::ScanText( const sal_Unicode cBreak ) case '\\': case '}': case '{': case '+': // habe ich in einem RTF-File gefunden case '+': // I found in a RTF file aStrBuffer.append(nNextCh); break; case '~': // nonbreaking space ... ... @@ -391,7 +391,7 @@ void SvRTFParser::ScanText( const sal_Unicode cBreak ) break; case 'u': // UNI-Code Zeichen lesen // read UNI-Code characters { nNextCh = GetNextChar(); rInput.SeekRel( -2 ); ... ... @@ -433,7 +433,7 @@ void SvRTFParser::ScanText( const sal_Unicode cBreak ) else { nNextCh = '\\'; bContinue = false; // Abbrechen, String zusammen bContinue = false; // abort, string together } } break; ... ... @@ -441,7 +441,7 @@ void SvRTFParser::ScanText( const sal_Unicode cBreak ) default: rInput.SeekRel( -1 ); nNextCh = '\\'; bContinue = false; // Abbrechen, String zusammen bContinue = false; // abort, string together break; } } ... ... @@ -449,7 +449,7 @@ void SvRTFParser::ScanText( const sal_Unicode cBreak ) case sal_Unicode(EOF): eState = SVPAR_ERROR; // weiter // continue case '{': case '}': bContinue = false; ... ... @@ -465,7 +465,7 @@ void SvRTFParser::ScanText( const sal_Unicode cBreak ) else { do { // alle anderen Zeichen kommen in den Text // all other characters end up in the text aStrBuffer.append(nNextCh); if (sal_Unicode(EOF) == (nNextCh = GetNextChar())) ... ... @@ -546,15 +546,15 @@ SvParserState SvRTFParser::CallParser() eState = SVPAR_WORKING; nOpenBrakets = 0; SetSrcEncoding( eCodeSet = RTL_TEXTENCODING_MS_1252 ); eUNICodeSet = RTL_TEXTENCODING_MS_1252; // default ist ANSI-CodeSet eUNICodeSet = RTL_TEXTENCODING_MS_1252; // default is ANSI-CodeSet // die 1. beiden Token muessen '{' und \\rtf sein !! // the first two tokens should be '{' and \\rtf !! if( '{' == GetNextToken() && RTF_RTF == GetNextToken() ) { AddRef(); Continue( 0 ); if( SVPAR_PENDING != eState ) ReleaseRef(); // dann brauchen wir den Parser nicht mehr! ReleaseRef(); // now parser is not needed anymore } else eState = SVPAR_ERROR; ... ... @@ -565,7 +565,7 @@ SvParserState SvRTFParser::CallParser() void SvRTFParser::Continue( int nToken ) { // DBG_ASSERT( SVPAR_CS_DONTKNOW == GetCharSet(), // "Zeichensatz wurde geaendert." ); // "Characterset was changed." ); if( !nToken ) nToken = GetNextToken(); ... ... @@ -582,7 +582,7 @@ void SvRTFParser::Continue( int nToken ) break; case '{': // eine unbekannte Gruppe ? // a unknown group ? { if( RTF_IGNOREFLAG != GetNextToken() ) nToken = SkipToken( -1 ); ... ... @@ -590,18 +590,18 @@ void SvRTFParser::Continue( int nToken ) nToken = SkipToken( -2 ); else { // gleich herausfiltern // filter immediately ReadUnknownData(); nToken = GetNextToken(); if( '}' != nToken ) eState = SVPAR_ERROR; break; // auf zum naechsten Token!! break; // move to next token!! } } goto NEXTTOKEN; case RTF_UNKNOWNCONTROL: break; // unbekannte Token ueberspringen break; // skip unknown token case RTF_NEXTTYPE: case RTF_ANSITYPE: SetSrcEncoding( eCodeSet = RTL_TEXTENCODING_MS_1252 ); ... ... @@ -625,8 +625,8 @@ NEXTTOKEN: break; } if( IsParserWorking() ) SaveState( 0 ); // bis hierhin abgearbeitet, // weiter mit neuem Token! SaveState( 0 ); // processed till here, // continue with new token! nToken = GetNextToken(); } if( SVPAR_ACCEPTED == eState && 0 < nOpenBrakets ) ... ...
 ... ... @@ -25,7 +25,7 @@ #include #include // die Tabelle muss noch sortiert werden // the table is still to be sorted struct RTF_TokenEntry { union{ ... ... @@ -35,7 +35,7 @@ struct RTF_TokenEntry int nToken; }; // Flag: RTF-Token Tabelle wurde schon sortiert // Flag: RTF-token table has been sorted static int bSortKeyWords = sal_False; static RTF_TokenEntry aRTFTokenTab[] = { ... ... @@ -1077,7 +1077,7 @@ static RTF_TokenEntry aRTFTokenTab[] = { {{OOO_STRING_SVTOOLS_RTF_NOOVERFLOW}, RTF_NOOVERFLOW}, {{OOO_STRING_SVTOOLS_RTF_ASPALPHA}, RTF_ASPALPHA}, // SWG spezifische Attribute // SWG specific attributes {{OOO_STRING_SVTOOLS_RTF_GRFALIGNV}, RTF_GRF_ALIGNV}, {{OOO_STRING_SVTOOLS_RTF_GRFALIGNH}, RTF_GRF_ALIGNH}, {{OOO_STRING_SVTOOLS_RTF_GRFMIRROR}, RTF_GRF_MIRROR}, ... ... @@ -1094,7 +1094,7 @@ static RTF_TokenEntry aRTFTokenTab[] = { {{OOO_STRING_SVTOOLS_RTF_PRTDATA}, RTF_SWG_PRTDATA}, {{OOO_STRING_SVTOOLS_RTF_BKMKKEY}, RTF_BKMK_KEY}, // Attribute fuer die freifliegenden Rahmen // Attributes for fly frames {{OOO_STRING_SVTOOLS_RTF_FLYPRINT}, RTF_FLYPRINT}, {{OOO_STRING_SVTOOLS_RTF_FLYOPAQUE}, RTF_FLYOPAQUE}, {{OOO_STRING_SVTOOLS_RTF_FLYPRTCTD}, RTF_FLYPRTCTD}, ... ...
 ... ... @@ -166,7 +166,7 @@ SvStream& RTFOutFuncs::Out_Hex( SvStream& rStream, sal_uLong nHex, sal_uInt8 nLe if( nLen >= sizeof(aNToABuf) ) nLen = (sizeof(aNToABuf)-1); // Pointer an das Bufferende setzen // set pointer to end of buffer sal_Char* pStr = aNToABuf + (sizeof(aNToABuf)-1); for( sal_uInt8 n = 0; n < nLen; ++n ) { ... ...