Kaydet (Commit) 0be6adc8 authored tarafından Miklos Vajna's avatar Miklos Vajna

Drop unused DomainMapperTableManager::CopyTextProperties()

Change-Id: Ibe99d4f3f4254329ca1b7269221f4e7cba1201a1
üst 67249b4a
...@@ -223,4 +223,3 @@ utl::ConfigItem::getUniqueSetElementName(rtl::OUString const&, rtl::OUString&) ...@@ -223,4 +223,3 @@ utl::ConfigItem::getUniqueSetElementName(rtl::OUString const&, rtl::OUString&)
utl::toISO8601(com::sun::star::util::Time const&) utl::toISO8601(com::sun::star::util::Time const&)
vcl::unohelper::getNaturalStringSorterForAppLocale() vcl::unohelper::getNaturalStringSorterForAppLocale()
vclmain::createApplication() vclmain::createApplication()
writerfilter::dmapper::DomainMapperTableManager::CopyTextProperties(boost::shared_ptr<writerfilter::dmapper::PropertyMap>, boost::shared_ptr<writerfilter::dmapper::StyleSheetTable>)
...@@ -724,43 +724,6 @@ void DomainMapperTableManager::clearData() ...@@ -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: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -93,9 +93,6 @@ public: ...@@ -93,9 +93,6 @@ public:
const OUString& getTableStyleName() const { return m_sTableStyleName; } const OUString& getTableStyleName() const { return m_sTableStyleName; }
const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> getCurrentTablePosition(); 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) inline virtual void cellProps(TablePropertyMapPtr pProps)
{ {
if ( m_pStyleProps.get( ) ) if ( m_pStyleProps.get( ) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment