Kaydet (Commit) 98f32b2b authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

RTF import: better implement \trrh to import fixed height rows

üst b03fbe13
......@@ -2288,8 +2288,23 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
break;
case RTF_TRRH:
{
rtl::OUString hRule = rtl::OUString::createFromAscii("auto");
if ( nParam < 0 )
{
RTFValue::Pointer_t pAbsValue(new RTFValue(-nParam));
pIntValue.swap( pAbsValue );
hRule = rtl::OUString::createFromAscii("exact");
}
else if ( nParam > 0 )
hRule = rtl::OUString::createFromAscii("atLeast");
lcl_putNestedAttribute(m_aStates.top().aTableRowSprms,
NS_ooxml::LN_CT_TrPrBase_trHeight, NS_ooxml::LN_CT_Height_val, pIntValue);
RTFValue::Pointer_t pHRule(new RTFValue(hRule));
lcl_putNestedAttribute(m_aStates.top().aTableRowSprms,
NS_ooxml::LN_CT_TrPrBase_trHeight, NS_ooxml::LN_CT_Height_hRule, pHRule);
}
break;
case RTF_COLS:
......
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