diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-08-31 13:10:23 -0300 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-01 09:15:44 +0000 |
commit | 1d3483ed279982278b2f9fb1bab63485523e48c5 (patch) | |
tree | 449e6a4b8999e0ba54359b4b8d26a32e819942ad /sc | |
parent | 92ce8daf21f2081eca9b4f4294115b904c168a46 (diff) |
Remove some unused code from unusedcode.easy
Change-Id: Ic3e96eebbb914c5b905a8c58532ead9cb01dd41d
Reviewed-on: https://gerrit.libreoffice.org/5721
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/inc/sheetdatabuffer.hxx | 1 | ||||
-rw-r--r-- | sc/source/filter/inc/stylesbuffer.hxx | 2 | ||||
-rw-r--r-- | sc/source/filter/oox/sheetdatabuffer.cxx | 15 | ||||
-rw-r--r-- | sc/source/filter/oox/stylesbuffer.cxx | 8 |
4 files changed, 0 insertions, 26 deletions
diff --git a/sc/source/filter/inc/sheetdatabuffer.hxx b/sc/source/filter/inc/sheetdatabuffer.hxx index e826bd2d9954..192f35934c19 100644 --- a/sc/source/filter/inc/sheetdatabuffer.hxx +++ b/sc/source/filter/inc/sheetdatabuffer.hxx @@ -181,7 +181,6 @@ private: const DataTableModel& rModel ) const; /** Writes all cell formatting attributes to the passed cell range list. (depreciates writeXfIdRangeProperties) */ - void writeXfIdRangeListProperties( sal_Int32 nXfId, sal_Int32 nNumFmtId, const ApiCellRangeList& rRanges ) const; void applyCellMerging( const ::com::sun::star::table::CellRangeAddress& rRange ); void addColXfStyle( sal_Int32 nXfId, sal_Int32 nFormatId, const ::com::sun::star::table::CellRangeAddress& rAddress, bool bProcessRowRange = false ); private: diff --git a/sc/source/filter/inc/stylesbuffer.hxx b/sc/source/filter/inc/stylesbuffer.hxx index cbedfb3a2464..0f5ce548c7d4 100644 --- a/sc/source/filter/inc/stylesbuffer.hxx +++ b/sc/source/filter/inc/stylesbuffer.hxx @@ -985,8 +985,6 @@ public: /** Writes the cell formatting attributes of the specified XF to the passed property set. */ void writeCellXfToPropertySet( PropertySet& rPropSet, sal_Int32 nXfId ) const; - /** Writes the cell formatting attributes of the specified style XF to the passed property set. */ - void writeStyleXfToPropertySet( PropertySet& rPropSet, sal_Int32 nXfId ) const; bool hasBorder( sal_Int32 nBorderId ) const; private: diff --git a/sc/source/filter/oox/sheetdatabuffer.cxx b/sc/source/filter/oox/sheetdatabuffer.cxx index 99e80547a9c9..7f9c8e44336a 100644 --- a/sc/source/filter/oox/sheetdatabuffer.cxx +++ b/sc/source/filter/oox/sheetdatabuffer.cxx @@ -696,21 +696,6 @@ void SheetDataBuffer::setCellFormat( const CellModel& rModel, sal_Int32 nNumFmtI } } -void SheetDataBuffer::writeXfIdRangeListProperties( sal_Int32 nXfId, sal_Int32 nNumFmtId, const ApiCellRangeList& rRanges ) const -{ - StylesBuffer& rStyles = getStyles(); - ScRangeList aList; - for ( ApiCellRangeList::const_iterator it = rRanges.begin(), it_end = rRanges.end(); it!=it_end; ++it ) - { - ScRange* pRange = new ScRange(); - ScUnoConversion::FillScRange( *pRange, *it ); - aList.push_back( pRange ); - } - ScMarkData aMark; - aMark.MarkFromRangeList( aList, false ); - rStyles.writeCellXfToMarkData( aMark, nXfId, nNumFmtId ); -} - void lcl_SetBorderLine( ScDocument& rDoc, ScRange& rRange, SCTAB nScTab, sal_uInt16 nLine ) { SCCOL nFromScCol = (nLine == BOX_LINE_RIGHT) ? rRange.aEnd.Col() : rRange.aStart.Col(); diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx index e34080eca1f9..d3f52dc11903 100644 --- a/sc/source/filter/oox/stylesbuffer.cxx +++ b/sc/source/filter/oox/stylesbuffer.cxx @@ -3374,14 +3374,6 @@ bool StylesBuffer::hasBorder( sal_Int32 nBorderId ) const return pBorder && pBorder->hasBorder(); } -void StylesBuffer::writeStyleXfToPropertySet( PropertySet& rPropSet, sal_Int32 nXfId ) const -{ - if( Xf* pXf = maStyleXfs.get( nXfId ).get() ) - pXf->writeToPropertySet( rPropSet ); -} - -// ============================================================================ - } // namespace xls } // namespace oox |