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

Avoid having TableManager as a template class

It was always used with T=css::uno::Reference<css::text::XTextRange>

Change-Id: If79413cf68ad5d5f6fc7aba1c065f49e5781d71d
üst 45234fd2
...@@ -101,6 +101,7 @@ $(eval $(call gb_Library_add_exception_objects,writerfilter,\ ...@@ -101,6 +101,7 @@ $(eval $(call gb_Library_add_exception_objects,writerfilter,\
writerfilter/source/dmapper/SettingsTable \ writerfilter/source/dmapper/SettingsTable \
writerfilter/source/dmapper/StyleSheetTable \ writerfilter/source/dmapper/StyleSheetTable \
writerfilter/source/dmapper/TDefTableHandler \ writerfilter/source/dmapper/TDefTableHandler \
writerfilter/source/dmapper/TableManager \
writerfilter/source/dmapper/TablePositionHandler \ writerfilter/source/dmapper/TablePositionHandler \
writerfilter/source/dmapper/TablePropertiesHandler \ writerfilter/source/dmapper/TablePropertiesHandler \
writerfilter/source/dmapper/TextEffectsHandler \ writerfilter/source/dmapper/TextEffectsHandler \
......
...@@ -133,7 +133,7 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm) ...@@ -133,7 +133,7 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm)
dmapper_logger->chars(sSprm); dmapper_logger->chars(sSprm);
dmapper_logger->endElement(); dmapper_logger->endElement();
#endif #endif
bool bRet = DomainMapperTableManager_Base_t::sprm(rSprm); bool bRet = TableManager::sprm(rSprm);
if( !bRet ) if( !bRet )
{ {
bRet = m_pTablePropsHandler->sprm( rSprm ); bRet = m_pTablePropsHandler->sprm( rSprm );
...@@ -521,7 +521,7 @@ void DomainMapperTableManager::setIsInShape(bool bIsInShape) ...@@ -521,7 +521,7 @@ void DomainMapperTableManager::setIsInShape(bool bIsInShape)
void DomainMapperTableManager::startLevel( ) void DomainMapperTableManager::startLevel( )
{ {
DomainMapperTableManager_Base_t::startLevel( ); TableManager::startLevel( );
// If requested, pop the value that was pushed too early. // If requested, pop the value that was pushed too early.
boost::optional<sal_Int32> oCurrentWidth; boost::optional<sal_Int32> oCurrentWidth;
...@@ -576,7 +576,7 @@ void DomainMapperTableManager::endLevel( ) ...@@ -576,7 +576,7 @@ void DomainMapperTableManager::endLevel( )
m_aTmpPosition.pop_back( ); m_aTmpPosition.pop_back( );
m_aTmpTableProperties.pop_back( ); m_aTmpTableProperties.pop_back( );
DomainMapperTableManager_Base_t::endLevel( ); TableManager::endLevel( );
#ifdef DEBUG_WRITERFILTER #ifdef DEBUG_WRITERFILTER
dmapper_logger->startElement("dmappertablemanager.endLevel"); dmapper_logger->startElement("dmappertablemanager.endLevel");
PropertyMapPtr pProps = getTableProps(); PropertyMapPtr pProps = getTableProps();
...@@ -826,7 +826,7 @@ void DomainMapperTableManager::endOfRowAction() ...@@ -826,7 +826,7 @@ void DomainMapperTableManager::endOfRowAction()
} }
// Now that potentially opened table is closed, save the table properties // Now that potentially opened table is closed, save the table properties
DomainMapperTableManager_Base_t::insertTableProps( pTmpTableProperties ); TableManager::insertTableProps( pTmpTableProperties );
m_aTmpTableProperties.pop_back(); m_aTmpTableProperties.pop_back();
TablePropertyMapPtr pEmptyTableProps( new TablePropertyMap() ); TablePropertyMapPtr pEmptyTableProps( new TablePropertyMap() );
......
...@@ -34,7 +34,7 @@ namespace dmapper { ...@@ -34,7 +34,7 @@ namespace dmapper {
class DomainMapper; class DomainMapper;
class DomainMapperTableManager : public DomainMapperTableManager_Base_t class DomainMapperTableManager : public TableManager
{ {
typedef boost::shared_ptr< std::vector<sal_Int32> > IntVectorPtr; typedef boost::shared_ptr< std::vector<sal_Int32> > IntVectorPtr;
...@@ -111,7 +111,7 @@ public: ...@@ -111,7 +111,7 @@ public:
if ( m_pStyleProps.get( ) ) if ( m_pStyleProps.get( ) )
m_pStyleProps->InsertProps(pProps); m_pStyleProps->InsertProps(pProps);
else else
DomainMapperTableManager_Base_t::cellProps( pProps ); TableManager::cellProps( pProps );
}; };
virtual void cellPropsByCell(unsigned int i, TablePropertyMapPtr pProps) SAL_OVERRIDE virtual void cellPropsByCell(unsigned int i, TablePropertyMapPtr pProps) SAL_OVERRIDE
...@@ -119,7 +119,7 @@ public: ...@@ -119,7 +119,7 @@ public:
if ( m_pStyleProps.get( ) ) if ( m_pStyleProps.get( ) )
m_pStyleProps->InsertProps(pProps); m_pStyleProps->InsertProps(pProps);
else else
DomainMapperTableManager_Base_t::cellPropsByCell( i, pProps ); TableManager::cellPropsByCell( i, pProps );
}; };
virtual void insertRowProps(TablePropertyMapPtr pProps) SAL_OVERRIDE virtual void insertRowProps(TablePropertyMapPtr pProps) SAL_OVERRIDE
...@@ -127,7 +127,7 @@ public: ...@@ -127,7 +127,7 @@ public:
if ( m_pStyleProps.get( ) ) if ( m_pStyleProps.get( ) )
m_pStyleProps->InsertProps(pProps); m_pStyleProps->InsertProps(pProps);
else else
DomainMapperTableManager_Base_t::insertRowProps( pProps ); TableManager::insertRowProps( pProps );
}; };
virtual void insertTableProps(TablePropertyMapPtr pProps) SAL_OVERRIDE virtual void insertTableProps(TablePropertyMapPtr pProps) SAL_OVERRIDE
...@@ -160,7 +160,7 @@ public: ...@@ -160,7 +160,7 @@ public:
bool isInCell() bool isInCell()
{ {
return DomainMapperTableManager_Base_t::isInCell(); return TableManager::isInCell();
} }
void setIsInShape(bool bIsInShape); void setIsInShape(bool bIsInShape);
......
This diff is collapsed.
...@@ -34,16 +34,13 @@ namespace dmapper { ...@@ -34,16 +34,13 @@ namespace dmapper {
class DomainMapper; class DomainMapper;
typedef ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > Handle_t;
typedef TableManager<Handle_t> DomainMapperTableManager_Base_t;
class TablePropertiesHandler class TablePropertiesHandler
{ {
private: private:
std::vector< PropertyMapPtr > m_rPropertiesStack; std::vector< PropertyMapPtr > m_rPropertiesStack;
PropertyMapPtr m_pCurrentProperties; PropertyMapPtr m_pCurrentProperties;
std::vector<css::beans::PropertyValue>* m_pCurrentInteropGrabBag; std::vector<css::beans::PropertyValue>* m_pCurrentInteropGrabBag;
DomainMapperTableManager_Base_t *m_pTableManager; TableManager* m_pTableManager;
bool m_bOOXML; bool m_bOOXML;
public: public:
...@@ -52,7 +49,7 @@ public: ...@@ -52,7 +49,7 @@ public:
bool sprm(Sprm & sprm); bool sprm(Sprm & sprm);
inline void SetTableManager( DomainMapperTableManager_Base_t *pTableManager ) inline void SetTableManager( TableManager* pTableManager )
{ {
m_pTableManager = pTableManager; m_pTableManager = pTableManager;
}; };
......
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