Kaydet (Commit) 5becce4c authored tarafından Kohei Yoshida's avatar Kohei Yoshida

These method names should use singular 'Cell', not 'Cells'.

Change-Id: I9faa2727eda05be041aff4347f921ec9cd9b49d2
üst 10461da7
...@@ -785,7 +785,7 @@ bool isEmptyOrNote( ScDocument* pDoc, const ScAddress& rCurrentPos ) ...@@ -785,7 +785,7 @@ bool isEmptyOrNote( ScDocument* pDoc, const ScAddress& rCurrentPos )
} }
void ScXMLTableRowCellContext::AddTextAndValueCells( const ScAddress& rCellPos, void ScXMLTableRowCellContext::AddTextAndValueCell( const ScAddress& rCellPos,
const ::boost::optional< rtl::OUString >& pOUText, ScAddress& rCurrentPos ) const ::boost::optional< rtl::OUString >& pOUText, ScAddress& rCurrentPos )
{ {
ScMyTables& rTables = rXMLImport.GetTables(); ScMyTables& rTables = rXMLImport.GetTables();
...@@ -925,7 +925,7 @@ rtl::OUString getOutputString(ScDocument* pDoc, const ScAddress& aCellPos) ...@@ -925,7 +925,7 @@ rtl::OUString getOutputString(ScDocument* pDoc, const ScAddress& aCellPos)
} }
void ScXMLTableRowCellContext::AddNonFormulaCells( const ScAddress& rCellPos ) void ScXMLTableRowCellContext::AddNonFormulaCell( const ScAddress& rCellPos )
{ {
::boost::optional< rtl::OUString > pOUText; ::boost::optional< rtl::OUString > pOUText;
...@@ -942,7 +942,7 @@ void ScXMLTableRowCellContext::AddNonFormulaCells( const ScAddress& rCellPos ) ...@@ -942,7 +942,7 @@ void ScXMLTableRowCellContext::AddNonFormulaCells( const ScAddress& rCellPos )
if( HasSpecialContent() ) if( HasSpecialContent() )
bIsEmpty = false; bIsEmpty = false;
AddTextAndValueCells( rCellPos, pOUText, aCurrentPos ); AddTextAndValueCell( rCellPos, pOUText, aCurrentPos );
if( CellsAreRepeated() ) if( CellsAreRepeated() )
{ {
...@@ -1114,10 +1114,11 @@ void ScXMLTableRowCellContext::EndElement() ...@@ -1114,10 +1114,11 @@ void ScXMLTableRowCellContext::EndElement()
aCellPos.SetRow( aCellPos.Row() - (nRepeatedRows - 1) ); aCellPos.SetRow( aCellPos.Row() - (nRepeatedRows - 1) );
if( bIsMerged ) if( bIsMerged )
DoMerge( aCellPos, nMergedCols - 1, nMergedRows - 1 ); DoMerge( aCellPos, nMergedCols - 1, nMergedRows - 1 );
if (!maFormula)
AddNonFormulaCells( aCellPos ); if (maFormula)
AddFormulaCell(aCellPos);
else else
AddFormulaCell( aCellPos ); AddNonFormulaCell(aCellPos);
UnlockSolarMutex(); //if LockSolarMutex got used, we presumably need to ensure an UnlockSolarMutex UnlockSolarMutex(); //if LockSolarMutex got used, we presumably need to ensure an UnlockSolarMutex
......
...@@ -81,9 +81,9 @@ class ScXMLTableRowCellContext : public SvXMLImportContext ...@@ -81,9 +81,9 @@ class ScXMLTableRowCellContext : public SvXMLImportContext
void PutTextCell ( const ScAddress& rScCurrentPos, const SCCOL nCurrentCol, void PutTextCell ( const ScAddress& rScCurrentPos, const SCCOL nCurrentCol,
const ::boost::optional< rtl::OUString >& pOUText ); const ::boost::optional< rtl::OUString >& pOUText );
void PutValueCell ( const ScAddress& rScCurrentPos ); void PutValueCell ( const ScAddress& rScCurrentPos );
void AddTextAndValueCells ( const ScAddress& rScCellPos, void AddTextAndValueCell ( const ScAddress& rScCellPos,
const ::boost::optional< rtl::OUString >& pOUText, ScAddress& rScCurrentPos ); const ::boost::optional< rtl::OUString >& pOUText, ScAddress& rScCurrentPos );
void AddNonFormulaCells ( const ScAddress& rScCellPos ); void AddNonFormulaCell ( const ScAddress& rScCellPos );
void PutFormulaCell ( const ScAddress& rScCurrentPos ); void PutFormulaCell ( const ScAddress& rScCurrentPos );
void AddFormulaCell ( const ScAddress& rScCellPos ); void AddFormulaCell ( const ScAddress& rScCellPos );
......
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