summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-28 15:02:39 +0200
committerNoel Grandin <noel@peralex.com>2014-03-03 08:58:59 +0200
commit3b1fefac9a8e7cd7c5c483cc896fc45ca25e6f8d (patch)
tree476f314ded3720388d82652f0e53d2e7342dab8f /svx
parent7b2c8b97715f17f2ddb534089389e961aa9d7fe1 (diff)
remove unused code in sdr::table
sdr::table::Cell::getName() sdr::table::SdrTableObj::getRowCount() const Change-Id: Icd4cbe591703aedb1412f8e9b485c773ffe79551
Diffstat (limited to 'svx')
-rw-r--r--svx/source/table/cell.cxx65
-rw-r--r--svx/source/table/cell.hxx2
-rw-r--r--svx/source/table/svdotable.cxx7
3 files changed, 0 insertions, 74 deletions
diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx
index 26db3dfed1f0..af3da32c5a43 100644
--- a/svx/source/table/cell.cxx
+++ b/svx/source/table/cell.cxx
@@ -1749,71 +1749,6 @@ void SAL_CALL Cell::disposing( const EventObject& /*Source*/ ) throw (RuntimeExc
dispose();
}
-static OUString getCellName( sal_Int32 nCol, sal_Int32 nRow )
-{
- OUStringBuffer aBuf;
-
- if (nCol < 26*26)
- {
- if (nCol < 26)
- aBuf.append( static_cast<sal_Unicode>( 'A' +
- static_cast<sal_uInt16>(nCol)));
- else
- {
- aBuf.append( static_cast<sal_Unicode>( 'A' +
- (static_cast<sal_uInt16>(nCol) / 26) - 1));
- aBuf.append( static_cast<sal_Unicode>( 'A' +
- (static_cast<sal_uInt16>(nCol) % 26)));
- }
- }
- else
- {
- OUString aStr;
- while (nCol >= 26)
- {
- sal_Int32 nC = nCol % 26;
- aStr += OUString( static_cast<sal_Unicode>( 'A' +
- static_cast<sal_uInt16>(nC)) );
- nCol = nCol - nC;
- nCol = nCol / 26 - 1;
- }
- aStr += OUString ( static_cast<sal_Unicode>( 'A' +
- static_cast<sal_uInt16>(nCol)) );
- aBuf.append(comphelper::string::reverseString(aStr));
- }
- aBuf.append( OUString::number(nRow+1) );
- return aBuf.makeStringAndClear();
-}
-
-OUString Cell::getName()
-{
- // todo: optimize!
- OUString sName;
- if( mxTable.is() ) try
- {
- Reference< XCell > xThis( static_cast< XCell* >( this ) );
-
- sal_Int32 nRowCount = mxTable->getRowCount();
- sal_Int32 nColCount = mxTable->getColumnCount();
- for( sal_Int32 nRow = 0; nRow < nRowCount; nRow++ )
- {
- for( sal_Int32 nCol = 0; nCol < nColCount; nCol++ )
- {
- Reference< XCell > xCell( mxTable->getCellByPosition( nCol, nRow ) );
- if( xCell == xThis )
- {
- return getCellName( nCol, nRow );
- }
- }
- }
- }
- catch( Exception& )
- {
- }
-
- return sName;
-}
-
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svx/source/table/cell.hxx b/svx/source/table/cell.hxx
index d3983630638e..eb7b7f64ca6b 100644
--- a/svx/source/table/cell.hxx
+++ b/svx/source/table/cell.hxx
@@ -204,8 +204,6 @@ public:
SVX_DLLPRIVATE void notifyModified();
- OUString getName();
-
protected:
SVX_DLLPRIVATE virtual const SfxItemSet& GetObjectItemSet();
SVX_DLLPRIVATE virtual void SetObjectItem(const SfxPoolItem& rItem);
diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx
index a603afe30614..1d4dc8a2e7f0 100644
--- a/svx/source/table/svdotable.cxx
+++ b/svx/source/table/svdotable.cxx
@@ -1505,13 +1505,6 @@ const CellRef& SdrTableObj::getActiveCell() const
-sal_Int32 SdrTableObj::getRowCount() const
-{
- return mpImpl ? mpImpl->getRowCount() : 0;
-}
-
-
-
sal_Int32 SdrTableObj::getColumnCount() const
{
return mpImpl ? mpImpl->getColumnCount() : 0;