summaryrefslogtreecommitdiffstats
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-07-03 15:52:45 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-07-03 15:57:18 +0200
commit0be6adc8fcf9f4017b409aa3ec51a1e8c663e608 (patch)
tree9b79db3c7eccfcacfac3487307f5bfc046470d4d /writerfilter
parentreadjust the combobox optimal size calculation, needs to be more stable (diff)
downloadcore-0be6adc8fcf9f4017b409aa3ec51a1e8c663e608.tar.gz
core-0be6adc8fcf9f4017b409aa3ec51a1e8c663e608.zip
Drop unused DomainMapperTableManager::CopyTextProperties()
Change-Id: Ibe99d4f3f4254329ca1b7269221f4e7cba1201a1
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapperTableManager.cxx37
-rw-r--r--writerfilter/source/dmapper/DomainMapperTableManager.hxx3
2 files changed, 0 insertions, 40 deletions
diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.cxx b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
index 6aabf59418cd..54bbe4af1bad 100644
--- a/writerfilter/source/dmapper/DomainMapperTableManager.cxx
+++ b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
@@ -724,43 +724,6 @@ void DomainMapperTableManager::clearData()
}
-void lcl_CopyTextProperties(PropertyMapPtr pToFill,
- const StyleSheetEntry* pStyleSheetEntry, StyleSheetTablePtr pStyleSheetTable)
-{
- if( !pStyleSheetEntry )
- return;
- //fill base style properties first, recursively
- if( !pStyleSheetEntry->sBaseStyleIdentifier.isEmpty())
- {
- const StyleSheetEntryPtr pParentStyleSheet =
- pStyleSheetTable->FindStyleSheetByISTD(pStyleSheetEntry->sBaseStyleIdentifier);
- OSL_ENSURE( pParentStyleSheet, "table style not found" );
- lcl_CopyTextProperties( pToFill, pParentStyleSheet.get( ), pStyleSheetTable);
- }
-
- PropertyMap::const_iterator aPropIter = pStyleSheetEntry->pProperties->begin();
- while(aPropIter != pStyleSheetEntry->pProperties->end())
- {
- //copy all text properties form the table style to the current run attributes
- if( aPropIter->first.bIsTextProperty )
- pToFill->insert(*aPropIter);
- ++aPropIter;
- }
-}
-void DomainMapperTableManager::CopyTextProperties(PropertyMapPtr pContext, StyleSheetTablePtr pStyleSheetTable)
-{
- if( !m_pTableStyleTextProperies.get())
- {
- m_pTableStyleTextProperies.reset( new PropertyMap );
- const StyleSheetEntryPtr pStyleSheetEntry = pStyleSheetTable->FindStyleSheetByISTD(
- m_sTableStyleName);
- OSL_ENSURE( pStyleSheetEntry, "table style not found" );
- lcl_CopyTextProperties(m_pTableStyleTextProperies, pStyleSheetEntry.get( ), pStyleSheetTable);
- }
- pContext->InsertProps(m_pTableStyleTextProperies);
-}
-
-
}}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.hxx b/writerfilter/source/dmapper/DomainMapperTableManager.hxx
index 6243b619c0e1..f36ac5d21359 100644
--- a/writerfilter/source/dmapper/DomainMapperTableManager.hxx
+++ b/writerfilter/source/dmapper/DomainMapperTableManager.hxx
@@ -93,9 +93,6 @@ public:
const OUString& getTableStyleName() const { return m_sTableStyleName; }
const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> getCurrentTablePosition();
- /// copy the text properties of the table style and its parent into pContext
- void CopyTextProperties(PropertyMapPtr pContext, StyleSheetTablePtr pStyleSheetTable);
-
inline virtual void cellProps(TablePropertyMapPtr pProps)
{
if ( m_pStyleProps.get( ) )