diff options
author | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2012-09-19 17:51:19 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2012-10-02 18:03:25 +0200 |
commit | c091b8fc526bed051295870b8b28f73f3ac908ae (patch) | |
tree | 42cc79e4edfdc9c0e80e7c12d07475e94f9d7c0f /writerfilter/source | |
parent | 3e6f387606971130fe8710553a4d28cadf7ef3d1 (diff) |
n779627: docx import of table styles, why not copy the ids?
Change-Id: I72188eef689c656b56e2c19e60e0104a1e6d87bf
Diffstat (limited to 'writerfilter/source')
-rw-r--r-- | writerfilter/source/dmapper/StyleSheetTable.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx index ff07e426b9b6..d40343a6d6e2 100644 --- a/writerfilter/source/dmapper/StyleSheetTable.cxx +++ b/writerfilter/source/dmapper/StyleSheetTable.cxx @@ -84,7 +84,8 @@ TableStyleSheetEntry::TableStyleSheetEntry( StyleSheetEntry& rEntry, StyleSheetT StyleSheetEntry( ), m_pStyleSheet( pStyles ) { - + sStyleIdentifierI = rEntry.sStyleIdentifierI; + sStyleIdentifierD = rEntry.sStyleIdentifierD; bIsDefaultStyle = rEntry.bIsDefaultStyle; bInvalidHeight = rEntry.bInvalidHeight; bHasUPE = rEntry.bHasUPE; @@ -453,6 +454,7 @@ void StyleSheetTable::lcl_attribute(Id Name, Value & val) case NS_ooxml::LN_CT_Style_styleId: m_pImpl->m_pCurrentEntry->sStyleIdentifierI = sValue; m_pImpl->m_pCurrentEntry->sStyleIdentifierD = sValue; + fprintf( stderr, "sStyleIdentifierI: %s\n", OUStringToOString( m_pImpl->m_pCurrentEntry->sStyleIdentifierI, RTL_TEXTENCODING_UTF8 ).getStr( ) ); break; case NS_ooxml::LN_CT_TblWidth_w: dynamic_cast< StyleSheetPropertyMap* >( m_pImpl->m_pCurrentEntry->pProperties.get() )->SetCT_TblWidth_w( nIntValue ); |