unusedcode.easy | 1 writerfilter/source/dmapper/DomainMapperTableManager.cxx | 37 --------------- writerfilter/source/dmapper/DomainMapperTableManager.hxx | 3 - 3 files changed, 41 deletions(-)
New commits: commit 0be6adc8fcf9f4017b409aa3ec51a1e8c663e608 Author: Miklos Vajna <vmik...@suse.cz> Date: Wed Jul 3 15:52:45 2013 +0200 Drop unused DomainMapperTableManager::CopyTextProperties() Change-Id: Ibe99d4f3f4254329ca1b7269221f4e7cba1201a1 diff --git a/unusedcode.easy b/unusedcode.easy index 529c1ef..2c163f9 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -223,4 +223,3 @@ utl::ConfigItem::getUniqueSetElementName(rtl::OUString const&, rtl::OUString&) utl::toISO8601(com::sun::star::util::Time const&) vcl::unohelper::getNaturalStringSorterForAppLocale() vclmain::createApplication() -writerfilter::dmapper::DomainMapperTableManager::CopyTextProperties(boost::shared_ptr<writerfilter::dmapper::PropertyMap>, boost::shared_ptr<writerfilter::dmapper::StyleSheetTable>) diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.cxx b/writerfilter/source/dmapper/DomainMapperTableManager.cxx index 6aabf59..54bbe4a 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 6243b61..f36ac5d2 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( ) ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits