Commit 892b6202 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Добавлена функция и типы для добавления разрыва секции.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56200 954022d7-b5bf-4e40-9824-e11837661b57
parent 611da77c
......@@ -6811,6 +6811,25 @@ asc_docs_api.prototype.GetSectionInfo = function()
return obj;
}
asc_docs_api.prototype.add_SectionBreak = function(_Type)
{
var Type = section_type_Continuous;
switch(_Type)
{
case c_oAscSectionBreakType.NextPage : Type = section_type_NextPage; break;
case c_oAscSectionBreakType.OddPage : Type = section_type_OddPage; break;
case c_oAscSectionBreakType.EvenPage : Type = section_type_EvenPage; break;
case c_oAscSectionBreakType.Continuous : Type = section_type_Continuous; break;
case c_oAscSectionBreakType.Column : Type = section_type_Column; break;
}
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Paragraph_Content) )
{
this.WordControl.m_oLogicDocument.Create_NewHistoryPoint();
this.WordControl.m_oLogicDocument.Add_SectionBreak(Type);
}
}
asc_docs_api.prototype.SetViewMode = function( isViewMode )
{
if (isViewMode)
......
......@@ -338,4 +338,13 @@ var c_oAscDropCap =
Margin : 2
};
var c_oAscSectionBreakType =
{
NextPage : 0x00,
OddPage : 0x01,
EvenPage : 0x02,
Continuous : 0x03,
Column : 0x04
};
window["flat_desine"] = false;
\ No newline at end of file
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