mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
for Bug 32510 - [Review][Conversion] Не сохраняется включенная опция Review после конвертации документа
This commit is contained in:
@ -2967,6 +2967,18 @@ public:
|
||||
res = Read1(length, &Binary_SettingsTableReader::ReadMathPr, this, poResult);
|
||||
m_oFileWriter.m_oSettingWriter.AddSetting(_T("</m:mathPr>"));
|
||||
}
|
||||
else if ( c_oSer_SettingsType::TrackRevisions == type )
|
||||
{
|
||||
bool bTrackRevisions = m_oBufferedStream.GetBool();
|
||||
if (bTrackRevisions)
|
||||
{
|
||||
m_oFileWriter.m_oSettingWriter.AddSetting(L"<w:trackRevisions/>");
|
||||
}
|
||||
else
|
||||
{
|
||||
m_oFileWriter.m_oSettingWriter.AddSetting(L"<w:trackRevisions w:val=\"false\"/>");
|
||||
}
|
||||
}
|
||||
else
|
||||
res = c_oSerConstants::ReadUnknown;
|
||||
return res;
|
||||
|
||||
@ -652,7 +652,8 @@ extern int g_nCurFormatVersion;
|
||||
{
|
||||
ClrSchemeMapping = 0,
|
||||
DefaultTabStop = 1,
|
||||
MathPr = 2
|
||||
MathPr = 2,
|
||||
TrackRevisions = 3
|
||||
};}
|
||||
namespace c_oSer_MathPrType{enum c_oSer_SettingsType
|
||||
{
|
||||
|
||||
@ -6451,6 +6451,12 @@ namespace BinDocxRW
|
||||
WriteMathPr(oSettings.m_oMathPr.get());
|
||||
m_oBcw.WriteItemEnd(nCurPos);
|
||||
}
|
||||
if(oSettings.m_oTrackRevisions.IsInit())
|
||||
{
|
||||
nCurPos = m_oBcw.WriteItemStart(c_oSer_SettingsType::TrackRevisions);
|
||||
m_oBcw.m_oStream.WriteBOOL(oSettings.m_oTrackRevisions->m_oVal.ToBool());
|
||||
m_oBcw.WriteItemEnd(nCurPos);
|
||||
}
|
||||
};
|
||||
void WriteMathPr(const OOX::Logic::CMathPr &pMathPr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user