summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-23 22:40:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-25 14:19:01 +0100
commitefa55cfd745843990503dea40995e78907611c6e (patch)
treed10e078639acf171f69065edce335dabd0d55af6 /sc
parent467926acd3bfff2975f330d3550abf161dc5b4f5 (diff)
callcatcher: update unused code
Change-Id: I65c19a21ae9b6deb1601adf2f3fe8fe8faa7e9ed
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/inc/formulabuffer.hxx1
-rw-r--r--sc/source/filter/inc/sheetdatabuffer.hxx7
-rw-r--r--sc/source/filter/inc/worksheethelper.hxx3
-rw-r--r--sc/source/filter/oox/formulabuffer.cxx13
-rw-r--r--sc/source/filter/oox/sheetdatabuffer.cxx11
-rw-r--r--sc/source/filter/oox/worksheethelper.cxx15
-rw-r--r--sc/source/filter/xml/XMLStylesImportHelper.cxx41
-rw-r--r--sc/source/filter/xml/XMLStylesImportHelper.hxx2
-rw-r--r--sc/source/ui/vba/vbaformat.hxx1
9 files changed, 0 insertions, 94 deletions
diff --git a/sc/source/filter/inc/formulabuffer.hxx b/sc/source/filter/inc/formulabuffer.hxx
index 0097dc7cb037..a0b96ce6d558 100644
--- a/sc/source/filter/inc/formulabuffer.hxx
+++ b/sc/source/filter/inc/formulabuffer.hxx
@@ -71,7 +71,6 @@ typedef ::std::map< sal_Int32, std::vector< ValueAddressPair > > FormulaValueMap
void createSharedFormula( const ::com::sun::star::table::CellAddress& rAddress, sal_Int32 nSharedId, const rtl::OUString& rTokens );
::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::table::XCell > getCell( ::com::sun::star::table::CellAddress& rAddress );
com::sun::star::uno::Reference< com::sun::star::sheet::XSpreadsheet > mxCurrSheet;
FormulaDataMap cellFormulas;
ArrayFormulaDataMap cellArrayFormulas;
diff --git a/sc/source/filter/inc/sheetdatabuffer.hxx b/sc/source/filter/inc/sheetdatabuffer.hxx
index c840bc17f33a..898d03949256 100644
--- a/sc/source/filter/inc/sheetdatabuffer.hxx
+++ b/sc/source/filter/inc/sheetdatabuffer.hxx
@@ -187,8 +187,6 @@ public:
void setErrorCell( const CellModel& rModel, sal_uInt8 nErrorCode );
/** Inserts a formula cell into the sheet. */
void setFormulaCell( const CellModel& rModel, const ApiTokenSequence& rTokens );
- /** Inserts a shared formula cell into the sheet (OOXML only). */
- void setFormulaCell( const CellModel& rModel, sal_Int32 nSharedId );
/** Inserts the passed token array as array formula. */
void createArrayFormula(
@@ -198,11 +196,6 @@ public:
void createTableOperation(
const ::com::sun::star::table::CellRangeAddress& rRange,
const DataTableModel& rModel );
- /** Creates a named range with a special name for a shared formula with the
- specified identifier and formula definition (OOXML only). */
- void createSharedFormula(
- sal_Int32 nSharedId,
- const ApiTokenSequence& rTokens );
/** Creates a named range with a special name for a shared formula with the
specified base address and formula definition (BIFF only). */
diff --git a/sc/source/filter/inc/worksheethelper.hxx b/sc/source/filter/inc/worksheethelper.hxx
index 02422633d5b8..d1cbf09bef32 100644
--- a/sc/source/filter/inc/worksheethelper.hxx
+++ b/sc/source/filter/inc/worksheethelper.hxx
@@ -293,9 +293,6 @@ public:
void putValue(
const ::com::sun::star::table::CellAddress& rAddress,
double fValue ) const;
- void putFormulaResult(
- const ::com::sun::star::table::CellAddress& rAddress,
- double fValue ) const;
/** Inserts a string cell directly into the Calc sheet. */
void putString(
diff --git a/sc/source/filter/oox/formulabuffer.cxx b/sc/source/filter/oox/formulabuffer.cxx
index a82e19551792..f2f1d69023ac 100644
--- a/sc/source/filter/oox/formulabuffer.cxx
+++ b/sc/source/filter/oox/formulabuffer.cxx
@@ -48,19 +48,6 @@ Reference< XCellRange > FormulaBuffer::getRange( const CellRangeAddress& rRange)
return xRange;
}
-Reference< XCell > FormulaBuffer::getCell( CellAddress& rAddress )
-{
- Reference< XCell > xCell;
- try
- {
- xCell = mxCurrSheet->getCellByPosition( rAddress.Column, rAddress.Row );
- }
- catch( Exception& )
- {
- }
- return xCell;
-}
-
void FormulaBuffer::finalizeImport()
{
ISegmentProgressBarRef xFormulaBar = getProgressBar().createSegment( getProgressBar().getFreeLength() );
diff --git a/sc/source/filter/oox/sheetdatabuffer.cxx b/sc/source/filter/oox/sheetdatabuffer.cxx
index 3f0aea4b3aae..0ce3594eb183 100644
--- a/sc/source/filter/oox/sheetdatabuffer.cxx
+++ b/sc/source/filter/oox/sheetdatabuffer.cxx
@@ -329,12 +329,6 @@ void SheetDataBuffer::setFormulaCell( const CellModel& rModel, const ApiTokenSeq
setCellFormat( rModel );
}
-void SheetDataBuffer::setFormulaCell( const CellModel& rModel, sal_Int32 nSharedId )
-{
- setCellFormula( rModel.maCellAddr, resolveSharedFormula( BinAddress( nSharedId, 0 ) ) );
- setCellFormat( rModel );
-}
-
void SheetDataBuffer::createArrayFormula( const CellRangeAddress& rRange, const ApiTokenSequence& rTokens )
{
/* Array formulas will be inserted later in finalizeImport(). This is
@@ -351,11 +345,6 @@ void SheetDataBuffer::createTableOperation( const CellRangeAddress& rRange, cons
maTableOperations.push_back( TableOperation( rRange, rModel ) );
}
-void SheetDataBuffer::createSharedFormula( sal_Int32 nSharedId, const ApiTokenSequence& rTokens )
-{
- createSharedFormula( BinAddress( nSharedId, 0 ), rTokens );
-}
-
void SheetDataBuffer::createSharedFormula( const CellAddress& rCellAddr, const ApiTokenSequence& rTokens )
{
createSharedFormula( BinAddress( rCellAddr ), rTokens );
diff --git a/sc/source/filter/oox/worksheethelper.cxx b/sc/source/filter/oox/worksheethelper.cxx
index 0bb8ba2887e1..cc2eb634d491 100644
--- a/sc/source/filter/oox/worksheethelper.cxx
+++ b/sc/source/filter/oox/worksheethelper.cxx
@@ -1534,21 +1534,6 @@ void WorksheetHelper::putValue( const CellAddress& rAddress, double fValue ) con
getScDocument().SetValue( aAddress.Col(), aAddress.Row(), aAddress.Tab(), fValue );
}
-void WorksheetHelper::putFormulaResult( const CellAddress& rAddress, double fValue ) const
-{
- ScDocument& rDoc = getScDocument();
- ScAddress aCellPos;
- ScUnoConversion::FillScAddress( aCellPos, rAddress );
- ScBaseCell* pBaseCell = rDoc.GetCell( aCellPos );
- if ( pBaseCell->GetCellType() == CELLTYPE_FORMULA )
- {
- ScFormulaCell* pCell = static_cast< ScFormulaCell* >( pBaseCell );
- pCell->SetHybridDouble( fValue );
- pCell->ResetDirty();
- pCell->ResetChanged();
- }
-}
-
void WorksheetHelper::setCellFormulaValue( const ::com::sun::star::table::CellAddress& rAddress,
double fValue )
{
diff --git a/sc/source/filter/xml/XMLStylesImportHelper.cxx b/sc/source/filter/xml/XMLStylesImportHelper.cxx
index 1ae7ef01d150..56d30e2650c8 100644
--- a/sc/source/filter/xml/XMLStylesImportHelper.cxx
+++ b/sc/source/filter/xml/XMLStylesImportHelper.cxx
@@ -144,35 +144,6 @@ void ScMyStyleRanges::AddCurrencyRange(const ScRange& rRange,
aItr->mpRanges->addRange(rRange);
}
-void ScMyStyleRanges::InsertRow(const sal_Int32 nRow, const sal_Int32 nTab, ScDocument* /*pDoc*/)
-{
- if (mpTextList)
- mpTextList->insertRow(static_cast<SCROW>(nRow), static_cast<SCTAB>(nTab));
- if (mpNumberList)
- mpNumberList->insertRow(static_cast<SCROW>(nRow), static_cast<SCTAB>(nTab));
- if (mpTimeList)
- mpTimeList->insertRow(static_cast<SCROW>(nRow), static_cast<SCTAB>(nTab));
- if (mpDateTimeList)
- mpDateTimeList->insertRow(static_cast<SCROW>(nRow), static_cast<SCTAB>(nTab));
- if (mpPercentList)
- mpPercentList->insertRow(static_cast<SCROW>(nRow), static_cast<SCTAB>(nTab));
- if (mpLogicalList)
- mpLogicalList->insertRow(static_cast<SCROW>(nRow), static_cast<SCTAB>(nTab));
- if (mpUndefinedList)
- mpUndefinedList->insertRow(static_cast<SCROW>(nRow), static_cast<SCTAB>(nTab));
-
- if (pCurrencyList)
- {
- ScMyCurrencyStylesSet::iterator aItr(pCurrencyList->begin());
- ScMyCurrencyStylesSet::iterator aEndItr(pCurrencyList->end());
- while (aItr != aEndItr)
- {
- aItr->mpRanges->insertRow(static_cast<SCROW>(nRow), static_cast<SCTAB>(nTab));
- ++aItr;
- }
- }
-}
-
void ScMyStyleRanges::InsertCol(const sal_Int32 nCol, const sal_Int32 nTab, ScDocument* /*pDoc*/)
{
if (mpTextList)
@@ -502,18 +473,6 @@ void ScMyStylesImportHelper::AddCell(const ScAddress& rAddress)
AddRange(aScRange);
}
-void ScMyStylesImportHelper::InsertRow(const sal_Int32 nRow, const sal_Int32 nTab, ScDocument* pDoc)
-{
- ScXMLImport::MutexGuard aGuard(rImport);
- ScMyStylesSet::iterator aItr(aCellStyles.begin());
- ScMyStylesSet::iterator aEndItr(aCellStyles.end());
- while (aItr != aEndItr)
- {
- aItr->xRanges->InsertRow(nRow, nTab, pDoc);
- ++aItr;
- }
-}
-
void ScMyStylesImportHelper::InsertCol(const sal_Int32 nCol, const sal_Int32 nTab, ScDocument* pDoc)
{
ScXMLImport::MutexGuard aGuard(rImport);
diff --git a/sc/source/filter/xml/XMLStylesImportHelper.hxx b/sc/source/filter/xml/XMLStylesImportHelper.hxx
index c5bf5d315522..6a988d061fae 100644
--- a/sc/source/filter/xml/XMLStylesImportHelper.hxx
+++ b/sc/source/filter/xml/XMLStylesImportHelper.hxx
@@ -115,7 +115,6 @@ public:
void AddCurrencyRange(const ScRange& rRange,
const rtl::OUString* pStyleName, const rtl::OUString* pCurrency,
ScXMLImport& rImport, const sal_uInt32 nMaxRanges);
- void InsertRow(const sal_Int32 nRow, const sal_Int32 nTab, ScDocument* pDoc);
void InsertCol(const sal_Int32 nCol, const sal_Int32 nTab, ScDocument* pDoc);
void SetStylesToRanges(const rtl::OUString* pStyleName, ScXMLImport& rImport);
};
@@ -178,7 +177,6 @@ public:
rtl::OUString* pCurrency, const sal_Int16 nCellType);
void AddRange(const ScRange& rRange);
void AddCell(const ScAddress& rAddress);
- void InsertRow(const sal_Int32 nRow, const sal_Int32 nTab, ScDocument* pDoc); // a row is inserted before nRow
void InsertCol(const sal_Int32 nCol, const sal_Int32 nTab, ScDocument* pDoc); // a col is inserted before nCol
void EndTable();
void SetStylesToRanges();
diff --git a/sc/source/ui/vba/vbaformat.hxx b/sc/source/ui/vba/vbaformat.hxx
index d2c0e0908135..f5520116631b 100644
--- a/sc/source/ui/vba/vbaformat.hxx
+++ b/sc/source/ui/vba/vbaformat.hxx
@@ -70,7 +70,6 @@ public:
ScVbaFormat( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::beans::XPropertySet >& _xPropertySet, const css::uno::Reference< css::frame::XModel >& xModel, bool bCheckAmbiguoity ) throw ( css::script::BasicErrorException );
virtual ~ScVbaFormat() {}
virtual css::uno::Reference< ov::XHelperInterface > thisHelperIface() = 0;
- css::uno::Reference< css::lang::XServiceInfo > getXServiceInfo() { return mxServiceInfo; }
void SAL_CALL setAddIndent( const css::uno::Any& _BAddIndent) throw( css::uno::RuntimeException ) { _BAddIndent >>= mbAddIndent; }
css::uno::Any SAL_CALL getAddIndent() throw( css::uno::RuntimeException ) { return css::uno::makeAny( mbAddIndent ); }
// Interface Methods