summaryrefslogtreecommitdiffstats
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-04-20 09:12:24 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-04-20 09:29:26 +0200
commit5e16ece1dd59caf7229a7db3504712cedd9a9775 (patch)
tree5326d8dcc272a4a04d1a2c1cca4e943f48bc3ff4 /writerfilter
parentOptimize Breeze icon theme - Pt.3 (diff)
downloadcore-5e16ece1dd59caf7229a7db3504712cedd9a9775.tar.gz
core-5e16ece1dd59caf7229a7db3504712cedd9a9775.zip
writerfilter: remove newly unused methods
Change-Id: Ie15422d7936cd84d5c4a07a5b75fdb02efc6ea1e
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/TDefTableHandler.cxx46
-rw-r--r--writerfilter/source/dmapper/TDefTableHandler.hxx3
2 files changed, 0 insertions, 49 deletions
diff --git a/writerfilter/source/dmapper/TDefTableHandler.cxx b/writerfilter/source/dmapper/TDefTableHandler.cxx
index 18746ce431a1..677781bd8c59 100644
--- a/writerfilter/source/dmapper/TDefTableHandler.cxx
+++ b/writerfilter/source/dmapper/TDefTableHandler.cxx
@@ -418,35 +418,6 @@ void TDefTableHandler::lcl_sprm(Sprm & rSprm)
}
}
-
-PropertyMapPtr TDefTableHandler::getRowProperties() const
-{
- PropertyMapPtr pPropertyMap(new PropertyMap);
-
- // Writer only wants the separators, Word provides also the outer border positions
- if( m_aCellBorderPositions.size() > 2 )
- {
- //determine table width
- double nFullWidth = m_aCellBorderPositions[m_aCellBorderPositions.size() - 1] - m_aCellBorderPositions[0];
- //the positions have to be distibuted in a range of 10000
- const double nFullWidthRelative = 10000.;
- uno::Sequence< text::TableColumnSeparator > aSeparators( m_aCellBorderPositions.size() - 2 );
- text::TableColumnSeparator* pSeparators = aSeparators.getArray();
- for( sal_uInt32 nBorder = 1; nBorder < m_aCellBorderPositions.size() - 1; ++nBorder )
- {
- sal_Int16 nRelPos =
- sal::static_int_cast< sal_Int16 >(double(m_aCellBorderPositions[nBorder]) * nFullWidthRelative / nFullWidth );
-
- pSeparators[nBorder - 1].Position = nRelPos;
- pSeparators[nBorder - 1].IsVisible = sal_True;
- }
- pPropertyMap->Insert( PROP_TABLE_COLUMN_SEPARATORS, uno::makeAny( aSeparators ) );
- }
-
- return pPropertyMap;
-}
-
-
void TDefTableHandler::fillCellProperties(
size_t nCell, ::std::shared_ptr< TablePropertyMap > pCellProperties ) const
{
@@ -476,23 +447,6 @@ void TDefTableHandler::fillCellProperties(
}
-sal_Int32 TDefTableHandler::getTableWidth() const
-{
- sal_Int32 nWidth = 0;
- if( m_aCellBorderPositions.size() > 1 )
- {
- //determine table width
- nWidth = m_aCellBorderPositions[m_aCellBorderPositions.size() - 1] - m_aCellBorderPositions[0];
- }
- return nWidth;
-}
-
-
-size_t TDefTableHandler::getCellCount() const
-{
- return m_aCellVertAlign.size();
-}
-
void TDefTableHandler::enableInteropGrabBag(const OUString& aName)
{
m_aInteropGrabBagName = aName;
diff --git a/writerfilter/source/dmapper/TDefTableHandler.hxx b/writerfilter/source/dmapper/TDefTableHandler.hxx
index 65a6f56ab3a1..18fd4241e1bb 100644
--- a/writerfilter/source/dmapper/TDefTableHandler.hxx
+++ b/writerfilter/source/dmapper/TDefTableHandler.hxx
@@ -73,10 +73,7 @@ public:
TDefTableHandler();
virtual ~TDefTableHandler();
- size_t getCellCount() const;
void fillCellProperties( size_t nCell, ::std::shared_ptr< TablePropertyMap > pCellProperties) const;
- ::std::shared_ptr<PropertyMap> getRowProperties() const;
- sal_Int32 getTableWidth() const;
void enableInteropGrabBag(const OUString& aName);
css::beans::PropertyValue getInteropGrabBag(const OUString& aName = OUString());
static OUString getBorderTypeString(sal_Int32 nType);