Kaydet (Commit) 8310642c authored tarafından Ilmari Lauhakangas's avatar Ilmari Lauhakangas Kaydeden (comit) Julien Nabet

Typ-o negativ

Fixed some typos and translated a couple of German words

Change-Id: I24ae28dd537ba283a9480413659f85bd6711acad
Reviewed-on: https://gerrit.libreoffice.org/48892Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
Tested-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst b4f44009
...@@ -370,19 +370,19 @@ Public Sub Main() ...@@ -370,19 +370,19 @@ Public Sub Main()
Dim retAny As Object Dim retAny As Object
retAny = emptyVar retAny = emptyVar
inHyper = CDec("9223372036854775807") 'highest positiv value of int64 inHyper = CDec("9223372036854775807") 'highest positive value of int64
retAny = objOleTest.in_methodAny(inHyper) retAny = objOleTest.in_methodAny(inHyper)
sError = "hyper test failed" sError = "hyper test failed"
If inHyper <> retAny Then If inHyper <> retAny Then
MsgBox(sError) MsgBox(sError)
End If End If
inHyper = CDec("-9223372036854775808") 'lowest negativ value of int64 inHyper = CDec("-9223372036854775808") 'lowest negative value of int64
retAny = objOleTest.in_methodAny(inHyper) retAny = objOleTest.in_methodAny(inHyper)
If inHyper <> retAny Then If inHyper <> retAny Then
MsgBox(sError) MsgBox(sError)
End If End If
inHyper = CDec("18446744073709551615") 'highest positiv value of unsigne int64 inHyper = CDec("18446744073709551615") 'highest positive value of unsigned int64
retAny = objOleTest.in_methodAny(inHyper) retAny = objOleTest.in_methodAny(inHyper)
If inHyper <> retAny Then If inHyper <> retAny Then
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
class SVX_DLLPUBLIC SvxLongLRSpaceItem : public SfxPoolItem class SVX_DLLPUBLIC SvxLongLRSpaceItem : public SfxPoolItem
{ {
long mlLeft; // nLeft or the negativ first-line indentation long mlLeft; // nLeft or the negative first-line indentation
long mlRight; // the unproblematic right edge long mlRight; // the unproblematic right edge
protected: protected:
......
...@@ -77,7 +77,7 @@ enum class ImplFontAttrs : sal_uLong ...@@ -77,7 +77,7 @@ enum class ImplFontAttrs : sal_uLong
BrushScript = 0x10000000, ///< More Script BrushScript = 0x10000000, ///< More Script
Gothic = 0x20000000, Gothic = 0x20000000,
Schoolbook = 0x40000000, Schoolbook = 0x40000000,
OtherStyle = 0x80000000, ///< OldStyle, ... so negativ points OtherStyle = 0x80000000, ///< OldStyle, ... so negative points
CJK_AllLang = CJK_JP | CJK_SC | CJK_TC | CJK_KR, CJK_AllLang = CJK_JP | CJK_SC | CJK_TC | CJK_KR,
AllScript = Script | Handwriting | Chancery | Comic | BrushScript, AllScript = Script | Handwriting | Chancery | Comic | BrushScript,
AllSubscript = Handwriting | Chancery | Comic | BrushScript, AllSubscript = Handwriting | Chancery | Comic | BrushScript,
......
...@@ -302,12 +302,12 @@ void DicList::SearchForDictionaries( ...@@ -302,12 +302,12 @@ void DicList::SearchForDictionaries(
sal_Int32 nPos = aURL.indexOf('.'); sal_Int32 nPos = aURL.indexOf('.');
OUString aExt( aURL.copy(nPos + 1).toAsciiLowerCase() ); OUString aExt( aURL.copy(nPos + 1).toAsciiLowerCase() );
if ("dcn" == aExt) // negativ if ("dcn" == aExt) // negative
bNeg = true; bNeg = true;
else if ("dcp" == aExt) // positiv else if ("dcp" == aExt) // positive
bNeg = false; bNeg = false;
else else
continue; // andere Files continue; // other files
} }
// Record in the list of Dictionaries // Record in the list of Dictionaries
......
...@@ -215,7 +215,7 @@ public: ...@@ -215,7 +215,7 @@ public:
{ {
toDouble_test_impl(_sValue); toDouble_test_impl(_sValue);
// test also the negativ part. // test also the negative part.
rtl::OString sNegativValue("-"); rtl::OString sNegativValue("-");
sNegativValue += _sValue; sNegativValue += _sValue;
toDouble_test_impl(sNegativValue); toDouble_test_impl(sNegativValue);
......
...@@ -264,7 +264,7 @@ public: ...@@ -264,7 +264,7 @@ public:
{ {
toDouble_test_impl(_sValue); toDouble_test_impl(_sValue);
// test also the negativ part. // test also the negative part.
rtl::OString sNegativValue("-"); rtl::OString sNegativValue("-");
sNegativValue += _sValue; sNegativValue += _sValue;
toDouble_test_impl(sNegativValue); toDouble_test_impl(sNegativValue);
...@@ -399,7 +399,7 @@ public: ...@@ -399,7 +399,7 @@ public:
{ {
toFloat_test_impl(_sValue); toFloat_test_impl(_sValue);
// test also the negativ part. // test also the negative part.
rtl::OString sNegativValue("-"); rtl::OString sNegativValue("-");
sNegativValue += _sValue; sNegativValue += _sValue;
toFloat_test_impl(sNegativValue); toFloat_test_impl(sNegativValue);
......
...@@ -827,7 +827,7 @@ sal_Int32 SAL_CALL IMPL_RTL_STRNAME( valueOfInt32 )( IMPL_RTL_STRCODE* pStr, ...@@ -827,7 +827,7 @@ sal_Int32 SAL_CALL IMPL_RTL_STRNAME( valueOfInt32 )( IMPL_RTL_STRCODE* pStr,
if ( (nRadix < RTL_STR_MIN_RADIX) || (nRadix > RTL_STR_MAX_RADIX) ) if ( (nRadix < RTL_STR_MIN_RADIX) || (nRadix > RTL_STR_MAX_RADIX) )
nRadix = 10; nRadix = 10;
/* is value negativ */ /* is value negative */
if ( n < 0 ) if ( n < 0 )
{ {
*pStr = '-'; *pStr = '-';
...@@ -882,7 +882,7 @@ sal_Int32 SAL_CALL IMPL_RTL_STRNAME( valueOfInt64 )( IMPL_RTL_STRCODE* pStr, ...@@ -882,7 +882,7 @@ sal_Int32 SAL_CALL IMPL_RTL_STRNAME( valueOfInt64 )( IMPL_RTL_STRCODE* pStr,
if ( (nRadix < RTL_STR_MIN_RADIX) || (nRadix > RTL_STR_MAX_RADIX) ) if ( (nRadix < RTL_STR_MIN_RADIX) || (nRadix > RTL_STR_MAX_RADIX) )
nRadix = 10; nRadix = 10;
/* is value negativ */ /* is value negative */
if ( n < 0 ) if ( n < 0 )
{ {
*pStr = '-'; *pStr = '-';
...@@ -1567,7 +1567,7 @@ void SAL_CALL IMPL_RTL_STRINGNAME( newReplaceStrAt )( IMPL_RTL_STRINGDATA** ppTh ...@@ -1567,7 +1567,7 @@ void SAL_CALL IMPL_RTL_STRINGNAME( newReplaceStrAt )( IMPL_RTL_STRINGDATA** ppTh
return; return;
} }
/* negativ index? */ /* negative index? */
if ( nIndex < 0 ) if ( nIndex < 0 )
{ {
nCount -= nIndex; nCount -= nIndex;
......
...@@ -249,7 +249,7 @@ public: ...@@ -249,7 +249,7 @@ public:
tools::Rectangle GetVisRect() const; tools::Rectangle GetVisRect() const;
// clips the VisArea and calculates with the negativ coordinates // clips the VisArea and calculates with the negative coordinates
tools::Rectangle CorrectVisArea(const tools::Rectangle& rVisArea) const; tools::Rectangle CorrectVisArea(const tools::Rectangle& rVisArea) const;
}; };
......
...@@ -701,7 +701,7 @@ double ConvertToDec( const OUString& aStr, sal_uInt16 nBase, sal_uInt16 nCharLim ...@@ -701,7 +701,7 @@ double ConvertToDec( const OUString& aStr, sal_uInt16 nBase, sal_uInt16 nCharLim
} }
if( nStrLen == nCharLim && !bFirstDig && (nFirstDig >= nBase / 2) ) if( nStrLen == nCharLim && !bFirstDig && (nFirstDig >= nBase / 2) )
{ // handling negativ values { // handling negative values
fVal = ( pow( double( nBase ), double( nCharLim ) ) - fVal ); // complement fVal = ( pow( double( nBase ), double( nCharLim ) ) - fVal ); // complement
fVal *= -1.0; fVal *= -1.0;
} }
......
...@@ -1125,7 +1125,7 @@ void Edit::ImplShowCursor( bool bOnlyIfVisible ) ...@@ -1125,7 +1125,7 @@ void Edit::ImplShowCursor( bool bOnlyIfVisible )
{ {
long nMaxNegX = (aOutSize.Width()-ImplGetExtraXOffset()) - GetTextWidth( aText ); long nMaxNegX = (aOutSize.Width()-ImplGetExtraXOffset()) - GetTextWidth( aText );
mnXOffset -= aOutSize.Width() / 5; mnXOffset -= aOutSize.Width() / 5;
if ( mnXOffset < nMaxNegX ) // both negativ... if ( mnXOffset < nMaxNegX ) // both negative...
mnXOffset = nMaxNegX; mnXOffset = nMaxNegX;
} }
} }
......
...@@ -115,7 +115,7 @@ TextSelection ExtTextEngine::MatchGroup( const TextPaM& rCursor ) const ...@@ -115,7 +115,7 @@ TextSelection ExtTextEngine::MatchGroup( const TextPaM& rCursor ) const
if ( nPara ) if ( nPara )
{ {
nPara--; nPara--;
nCur = GetTextLen( nPara )-1; // no matter if negativ, as if Len() nCur = GetTextLen( nPara )-1; // no matter if negative, as if Len()
} }
else else
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment