diff options
author | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2012-09-19 17:51:19 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-10-21 13:15:34 +0200 |
commit | 61821a5aec6d42b54cb3b5e37bf742a402d08d72 (patch) | |
tree | 9302a9fdd5e8e275149a8928dfa14696fbeae6b4 /writerfilter | |
parent | b4f489b3144829c53800fcf4aa59bad5e82fbaed (diff) |
n779627: docx import of table styles, why not copy the ids?
Change-Id: I72188eef689c656b56e2c19e60e0104a1e6d87bf
(cherry picked from commit c091b8fc526bed051295870b8b28f73f3ac908ae)
Diffstat (limited to 'writerfilter')
-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 61ff0ba4793e..edbc3939e232 100644 --- a/writerfilter/source/dmapper/StyleSheetTable.cxx +++ b/writerfilter/source/dmapper/StyleSheetTable.cxx @@ -73,7 +73,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 ); |