Commit fd0f2169 authored by Ilya Kirillov's avatar Ilya Kirillov

Убран ненужный параметр ContentLastChangePos.

parent b0bf8739
This diff is collapsed.
......@@ -312,6 +312,12 @@ CDocumentControllerBase.prototype.AddInlineTable = function(nCols, nRows){};
* Очищаем настройки параграфа.
*/
CDocumentControllerBase.prototype.ClearParagraphFormatting = function(){};
/**
* Добавляем элемент в параграф.
* @param oItem
* @param {boolean} bRecalculate - Пересчитывать ли после выполнения данной функции.
*/
CDocumentControllerBase.prototype.AddToParagraph = function(oItem, bRecalculate){};
/**
* Производим удаление выделенной части документа или исходя из позиции курсора.
* @param {number} nDirection направление удаления
......@@ -702,10 +708,3 @@ CDocumentControllerBase.prototype.SaveDocumentStateBeforeLoadChanges = function(
* @param State
*/
CDocumentControllerBase.prototype.RestoreDocumentStateAfterLoadChanges = function(State){};
/**
* Добавляем элемент в параграф.
* @param oItem
* @param {boolean} bRecalculate - Пересчитывать ли после выполнения данной функции.
*/
CDocumentControllerBase.prototype.AddToParagraph = function(oItem, bRecalculate){};
......@@ -64,6 +64,16 @@ CDrawingsController.prototype.ClearParagraphFormatting = function()
{
this.DrawingObjects.paragraphClearFormatting();
};
CDrawingsController.prototype.AddToParagraph = function(oItem, bRecalculate)
{
if (para_NewLine === oItem.Type && true === oItem.Is_PageOrColumnBreak())
return;
this.DrawingObjects.paragraphAdd(oItem, bRecalculate);
this.LogicDocument.Document_UpdateSelectionState();
this.LogicDocument.Document_UpdateUndoRedoState();
this.LogicDocument.Document_UpdateInterfaceState();
};
CDrawingsController.prototype.Remove = function(Count, bOnlyText, bRemoveOnlySelection, bOnTextAdd)
{
return this.DrawingObjects.remove(Count, bOnlyText, bRemoveOnlySelection, bOnTextAdd);
......@@ -489,15 +499,3 @@ CDrawingsController.prototype.RestoreDocumentStateAfterLoadChanges = function(St
};
CDrawingsController.prototype.AddToParagraph = function(oItem, bRecalculate)
{
if (para_NewLine === oItem.Type && true === oItem.Is_PageOrColumnBreak())
return;
this.DrawingObjects.paragraphAdd(oItem, bRecalculate);
this.LogicDocument.Document_UpdateSelectionState();
this.LogicDocument.Document_UpdateUndoRedoState();
this.LogicDocument.Document_UpdateInterfaceState();
};
......@@ -403,6 +403,18 @@ CFootnotesController.prototype.ClearParagraphFormatting = function()
this.CurFootnote.Paragraph_ClearFormatting();
}
};
CFootnotesController.prototype.AddToParagraph = function(oItem, bRecalculate)
{
// TODO: Доделать селект и курсор
if (true === this.Selection.Use)
{
}
else
{
if (null !== this.CurFootnote)
this.CurFootnote.Paragraph_Add(oItem, bRecalculate);
}
};
CFootnotesController.prototype.Remove = function(Count, bOnlyText, bRemoveOnlySelection, bOnTextAdd)
{
// TODO: Доделать селект и курсор
......@@ -1064,19 +1076,6 @@ CFootnotesController.prototype.RestoreDocumentStateAfterLoadChanges = function(S
// TODO: Реализовать
};
CFootnotesController.prototype.AddToParagraph = function(oItem, bRecalculate)
{
// TODO: Доделать селект и курсор
if (true === this.Selection.Use)
{
}
else
{
if (null !== this.CurFootnote)
this.CurFootnote.Paragraph_Add(oItem, bRecalculate);
}
};
function CFootEndnotePage()
......
......@@ -67,6 +67,15 @@ CHdrFtrController.prototype.ClearParagraphFormatting = function()
{
this.HdrFtr.Paragraph_ClearFormatting();
};
CHdrFtrController.prototype.AddToParagraph = function(oItem, bRecalculate)
{
if (para_NewLine === oItem.Type && true === oItem.Is_PageOrColumnBreak())
return;
this.HdrFtr.Paragraph_Add(oItem, bRecalculate);
this.LogicDocument.Document_UpdateSelectionState();
this.LogicDocument.Document_UpdateUndoRedoState();
};
CHdrFtrController.prototype.Remove = function(Count, bOnlyText, bRemoveOnlySelection, bOnTextAdd)
{
var nResult = this.HdrFtr.Remove(Count, bOnlyText, bRemoveOnlySelection, bOnTextAdd);
......@@ -441,14 +450,3 @@ CHdrFtrController.prototype.RestoreDocumentStateAfterLoadChanges = function(Stat
this.LogicDocument.Document_End_HdrFtrEditing();
}
};
\ No newline at end of file
CHdrFtrController.prototype.AddToParagraph = function(oItem, bRecalculate)
{
if (para_NewLine === oItem.Type && true === oItem.Is_PageOrColumnBreak())
return;
this.HdrFtr.Paragraph_Add(oItem, bRecalculate);
this.LogicDocument.Document_UpdateSelectionState();
this.LogicDocument.Document_UpdateUndoRedoState();
};
\ No newline at end of file
......@@ -57,6 +57,10 @@ CLogicDocumentController.prototype.ClearParagraphFormatting = function()
{
this.LogicDocument.controller_ClearParagraphFormatting();
};
CLogicDocumentController.prototype.AddToParagraph = function(oItem)
{
this.LogicDocument.controller_AddToParagraph(oItem);
};
CLogicDocumentController.prototype.Remove = function(nDirection, bOnlyText, bRemoveOnlySelection, bOnAddText)
{
return this.LogicDocument.controller_Remove(nDirection, bOnlyText, bRemoveOnlySelection, bOnAddText);
......@@ -361,10 +365,3 @@ CLogicDocumentController.prototype.RestoreDocumentStateAfterLoadChanges = functi
{
this.LogicDocument.controller_RestoreDocumentStateAfterLoadChanges(State);
};
CLogicDocumentController.prototype.AddToParagraph = function(oItem)
{
this.LogicDocument.controller_AddToParagraph(oItem);
};
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