diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-09-28 13:47:03 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-09-29 10:46:59 +0200 |
commit | 9811d927766ec54c0ca7e163df3bd762caab0355 (patch) | |
tree | b2c2f1c128645dd77640605b643981855bcddec0 | |
parent | 609e1af93fbfd1a835e657f9ad8e7d70e26b7be4 (diff) |
Formel to Formula
Change-Id: I757bcfb1f425190a9fb62d1e0428f724230fe194
-rw-r--r-- | sw/inc/doc.hxx | 4 | ||||
-rw-r--r-- | sw/source/core/doc/docfld.cxx | 50 |
2 files changed, 27 insertions, 27 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index d98ede9194ef..a71b21aa17f3 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -656,9 +656,9 @@ private: bool IsNameInArray( const std::vector<String>& rOldNames, const String& rName ); void GetAllDBNames( std::vector<String>& rAllDBNames ); OUString ReplaceUsedDBs( const std::vector<String>& rUsedDBNames, - const OUString& rNewName, const OUString& rFormel ); + const OUString& rNewName, const OUString& rFormula ); std::vector<String>& FindUsedDBs( const std::vector<String>& rAllDBNames, - const String& rFormel, + const String& rFormula, std::vector<String>& rUsedDBNames ); void InitDrawModel(); diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx index b459705d061f..6b831110cbb2 100644 --- a/sw/source/core/doc/docfld.cxx +++ b/sw/source/core/doc/docfld.cxx @@ -1755,13 +1755,13 @@ void SwDoc::GetAllDBNames( std::vector<String>& rAllDBNames ) } std::vector<String>& SwDoc::FindUsedDBs( const std::vector<String>& rAllDBNames, - const String& rFormel, + const String& rFormula, std::vector<String>& rUsedDBNames ) { const CharClass& rCC = GetAppCharClass(); - String sFormel( rFormel); + String sFormula(rFormula); #ifndef UNX - sFormel = rCC.uppercase( sFormel ); + sFormula = rCC.uppercase( sFormula ); #endif xub_StrLen nPos; @@ -1769,17 +1769,17 @@ std::vector<String>& SwDoc::FindUsedDBs( const std::vector<String>& rAllDBNames, { String pStr(rAllDBNames[i]); - if( STRING_NOTFOUND != (nPos = sFormel.Search( pStr )) && - sFormel.GetChar( nPos + pStr.Len() ) == '.' && - (!nPos || !rCC.isLetterNumeric( sFormel, nPos - 1 ))) + if( STRING_NOTFOUND != (nPos = sFormula.Search( pStr )) && + sFormula.GetChar( nPos + pStr.Len() ) == '.' && + (!nPos || !rCC.isLetterNumeric( sFormula, nPos - 1 ))) { // Look up table name xub_StrLen nEndPos; nPos += pStr.Len() + 1; - if( STRING_NOTFOUND != (nEndPos = sFormel.Search('.', nPos)) ) + if( STRING_NOTFOUND != (nEndPos = sFormula.Search('.', nPos)) ) { pStr.Append( DB_DELIM ); - pStr.Append( sFormel.Copy( nPos, nEndPos - nPos )); + pStr.Append( sFormula.Copy( nPos, nEndPos - nPos )); rUsedDBNames.push_back(pStr); } } @@ -1923,11 +1923,11 @@ inline OUString lcl_CutOffDBCommandType(const OUString& rName) } OUString SwDoc::ReplaceUsedDBs( const std::vector<String>& rUsedDBNames, - const OUString& rNewName, const OUString& rFormel ) + const OUString& rNewName, const OUString& rFormula ) { const CharClass& rCC = GetAppCharClass(); const OUString sNewName( lcl_CutOffDBCommandType(rNewName) ); - OUString sFormula(rFormel); + OUString sFormula(rFormula); for( size_t i = 0; i < rUsedDBNames.size(); ++i ) { @@ -2274,41 +2274,41 @@ void SwDocUpdtFld::_MakeFldList( SwDoc& rDoc, int eGetMode ) if( !pTxtFld || !pTxtFld->GetTxtNode().GetNodes().IsDocNodes() ) continue; - OUString sFormel; + OUString sFormula; const SwField* pFld = pFmtFld->GetFld(); switch( nWhich = pFld->GetTyp()->Which() ) { case RES_DBSETNUMBERFLD: case RES_GETEXPFLD: if( GETFLD_ALL == eGetMode ) - sFormel = sTrue; + sFormula = sTrue; break; case RES_DBFLD: if( GETFLD_EXPAND & eGetMode ) - sFormel = sTrue; + sFormula = sTrue; break; case RES_SETEXPFLD: if ( !(eGetMode == GETFLD_EXPAND) || (nsSwGetSetExpType::GSE_STRING & pFld->GetSubType()) ) { - sFormel = sTrue; + sFormula = sTrue; } break; case RES_HIDDENPARAFLD: if( GETFLD_ALL == eGetMode ) { - sFormel = pFld->GetPar1(); - if (sFormel.isEmpty() || sFormel==sFalse) + sFormula = pFld->GetPar1(); + if (sFormula.isEmpty() || sFormula==sFalse) ((SwHiddenParaField*)pFld)->SetHidden( sal_False ); - else if (sFormel==sTrue) + else if (sFormula==sTrue) ((SwHiddenParaField*)pFld)->SetHidden( sal_True ); else break; - sFormel = OUString(); + sFormula = OUString(); // trigger formatting ((SwFmtFld*)pFmtFld)->ModifyNotification( 0, 0 ); } @@ -2317,15 +2317,15 @@ void SwDocUpdtFld::_MakeFldList( SwDoc& rDoc, int eGetMode ) case RES_HIDDENTXTFLD: if( GETFLD_ALL == eGetMode ) { - sFormel = pFld->GetPar1(); - if (sFormel.isEmpty() || sFormel==sFalse) + sFormula = pFld->GetPar1(); + if (sFormula.isEmpty() || sFormula==sFalse) ((SwHiddenTxtField*)pFld)->SetValue( sal_True ); - else if (sFormel==sTrue) + else if (sFormula==sTrue) ((SwHiddenTxtField*)pFld)->SetValue( sal_False ); else break; - sFormel = OUString(); + sFormula = OUString(); // evaluate field ((SwHiddenTxtField*)pFld)->Evaluate(&rDoc); @@ -2343,7 +2343,7 @@ void SwDocUpdtFld::_MakeFldList( SwDoc& rDoc, int eGetMode ) (GETFLD_ALL == eGetMode || (GETFLD_CALC & eGetMode && ((SwDBNumSetField*)pFld)->IsCondValid())) ) { - sFormel = pFld->GetPar1(); + sFormula = pFld->GetPar1(); } } break; @@ -2356,13 +2356,13 @@ void SwDocUpdtFld::_MakeFldList( SwDoc& rDoc, int eGetMode ) (GETFLD_ALL == eGetMode || (GETFLD_CALC & eGetMode && ((SwDBNextSetField*)pFld)->IsCondValid())) ) { - sFormel = pFld->GetPar1(); + sFormula = pFld->GetPar1(); } } break; } - if (!sFormel.isEmpty()) + if (!sFormula.isEmpty()) { GetBodyNode( *pTxtFld, nWhich ); } |