summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <libreoffice@kohei.us>2013-09-08 19:00:12 -0400
committerKohei Yoshida <libreoffice@kohei.us>2013-09-08 19:58:39 -0400
commitce29dbb48a5bc0b117528e0566888066b8dc6fb9 (patch)
tree51d315b8ec0f3d9ac36ac45e180e52d96f51c5fd /sc
parentc31d3ed99cc2346663877a751ffea64270ed412f (diff)
Make data member names consistent.
Change-Id: Icd949d84bb7a575b0e4adbe5c1c6f4d30e9b5213
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/inc/formulabuffer.hxx16
-rw-r--r--sc/source/filter/oox/formulabuffer.cxx37
2 files changed, 28 insertions, 25 deletions
diff --git a/sc/source/filter/inc/formulabuffer.hxx b/sc/source/filter/inc/formulabuffer.hxx
index c5d8f967c007..381a65ab87a2 100644
--- a/sc/source/filter/inc/formulabuffer.hxx
+++ b/sc/source/filter/inc/formulabuffer.hxx
@@ -86,14 +86,16 @@ class FormulaBuffer : public WorkbookHelper
typedef ::std::pair< ::com::sun::star::table::CellAddress, double > ValueAddressPair;
typedef ::std::map< sal_Int32, std::vector< ValueAddressPair > > FormulaValueMap;
- ::com::sun::star::uno::Reference< com::sun::star::table::XCellRange > getRange( const ::com::sun::star::table::CellRangeAddress& rRange);
com::sun::star::uno::Reference< com::sun::star::sheet::XSpreadsheet > mxCurrSheet;
- FormulaDataMap cellFormulas;
- ArrayFormulaDataMap cellArrayFormulas;
- SheetToFormulaEntryMap sharedFormulas;
- SheetToSharedFormulaid sharedFormulaIds;
- SheetToSharedIdToTokenIndex tokenIndexes;
- FormulaValueMap cellFormulaValues;
+ FormulaDataMap maCellFormulas;
+ ArrayFormulaDataMap maCellArrayFormulas;
+ SheetToFormulaEntryMap maSharedFormulas;
+ SheetToSharedFormulaid maSharedFormulaIds;
+ SheetToSharedIdToTokenIndex maTokenIndexes;
+ FormulaValueMap maCellFormulaValues;
+
+ com::sun::star::uno::Reference<com::sun::star::table::XCellRange>
+ getRange( const com::sun::star::table::CellRangeAddress& rRange );
void applyArrayFormulas( const std::vector< TokenRangeAddressItem >& rVector );
void applyCellFormula( ScDocument& rDoc, const ApiTokenSequence& rTokens, const ::com::sun::star::table::CellAddress& rAddress );
diff --git a/sc/source/filter/oox/formulabuffer.cxx b/sc/source/filter/oox/formulabuffer.cxx
index dce36d7feaae..4f4042c18fbb 100644
--- a/sc/source/filter/oox/formulabuffer.cxx
+++ b/sc/source/filter/oox/formulabuffer.cxx
@@ -47,12 +47,13 @@ FormulaBuffer::FormulaBuffer( const WorkbookHelper& rHelper ) : WorkbookHelper(
{
}
-Reference< XCellRange > FormulaBuffer::getRange( const CellRangeAddress& rRange)
+Reference<XCellRange> FormulaBuffer::getRange( const CellRangeAddress& rRange )
{
- Reference< XCellRange > xRange;
+ Reference<XCellRange> xRange;
try
{
- xRange = mxCurrSheet->getCellRangeByPosition( rRange.StartColumn, rRange.StartRow, rRange.EndColumn, rRange.EndRow );
+ xRange = mxCurrSheet->getCellRangeByPosition(
+ rRange.StartColumn, rRange.StartRow, rRange.EndColumn, rRange.EndRow);
}
catch( Exception& )
{
@@ -75,20 +76,20 @@ void FormulaBuffer::finalizeImport()
applySharedFormulas(nTab);
- FormulaDataMap::iterator cellIt = cellFormulas.find( nTab );
- if ( cellIt != cellFormulas.end() )
+ FormulaDataMap::iterator cellIt = maCellFormulas.find( nTab );
+ if ( cellIt != maCellFormulas.end() )
{
applyCellFormulas( cellIt->second );
}
- ArrayFormulaDataMap::iterator itArray = cellArrayFormulas.find( nTab );
- if ( itArray != cellArrayFormulas.end() )
+ ArrayFormulaDataMap::iterator itArray = maCellArrayFormulas.find( nTab );
+ if ( itArray != maCellArrayFormulas.end() )
{
applyArrayFormulas( itArray->second );
}
- FormulaValueMap::iterator itValues = cellFormulaValues.find( nTab );
- if ( itValues != cellFormulaValues.end() )
+ FormulaValueMap::iterator itValues = maCellFormulaValues.find( nTab );
+ if ( itValues != maCellFormulaValues.end() )
{
std::vector< ValueAddressPair > & rVector = itValues->second;
applyCellFormulaValues( rVector );
@@ -140,13 +141,13 @@ void FormulaBuffer::applyCellFormulaValues( const std::vector< ValueAddressPair
void FormulaBuffer::applySharedFormulas( sal_Int32 nTab )
{
- SheetToFormulaEntryMap::const_iterator itShared = sharedFormulas.find(nTab);
- if (itShared == sharedFormulas.end())
+ SheetToFormulaEntryMap::const_iterator itShared = maSharedFormulas.find(nTab);
+ if (itShared == maSharedFormulas.end())
// There is no shared formulas for this sheet.
return;
- SheetToSharedFormulaid::const_iterator itCells = sharedFormulaIds.find(nTab);
- if (itCells == sharedFormulaIds.end())
+ SheetToSharedFormulaid::const_iterator itCells = maSharedFormulaIds.find(nTab);
+ if (itCells == maSharedFormulaIds.end())
// There is no formula cells that use shared formulas for this sheet.
return;
@@ -280,20 +281,20 @@ void FormulaBuffer::createSharedFormulaMapEntry(
const table::CellAddress& rAddress, const table::CellRangeAddress& rRange,
sal_Int32 nSharedId, const OUString& rTokens )
{
- std::vector<SharedFormulaEntry>& rSharedFormulas = sharedFormulas[ rAddress.Sheet ];
+ std::vector<SharedFormulaEntry>& rSharedFormulas = maSharedFormulas[ rAddress.Sheet ];
SharedFormulaEntry aEntry(rAddress, rRange, rTokens, nSharedId);
rSharedFormulas.push_back( aEntry );
}
void FormulaBuffer::setCellFormula( const ::com::sun::star::table::CellAddress& rAddress, const OUString& rTokenStr )
{
- cellFormulas[ rAddress.Sheet ].push_back( TokenAddressItem( rTokenStr, rAddress ) );
+ maCellFormulas[ rAddress.Sheet ].push_back( TokenAddressItem( rTokenStr, rAddress ) );
}
void FormulaBuffer::setCellFormula(
const table::CellAddress& rAddress, sal_Int32 nSharedId, const OUString& rCellValue, sal_Int32 nValueType )
{
- sharedFormulaIds[rAddress.Sheet].push_back(
+ maSharedFormulaIds[rAddress.Sheet].push_back(
SharedFormulaDesc(rAddress, nSharedId, rCellValue, nValueType));
}
@@ -301,12 +302,12 @@ void FormulaBuffer::setCellArrayFormula( const ::com::sun::star::table::CellRang
{
TokenAddressItem tokenPair( rTokenStr, rTokenAddress );
- cellArrayFormulas[ rRangeAddress.Sheet ].push_back( TokenRangeAddressItem( tokenPair, rRangeAddress ) );
+ maCellArrayFormulas[ rRangeAddress.Sheet ].push_back( TokenRangeAddressItem( tokenPair, rRangeAddress ) );
}
void FormulaBuffer::setCellFormulaValue( const ::com::sun::star::table::CellAddress& rAddress, double fValue )
{
- cellFormulaValues[ rAddress.Sheet ].push_back( ValueAddressPair( rAddress, fValue ) );
+ maCellFormulaValues[ rAddress.Sheet ].push_back( ValueAddressPair( rAddress, fValue ) );
}
}}