Commit e1e14ae2 authored by ElenaSubbotina's avatar ElenaSubbotina

.

parent 4f6e3642
...@@ -103,27 +103,21 @@ public: ...@@ -103,27 +103,21 @@ public:
} }
} }
//---------------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------------
_section last_section; _section section;
m_poDocument->GetItem(last_section);
section.props = RtfSectionPtr(new RtfSection());
if (last_section.end_para != m_ooxDocument->m_arrItems.end()) section.start_para = last_section_start;
section.end_para = m_ooxDocument->m_arrItems.end();
section.props->m_oProperty.SetDefaultOOX();
if (m_ooxDocument->m_oSectPr.IsInit())// свойства последней секции
{ {
_section section; OOXSectionPropertyReader oSectReader(m_ooxDocument->m_oSectPr.GetPointer());
section.props = RtfSectionPtr(new RtfSection()); if (oSectReader.Parse( oParam, section.props->m_oProperty ))
section.start_para = last_section.end_para;
section.end_para = m_ooxDocument->m_arrItems.end();
section.props->m_oProperty.SetDefaultOOX();
if (m_ooxDocument->m_oSectPr.IsInit())// свойства последней секции
{ {
OOXSectionPropertyReader oSectReader(m_ooxDocument->m_oSectPr.GetPointer()); m_poDocument->AddItem( section );
if (oSectReader.Parse( oParam, section.props->m_oProperty ))
{
}
} }
}
m_poDocument->AddItem( section );
}
m_poDocument->RemoveItem(0); m_poDocument->RemoveItem(0);
......
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