diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-07 17:30:20 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-12 19:46:26 -0400 |
commit | 3c4fb3d0741a762fd21cc4e0dad631a81f1057f3 (patch) | |
tree | 0906693e01426fb1ce7fad20b70c141ddd149e5b /sc/source/filter/oox/sheetdatabuffer.cxx | |
parent | e1c2403802af2f13075d612ea5ef0e91cf23c878 (diff) |
This code is no longer needed.
Change-Id: I319aae9d58fe1798e6add168f5a3613bceef7c26
Diffstat (limited to 'sc/source/filter/oox/sheetdatabuffer.cxx')
-rw-r--r-- | sc/source/filter/oox/sheetdatabuffer.cxx | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/sc/source/filter/oox/sheetdatabuffer.cxx b/sc/source/filter/oox/sheetdatabuffer.cxx index 174842a001bc..99e80547a9c9 100644 --- a/sc/source/filter/oox/sheetdatabuffer.cxx +++ b/sc/source/filter/oox/sheetdatabuffer.cxx @@ -276,11 +276,6 @@ void SheetDataBuffer::createTableOperation( const CellRangeAddress& rRange, cons maTableOperations.push_back( TableOperation( rRange, rModel ) ); } -void SheetDataBuffer::createSharedFormula( const CellAddress& rCellAddr, const ApiTokenSequence& rTokens ) -{ - createSharedFormula( BinAddress( rCellAddr ), rTokens ); -} - void SheetDataBuffer::setRowFormat( sal_Int32 nRow, sal_Int32 nXfId, bool bCustomFormat ) { // set row formatting @@ -554,33 +549,6 @@ void SheetDataBuffer::setCellFormula( const CellAddress& rCellAddr, const ApiTok } } -void SheetDataBuffer::createSharedFormula( const BinAddress& rMapKey, const ApiTokenSequence& rTokens ) -{ - // create the defined name that will represent the shared formula - OUString aName = OUStringBuffer().appendAscii( RTL_CONSTASCII_STRINGPARAM( "__shared_" ) ). - append( static_cast< sal_Int32 >( getSheetIndex() + 1 ) ). - append( sal_Unicode( '_' ) ).append( rMapKey.mnRow ). - append( sal_Unicode( '_' ) ).append( rMapKey.mnCol ).makeStringAndClear(); - ScRangeData* pScRangeData = createNamedRangeObject( aName, rTokens, 0 ); - pScRangeData->SetType(RT_SHARED); - - // get and store the token index of the defined name - OSL_ENSURE( maSharedFormulas.count( rMapKey ) == 0, "SheetDataBuffer::createSharedFormula - shared formula exists already" ); - sal_Int32 nTokenIndex = static_cast< sal_Int32 >( pScRangeData->GetIndex() ); - if( nTokenIndex >= 0 ) try - { - // store the token index in the map - maSharedFormulas[ rMapKey ] = nTokenIndex; - // retry to insert a pending shared formula cell - if( mbPendingSharedFmla ) - setCellFormula( maSharedFmlaAddr, resolveSharedFormula( maSharedBaseAddr ) ); - } - catch( Exception& ) - { - } - mbPendingSharedFmla = false; -} - ApiTokenSequence SheetDataBuffer::resolveSharedFormula( const BinAddress& rMapKey ) const { sal_Int32 nTokenIndex = ContainerHelper::getMapElement( maSharedFormulas, rMapKey, -1 ); |