This commit is contained in:
Viktor Andreev
2025-11-10 15:02:27 +06:00
parent 68f1c6f97d
commit a1d8597b4f
6 changed files with 43 additions and 9 deletions

View File

@ -814,7 +814,10 @@ namespace OOX
if(m_oRowBreaks.IsInit())
m_oRowBreaks->toXML(writer);
if(m_oColBreaks.IsInit())
{
m_oColBreaks->m_fRowBreak = false;
m_oColBreaks->toXML(writer);
}
if (m_oCellWatches.IsInit())
m_oCellWatches->toXML(writer);
if(m_oDrawing.IsInit())

View File

@ -3193,7 +3193,10 @@ namespace OOX
}
void CRowColBreaks::toXML(NSStringUtils::CStringBuilder& writer) const
{
toXML2(writer, L"rowBreaks");
if(m_fRowBreak)
toXML2(writer, L"rowBreaks");
else
toXML2(writer, L"colBreaks");
}
void CRowColBreaks::toXML2(NSStringUtils::CStringBuilder& writer, const std::wstring& sName) const
{

View File

@ -754,6 +754,8 @@ namespace OOX
public:
nullable<SimpleTypes::CUnsignedDecimalNumber> m_oCount;
nullable<SimpleTypes::CUnsignedDecimalNumber> m_oManualBreakCount;
bool m_fRowBreak = true;
};
class CSheetProtection : public WritingElement