Commit c781e83d 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@67941 954022d7-b5bf-4e40-9824-e11837661b57
parent c794336f
......@@ -1591,6 +1591,7 @@ var historydescription_Document_AddLetterUnion = 0x012d;
var historydescription_Presentation_ApplyTimingToAll = 0x012e;
var historydescription_Document_SetColumnsFromRuler = 0x012f;
var historydescription_Document_SetColumnsProps = 0x0130;
var historydescription_Document_AddColumnBreak = 0x0131;
......@@ -1906,6 +1907,7 @@ function Get_HistoryPointStringDescription(nDescription)
case historydescription_Document_AddLetterUnion : sString = "Document_AddLetterUnion "; break;
case historydescription_Document_SetColumnsFromRuler : sString = "Document_SetColumnsFromRuler "; break;
case historydescription_Document_SetColumnsProps : sString = "Document_SetColumnsProps "; break;
case historydescription_Document_AddColumnBreak : sString = "Document_AddColumnBreak "; break;
}
return sString;
}
......@@ -3429,6 +3429,18 @@ asc_docs_api.prototype.put_AddPageBreak = function()
}
}
};
asc_docs_api.prototype.put_AddColumnBreak = function()
{
var Document = this.WordControl.m_oLogicDocument;
if (false === Document.Document_Is_SelectionLocked(changestype_Paragraph_Content))
{
if (null === Document.Hyperlink_Check(false))
{
this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(historydescription_Document_AddPageBreak);
this.WordControl.m_oLogicDocument.Paragraph_Add(new ParaNewLine(break_Column));
}
}
};
asc_docs_api.prototype.Update_ParaInd = function( Ind ){
var FirstLine = 0,
Left = 0,
......
......@@ -279,6 +279,7 @@ asc_docs_api.prototype['change_DocSize'] = asc_docs_api.prototype.change_DocSize
asc_docs_api.prototype['get_DocumentWidth'] = asc_docs_api.prototype.get_DocumentWidth;
asc_docs_api.prototype['get_DocumentHeight'] = asc_docs_api.prototype.get_DocumentHeight;
asc_docs_api.prototype['put_AddPageBreak'] = asc_docs_api.prototype.put_AddPageBreak;
asc_docs_api.prototype['put_AddColumnBreak'] = asc_docs_api.prototype.put_AddColumnBreak;
asc_docs_api.prototype['Update_ParaInd'] = asc_docs_api.prototype.Update_ParaInd;
asc_docs_api.prototype['Internal_Update_Ind_FirstLine'] = asc_docs_api.prototype.Internal_Update_Ind_FirstLine;
asc_docs_api.prototype['Internal_Update_Ind_Left'] = asc_docs_api.prototype.Internal_Update_Ind_Left;
......@@ -744,3 +745,25 @@ CAscTableStyle.prototype['get_Id'] = CAscTableStyle.prototype.get_Id;
CAscTableStyle.prototype['get_Image'] = CAscTableStyle.prototype.get_Image;
CAscTableStyle.prototype['get_Type'] = CAscTableStyle.prototype.get_Type;
window['GenerateTableStyles'] = GenerateTableStyles;
window['CDocumentColumnProps'] = CDocumentColumnProps;
CDocumentColumnProps.prototype['put_W'] = CDocumentColumnProps.prototype.put_W;
CDocumentColumnProps.prototype['get_W'] = CDocumentColumnProps.prototype.get_W;
CDocumentColumnProps.prototype['put_Space'] = CDocumentColumnProps.prototype.put_Space;
CDocumentColumnProps.prototype['get_Space'] = CDocumentColumnProps.prototype.get_Space;
window['CDocumentColumnsProps'] = CDocumentColumnsProps;
CDocumentColumnsProps.prototype['get_EqualWidth'] = CDocumentColumnsProps.prototype.get_EqualWidth;
CDocumentColumnsProps.prototype['put_EqualWidth'] = CDocumentColumnsProps.prototype.put_EqualWidth;
CDocumentColumnsProps.prototype['get_Num'] = CDocumentColumnsProps.prototype.get_Num ;
CDocumentColumnsProps.prototype['put_Num'] = CDocumentColumnsProps.prototype.put_Num ;
CDocumentColumnsProps.prototype['get_Sep'] = CDocumentColumnsProps.prototype.get_Sep ;
CDocumentColumnsProps.prototype['put_Sep'] = CDocumentColumnsProps.prototype.put_Sep ;
CDocumentColumnsProps.prototype['get_Space'] = CDocumentColumnsProps.prototype.get_Space ;
CDocumentColumnsProps.prototype['put_Space'] = CDocumentColumnsProps.prototype.put_Space ;
CDocumentColumnsProps.prototype['get_ColsCount'] = CDocumentColumnsProps.prototype.get_ColsCount ;
CDocumentColumnsProps.prototype['get_Col'] = CDocumentColumnsProps.prototype.get_Col ;
CDocumentColumnsProps.prototype['put_Col'] = CDocumentColumnsProps.prototype.put_Col ;
CDocumentColumnsProps.prototype['put_ColByValue'] = CDocumentColumnsProps.prototype.put_ColByValue;
CDocumentColumnsProps.prototype['get_TotalWidth'] = CDocumentColumnsProps.prototype.get_TotalWidth;
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