Kaydet (Commit) 5e04331f authored tarafından Adrià Cereto Massagué's avatar Adrià Cereto Massagué Kaydeden (comit) Jesús Corrius

Several comment translations in formula

üst 7b0546a5
...@@ -59,7 +59,7 @@ namespace formula ...@@ -59,7 +59,7 @@ namespace formula
}; };
} }
//=================================================================== //===================================================================
// class FormulaHelper - statische Methoden // class FormulaHelper - static Method
//=================================================================== //===================================================================
#define FUNC_NOTFOUND 0xffff #define FUNC_NOTFOUND 0xffff
...@@ -77,7 +77,7 @@ FormulaHelper::FormulaHelper(const IFunctionManager* _pFunctionManager) ...@@ -77,7 +77,7 @@ FormulaHelper::FormulaHelper(const IFunctionManager* _pFunctionManager)
} }
BOOL FormulaHelper::GetNextFunc( const String& rFormula, BOOL FormulaHelper::GetNextFunc( const String& rFormula,
BOOL bBack, BOOL bBack,
xub_StrLen& rFStart, // Ein- und Ausgabe xub_StrLen& rFStart, // Input and output
xub_StrLen* pFEnd, // = NULL xub_StrLen* pFEnd, // = NULL
const IFunctionDescription** ppFDesc, // = NULL const IFunctionDescription** ppFDesc, // = NULL
::std::vector< ::rtl::OUString>* pArgs ) const // = NULL ::std::vector< ::rtl::OUString>* pArgs ) const // = NULL
...@@ -111,7 +111,7 @@ BOOL FormulaHelper::GetNextFunc( const String& rFormula, ...@@ -111,7 +111,7 @@ BOOL FormulaHelper::GetNextFunc( const String& rFormula,
*ppFDesc = pCurrent; *ppFDesc = pCurrent;
break; break;
} }
} // for(sal_uInt32 i = 0 ; i < nCount; ++i) }// for(sal_uInt32 i = 0 ; i < nCount; ++i)
} }
if ( *ppFDesc && pArgs ) if ( *ppFDesc && pArgs )
{ {
...@@ -146,7 +146,7 @@ void FormulaHelper::FillArgStrings( const String& rFormula, ...@@ -146,7 +146,7 @@ void FormulaHelper::FillArgStrings( const String& rFormula,
{ {
nStart = GetArgStart( rFormula, nFuncPos, i ); nStart = GetArgStart( rFormula, nFuncPos, i );
if ( i+1<nArgs ) // letztes Argument? if ( i+1<nArgs ) // last argument?
{ {
nEnd = GetArgStart( rFormula, nFuncPos, i+1 ); nEnd = GetArgStart( rFormula, nFuncPos, i+1 );
...@@ -263,11 +263,11 @@ xub_StrLen FormulaHelper::GetFunctionStart( const String& rFormula, ...@@ -263,11 +263,11 @@ xub_StrLen FormulaHelper::GetFunctionStart( const String& rFormula,
{ {
if ( IsFormulaText( m_pCharClass,rFormula, nFStart ) ) if ( IsFormulaText( m_pCharClass,rFormula, nFStart ) )
{ {
// Funktion gefunden // Function found
if ( pFuncName ) if ( pFuncName )
*pFuncName = rFormula.Copy( nFStart, nParPos-nFStart ); *pFuncName = rFormula.Copy( nFStart, nParPos-nFStart );
} }
else // Klammern ohne Funktion -> weitersuchen else // Brackets without function -> keep searching
{ {
bRepeat = TRUE; bRepeat = TRUE;
if ( !bBack ) if ( !bBack )
...@@ -278,7 +278,7 @@ xub_StrLen FormulaHelper::GetFunctionStart( const String& rFormula, ...@@ -278,7 +278,7 @@ xub_StrLen FormulaHelper::GetFunctionStart( const String& rFormula,
bRepeat = FALSE; bRepeat = FALSE;
} }
} }
else // keine Klammern gefunden else // No brackets found
{ {
nFStart = FUNC_NOTFOUND; nFStart = FUNC_NOTFOUND;
if ( pFuncName ) if ( pFuncName )
...@@ -323,7 +323,7 @@ xub_StrLen FormulaHelper::GetFunctionEnd( const String& rStr, xub_StrLen nStart ...@@ -323,7 +323,7 @@ xub_StrLen FormulaHelper::GetFunctionEnd( const String& rStr, xub_StrLen nStart
else if ( nParCount < 0 ) else if ( nParCount < 0 )
{ {
bFound = TRUE; bFound = TRUE;
nStart--; // einen zu weit gelesen nStart--; // read one too far
} }
} }
else if ( c == arrayOpen ) else if ( c == arrayOpen )
...@@ -339,10 +339,10 @@ xub_StrLen FormulaHelper::GetFunctionEnd( const String& rStr, xub_StrLen nStart ...@@ -339,10 +339,10 @@ xub_StrLen FormulaHelper::GetFunctionEnd( const String& rStr, xub_StrLen nStart
if ( !bInArray && nParCount == 0 ) if ( !bInArray && nParCount == 0 )
{ {
bFound = TRUE; bFound = TRUE;
nStart--; // einen zu weit gelesen nStart--; // read one too far
} }
} }
nStart++; // hinter gefundene Position stellen nStart++; // Set behind found position
} }
return nStart; return nStart;
......
...@@ -84,7 +84,7 @@ long FormulaListBox::PreNotify( NotifyEvent& rNEvt ) ...@@ -84,7 +84,7 @@ long FormulaListBox::PreNotify( NotifyEvent& rNEvt )
inline USHORT Lb2Cat( USHORT nLbPos ) inline USHORT Lb2Cat( USHORT nLbPos )
{ {
// Kategorie 0 == LRU, sonst Categories == LbPos-1 // Category 0 == LRU, otherwise Categories == LbPos-1
if ( nLbPos > 0 ) if ( nLbPos > 0 )
nLbPos -= 1; nLbPos -= 1;
...@@ -161,7 +161,7 @@ void FuncPage::UpdateFunctionList() ...@@ -161,7 +161,7 @@ void FuncPage::UpdateFunctionList()
impl_addFunctions(pCategory); impl_addFunctions(pCategory);
} }
} }
else // LRU-Liste else // LRU-List
{ {
::std::vector< TFunctionDesc >::iterator aIter = aLRUList.begin(); ::std::vector< TFunctionDesc >::iterator aIter = aLRUList.begin();
::std::vector< TFunctionDesc >::iterator aEnd = aLRUList.end(); ::std::vector< TFunctionDesc >::iterator aEnd = aLRUList.end();
...@@ -251,7 +251,7 @@ String FuncPage::GetSelFunctionName() const ...@@ -251,7 +251,7 @@ String FuncPage::GetSelFunctionName() const
} }
const IFunctionDescription* FuncPage::GetFuncDesc( USHORT nPos ) const const IFunctionDescription* FuncPage::GetFuncDesc( USHORT nPos ) const
{ {
// nicht schoen, aber hoffentlich selten // not pretty, but hopefully rare
return (const IFunctionDescription*) aLbFunction.GetEntryData(nPos); return (const IFunctionDescription*) aLbFunction.GetEntryData(nPos);
} }
......
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