mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
@ -1454,7 +1454,24 @@ std::wstring RtfShape::RenderToOOXBegin(RenderParameter oRenderParameter)
|
||||
sShapeNodes += L" inset=\"" + std::to_wstring((int)RtfUtility::Emu2Pt(m_nTexpLeft)) + L"pt,"
|
||||
+ std::to_wstring((int)RtfUtility::Emu2Pt(m_nTexpTop)) + L"pt,"
|
||||
+ std::to_wstring((int)RtfUtility::Emu2Pt(m_nTexpRight)) + L"pt,"
|
||||
+ std::to_wstring((int)RtfUtility::Emu2Pt(m_nTexpBottom)) + L"pt\">";
|
||||
+ std::to_wstring((int)RtfUtility::Emu2Pt(m_nTexpBottom)) + L"pt\"";
|
||||
if (m_nTxflTextFlow != PROP_DEF)
|
||||
{
|
||||
switch (m_nTxflTextFlow)
|
||||
{
|
||||
case 0:
|
||||
break;
|
||||
case 1:
|
||||
sShapeNodes += L" style=\"mso-layout-flow-alt:vertical-ideographic\"";
|
||||
break;
|
||||
case 2:
|
||||
sShapeNodes += L" style=\"mso-layout-flow-alt:vertical\"";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
sShapeNodes += L">";
|
||||
}
|
||||
else
|
||||
sShapeNodes += L">";
|
||||
|
||||
@ -971,15 +971,15 @@ bool OOXRunReader::Parse( ReaderParameter oParam , RtfParagraph& oOutputParagrap
|
||||
{
|
||||
bool res = false;
|
||||
OOX::Logic::CAlternateContent *ooxAlt = dynamic_cast<OOX::Logic::CAlternateContent* >(ooxItem);
|
||||
|
||||
for (size_t i = 0; res == false && i < ooxAlt->m_arrChoiceItems.size(); i++)
|
||||
{
|
||||
res = Parse(oParam, oOutputParagraph, poStyle, oNewProperty, ooxAlt->m_arrChoiceItems[i]);
|
||||
}
|
||||
for (size_t i = 0; res == false && i < ooxAlt->m_arrFallbackItems.size(); i++)
|
||||
{
|
||||
res = Parse(oParam, oOutputParagraph, poStyle, oNewProperty, ooxAlt->m_arrFallbackItems[i]);
|
||||
}
|
||||
for (size_t i = 0; res == false && i < ooxAlt->m_arrChoiceItems.size(); i++)
|
||||
{
|
||||
res = Parse(oParam, oOutputParagraph, poStyle, oNewProperty, ooxAlt->m_arrChoiceItems[i]);
|
||||
}
|
||||
|
||||
|
||||
}break;
|
||||
case OOX::et_w_sym:
|
||||
|
||||
Reference in New Issue
Block a user